describe third option of committing gnulib files while skipping others
[pspp] / ChangeLog
1 2010-03-08  Karl Berry  <karl@gnu.org>
2
3         * doc/gnulib-tool.texi (VCS Issues): Mention third option
4         of committing gnulib files while skipping others.
5
6 2010-03-07  Bruno Haible  <bruno@clisp.org>
7
8         Tests of module 'wctype' in C++ mode.
9         * tests/test-wctype-c++.cc: New file.
10         * modules/wctype-tests (Files): Add it and tests/signature.h.
11         (Depends-on): Add ansi-c++-opt.
12         (Makefile.am): Arrange to compile and run test-wctype-c++.
13
14         Tests of module 'wchar' in C++ mode.
15         * tests/test-wchar-c++.cc: New file.
16         * modules/wchar-tests (Files): Add it and tests/signature.h.
17         (Depends-on): Add ansi-c++-opt.
18         (Makefile.am): Arrange to compile and run test-wchar-c++.
19         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
20         gl_MODULE_INDICATOR.
21
22         Tests of module 'unistd' in C++ mode.
23         * tests/test-unistd-c++.cc: New file.
24         * modules/unistd-tests (Files): Add it and tests/signature.h.
25         (Depends-on): Add ansi-c++-opt.
26         (Makefile.am): Arrange to compile and run test-unistd-c++.
27         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28         gl_MODULE_INDICATOR.
29
30         Tests of module 'time' in C++ mode.
31         * tests/test-time-c++.cc: New file.
32         * modules/time-tests (Files): Add it and tests/signature.h.
33         (Depends-on): Add ansi-c++-opt.
34         (Makefile.am): Arrange to compile and run test-time-c++.
35         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36
37         Tests of module 'sys_time' in C++ mode.
38         * tests/test-sys_time-c++.cc: New file.
39         * modules/sys_time-tests (Files): Add it and tests/signature.h.
40         (Depends-on): Add ansi-c++-opt.
41         (Makefile.am): Arrange to compile and run test-sys_time-c++.
42         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
43         gl_MODULE_INDICATOR.
44
45         Tests of module 'sys_stat' in C++ mode.
46         * tests/test-sys_stat-c++.cc: New file.
47         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
48         (Depends-on): Add ansi-c++-opt.
49         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
50         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
51         gl_MODULE_INDICATOR.
52
53         Tests of module 'sys_socket' in C++ mode.
54         * tests/test-sys_socket-c++.cc: New file.
55         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
56         (Depends-on): Add ansi-c++-opt.
57         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
58         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
59         gl_MODULE_INDICATOR.
60
61         Tests of module 'sys_select' in C++ mode.
62         * tests/test-sys_select-c++.cc: New file.
63         * modules/sys_select-tests (Files): Add it and tests/signature.h.
64         (Depends-on): Add ansi-c++-opt.
65         (Makefile.am): Arrange to compile and run test-sys_select-c++.
66         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67         gl_MODULE_INDICATOR.
68
69         Tests of module 'sys_ioctl' in C++ mode.
70         * tests/test-sys_ioctl-c++.cc: New file.
71         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
72         (Depends-on): Add ansi-c++-opt.
73         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
74         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
75         gl_MODULE_INDICATOR.
76
77         Tests of module 'string' in C++ mode.
78         * tests/test-string-c++.cc: New file.
79         * modules/string-tests (Files): Add it and tests/signature.h.
80         (Depends-on): Add ansi-c++-opt.
81         (Makefile.am): Arrange to compile and run test-string-c++.
82         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
83         gl_MODULE_INDICATOR.
84
85         Tests of module 'stdlib' in C++ mode.
86         * tests/test-stdlib-c++.cc: New file.
87         * modules/stdlib-tests (Files): Add it and tests/signature.h.
88         (Depends-on): Add ansi-c++-opt.
89         (Makefile.am): Arrange to compile and run test-stdlib-c++.
90         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
91         gl_MODULE_INDICATOR.
92
93         Tests of module 'stdio' in C++ mode.
94         * tests/test-stdio-c++.cc: New file.
95         * modules/stdio-tests (Files): Add it and tests/signature.h.
96         (Depends-on): Add ansi-c++-opt.
97         (Makefile.am): Arrange to compile and run test-stdio-c++.
98         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
99         gl_MODULE_INDICATOR.
100
101         Tests of module 'spawn' in C++ mode.
102         * tests/test-spawn-c++.cc: New file.
103         * modules/spawn-tests (Files): Add it and tests/signature.h.
104         (Depends-on): Add ansi-c++-opt.
105         (Makefile.am): Arrange to compile and run test-spawn-c++.
106         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
107         gl_MODULE_INDICATOR.
108
109         Tests of module 'signal' in C++ mode.
110         * tests/test-signal-c++.cc: New file.
111         * modules/signal-tests (Files): Add it and tests/signature.h.
112         (Depends-on): Add ansi-c++-opt.
113         (Makefile.am): Arrange to compile and run test-signal-c++.
114         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
115         gl_MODULE_INDICATOR.
116
117         Tests of module 'search' in C++ mode.
118         * tests/test-search-c++.cc: New file.
119         * modules/search-tests (Files): Add it and tests/signature.h.
120         (Depends-on): Add ansi-c++-opt.
121         (Makefile.am): Arrange to compile and run test-search-c++.
122         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
123         gl_MODULE_INDICATOR.
124
125         Tests of module 'math' in C++ mode.
126         * tests/test-math-c++.cc: New file.
127         * modules/math-tests (Files): Add it and tests/signature.h.
128         (Depends-on): Add ansi-c++-opt.
129         (Makefile.am): Arrange to compile and run test-math-c++.
130         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
131
132         Tests of module 'locale' in C++ mode.
133         * tests/test-locale-c++.cc: New file.
134         * modules/locale-tests (Files): Add it and tests/signature.h.
135         (Depends-on): Add ansi-c++-opt.
136         (Makefile.am): Arrange to compile and run test-locale-c++.
137         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
138         gl_MODULE_INDICATOR.
139
140         Tests of module 'langinfo' in C++ mode.
141         * tests/test-langinfo-c++.cc: New file.
142         * modules/langinfo-tests (Files): Add it and tests/signature.h.
143         (Depends-on): Add ansi-c++-opt.
144         (Makefile.am): Arrange to compile and run test-langinfo-c++.
145         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
146         gl_MODULE_INDICATOR.
147
148         Tests of module 'iconv-h' in C++ mode.
149         * tests/test-iconv-h-c++.cc: New file.
150         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
151         (Depends-on): Add ansi-c++-opt.
152         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
153
154         Tests of module 'glob' in C++ mode.
155         * tests/test-glob-c++.cc: New file.
156         * modules/glob-tests (Files): Add it.
157         (Depends-on): Add ansi-c++-opt.
158         (Makefile.am): Arrange to compile and run test-glob-c++.
159
160         Tests of module 'fcntl-h' in C++ mode.
161         * tests/test-fcntl-h-c++.cc: New file.
162         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
163         (Depends-on): Add ansi-c++-opt.
164         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
165         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
166         gl_MODULE_INDICATOR.
167
168         Tests of module 'dirent' in C++ mode.
169         * tests/test-dirent-c++.cc: New file.
170         * modules/dirent-tests (Files): Add it and tests/signature.h.
171         (Depends-on): Add ansi-c++-opt.
172         (Makefile.am): Arrange to compile and run test-dirent-c++.
173         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
174         gl_MODULE_INDICATOR.
175
176         New module 'ansi-c++-opt'.
177         * modules/ansi-c++-opt: New file.
178         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
179
180         Document C++ namespace mode.
181         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
182
183         wctype: Avoid #define replacements in C++ mode.
184         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
185         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
186         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
187         In C++, define a namespaced alias symbol.
188         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
189         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
190         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
191         rule.
192
193         wchar: Avoid #define replacements in C++ mode.
194         * lib/wchar.in.h: Include c++defs.h.
195         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
196         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
197         symbol.
198         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
199         * modules/wchar (Depends-on): Add c++defs.
200         (Makefile.am): Update wchar.h rule.
201
202         unistd: Avoid #define replacements in C++ mode.
203         * lib/unistd.in.h: Include c++defs.h.
204         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
205         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
206         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
207         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
208         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
209         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
210         symbol.
211         (environ): Update.
212         * modules/unistd (Depends-on): Add c++defs.
213         (Makefile.am): Update unistd.h rule.
214
215         time: Avoid #define replacements in C++ mode.
216         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
217         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
218         define a namespaced alias symbol.
219         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
220         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
221         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
222         * modules/time (Depends-on): Add c++defs, warn-on-use.
223         (Makefile.am): Update time.h rule.
224         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
225         * modules/nanosleep (configure.ac): Likewise.
226         * modules/strptime (configure.ac): Likewise.
227         * modules/timegm (configure.ac): Likewise.
228
229         sys_time: Avoid #define replacements in C++ mode.
230         * lib/sys_time.in.h: Include c++defs.h.
231         (gettimeofday): In C++, define a namespaced alias symbol.
232         * modules/sys_time (Depends-on): Add c++defs.
233         (Makefile.am): Update sys/time.h rule.
234
235         sys_stat: Avoid #define replacements in C++ mode.
236         * lib/sys_stat.in.h: Include c++defs.h.
237         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
238         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
239         namespaced alias symbol.
240         In C++, define a namespaced alias symbol.
241         * modules/sys_stat (Depends-on): Add c++defs.
242         (Makefile.am): Update sys/stat.h rule.
243
244         sys_socket: Avoid #define replacements in C++ mode.
245         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
246         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
247         definitions also when the system has a <sys/socket.h>.
248         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
249         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
250         In C++, define a namespaced alias symbol.
251         * modules/sys_socket (Depends-on): Add c++defs.
252         (Makefile.am): Update sys/socket.h rule.
253
254         sys_select: Avoid #define replacements in C++ mode.
255         * lib/sys_select.in.h: Include c++defs.h. Enable the function
256         definitions also when the system has a <sys/select.h>.
257         (select): In C++, define a namespaced alias symbol.
258         * modules/sys_select (Depends-on): Add c++defs.
259         (Makefile.am): Update sys/select.h rule.
260
261         sys_ioctl: Avoid #define replacements in C++ mode.
262         * lib/sys_ioctl.in.h: Include c++defs.h.
263         (ioctl): In C++, define a namespaced alias symbol.
264         * modules/sys_ioctl (Depends-on): Add c++defs.
265         (Makefile.am): Update sys/ioctl.h rule.
266
267         string: Avoid #define replacements in C++ mode.
268         * lib/string.in.h: Include c++defs.h.
269         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
270         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
271         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
272         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
273         strsignal, strverscmp): In C++, define a namespaced alias symbol.
274         * modules/string (Depends-on): Add c++defs.
275         (Makefile.am): Update string.h rule.
276
277         stdlib: Avoid #define replacements in C++ mode.
278         * lib/stdlib.in.h: Include c++defs.h.
279         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
280         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
281         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
282         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
283         symbol.
284         * modules/stdlib (Depends-on): Add c++defs.
285         (Makefile.am): Update stdlib.h rule.
286
287         stdio: Avoid #define replacements in C++ mode.
288         * lib/stdio.in.h: Include c++defs.h.
289         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
290         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
291         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
292         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
293         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
294         namespaced alias symbol.
295         * modules/stdio (Depends-on): Add c++defs.
296         (Makefile.am): Update stdio.h rule.
297
298         spawn: Avoid #define replacements in C++ mode.
299         * lib/spawn.in.h: Include c++defs.h.
300         (posix_spawn, posix_spawnp, posix_spawnattr_init,
301         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
302         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
303         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
304         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
305         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
306         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
307         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
308         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
309         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
310         In C++, define a namespaced alias symbol.
311         * modules/spawn (Depends-on): Add c++defs.
312         (Makefile.am): Update spawn.h rule.
313
314         signal: Avoid #define replacements in C++ mode.
315         * lib/signal.in.h: Include c++defs.h.
316         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
317         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
318         namespaced alias symbol.
319         * modules/signal (Depends-on): Add c++defs.
320         (Makefile.am): Update signal.h rule.
321
322         search: Avoid #define replacements in C++ mode.
323         * lib/search.in.h: Include c++defs.h.
324         (_gl_search_compar_fn, _gl_search_action_fn): New types.
325         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
326         symbol.
327         * modules/search (Depends-on): Add c++defs.
328         (Makefile.am): Update search.h rule.
329
330         math: Avoid #define replacements in C++ mode.
331         * lib/math.in.h: Include c++defs.h.
332         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
333         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
334         trunc, truncl): In C++, define a namespaced alias symbol.
335         * modules/math (Depends-on): Add c++defs.
336         (Makefile.am): Update math.h rule.
337
338         locale: Avoid #define replacements in C++ mode.
339         * lib/locale.in.h: Include c++defs.h.
340         (duplocale): In C++, define a namespaced alias symbol.
341         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
342         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
343         * modules/locale (Depends-on): Add c++defs.
344         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
345
346         langinfo: Avoid #define replacements in C++ mode.
347         * lib/langinfo.in.h: Include c++defs.h.
348         (nl_langinfo): In C++, define a namespaced alias symbol.
349         * modules/langinfo (Depends-on): Add c++defs.
350         (Makefile.am): Update langinfo.h rule.
351
352         iconv-h: Avoid #define replacements in C++ mode.
353         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
354         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
355         symbol.
356         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
357         whenever iconv is present.
358         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
359         (Makefile.am): Update iconv.h rule.
360
361         glob: Avoid #define replacements in C++ mode.
362         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
363         (_gl_glob_errfunc_fn): New type.
364         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
365         symbol.
366         * modules/glob (Depends-on): Add c++defs, warn-on-use.
367         (Makefile.am): Update glob.h rule.
368
369         fcntl-h: Avoid #define replacements in C++ mode.
370         * lib/fcntl.in.h: Include c++defs.h.
371         (fcntl, open, openat): In C++, define a namespaced alias symbol.
372         * modules/fcntl-h (Depends-on): Add c++defs.
373         (Makefile.am): Update fcntl.h rule.
374
375         dirent: Avoid #define replacements in C++ mode.
376         * lib/dirent.in.h: Include c++defs.h.
377         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
378         namespaced alias symbol.
379         (dirfd): Update declaration.
380         * modules/dirent (Depends-on): Add c++defs.
381         (Makefile.am): Update dirent.h rule.
382
383         ctype: Make it usable in C++ code.
384         * lib/ctype.in.h: Include c++defs.h.
385         (isblank): Declare as extern "C".
386         * modules/ctype (Depends-on): Add c++defs.
387         (Makefile.am): Update ctype.h rule.
388
389         New module 'c++defs'.
390         * modules/c++defs: New file.
391         * build-aux/c++defs.h: New file.
392         Reported by John W. Eaton <jwe@gnu.org>.
393
394 2010-03-07  Bruno Haible  <bruno@clisp.org>
395
396         logb: Provide missing declaration for Cygwin.
397         * lib/math.in.h (logb): New declaration.
398         * m4/logb.m4: New file.
399         * modules/logb (Files): Add m4/logb.m4.
400         (Depends-on): Add math.
401         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
402         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
404         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
405         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
406
407 2010-03-07  Bruno Haible  <bruno@clisp.org>
408
409         Fix test-cond link error.
410         * tests/test-cond.c: Include <stdio.h>.
411
412 2010-03-07  Bruno Haible  <bruno@clisp.org>
413
414         Fix test-dirent-safer link error.
415         * modules/dirent-safer-tests (Makefile.am): Define
416         test_dirent_safer_LDADD.
417
418 2010-03-07  Bruno Haible  <bruno@clisp.org>
419
420         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
421         among default module list.
422
423 2010-03-07  Bruno Haible  <bruno@clisp.org>
424
425         Fix link error on platforms with GNU libiconv.
426         * modules/unistr/u8-strcoll-tests (Makefile): Define
427         test_u8_strcoll_LDADD.
428         * modules/unistr/u16-strcoll-tests (Makefile): Define
429         test_u16_strcoll_LDADD.
430         * modules/unistr/u32-strcoll-tests (Makefile): Define
431         test_u32_strcoll_LDADD.
432
433 2010-03-07  Bruno Haible  <bruno@clisp.org>
434
435         Use POSIX declarations for socket functions.
436         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
437         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
438         rpl_sendto): Change declaration to match POSIX.
439         * lib/connect.c (rpl_connect): Likewise.
440         * lib/accept.c (rpl_accept): Likewise.
441         * lib/bind.c (rpl_bind): Likewise.
442         * lib/getpeername.c (rpl_getpeername): Likewise.
443         * lib/getsockname.c (rpl_getsockname): Likewise.
444         * lib/recv.c (rpl_recv): Likewise.
445         * lib/send.c (rpl_send): Likewise.
446         * lib/recvfrom.c (rpl_recvfrom): Likewise.
447         * lib/sendto.c (rpl_sendto): Likewise.
448
449 2010-03-06  Bruno Haible  <bruno@clisp.org>
450
451         Clarify access, euidaccess, faccessat.
452         * doc/posix-functions/faccessat.texi: Mention security problem under
453         "Other problems", not "Portability problems".
454         * doc/posix-functions/access.texi: Likewise. Mention a related security
455         problem.
456         * doc/glibc-functions/euidaccess.texi: Mention security problems.
457         * lib/euidaccess.c: Add comments about platforms.
458         * lib/unistd.in.h (access, euidaccess): Add warnings.
459
460 2010-03-07  Bruno Haible  <bruno@clisp.org>
461
462         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
463         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
464         (POSIX_SPAWN_SETSCHEDULER): Likewise.
465         (POSIX_SPAWN_USEVFORK): Define in a way that works when
466         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
467         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
468         declare when POSIX_SPAWN_SETSCHEDULER is zero.
469         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
470         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
472         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
473         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
474         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
475         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
476         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
477         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
478         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
479         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
480         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
481         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
482         Likewise.
483         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
484         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
485         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
486         Likewise.
487         * tests/test-spawn.c (main): Make it work when
488         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
489
490 2010-03-07  Bruno Haible  <bruno@clisp.org>
491
492         Fix incorrect Makefile.am generation in German locale.
493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
494         Execute sed command with character range in C locale.
495
496 2010-03-06  Bruno Haible  <bruno@clisp.org>
497
498         Tests for module 'iconv-h'.
499         * modules/iconv-h-tests: New file.
500         * tests/test-iconv-h.c: New file.
501
502         New module 'iconv-h'.
503         * modules/iconv-h: New file.
504         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
505         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
506         (configure.ac): Remove gl_ICONV_H.
507         (Makefile.am): Remove rule for iconv.h.
508
509 2010-03-06  Bruno Haible  <bruno@clisp.org>
510
511         More consistent naming of *.m4 files.
512         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
513         * modules/wctype (Files): Update.
514
515         More consistent naming of *.m4 files.
516         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
517         * modules/wchar (Files): Update.
518
519 2010-03-06  Jim Meyering  <meyering@redhat.com>
520
521         euidaccess: relax license to LGPLv2+
522         * modules/euidaccess (License): Relax to LGPLv2+.
523
524 2010-03-06  Bruno Haible  <bruno@clisp.org>
525
526         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
527         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
528         (Makefile.am): Augment lib_SOURCES instead.
529
530 2010-03-04  Jim Meyering  <meyering@redhat.com>
531
532         utime: remove obsolete module
533         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
534         unnecessary for years, and has been marked as obsolete for 10 months.
535         * modules/utime: Remove file.
536         * lib/utime.c: Remove file.
537         * m4/utime.m4: Remove file.
538         * m4/utimes-null.m4: Remove file.
539         * doc/posix-functions/utime.texi (utime): Remove reference to
540         the module.  Move the sole "fixed by gnulib" item into the
541         "problems not fixed by Gnulib" list.
542         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
543
544 2010-03-05  Simon Josefsson  <simon@josefsson.org>
545
546         * modules/exit (License): Relax license to LGPLv2+.
547         (Status): Mark as obsolete.
548         * NEWS: Mention deprecated 'exit' module.
549         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
550         of now obsolete 'exit'.
551
552 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
553
554         fts-lgpl: remove unused module
555         * modules/fts-lgpl: Remove.
556         * MODULES.html.sh (func_all_modules): Adjust.
557         * check-module (find_included_lib_files): Adjust.
558         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
559
560 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
561
562         copy-acl: enhance Solaris ACL error handling
563         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
564         * lib/set-mode-acl.c (qset_acl): Likewise.
565
566 2010-03-02  Bruno Haible  <bruno@clisp.org>
567
568         spawn: Don't override the system defined values on FreeBSD 8.
569         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
570         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
571         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
572         if HAVE_POSIX_SPAWN is 1.
573         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
574
575 2010-03-01  Bruno Haible  <bruno@clisp.org>
576
577         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
578         regarding Automake.
579
580 2010-02-25  Bruno Haible  <bruno@clisp.org>
581
582         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
583         * gnulib-tool: Define 'echo' as a function only before the ksh alias
584         setting, not afterwards.
585         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
586
587 2010-02-24  Eric Blake  <eblake@redhat.com>
588
589         bootstrap, git-version-gen: use timestamp
590         * build-aux/git-version-gen (scriptversion): Force UTC.
591         * build-aux/bootstrap (scriptversion): New variable.
592
593         bootstrap: allow older git
594         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
595         older than 1.6.4.  Requested by the libvirt project.
596
597 2010-02-23  Eric Blake  <eblake@redhat.com>
598
599         warn-on-use: work with old autoconf
600         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
601         AS_VAR semantics of autoconf 2.60.
602         Reported by Bruno Haible.
603
604         bootstrap: improve some comments
605         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
606         clarification comments.
607
608         gettimeofday: provide correct function
609         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
610         when replacement is declared, otherwise provide gettimeofday.
611         Reported by Michael Goffioul.
612
613 2010-02-23  Jim Meyering  <meyering@redhat.com>
614
615         lib-ignore: relax license to "unlimited", not LGPLv2+
616         * modules/lib-ignore (License): Relax to "unlimited".
617
618 2010-02-23  Jim Meyering  <meyering@redhat.com>
619
620         lib-ignore: relax license to LGPLv2+
621         * modules/lib-ignore (License): Relax to LGPLv2+.
622
623 2010-02-22  Eric Blake  <eblake@redhat.com>
624
625         lseek: avoid bash 3.2 broken pipe bug
626         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
627         warning from bash 3.2.
628         Reported by Ben Pfaff, with analysis from Bruno Haible.
629
630         bootstrap: support non-FSF copyright holder
631         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
632         bootstrap.conf override of COPYRIGHT_HOLDER.
633         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
634
635         bootstrap: interoperate with gettext 0.14.1
636         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
637
638         bootstrap: allow for alternate submodule location
639         * build-aux/bootstrap (gnulib_path): New variable; use instead of
640         hardcoding submodule location.
641         (gnulib_mk): Allow direct use of Makefile.am.
642
643         bootstrap: use GNULIB_SRCDIR to reduce disk usage
644         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
645         rather than reconfiguring where the submodule points.
646
647         gettimeofday: restore support for platforms that lack function
648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
649         replacement if function is missing.
650         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
651         * modules/sys_time (Makefile.am): Substitute it.
652         * lib/sys_time.in.h (gettimeofday): Check it.
653         Reported by Michael Goffioul.
654
655 2010-02-21  Bruno Haible  <bruno@clisp.org>
656
657         * lib/stdio.in.h (obstack_printf): Fix typo.
658
659 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
660
661         vc-list-files: use bzr ls's -R option
662         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
663         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
664
665 2010-02-21  Jim Meyering  <meyering@redhat.com>
666
667         init.sh: fix EXEEXT shims to work also for names like test-prog
668         * tests/init.sh: Re-exec a better shell, when needed.
669         If the current shell lacks support for posix $(...), an init.sh-using
670         test will now try to find a shell that supports that.  If EXEEXT is
671         nonempty, we also require support for hyphen-in-alias-name and shell
672         substitutions like ${var#glob}.  Failure to find such a shell results
673         in a skipped test.
674
675 2010-02-21  Bruno Haible  <bruno@clisp.org>
676
677         Really work around around "broken pipe" error message from bash 3.2.
678         * gnulib-tool (func_reset_sigpipe): Remove function.
679         (echo): In bash 3.2, define to a function that uses printf.
680         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
681
682 2010-02-20  Bruno Haible  <bruno@clisp.org>
683
684         Restore support for automake 1.9.6 with autoconf 2.61.
685         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
686         Reported by James Youngman <jay@gnu.org>.
687
688 2010-02-20  Bruno Haible  <bruno@clisp.org>
689
690         Improve *printf warning condition.
691         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
692         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
693         and the function is overridden due to SIGPIPE emulation.
694
695 2010-02-20  Bruno Haible  <bruno@clisp.org>
696
697         * lib/stdio.in.h: Tweak comments.
698
699 2010-02-19  Bruno Haible  <bruno@clisp.org>
700
701         Make it easier to find modules. New gnulib-tool option '--find'.
702         * gnulib-tool: New option --find.
703         (func_usage): Document it.
704         (func_sanitize_modulelist): New function, extracted from
705         func_all_modules.
706         (func_all_modules): Invoke it.
707         * doc/gnulib-tool.texi (Which modules?): New node.
708
709 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
710
711         * lib/sys_select.in.h: Provide select replacement even if
712         sys/select.h exists on a system, for Interix.
713
714 2010-02-18  Jim Meyering  <meyering@redhat.com>
715
716         init.sh: don't use $(...) just yet
717         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
718         to accommodate e.g., Solaris' /bin/sh.
719
720 2010-02-17  Bruno Haible  <bruno@clisp.org>
721
722         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
723         Reported by Ludovic Courtès <ludo@gnu.org>.
724
725 2010-02-16  Simon Josefsson  <simon@josefsson.org>
726
727         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
728         linking with -lintl.
729
730 2010-02-17  Simon Josefsson  <simon@josefsson.org>
731
732         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
733         if not provided by the system's netdb.h.  Reported by
734         ludo@gnu.org (Ludovic Courtès).
735
736 2010-02-15  Jim Meyering  <meyering@redhat.com>
737
738         init.sh: improve portability and efficiency
739         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
740         "dummy" in a for loop.
741         Use '!', not '^' to select the complement of a character set used
742         in a "case" statement.
743         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
744         Suggestions from Eric Blake.
745
746         init.sh: automatically accommodate programs with the .exe suffix
747         Automatically arrange for an invocation of "prog" to execute the
748         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
749         may use the simpler "prog", yet still work when built on a system
750         that requires specifying the added suffix.
751         Do this by constructing a function named "prog" that invokes
752         "prog.exe" for each .exe file in selected directories.
753         * tests/init.sh (find_exe_basenames_): New function.
754         (create_exe_shim_functions_): New function.
755         (path_prepend_): Use it.
756
757         maint.mk: mark syntax-check sc_*.m rules as .PHONY
758         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
759         "make -t syntax-check" doesn't create a ton of sc_*.m files.
760
761 2010-02-14  Jim Meyering  <meyering@redhat.com>
762
763         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
764         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
765         (sc_prohibit_hash_pjw_without_use): New rule.
766
767         maint.mk: allow the default upload destination dir to be overridden
768         * top/maint.mk (upload_dest_dir_): Define with a default that
769         preserves the status quo.
770         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
771         Reported by Peter Simons.
772
773         maint.mk: prohibit inclusion of "hash.h" without_use
774         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
775
776 2010-02-10  Jim Meyering  <meyering@redhat.com>
777
778         maint.mk: prohibit inclusion of "ignore-value.h" without_use
779         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
780
781 2010-02-09  Eric Blake  <ebb9@byu.net>
782         and Bruno Haible  <bruno@clisp.org>
783
784         obstack-printf-posix: ensure declaration
785         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
786         extracted from gl_FUNC_OBSTACK_PRINTF.
787         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
788         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
789         Likewise.
790         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
791         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
792         0.
793
794 2010-02-08  Bruno Haible  <bruno@clisp.org>
795
796         gnulib-tool: Fix typo in 2010-02-07 commit.
797         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
798         Reported by Eric Blake.
799
800 2010-02-07  Bruno Haible  <bruno@clisp.org>
801
802         gnulib-tool: Fix up caching patches.
803         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
804         option --no-cache. Use associative arrays when supported by the shell.
805         (sed_comments): New variable.
806         (modcache): Renamed from do_cache.
807         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
808         abbreviate unnecessarily.
809         (have_associative): New variable.
810         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
811         way also for ksh and zsh.
812         (func_init_sed_convert_to_cache_statements): New function, extracted
813         from func_cache_lookup_module. Add support for associative arrays.
814         Don't set the c_MODULE_cached variable here. Ignore all lines before
815         the first field header. Remove only the final newline, not all trailing
816         newlines. Support empty fields correctly. Limit the use of 'eval' to
817         assignments.
818         (func_get_description, func_get_status, func_get_notice,
819         func_get_applicability, func_get_filelist, func_get_dependencies,
820         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
821         func_get_automake_snippet, func_get_include_directive,
822         func_get_link_directive, func_get_license, func_get_maintainer):
823         Update documentation. List the unoptimized code first. Add support for
824         associative arrays. Limit the use of 'eval' to assignments.
825         (func_get_applicability): Undo stylistic pessimisations.
826         (func_get_automake_snippet, func_get_include_directive): Reduce code
827         duplication.
828         (func_modules_transitive_closure, func_modules_add_dummy,
829         func_modules_notice, func_modules_to_filelist, func_add_file,
830         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
831         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
832         func_create_testdir, func_create_megatestdir): Update documentation.
833
834 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
835
836         * gnulib-tool (func_cache_lookup_module): Store the module name
837         belonging to the cache variable; error out if two different
838         module names map to the same cache variable name.
839
840 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
841
842         gnulib-tool: Make caching optional.
843         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
844         Update matching short versions of --no-changelog.
845         (func_usage): Update.
846         (sed_extract_cache_prog): Renamed from ...
847         (sed_extract_prog): ... this; revert to old extraction script.
848         (func_get_description, func_get_status)
849         (func_get_notice, func_get_applicability, func_get_filelist)
850         (func_get_dependencies, func_get_autoconf_early_snippet)
851         (func_get_autoconf_snippet, func_get_automake_snippet)
852         (func_get_include_directive, func_get_link_directive)
853         (func_get_license, func_get_maintainer): If $do_cache is false,
854         use old, non-caching extraction scripts.
855         Suggestion by Bruno Haible.
856
857 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
858
859         gnulib-tool: cache module metainformation.
860         * gnulib-tool (sed_extract_prog): Match newline before each
861         header, and rewrite header to a shell variable suffix.
862         (func_cache_var, func_cache_lookup_module): New functions,
863         to turn a module name into a cache variable prefix, and to
864         look up and cache module metainformation.
865         (func_get_description, func_get_status)
866         (func_get_notice, func_get_applicability, func_get_filelist)
867         (func_get_dependencies, func_get_autoconf_early_snippet)
868         (func_get_autoconf_snippet, func_get_automake_snippet)
869         (func_get_include_directive, func_get_link_directive)
870         (func_get_license, func_get_maintainer): Use
871         func_cache_lookup_module.
872
873 2010-02-07  Bruno Haible  <bruno@clisp.org>
874
875         fnctl: Fix missing dependency.
876         * modules/fcntl (Depends-on): Add getdtablesize.
877         Reported by John W. Eaton <jwe@gnu.org>.
878
879 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
880
881         Argp: fix recognition of short alias options.
882
883         * lib/argp-parse.c (convert_options): Fix improper use of
884         `|' between character values.
885         * tests/test-argp.c (group1_option): New alias option
886         --read (-r).
887         (group1_parser): Special handling for 'r'.
888         (test15): New test case.
889         (test_fun): Add test15.
890         * tests/test-argp-2.sh: Update expected --help and --usage
891         outputs.
892
893 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
894
895         * tests/test-argp.c: Fix indentation.
896
897 2010-02-04  Eric Blake  <ebb9@byu.net>
898
899         gettimeofday: expose type of second argument
900         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
901         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
902         * tests/test-gettimeofday.c: Use it to silence warning.
903         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
904         the issue.
905
906 2010-02-03  Jim Meyering  <meyering@redhat.com>
907
908         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
909         * lib/regcomp.c (TYPE_SIGNED): Define.
910         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
911
912         regcomp.c: avoid a new -Wshadow warning
913         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
914
915 2010-02-01  Jim Meyering  <meyering@redhat.com>
916
917         removing useless parentheses in cpp #define directives
918         For motivation, see commit c0221df4, "define STREQ(a,b)
919         consistently, removing useless parentheses"
920         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
921         * lib/mountlist.c (MNT_IGNORE): Likewise.
922         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
923
924 2010-02-01  Eric Blake  <ebb9@byu.net>
925
926         sys_time: use link-warning
927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
928         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
929         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
930         * modules/sys_time (Depends-on): Add warn-on-use.
931         (Makefile.am): Always build replacement.
932         (configure.ac): Update substitutions.
933         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
934         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
935         bother with SYS_TIME_H.
936         * modules/gettimeofday (configure.ac): Declare indicator.
937         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
938         in use.
939
940         closein-tests: silence compiler warning
941         * tests/test-closein.c (main): Ignore fread result.
942         * modules/closein-tests (Depends-on): Add ignore-value.
943
944         tests: silence warning about system return
945         * tests/test-areadlink-with-size.c (main): Ignore system result.
946         * tests/test-areadlink.c (main): Likewise.
947         * tests/test-areadlinkat-with-size.c (main): Likewise.
948         * tests/test-areadlinkat.c (main): Likewise.
949         * tests/test-canonicalize-lgpl.c (main): Likewise.
950         * tests/test-canonicalize.c (main): Likewise.
951         * tests/test-chown.c (main): Likewise.
952         * tests/test-fchownat.c (main): Likewise.
953         * tests/test-fdutimensat.c (main): Likewise.
954         * tests/test-fstatat.c (main): Likewise.
955         * tests/test-futimens.c (main): Likewise.
956         * tests/test-lchown.c (main): Likewise.
957         * tests/test-link.c (main): Likewise.
958         * tests/test-linkat.c (main): Likewise.
959         * tests/test-lstat.c (main): Likewise.
960         * tests/test-mkdir.c (main): Likewise.
961         * tests/test-mkdirat.c (main): Likewise.
962         * tests/test-mkfifo.c (main): Likewise.
963         * tests/test-mkfifoat.c (main): Likewise.
964         * tests/test-mknod.c (main): Likewise.
965         * tests/test-readlink.c (main): Likewise.
966         * tests/test-remove.c (main): Likewise.
967         * tests/test-rename.c (main): Likewise.
968         * tests/test-renameat.c (main): Likewise.
969         * tests/test-rmdir.c (main): Likewise.
970         * tests/test-symlink.c (main): Likewise.
971         * tests/test-symlinkat.c (main): Likewise.
972         * tests/test-unlink.c (main): Likewise.
973         * tests/test-unlinkat.c (main): Likewise.
974         * tests/test-utimens.c (main): Likewise.
975         * tests/test-utimensat.c (main): Likewise.
976         * modules/areadlink-tests (Depends-on): Add ignore-value.
977         * modules/areadlink-with-size-tests (Depends-on): Likewise.
978         * modules/areadlinkat-tests (Depends-on): Likewise.
979         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
980         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
981         * modules/canonicalize-tests (Depends-on): Likewise.
982         * modules/chown-tests (Depends-on): Likewise.
983         * modules/fdutimensat-tests (Depends-on): Likewise.
984         * modules/futimens-tests (Depends-on): Likewise.
985         * modules/lchown-tests (Depends-on): Likewise.
986         * modules/link-tests (Depends-on): Likewise.
987         * modules/linkat-tests (Depends-on): Likewise.
988         * modules/lstat-tests (Depends-on): Likewise.
989         * modules/mkdir-tests (Depends-on): Likewise.
990         * modules/mkfifo-tests (Depends-on): Likewise.
991         * modules/mkfifoat-tests (Depends-on): Likewise.
992         * modules/mknod-tests (Depends-on): Likewise.
993         * modules/openat-tests (Depends-on): Likewise.
994         * modules/readlink-tests (Depends-on): Likewise.
995         * modules/remove-tests (Depends-on): Likewise.
996         * modules/rename-tests (Depends-on): Likewise.
997         * modules/renameat-tests (Depends-on): Likewise.
998         * modules/rmdir-tests (Depends-on): Likewise.
999         * modules/symlink-tests (Depends-on): Likewise.
1000         * modules/symlinkat-tests (Depends-on): Likewise.
1001         * modules/unlink-tests (Depends-on): Likewise.
1002         * modules/utimens-tests (Depends-on): Likewise.
1003         * modules/utimensat-tests (Depends-on): Likewise.
1004
1005 2010-01-31  Bruno Haible  <bruno@clisp.org>
1006
1007         Perform the same test for many <math.h> functions.
1008         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1009         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1010         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1011         of gl_MATHFUNC.
1012         * modules/acos (configure.ac): Likewise.
1013         * modules/asin (configure.ac): Likewise.
1014         * modules/atan (configure.ac): Likewise.
1015         * modules/atan2 (configure.ac): Likewise.
1016         * modules/cbrt (configure.ac): Likewise.
1017         * modules/copysign (configure.ac): Likewise.
1018         * modules/cos (configure.ac): Likewise.
1019         * modules/cosh (configure.ac): Likewise.
1020         * modules/erf (configure.ac): Likewise.
1021         * modules/erfc (configure.ac): Likewise.
1022         * modules/exp (configure.ac): Likewise.
1023         * modules/fmod (configure.ac): Likewise.
1024         * modules/hypot (configure.ac): Likewise.
1025         * modules/j0 (configure.ac): Likewise.
1026         * modules/j1 (configure.ac): Likewise.
1027         * modules/jn (configure.ac): Likewise.
1028         * modules/lgamma (configure.ac): Likewise.
1029         * modules/log (configure.ac): Likewise.
1030         * modules/log10 (configure.ac): Likewise.
1031         * modules/log1p (configure.ac): Likewise.
1032         * modules/pow (configure.ac): Likewise.
1033         * modules/remainder (configure.ac): Likewise.
1034         * modules/sin (configure.ac): Likewise.
1035         * modules/sinh (configure.ac): Likewise.
1036         * modules/tan (configure.ac): Likewise.
1037         * modules/tanh (configure.ac): Likewise.
1038         * modules/y0 (configure.ac): Likewise.
1039         * modules/y1 (configure.ac): Likewise.
1040         * modules/yn (configure.ac): Likewise.
1041         Suggested by Paolo Bonzini.
1042
1043 2010-01-31  Bruno Haible  <bruno@clisp.org>
1044
1045         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1046
1047 2010-01-31  Bruno Haible  <bruno@clisp.org>
1048
1049         Work around getdelim() bug on FreeBSD 8.0.
1050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1051         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1052         not work.
1053         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1054         is 1.
1055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1056         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1057         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1058         a non-zero size.
1059         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1060
1061 2010-01-31  Bruno Haible  <bruno@clisp.org>
1062
1063         Work around getline() bug on FreeBSD 8.0.
1064         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1065         and a non-zero size.
1066         * tests/test-getline.c (main): Likewise.
1067         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1068         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1069
1070 2010-01-28  Eric Blake  <ebb9@byu.net>
1071
1072         regex: fix build failure
1073         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1074         platforms.
1075
1076 2010-01-28  Jim Meyering  <meyering@redhat.com>
1077
1078         regex: do not ignore memory allocation failure
1079         * lib/regex_internal.c (create_cd_newstate): Detect
1080         re_node_set_init_copy failure.   Extracted from glibc commit
1081         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1082
1083         regex: sync more white-space changes from libc
1084         * lib/regex_internal.c: White-space only changes.
1085         * lib/regexec.c: Likewise.
1086
1087         regex: add many uses of __attribute_warn_unused_result__
1088         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1089         * lib/regexec.c: Likewise.
1090         Extracted from a messy glibc commit.
1091
1092         regcomp.c: spelling and merge-artifact from glibc
1093         * lib/regcomp.c: Merge remainder of glibc's
1094         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1095
1096         regcomp.c: sync white-space changes from glibc
1097         * lib/regcomp.c: Merge to accommodate white space
1098         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1099
1100         regcomp.c: do not ignore internal return values
1101         * lib/regcomp.c: Do not ignore internal return values.
1102         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1103         but without its white-space changes and spelling fixes.
1104
1105         regex_internal.h: define __attribute_warn_unused_result__
1106         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1107
1108         maint: add a syntax-check rule to check for vulnerable Makefile.in
1109         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1110
1111 2010-01-27  Jim Meyering  <meyering@redhat.com>
1112
1113         ncftpput-ftp: clean up spaces
1114         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1115         Remove trailing blanks.
1116
1117 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1118
1119         * build-aux/git-version-gen: Fix copyright statement.
1120         * build-aux/gnupload: Likewise.
1121         * tests/test-arcfour.c: Likewise.
1122         * tests/test-arctwo.c: Likewise.
1123         * tests/test-count-one-bits.c: Likewise.
1124         * tests/test-crc.c: Likewise.
1125         * tests/test-des.c: Likewise.
1126         * tests/test-gc-arcfour.c: Likewise.
1127         * tests/test-gc-arctwo.c: Likewise.
1128         * tests/test-gc-des.c: Likewise.
1129         * tests/test-gc-hmac-md5.c: Likewise.
1130         * tests/test-gc-hmac-sha1.c: Likewise.
1131         * tests/test-gc-md2.c: Likewise.
1132         * tests/test-gc-md4.c: Likewise.
1133         * tests/test-gc-md5.c: Likewise.
1134         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1135         * tests/test-gc-rijndael.c: Likewise.
1136         * tests/test-gc-sha1.c: Likewise.
1137         * tests/test-gc.c: Likewise.
1138         * tests/test-gethostname.c: Likewise.
1139         * tests/test-gettimeofday.c: Likewise.
1140         * tests/test-hash.c: Likewise.
1141         * tests/test-hmac-md5.c: Likewise.
1142         * tests/test-hmac-sha1.c: Likewise.
1143         * tests/test-md2.c: Likewise.
1144         * tests/test-md4.c: Likewise.
1145         * tests/test-md5.c: Likewise.
1146         * tests/test-memchr.c: Likewise.
1147         * tests/test-memchr2.c: Likewise.
1148         * tests/test-memcmp.c: Likewise.
1149         * tests/test-memmem.c: Likewise.
1150         * tests/test-memrchr.c: Likewise.
1151         * tests/test-rawmemchr.c: Likewise.
1152         * tests/test-read-file.c: Likewise.
1153         * tests/test-rijndael.c: Likewise.
1154         * tests/test-sockets.c: Likewise.
1155         * tests/test-strchrnul.c: Likewise.
1156         * tests/test-strstr.c: Likewise.
1157         * tests/test-strtod.c: Likewise.
1158         * build-aux/ncftpput-ftp: Likewise.
1159
1160 2010-01-26  Eric Blake  <ebb9@byu.net>
1161
1162         ignore-value: update recommended header name
1163         * modules/ignore-value (Include): Only use <> for headers that
1164         exist in glibc.
1165
1166 2010-01-26  Jim Meyering  <meyering@redhat.com>
1167
1168         test-userspec.c: avoid compiler warnings
1169         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1170         and "initialization discards qualifiers..." warnings.
1171         Put the first "uid" in its own scope, and make char* members "const".
1172
1173 2010-01-25  Bruno Haible  <bruno@clisp.org>
1174
1175         gnulib-tool: Make warning diagnostics consistent.
1176         * gnulib-tool (func_warning): New function.
1177         Use it everywhere where gnulib-tool produces output to stderr and it is
1178         not a fatal error.
1179
1180 2010-01-25  Bruno Haible  <bruno@clisp.org>
1181
1182         Fix test dependencies.
1183         * modules/xstrtol-tests (Depends-on): Add inttypes.
1184         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1185
1186 2010-01-25 Pádraig Brady <P@draigBrady.com>
1187
1188         syntax-check: detect incorrect boolean macro values in config.h
1189         * modules/maintainer-makefile (configure.ac): Parameterize the location
1190         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1191         The logic is from Eric Blake and the location indicated by Jim Meyering.
1192         Note the more natural CONFIG_HEADER name is prohibited by automake
1193         for backwards compatibility reasons.
1194         * top/maint.mk (sc_Wundef_boolean): New rule.
1195
1196 2010-01-25  Jim Meyering  <meyering@redhat.com>
1197
1198         bootstrap: detect MacOS 10.6's shasum, too
1199         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1200         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1201
1202 2010-01-23  Jim Meyering  <meyering@redhat.com>
1203
1204         xstrtoll: new module
1205         * modules/xstrtoll: New file.
1206         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1207         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1208         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1209         ./configure fails if you use this module and lack "long long".
1210         * modules/xstrtoll-tests: New module.
1211         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1212         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1213         new init.sh-based test framework.
1214
1215 2010-01-24  Bruno Haible  <bruno@clisp.org>
1216
1217         Tests for module 'yn'.
1218         * modules/yn-tests: New file.
1219         * tests/test-yn.c: New file.
1220
1221         Tests for module 'y1'.
1222         * modules/y1-tests: New file.
1223         * tests/test-y1.c: New file.
1224
1225         Tests for module 'y0'.
1226         * modules/y0-tests: New file.
1227         * tests/test-y0.c: New file.
1228
1229         Tests for module 'tanh'.
1230         * modules/tanh-tests: New file.
1231         * tests/test-tanh.c: New file.
1232
1233         Tests for module 'tan'.
1234         * modules/tan-tests: New file.
1235         * tests/test-tan.c: New file.
1236
1237         Tests for module 'sqrt'.
1238         * modules/sqrt-tests: New file.
1239         * tests/test-sqrt.c: New file.
1240
1241         Tests for module 'sinh'.
1242         * modules/sinh-tests: New file.
1243         * tests/test-sinh.c: New file.
1244
1245         Tests for module 'sin'.
1246         * modules/sin-tests: New file.
1247         * tests/test-sin.c: New file.
1248
1249         Tests for module 'rint'.
1250         * modules/rint-tests: New file.
1251         * tests/test-rint.c: New file.
1252
1253         Tests for module 'remainder'.
1254         * modules/remainder-tests: New file.
1255         * tests/test-remainder.c: New file.
1256
1257         Tests for module 'pow'.
1258         * modules/pow-tests: New file.
1259         * tests/test-pow.c: New file.
1260
1261         Tests for module 'nextafter'.
1262         * modules/nextafter-tests: New file.
1263         * tests/test-nextafter.c: New file.
1264
1265         Tests for module 'modf'.
1266         * modules/modf-tests: New file.
1267         * tests/test-modf.c: New file.
1268
1269         Tests for module 'logb'.
1270         * modules/logb-tests: New file.
1271         * tests/test-logb.c: New file.
1272
1273         Tests for module 'log1p'.
1274         * modules/log1p-tests: New file.
1275         * tests/test-log1p.c: New file.
1276
1277         Tests for module 'log10'.
1278         * modules/log10-tests: New file.
1279         * tests/test-log10.c: New file.
1280
1281         Tests for module 'log'.
1282         * modules/log-tests: New file.
1283         * tests/test-log.c: New file.
1284
1285         Tests for module 'lgamma'.
1286         * modules/lgamma-tests: New file.
1287         * tests/test-lgamma.c: New file.
1288
1289         Tests for module 'ldexp'.
1290         * modules/ldexp-tests: New file.
1291         * tests/test-ldexp.c: New file.
1292
1293         Tests for module 'jn'.
1294         * modules/jn-tests: New file.
1295         * tests/test-jn.c: New file.
1296
1297         Tests for module 'j1'.
1298         * modules/j1-tests: New file.
1299         * tests/test-j1.c: New file.
1300
1301         Tests for module 'j0'.
1302         * modules/j0-tests: New file.
1303         * tests/test-j0.c: New file.
1304
1305         Tests for module 'hypot'.
1306         * modules/hypot-tests: New file.
1307         * tests/test-hypot.c: New file.
1308
1309         Tests for module 'fmod'.
1310         * modules/fmod-tests: New file.
1311         * tests/test-fmod.c: New file.
1312
1313         Tests for module 'fabs'.
1314         * modules/fabs-tests: New file.
1315         * tests/test-fabs.c: New file.
1316
1317         Tests for module 'exp'.
1318         * modules/exp-tests: New file.
1319         * tests/test-exp.c: New file.
1320
1321         Tests for module 'erfc'.
1322         * modules/erfc-tests: New file.
1323         * tests/test-erfc.c: New file.
1324
1325         Tests for module 'erf'.
1326         * modules/erf-tests: New file.
1327         * tests/test-erf.c: New file.
1328
1329         Tests for module 'cosh'.
1330         * modules/cosh-tests: New file.
1331         * tests/test-cosh.c: New file.
1332
1333         Tests for module 'cos'.
1334         * modules/cos-tests: New file.
1335         * tests/test-cos.c: New file.
1336
1337         Tests for module 'copysign'.
1338         * modules/copysign-tests: New file.
1339         * tests/test-copysign.c: New file.
1340
1341         Tests for module 'cbrt'.
1342         * modules/cbrt-tests: New file.
1343         * tests/test-cbrt.c: New file.
1344
1345         Tests for module 'atan2'.
1346         * modules/atan2-tests: New file.
1347         * tests/test-atan2.c: New file.
1348
1349         Tests for module 'atan'.
1350         * modules/atan-tests: New file.
1351         * tests/test-atan.c: New file.
1352
1353         Tests for module 'asin'.
1354         * modules/asin-tests: New file.
1355         * tests/test-asin.c: New file.
1356
1357         Tests for module 'acos'.
1358         * modules/acos-tests: New file.
1359         * tests/test-acos.c: New file.
1360
1361 2010-01-24  Bruno Haible  <bruno@clisp.org>
1362
1363         Fix tests for common <math.h> functions.
1364         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1365         code snippet that references the function pointer, rather than merely
1366         calling the function. Substitute the FUNC_LIBM variable.
1367         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1368         * modules/acos (configure.ac): Likewise.
1369         * modules/asin (configure.ac): Likewise.
1370         * modules/atan (configure.ac): Likewise.
1371         * modules/atan2 (configure.ac): Likewise.
1372         * modules/cbrt (configure.ac): Likewise.
1373         * modules/copysign (configure.ac): Likewise.
1374         * modules/cos (configure.ac): Likewise.
1375         * modules/cosh (configure.ac): Likewise.
1376         * modules/erf (configure.ac): Likewise.
1377         * modules/erfc (configure.ac): Likewise.
1378         * modules/exp (configure.ac): Likewise.
1379         * modules/fabs (configure.ac): Likewise.
1380         * modules/fmod (configure.ac): Likewise.
1381         * modules/hypot (configure.ac): Likewise.
1382         * modules/j0 (configure.ac): Likewise.
1383         * modules/j1 (configure.ac): Likewise.
1384         * modules/jn (configure.ac): Likewise.
1385         * modules/ldexp (configure.ac): Likewise.
1386         * modules/lgamma (configure.ac): Likewise.
1387         * modules/log (configure.ac): Likewise.
1388         * modules/log10 (configure.ac): Likewise.
1389         * modules/log1p (configure.ac): Likewise.
1390         * modules/logb (configure.ac): Likewise.
1391         * modules/modf (configure.ac): Likewise.
1392         * modules/nextafter (configure.ac): Likewise.
1393         * modules/pow (configure.ac): Likewise.
1394         * modules/remainder (configure.ac): Likewise.
1395         * modules/rint (configure.ac): Likewise.
1396         * modules/sin (configure.ac): Likewise.
1397         * modules/sinh (configure.ac): Likewise.
1398         * modules/tan (configure.ac): Likewise.
1399         * modules/tanh (configure.ac): Likewise.
1400         * modules/y0 (configure.ac): Likewise.
1401         * modules/y1 (configure.ac): Likewise.
1402         * modules/yn (configure.ac): Likewise.
1403
1404 2010-01-24  Bruno Haible  <bruno@clisp.org>
1405
1406         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1407         * tests/test-acosl.c (x): New variable.
1408         (main): Store argument in x and fetch it from x.
1409         * tests/test-asinl.c (x): New variable.
1410         (main): Store argument in x and fetch it from x.
1411         * tests/test-atanl.c (x): New variable.
1412         (main): Store argument in x and fetch it from x.
1413         * tests/test-cosl.c (x): New variable.
1414         (main): Store argument in x and fetch it from x.
1415         * tests/test-expl.c (x): New variable.
1416         (main): Store argument in x and fetch it from x.
1417         * tests/test-logl.c (x): New variable.
1418         (main): Store argument in x and fetch it from x.
1419         * tests/test-sinl.c (x): New variable.
1420         (main): Store argument in x and fetch it from x.
1421         * tests/test-sqrtl.c (x): New variable.
1422         (main): Store argument in x and fetch it from x.
1423         * tests/test-tanl.c (x): New variable.
1424         (main): Store argument in x and fetch it from x.
1425
1426 2010-01-24  Bruno Haible  <bruno@clisp.org>
1427
1428         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1429         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1430         assignments to the initial TESTS_ENVIRONMENT.
1431         * doc/gnulib.texi (Unit test modules): Document it.
1432         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1433         TESTS_ENVIRONMENT.
1434         * modules/btowc-tests (Makefile.am): Likewise.
1435         * modules/c-stack-tests (Makefile.am): Likewise.
1436         * modules/c-strcase-tests (Makefile.am): Likewise.
1437         * modules/copy-file-tests (Makefile.am): Likewise.
1438         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1439         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1440         * modules/mbrtowc-tests (Makefile.am): Likewise.
1441         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1442         * modules/mbscasestr-tests (Makefile.am): Likewise.
1443         * modules/mbschr-tests (Makefile.am): Likewise.
1444         * modules/mbscspn-tests (Makefile.am): Likewise.
1445         * modules/mbsinit-tests (Makefile.am): Likewise.
1446         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1447         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1448         * modules/mbspbrk-tests (Makefile.am): Likewise.
1449         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1450         * modules/mbsrchr-tests (Makefile.am): Likewise.
1451         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1452         * modules/mbsspn-tests (Makefile.am): Likewise.
1453         * modules/mbsstr-tests (Makefile.am): Likewise.
1454         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1455         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1456         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1457         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1458         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1459         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1460         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1461         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1462         * modules/wcrtomb-tests (Makefile.am): Likewise.
1463         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1464         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1465         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1466         assignments from TESTS_ENVIRONMENT.
1467         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1468         augmentation.
1469         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1470         * modules/atexit-tests (Makefile.am): Likewise.
1471         * modules/binary-io-tests (Makefile.am): Likewise.
1472         * modules/closein-tests (Makefile.am): Likewise.
1473         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1474         * modules/exclude-tests (Makefile.am): Likewise.
1475         * modules/fflush-tests (Makefile.am): Likewise.
1476         * modules/fpending-tests (Makefile.am): Likewise.
1477         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1478         * modules/freadahead-tests (Makefile.am): Likewise.
1479         * modules/freadptr-tests (Makefile.am): Likewise.
1480         * modules/freadseek-tests (Makefile.am): Likewise.
1481         * modules/fseek-tests (Makefile.am): Likewise.
1482         * modules/fseeko-tests (Makefile.am): Likewise.
1483         * modules/ftell-tests (Makefile.am): Likewise.
1484         * modules/ftello-tests (Makefile.am): Likewise.
1485         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1486         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1487         * modules/lseek-tests (Makefile.am): Likewise.
1488         * modules/parse-duration-tests (Makefile.am): Likewise.
1489         * modules/perror-tests (Makefile.am): Likewise.
1490         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1491         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1492         * modules/pipe-tests (Makefile.am): Likewise.
1493         * modules/pread-tests (Makefile.am): Likewise.
1494         * modules/printf-posix-tests (Makefile.am): Likewise.
1495         * modules/select-tests (Makefile.am): Likewise.
1496         * modules/sigpipe-tests (Makefile.am): Likewise.
1497         * modules/tsearch-tests (Makefile.am): Likewise.
1498         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1499         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1500         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1501         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1502         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1503         * modules/version-etc-tests (Makefile.am): Likewise.
1504         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1505         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1506         * modules/xalloc-die-tests (Makefile.am): Likewise.
1507         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1508         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1509         * modules/xstrtol-tests (Makefile.am): Likewise.
1510         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1511         * modules/yesno-tests (Makefile.am): Likewise.
1512         Suggested by Jim Meyering.
1513
1514 2010-01-24  Bruno Haible  <bruno@clisp.org>
1515
1516         More documentation.
1517         * doc/gnulib.texi (Writing modules): New chapter.
1518         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1519         the new chapter.
1520
1521 2010-01-24  Jim Meyering  <meyering@redhat.com>
1522
1523         maint.mk: do not prepend "./" after filtering
1524         * top/maint.mk (_prepend_srcdir_prefix): New variable
1525         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1526         "./" when $(srcdir) is ".".
1527
1528         define STREQ(a,b) consistently, removing useless parentheses
1529         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1530         since the only risk is that "a" or "b" contains an unparenthesized
1531         comma, but if either did that, STREQ would have 3 or more arguments.
1532         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1533         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1534         * lib/hash-triple.c (STREQ): Likewise.
1535         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1536         * lib/getugroups.c (STREQ): Likewise.
1537
1538 2010-01-23  Jim Meyering  <meyering@redhat.com>
1539
1540         maint.mk: fix syntax-check in a non-srcdir build directory
1541         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1542         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1543
1544 2010-01-22  Jim Meyering  <meyering@redhat.com>
1545
1546         userspec: add unit tests
1547         * tests/test-userspec.c: New file.
1548         * modules/userspec-tests: Likewise.
1549
1550 2010-01-21  Jim Meyering  <meyering@redhat.com>
1551
1552         maint.mk: handle source file names containing "." robustly
1553         * top/maint.mk (_dot_escaped_srcdir): Define.
1554         (VC_LIST): Use it in LHS of sed substitution.
1555
1556 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1557
1558         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1559         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1560         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1561         from a non-srcdir build.
1562
1563 2010-01-20  Eric Blake  <ebb9@byu.net>
1564
1565         warn-on-use: use instead of link-warning
1566         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1567         * modules/unistd (Depends-on, Makefile.am): Likewise.
1568         * modules/arpa_inet (Depends-on): Replace link-warning with
1569         warn-on-use.
1570         (Makefile.am): Update rules accordingly.
1571         * modules/ctype (Depends-on, Makefile.am): Likewise.
1572         * modules/dirent (Depends-on, Makefile.am): Likewise.
1573         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1574         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1575         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1576         * modules/locale (Depends-on, Makefile.am): Likewise.
1577         * modules/math (Depends-on, Makefile.am): Likewise.
1578         * modules/search (Depends-on, Makefile.am): Likewise.
1579         * modules/signal (Depends-on, Makefile.am): Likewise.
1580         * modules/spawn (Depends-on, Makefile.am): Likewise.
1581         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1582         * modules/string (Depends-on, Makefile.am): Likewise.
1583         * modules/strings (Depends-on, Makefile.am): Likewise.
1584         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1585         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1586         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1587         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1588         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1589         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1590         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1591         * modules/wchar (Depends-on, Makefile.am): Likewise.
1592         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1593         should be poisoned.
1594         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1595         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1596         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1597         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1598         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1599         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1600         * m4/math_h.m4 (gl_MATH_H): Likewise.
1601         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1603         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1604         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1605         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1607         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1608         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1609         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1611         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1613         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1614         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1615         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1616         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1617         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1618         GL_LINK_WARNING.
1619         * lib/ctype.in.h: Likewise.
1620         * lib/dirent.in.h: Likewise.
1621         * lib/fcntl.in.h: Likewise.
1622         * lib/inttypes.in.h: Likewise.
1623         * lib/langinfo.in.h: Likewise.
1624         * lib/locale.in.h: Likewise.
1625         * lib/math.in.h: Likewise.
1626         * lib/search.in.h: Likewise.
1627         * lib/signal.in.h: Likewise.
1628         * lib/spawn.in.h: Likewise.
1629         * lib/stdio.in.h: Likewise.
1630         * lib/stdlib.in.h: Likewise.
1631         * lib/string.in.h: Likewise.
1632         * lib/strings.in.h: Likewise.
1633         * lib/sys_file.in.h: Likewise.
1634         * lib/sys_ioctl.in.h: Likewise.
1635         * lib/sys_select.in.h: Likewise.
1636         * lib/sys_socket.in.h: Likewise.
1637         * lib/sys_stat.in.h: Likewise.
1638         * lib/sys_times.in.h: Likewise.
1639         * lib/sys_utsname.in.h: Likewise.
1640         * lib/unistd.in.h: Likewise.
1641         * lib/wchar.in.h: Likewise.
1642
1643 2010-01-20  Bruno Haible  <bruno@clisp.org>
1644
1645         Avoid duplicate -lm.
1646         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1647         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1648         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1649         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1650         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1651         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1652         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1653         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1654         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1655         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1656         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1657         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1658         Reported by Paolo Bonzini.
1659
1660 2010-01-19  Bruno Haible  <bruno@clisp.org>
1661
1662         langinfo, nl_langinfo: Relicense under LGPLv2+.
1663         * modules/langinfo (License): Change to LGPLv2+.
1664         * modules/nl_langinfo (License): Likewise.
1665         Patch by David Lutterkort <lutter@redhat.com>.
1666
1667 2010-01-19  Bruno Haible  <bruno@clisp.org>
1668
1669         Avoid compilation error with cc on OSF/1 5.1.
1670         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1671         statement, not before.
1672         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1673
1674 2010-01-18  Bruno Haible  <bruno@clisp.org>
1675
1676         Avoid a link error due to the __printf__ symbol.
1677         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1678         and 2.6.x.
1679         (__format__, __printf__): Remove definitions.
1680         * lib/argp-fmtstream.h: Likewise.
1681         * lib/argp.h: Likewise.
1682         * lib/error.h: Likewise.
1683         * lib/vasnprintf.h: Likewise.
1684         * lib/xprintf.h: Likewise.
1685         * lib/xvasprintf.h: Likewise.
1686         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1687
1688 2010-01-18  Bruno Haible  <bruno@clisp.org>
1689
1690         Tests for module 'tanl'.
1691         * modules/tanl-tests: New file.
1692         * tests/test-tanl.c: New file.
1693
1694         Tests for module 'sqrtl'.
1695         * modules/sqrtl-tests: New file.
1696         * tests/test-sqrtl.c: New file.
1697
1698         Tests for module 'sinl'.
1699         * modules/sinl-tests: New file.
1700         * tests/test-sinl.c: New file.
1701
1702         Tests for module 'logl'.
1703         * modules/logl-tests: New file.
1704         * tests/test-logl.c: New file.
1705
1706         Tests for module 'expl'.
1707         * modules/expl-tests: New file.
1708         * tests/test-expl.c: New file.
1709
1710         Tests for module 'cosl'.
1711         * modules/cosl-tests: New file.
1712         * tests/test-cosl.c: New file.
1713
1714         Tests for module 'atanl'.
1715         * modules/atanl-tests: New file.
1716         * tests/test-atanl.c: New file.
1717
1718         Tests for module 'asinl'.
1719         * modules/asinl-tests: New file.
1720         * tests/test-asinl.c: New file.
1721
1722         Tests for module 'acosl'.
1723         * modules/acosl-tests: New file.
1724         * tests/test-acosl.c: New file.
1725
1726         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1727         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1728         tanl): Use the standard gnulib idiom.
1729         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1730         * lib/sinl.c: Likewise.
1731         * lib/tanl.c: Don't include trigl.c.
1732         (kernel_tanl): Make static.
1733         * lib/sincosl.c: Include trigl.h first.
1734         * lib/trigl.c: Likewise.
1735         * m4/acosl.m4: New file.
1736         * m4/asinl.m4: New file.
1737         * m4/atanl.m4: New file.
1738         * m4/cosl.m4: New file.
1739         * m4/expl.m4: New file.
1740         * m4/logl.m4: New file.
1741         * m4/sinl.m4: New file.
1742         * m4/sqrtl.m4: New file.
1743         * m4/tanl.m4: New file.
1744         * m4/mathl.m4: Remove file.
1745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1746         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1747         Don't initialize GNULIB_MATHL.
1748         * modules/acosl: New file.
1749         * modules/asinl: New file.
1750         * modules/atanl: New file.
1751         * modules/cosl: New file.
1752         * modules/expl: New file.
1753         * modules/logl: New file.
1754         * modules/sinl: New file.
1755         * modules/sqrtl: New file.
1756         * modules/tanl: New file.
1757         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1758         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1759         substitute GNULIB_MATHL.
1760         * modules/mathl: Rewritten.
1761         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1762         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1763         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1764         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1765         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1766         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1767         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1768         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1769         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1770
1771 2010-01-18  Bruno Haible  <bruno@clisp.org>
1772
1773         sqrt: Make gl_FUNC_SQRT requirable.
1774         * m4/sqrt.m4: New file.
1775         * modules/sqrt (Files): Add it.
1776         (configure.ac): Invoke gl_FUNC_SQRT.
1777
1778 2010-01-18  Bruno Haible  <bruno@clisp.org>
1779
1780         New modules for common <math.h> functions.
1781         * m4/mathfunc.m4: New file.
1782         * modules/acos: New file.
1783         * modules/asin: New file.
1784         * modules/atan: New file.
1785         * modules/atan2: New file.
1786         * modules/cbrt: New file.
1787         * modules/copysign: New file.
1788         * modules/cos: New file.
1789         * modules/cosh: New file.
1790         * modules/erf: New file.
1791         * modules/erfc: New file.
1792         * modules/exp: New file.
1793         * modules/fabs: New file.
1794         * modules/fmod: New file.
1795         * modules/hypot: New file.
1796         * modules/j0: New file.
1797         * modules/j1: New file.
1798         * modules/jn: New file.
1799         * modules/ldexp: New file.
1800         * modules/lgamma: New file.
1801         * modules/log: New file.
1802         * modules/log10: New file.
1803         * modules/log1p: New file.
1804         * modules/logb: New file.
1805         * modules/modf: New file.
1806         * modules/nextafter: New file.
1807         * modules/pow: New file.
1808         * modules/remainder: New file.
1809         * modules/rint: New file.
1810         * modules/sin: New file.
1811         * modules/sinh: New file.
1812         * modules/sqrt: New file.
1813         * modules/tan: New file.
1814         * modules/tanh: New file.
1815         * modules/y0: New file.
1816         * modules/y1: New file.
1817         * modules/yn: New file.
1818         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1819         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1820         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1821         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1822         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1823         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1824         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1825         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1826         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1827         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1828         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1829         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1830         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1831         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1832         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1833         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1834         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1835         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1836         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1837         * doc/posix-functions/log.texi: Mention the 'log' module.
1838         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1839         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1840         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1841         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1842         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1843         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1844         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1845         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1846         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1847         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1848         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1849         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1850         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1851         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1852         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1853         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1854
1855 2010-01-18  Jim Meyering  <meyering@redhat.com>
1856
1857         ignore-value: relax license to LGPLv2+
1858         * modules/ignore-value (License): Relax to LGPLv2+.
1859
1860         getdate: don't leak when TZ contains two or more '"'s
1861         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1862         double quote in TZ after the first one.
1863
1864         readtokens: do not leak internal token_lengths buffer
1865         * lib/readtokens.c (readtokens): Free the local, lengths,
1866         when the supplied "token_lengths" parameter is NULL.
1867
1868 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1869
1870         Fix a couple of missing LIBTHREAD link failures on AIX.
1871         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1872         $(LIBTHREAD).
1873         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1874
1875         Link test-poll against INET_PTON_LIB.
1876         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1877         for inet_pton on Solaris 10.
1878
1879 2010-01-17  Bruno Haible  <bruno@clisp.org>
1880
1881         unistdio/*-sprintf: Fix typo in module description.
1882         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1883         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1884         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1885         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1886         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1887         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1888         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1890
1891 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1892
1893         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1894         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1895         variables in shell case patterns, for AIX and HP-UX ksh.
1896
1897         Split large sed scripts, for HP-UX sed.
1898         * modules/stdio: Split sed scripts around 50 sed commands,
1899         to avoid HP-UX limit of 99 commands, in the near future.
1900         * modules/string: Likewise.
1901         * modules/unistd: Likewise.
1902
1903         gnulib-tool: avoid writing in the current directory.
1904         * gnulib-tool (func_emit_lib_Makefile_am)
1905         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1906         not in the current directory, so concurrent gnulib-tool
1907         instances do not interfere.
1908
1909 2010-01-16  Jim Meyering  <meyering@redhat.com>
1910
1911         doc: update users.txt
1912         * users.txt: Add grep.
1913         (diffutils, gzip): Update URLs.
1914
1915 2010-01-12  Bruno Haible  <bruno@clisp.org>
1916
1917         posix_spawn: Avoid test failure on Cygwin.
1918         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1919         characters.
1920         Reported by Simon Josefsson.
1921
1922 2010-01-12  Bruno Haible  <bruno@clisp.org>
1923
1924         * tests/test-cond.c (main): When skipping the test, show the reason.
1925
1926 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1927
1928         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1929
1930 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1931
1932         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1933         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1934
1935 2010-01-12  Eric Blake  <ebb9@byu.net>
1936
1937         build: guarantee AS_VAR_IF
1938         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1939         (gl_AS_VAR_IF): Move...
1940         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1941         Reported by Simon Josefsson.
1942
1943 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1944
1945         * lib/stdio.in.h: Fix typo.
1946
1947 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1948
1949         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1950         libgpg-error.
1951
1952 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1953
1954         * tests/test-xalloc-die.sh: Use $EXEEXT.
1955
1956 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1957             Bruno Haible  <bruno@clisp.org>
1958
1959         getlogin, getlogin_r: Avoid test failure.
1960         * tests/test-getlogin.c: Include <stdio.h>.
1961         (main): Skip the test when the function fails because stdin is not a
1962         tty.
1963         * tests/test-getlogin_r.c: Include <stdio.h>.
1964         (main): Skip the test when the function fails because stdin is not a
1965         tty.
1966
1967 2010-01-11  Eric Blake  <ebb9@byu.net>
1968
1969         tests: avoid more large file warnings
1970         * tests/test-fflush.c: Avoid warning about ftell use.
1971         * tests/test-fseek.c: Avoid warning about fseek use.
1972
1973 2010-01-10  Bruno Haible  <bruno@clisp.org>
1974
1975         nproc: Work better on Linux when /proc and /sys are not mounted.
1976         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1977         as lower bound when, on glibc/Linux systems,
1978         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1979         Suggested by Pádraig Brady <P@draigbrady.com>.
1980         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1981
1982         nproc: Refactor.
1983         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1984         extracted from num_processors.
1985         (num_processors): Call it.
1986
1987 2010-01-11  Jim Meyering  <meyering@redhat.com>
1988
1989         utimecmp: avoid new warning from upcoming gcc-4.5.0
1990         * lib/utimecmp.c (BILLION): Define using #define rather than an
1991         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1992
1993 2010-01-11  Eric Blake  <ebb9@byu.net>
1994
1995         math: add portability warnings for classification macros
1996         * modules/math (Depends-on): Add warn-on-use.
1997         (Makefile.am): Provide new substitutions.
1998         * m4/math_h.m4 (gl_MATH_H): Require inline.
1999         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2000         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2001         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2002         implement warnings.
2003
2004         unistd: warn on use of environ without module
2005         * modules/unistd (Depends-on): Add warn-on-use.
2006         (Makefile.am): Provide new substitutions.
2007         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2008         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2009
2010         stdio: warn on suspicious uses
2011         * modules/stdio (Depends-on): Add warn-on-use.
2012         (Makefile.am): Provide new substitutions.
2013         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2014         fseeko.
2015         * lib/stdio.in.h (gets): Always warn on use.
2016         (fseek, ftell): Adjust when warnings are issued, and honor
2017         _GL_NO_LARGE_FILES as a way to silence the warning.
2018         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2019         any warning about large file offsets.
2020         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2021         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2022         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2023         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2024         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2025         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2026         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2027         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2028
2029         warn-on-use: new module
2030         * modules/warn-on-use: New file.
2031         * build-aux/warn-on-use.h: Likewise.
2032         * m4/warn-on-use.m4: Likewise.
2033         * MODULES.html.sh (Support for building): Mention it.
2034
2035 2010-01-10  Bruno Haible  <bruno@clisp.org>
2036
2037         Tests for module 'unistr/u32-strdup'.
2038         * modules/unistr/u32-strdup-tests: New file.
2039         * tests/unistr/test-u32-strdup.c: New file.
2040
2041         Tests for module 'unistr/u16-strdup'.
2042         * modules/unistr/u16-strdup-tests: New file.
2043         * tests/unistr/test-u16-strdup.c: New file.
2044
2045         Tests for module 'unistr/u8-strdup'.
2046         * modules/unistr/u8-strdup-tests: New file.
2047         * tests/unistr/test-u8-strdup.c: New file.
2048         * tests/unistr/test-strdup.h: New file.
2049
2050         Tests for module 'unistr/u32-strncmp'.
2051         * modules/unistr/u32-strncmp-tests: New file.
2052         * tests/unistr/test-u32-strncmp.c: New file.
2053
2054         Tests for module 'unistr/u16-strncmp'.
2055         * modules/unistr/u16-strncmp-tests: New file.
2056         * tests/unistr/test-u16-strncmp.c: New file.
2057
2058         Tests for module 'unistr/u8-strncmp'.
2059         * modules/unistr/u8-strncmp-tests: New file.
2060         * tests/unistr/test-u8-strncmp.c: New file.
2061         * tests/unistr/test-strncmp.h: New file.
2062
2063         Tests for module 'unistr/u32-strcoll'.
2064         * modules/unistr/u32-strcoll-tests: New file.
2065         * tests/unistr/test-u32-strcoll.c: New file.
2066
2067         Tests for module 'unistr/u16-strcoll'.
2068         * modules/unistr/u16-strcoll-tests: New file.
2069         * tests/unistr/test-u16-strcoll.c: New file.
2070
2071         Tests for module 'unistr/u8-strcoll'.
2072         * modules/unistr/u8-strcoll-tests: New file.
2073         * tests/unistr/test-u8-strcoll.c: New file.
2074
2075         Tests for module 'unistr/u32-strcmp'.
2076         * modules/unistr/u32-strcmp-tests: New file.
2077         * tests/unistr/test-u32-strcmp.c: New file.
2078         * tests/unistr/test-u32-strcmp.h: New file.
2079
2080         Tests for module 'unistr/u16-strcmp'.
2081         * modules/unistr/u16-strcmp-tests: New file.
2082         * tests/unistr/test-u16-strcmp.c: New file.
2083         * tests/unistr/test-u16-strcmp.h: New file.
2084
2085         Tests for module 'unistr/u8-strcmp'.
2086         * modules/unistr/u8-strcmp-tests: New file.
2087         * tests/unistr/test-u8-strcmp.c: New file.
2088         * tests/unistr/test-u8-strcmp.h: New file.
2089         * tests/unistr/test-strcmp.h: New file.
2090
2091         Tests for module 'unistr/u32-strncat'.
2092         * modules/unistr/u32-strncat-tests: New file.
2093         * tests/unistr/test-u32-strncat.c: New file.
2094
2095         Tests for module 'unistr/u16-strncat'.
2096         * modules/unistr/u16-strncat-tests: New file.
2097         * tests/unistr/test-u16-strncat.c: New file.
2098
2099         Tests for module 'unistr/u8-strncat'.
2100         * modules/unistr/u8-strncat-tests: New file.
2101         * tests/unistr/test-u8-strncat.c: New file.
2102         * tests/unistr/test-strncat.h: New file.
2103
2104         Tests for module 'unistr/u32-strcat'.
2105         * modules/unistr/u32-strcat-tests: New file.
2106         * tests/unistr/test-u32-strcat.c: New file.
2107
2108         Tests for module 'unistr/u16-strcat'.
2109         * modules/unistr/u16-strcat-tests: New file.
2110         * tests/unistr/test-u16-strcat.c: New file.
2111
2112         Tests for module 'unistr/u8-strcat'.
2113         * modules/unistr/u8-strcat-tests: New file.
2114         * tests/unistr/test-u8-strcat.c: New file.
2115         * tests/unistr/test-strcat.h: New file.
2116
2117         Tests for module 'unistr/u32-stpncpy'.
2118         * modules/unistr/u32-stpncpy-tests: New file.
2119         * tests/unistr/test-u32-stpncpy.c: New file.
2120
2121         Tests for module 'unistr/u16-stpncpy'.
2122         * modules/unistr/u16-stpncpy-tests: New file.
2123         * tests/unistr/test-u16-stpncpy.c: New file.
2124
2125         Tests for module 'unistr/u8-stpncpy'.
2126         * modules/unistr/u8-stpncpy-tests: New file.
2127         * tests/unistr/test-u8-stpncpy.c: New file.
2128         * tests/unistr/test-stpncpy.h: New file.
2129
2130         Tests for module 'unistr/u32-strncpy'.
2131         * modules/unistr/u32-strncpy-tests: New file.
2132         * tests/unistr/test-u32-strncpy.c: New file.
2133
2134         Tests for module 'unistr/u16-strncpy'.
2135         * modules/unistr/u16-strncpy-tests: New file.
2136         * tests/unistr/test-u16-strncpy.c: New file.
2137
2138         Tests for module 'unistr/u8-strncpy'.
2139         * modules/unistr/u8-strncpy-tests: New file.
2140         * tests/unistr/test-u8-strncpy.c: New file.
2141         * tests/unistr/test-strncpy.h: New file.
2142
2143         Tests for module 'unistr/u32-stpcpy'.
2144         * modules/unistr/u32-stpcpy-tests: New file.
2145         * tests/unistr/test-u32-stpcpy.c: New file.
2146
2147         Tests for module 'unistr/u16-stpcpy'.
2148         * modules/unistr/u16-stpcpy-tests: New file.
2149         * tests/unistr/test-u16-stpcpy.c: New file.
2150
2151         Tests for module 'unistr/u8-stpcpy'.
2152         * modules/unistr/u8-stpcpy-tests: New file.
2153         * tests/unistr/test-u8-stpcpy.c: New file.
2154         * tests/unistr/test-stpcpy.h: New file.
2155
2156         Tests for module 'unistr/u32-strcpy'.
2157         * modules/unistr/u32-strcpy-tests: New file.
2158         * tests/unistr/test-u32-strcpy.c: New file.
2159
2160         Tests for module 'unistr/u16-strcpy'.
2161         * modules/unistr/u16-strcpy-tests: New file.
2162         * tests/unistr/test-u16-strcpy.c: New file.
2163
2164         Tests for module 'unistr/u8-strcpy'.
2165         * modules/unistr/u8-strcpy-tests: New file.
2166         * tests/unistr/test-u8-strcpy.c: New file.
2167         * tests/unistr/test-strcpy.h: New file.
2168
2169         Tests for module 'unistr/u32-strnlen'.
2170         * modules/unistr/u32-strnlen-tests: New file.
2171         * tests/unistr/test-u32-strnlen.c: New file.
2172
2173         Tests for module 'unistr/u16-strnlen'.
2174         * modules/unistr/u16-strnlen-tests: New file.
2175         * tests/unistr/test-u16-strnlen.c: New file.
2176
2177         Tests for module 'unistr/u8-strnlen'.
2178         * modules/unistr/u8-strnlen-tests: New file.
2179         * tests/unistr/test-u8-strnlen.c: New file.
2180         * tests/unistr/test-strnlen.h: New file.
2181
2182         Tests for module 'unistr/u32-strlen'.
2183         * modules/unistr/u32-strlen-tests: New file.
2184         * tests/unistr/test-u32-strlen.c: New file.
2185
2186         Tests for module 'unistr/u16-strlen'.
2187         * modules/unistr/u16-strlen-tests: New file.
2188         * tests/unistr/test-u16-strlen.c: New file.
2189
2190         Tests for module 'unistr/u8-strlen'.
2191         * modules/unistr/u8-strlen-tests: New file.
2192         * tests/unistr/test-u8-strlen.c: New file.
2193
2194         Tests for module 'unistr/u32-prev'.
2195         * modules/unistr/u32-prev-tests: New file.
2196         * tests/unistr/test-u32-prev.c: New file.
2197
2198         Tests for module 'unistr/u16-prev'.
2199         * modules/unistr/u16-prev-tests: New file.
2200         * tests/unistr/test-u16-prev.c: New file.
2201
2202         Tests for module 'unistr/u8-prev'.
2203         * modules/unistr/u8-prev-tests: New file.
2204         * tests/unistr/test-u8-prev.c: New file.
2205
2206         Tests for module 'unistr/u32-next'.
2207         * modules/unistr/u32-next-tests: New file.
2208         * tests/unistr/test-u32-next.c: New file.
2209
2210         Tests for module 'unistr/u16-next'.
2211         * modules/unistr/u16-next-tests: New file.
2212         * tests/unistr/test-u16-next.c: New file.
2213
2214         Tests for module 'unistr/u8-next'.
2215         * modules/unistr/u8-next-tests: New file.
2216         * tests/unistr/test-u8-next.c: New file.
2217
2218         Tests for module 'unistr/u32-strmbtouc'.
2219         * modules/unistr/u32-strmbtouc-tests: New file.
2220         * tests/unistr/test-u32-strmbtouc.c: New file.
2221
2222         Tests for module 'unistr/u16-strmbtouc'.
2223         * modules/unistr/u16-strmbtouc-tests: New file.
2224         * tests/unistr/test-u16-strmbtouc.c: New file.
2225
2226         Tests for module 'unistr/u8-strmbtouc'.
2227         * modules/unistr/u8-strmbtouc-tests: New file.
2228         * tests/unistr/test-u8-strmbtouc.c: New file.
2229
2230         Tests for module 'unistr/u32-strmblen'.
2231         * modules/unistr/u32-strmblen-tests: New file.
2232         * tests/unistr/test-u32-strmblen.c: New file.
2233
2234         Tests for module 'unistr/u16-strmblen'.
2235         * modules/unistr/u16-strmblen-tests: New file.
2236         * tests/unistr/test-u16-strmblen.c: New file.
2237
2238         Tests for module 'unistr/u8-strmblen'.
2239         * modules/unistr/u8-strmblen-tests: New file.
2240         * tests/unistr/test-u8-strmblen.c: New file.
2241
2242         Tests for module 'unistr/u32-cpy-alloc'.
2243         * modules/unistr/u32-cpy-alloc-tests: New file.
2244         * tests/unistr/test-u32-cpy-alloc.c: New file.
2245
2246         Tests for module 'unistr/u16-cpy-alloc'.
2247         * modules/unistr/u16-cpy-alloc-tests: New file.
2248         * tests/unistr/test-u16-cpy-alloc.c: New file.
2249
2250         Tests for module 'unistr/u8-cpy-alloc'.
2251         * modules/unistr/u8-cpy-alloc-tests: New file.
2252         * tests/unistr/test-u8-cpy-alloc.c: New file.
2253         * tests/unistr/test-cpy-alloc.h: New file.
2254
2255         Tests for module 'unistr/u32-mbsnlen'.
2256         * modules/unistr/u32-mbsnlen-tests: New file.
2257         * tests/unistr/test-u32-mbsnlen.c: New file.
2258
2259         Tests for module 'unistr/u16-mbsnlen'.
2260         * modules/unistr/u16-mbsnlen-tests: New file.
2261         * tests/unistr/test-u16-mbsnlen.c: New file.
2262
2263         Tests for module 'unistr/u8-mbsnlen'.
2264         * modules/unistr/u8-mbsnlen-tests: New file.
2265         * tests/unistr/test-u8-mbsnlen.c: New file.
2266
2267         Tests for module 'unistr/u32-chr'.
2268         * modules/unistr/u32-chr-tests: New file.
2269         * tests/unistr/test-u32-chr.c: New file.
2270
2271         Tests for module 'unistr/u16-chr'.
2272         * modules/unistr/u16-chr-tests: New file.
2273         * tests/unistr/test-u16-chr.c: New file.
2274
2275         Tests for module 'unistr/u8-chr'.
2276         * modules/unistr/u8-chr-tests: New file.
2277         * tests/unistr/test-u8-chr.c: New file.
2278         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2279
2280         Tests for module 'unistr/u32-cmp2'.
2281         * modules/unistr/u32-cmp2-tests: New file.
2282         * tests/unistr/test-u32-cmp2.c: New file.
2283
2284         Tests for module 'unistr/u16-cmp2'.
2285         * modules/unistr/u16-cmp2-tests: New file.
2286         * tests/unistr/test-u16-cmp2.c: New file.
2287
2288         Tests for module 'unistr/u8-cmp2'.
2289         * modules/unistr/u8-cmp2-tests: New file.
2290         * tests/unistr/test-u8-cmp2.c: New file.
2291         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2292
2293         Tests for module 'unistr/u32-cmp'.
2294         * modules/unistr/u32-cmp-tests: New file.
2295         * tests/unistr/test-u32-cmp.c: New file.
2296
2297         Tests for module 'unistr/u16-cmp'.
2298         * modules/unistr/u16-cmp-tests: New file.
2299         * tests/unistr/test-u16-cmp.c: New file.
2300
2301         Tests for module 'unistr/u8-cmp'.
2302         * modules/unistr/u8-cmp-tests: New file.
2303         * tests/unistr/test-u8-cmp.c: New file.
2304         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2305
2306         Tests for module 'unistr/u32-set'.
2307         * modules/unistr/u32-set-tests: New file.
2308         * tests/unistr/test-u32-set.c: New file.
2309
2310         Tests for module 'unistr/u16-set'.
2311         * modules/unistr/u16-set-tests: New file.
2312         * tests/unistr/test-u16-set.c: New file.
2313
2314         Tests for module 'unistr/u8-set'.
2315         * modules/unistr/u8-set-tests: New file.
2316         * tests/unistr/test-u8-set.c: New file.
2317         * tests/unistr/test-set.h: New file.
2318
2319         Tests for module 'unistr/u32-move'.
2320         * modules/unistr/u32-move-tests: New file.
2321         * tests/unistr/test-u32-move.c: New file.
2322
2323         Tests for module 'unistr/u16-move'.
2324         * modules/unistr/u16-move-tests: New file.
2325         * tests/unistr/test-u16-move.c: New file.
2326
2327         Tests for module 'unistr/u8-move'.
2328         * modules/unistr/u8-move-tests: New file.
2329         * tests/unistr/test-u8-move.c: New file.
2330         * tests/unistr/test-move.h: New file.
2331
2332         Tests for module 'unistr/u32-cpy'.
2333         * modules/unistr/u32-cpy-tests: New file.
2334         * tests/unistr/test-u32-cpy.c: New file.
2335
2336         Tests for module 'unistr/u16-cpy'.
2337         * modules/unistr/u16-cpy-tests: New file.
2338         * tests/unistr/test-u16-cpy.c: New file.
2339
2340         Tests for module 'unistr/u8-cpy'.
2341         * modules/unistr/u8-cpy-tests: New file.
2342         * tests/unistr/test-u8-cpy.c: New file.
2343         * tests/unistr/test-cpy.h: New file.
2344
2345 2010-01-09  Bruno Haible  <bruno@clisp.org>
2346
2347         Tests for module 'unistr/u32-uctomb'.
2348         * modules/unistr/u32-uctomb-tests: New file.
2349         * tests/unistr/test-u32-uctomb.c: New file.
2350
2351         Tests for module 'unistr/u16-uctomb'.
2352         * modules/unistr/u16-uctomb-tests: New file.
2353         * tests/unistr/test-u16-uctomb.c: New file.
2354
2355         Tests for module 'unistr/u8-uctomb'.
2356         * modules/unistr/u8-uctomb-tests: New file.
2357         * tests/unistr/test-u8-uctomb.c: New file.
2358
2359         Tests for module 'unistr/u32-mbtoucr'.
2360         * modules/unistr/u32-mbtoucr-tests: New file.
2361         * tests/unistr/test-u32-mbtoucr.c: New file.
2362
2363         Tests for module 'unistr/u16-mbtoucr'.
2364         * modules/unistr/u16-mbtoucr-tests: New file.
2365         * tests/unistr/test-u16-mbtoucr.c: New file.
2366
2367         Tests for module 'unistr/u8-mbtoucr'.
2368         * modules/unistr/u8-mbtoucr-tests: New file.
2369         * tests/unistr/test-u8-mbtoucr.c: New file.
2370
2371         Tests for module 'unistr/u32-mbtouc'.
2372         * modules/unistr/u32-mbtouc-tests: New file.
2373         * tests/unistr/test-u32-mbtouc.c: New file.
2374
2375         Tests for module 'unistr/u16-mbtouc'.
2376         * modules/unistr/u16-mbtouc-tests: New file.
2377         * tests/unistr/test-u16-mbtouc.c: New file.
2378
2379         Tests for module 'unistr/u8-mbtouc'.
2380         * modules/unistr/u8-mbtouc-tests: New file.
2381         * tests/unistr/test-u8-mbtouc.c: New file.
2382
2383         Tests for module 'unistr/u32-mbtouc-unsafe'.
2384         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2385         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2386         * tests/unistr/test-u32-mbtouc.h: New file.
2387
2388         Tests for module 'unistr/u16-mbtouc-unsafe'.
2389         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2390         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2391         * tests/unistr/test-u16-mbtouc.h: New file.
2392
2393         Tests for module 'unistr/u8-mbtouc-unsafe'.
2394         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2395         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2396         * tests/unistr/test-u8-mbtouc.h: New file.
2397
2398         Tests for module 'unistr/u32-mblen'.
2399         * modules/unistr/u32-mblen-tests: New file.
2400         * tests/unistr/test-u32-mblen.c: New file.
2401
2402         Tests for module 'unistr/u16-mblen'.
2403         * modules/unistr/u16-mblen-tests: New file.
2404         * tests/unistr/test-u16-mblen.c: New file.
2405
2406         Tests for module 'unistr/u8-mblen'.
2407         * modules/unistr/u8-mblen-tests: New file.
2408         * tests/unistr/test-u8-mblen.c: New file.
2409
2410         Tests for module 'unistr/u32-to-u16'.
2411         * modules/unistr/u32-to-u16-tests: New file.
2412         * tests/unistr/test-u32-to-u16.c: New file.
2413
2414         Tests for module 'unistr/u32-to-u8'.
2415         * modules/unistr/u32-to-u8-tests: New file.
2416         * tests/unistr/test-u32-to-u8.c: New file.
2417
2418         Tests for module 'unistr/u16-to-u32'.
2419         * modules/unistr/u16-to-u32-tests: New file.
2420         * tests/unistr/test-u16-to-u32.c: New file.
2421
2422         Tests for module 'unistr/u16-to-u8'.
2423         * modules/unistr/u16-to-u8-tests: New file.
2424         * tests/unistr/test-u16-to-u8.c: New file.
2425
2426         Tests for module 'unistr/u8-to-u32'.
2427         * modules/unistr/u8-to-u32-tests: New file.
2428         * tests/unistr/test-u8-to-u32.c: New file.
2429
2430         Tests for module 'unistr/u8-to-u16'.
2431         * modules/unistr/u8-to-u16-tests: New file.
2432         * tests/unistr/test-u8-to-u16.c: New file.
2433
2434         Tests for module 'unistr/u32-check'.
2435         * modules/unistr/u32-check-tests: New file.
2436         * tests/unistr/test-u32-check.c: New file.
2437
2438         Tests for module 'unistr/u16-check'.
2439         * modules/unistr/u16-check-tests: New file.
2440         * tests/unistr/test-u16-check.c: New file.
2441
2442         Tests for module 'unistr/u8-check'.
2443         * modules/unistr/u8-check-tests: New file.
2444         * tests/unistr/test-u8-check.c: New file.
2445
2446         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2447         (category_equals): New function.
2448         (main): Add more tests.
2449         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2450
2451         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2452
2453 2010-01-10  Bruno Haible  <bruno@clisp.org>
2454
2455         unistr/u*-strcoll: Try harder to distinguish different strings.
2456         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2457         compare s1 and s2 to see if they are different.
2458
2459 2010-01-10  Bruno Haible  <bruno@clisp.org>
2460
2461         unistr/u*-stpncpy: Fix the return value.
2462         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2463         description of the return value consistent with stpncpy in glibc.
2464         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2465         written non-NUL unit.
2466
2467 2010-01-10  Bruno Haible  <bruno@clisp.org>
2468
2469         unistr/u*-next: Add missing dependencies.
2470         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2471         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2472         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2473
2474 2010-01-10  Bruno Haible  <bruno@clisp.org>
2475
2476         unistr/u8-mbsnlen: Fix return value for incomplete character.
2477         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2478         u8_mblen.
2479         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2480         Remove unistr/u8-mblen.
2481         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2482         u16_mblen.
2483         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2484         Remove unistr/u16-mblen.
2485
2486 2010-01-10  Bruno Haible  <bruno@clisp.org>
2487
2488         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2489         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2490         Reported by Brian Gough <bjg@gnu.org> and
2491         Chris Clayton <chris2553@googlemail.com> via
2492         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2493
2494 2010-01-09  Bruno Haible  <bruno@clisp.org>
2495
2496         unistr/u16-to-u32: Reject invalid input.
2497         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2498         u16_mbtouc.
2499         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2500         Remove unistr/u16-mbtouc.
2501
2502         unistr/u16-to-u8: Reject invalid input.
2503         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2504         u16_mbtouc.
2505         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2506         Remove unistr/u16-mbtouc.
2507
2508         unistr/u8-to-u32: Reject invalid input.
2509         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2510         u8_mbtouc.
2511         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2512         Remove unistr/u8-mbtouc.
2513
2514         unistr/u8-to-u16: Reject invalid input.
2515         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2516         u8_mbtouc.
2517         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2518         Remove unistr/u8-mbtouc.
2519
2520 2010-01-09  Bruno Haible  <bruno@clisp.org>
2521
2522         Tests for module 'getlogin'.
2523         * modules/getlogin-tests: New file.
2524         * tests/test-getlogin.c: New file.
2525
2526         New module 'getlogin'.
2527         * lib/unistd.in.h (getlogin): New declaration.
2528         * lib/getlogin.c: New file.
2529         * m4/getlogin.m4: New file.
2530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2531         HAVE_GETLOGIN.
2532         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2533         HAVE_GETLOGIN.
2534         * modules/getlogin: New file.
2535         * doc/posix-functions/getlogin.texi: Mention the new module.
2536         Reported by John W. Eaton <jwe@gnu.org>.
2537
2538 2010-01-09  Bruno Haible  <bruno@clisp.org>
2539
2540         getlogin_r: Support for native Windows.
2541         * lib/getlogin_r.c: Include <windows.h>
2542         (getlogin_r): Implement for native Windows.
2543         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2544         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2545         via John W. Eaton <jwe@gnu.org>.
2546
2547 2010-01-09  Bruno Haible  <bruno@clisp.org>
2548
2549         getlogin_r: Small fixes.
2550         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2551         succeeds.
2552         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2553         before testing whether getlogin_r is declared. No need to set
2554         HAVE_DECL_GETLOGIN_R to 1.
2555         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2556
2557 2010-01-09  Bruno Haible  <bruno@clisp.org>
2558
2559         * lib/unistd.in.h (getlogin_r): Add comment.
2560
2561 2010-01-09  Bruno Haible  <bruno@clisp.org>
2562
2563         Tests for module 'getlogin_r'.
2564         * modules/getlogin_r-tests: New file.
2565         * tests/test-getlogin_r.c: New file.
2566
2567 2010-01-09  Jim Meyering  <meyering@redhat.com>
2568
2569         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2570         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2571         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2572
2573 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2574
2575         * lib/dup2.c (rpl_dup2): Improve comment.
2576
2577 2010-01-08  Eric Blake  <ebb9@byu.net>
2578
2579         maint.mk: allow packages to add makefile @@ exceptions
2580         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2581         (sc_makefile_check): Rename...
2582         (sc_makefile_at_at_check): ...to this, and use hook.
2583
2584         dup2: work around mingw bug
2585         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2586         Reported by Simon Josefsson.
2587
2588 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2589
2590         glob: Fix C++ compilation.
2591         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2592         C++.
2593
2594 2010-01-07  Bruno Haible  <bruno@clisp.org>
2595
2596         Fix indentation of wctype.in.h, broken since 2007-01-06.
2597         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2598
2599 2010-01-07  Bruno Haible  <bruno@clisp.org>
2600
2601         mbslen: Avoid collision with system function.
2602         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2603         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2604         * m4/mbslen.m4: New file.
2605         * modules/mbslen (Files): Add it.
2606         (configure.ac): Invoke gl_MBSLEN.
2607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2608         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2609         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2610         via Ian Beckwith <ianb@erislabs.net>.
2611
2612 2010-01-07  Bruno Haible  <bruno@clisp.org>
2613
2614         dirent: Document the last fix.
2615         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2616
2617 2010-01-07  Bruno Haible  <bruno@clisp.org>
2618
2619         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2620         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2621         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2622         va_list are defined.
2623         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2624         Reported by Eric Blake.
2625
2626 2010-01-07  Bruno Haible  <bruno@clisp.org>
2627
2628         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2629         * modules/xlist (Depends-on): Add 'list',
2630         * modules/xoset (Depends-on): Add 'oset'.
2631         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2632
2633 2010-01-07  Bruno Haible  <bruno@clisp.org>
2634
2635         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2636         * doc/posix-functions/strncasecmp.texi: Likewise.
2637
2638 2010-01-07  Bruno Haible  <bruno@clisp.org>
2639
2640         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2641
2642 2010-01-07  John W. Eaton  <jwe@octave.org>
2643
2644         wctype: allow C++ use
2645         * lib/wctype.in.h: Add extern "C" block for C++.
2646
2647 2010-01-06  Eric Blake  <ebb9@byu.net>
2648
2649         maint.mk: detect incorrect GFDL usage
2650         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2651
2652 2010-01-06  Jim Meyering  <meyering@redhat.com>
2653         and Eric Blake  <ebb9@byu.net>
2654
2655         maint.mk: ignore multi-line copyright in NEWS
2656         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2657
2658 2010-01-06  Eric Blake  <ebb9@byu.net>
2659
2660         select: add missing dependency
2661         * modules/select-tests (Depends-on): Move sockets dependency...
2662         * modules/select (Depends-on): ...here.
2663         Reported by Ian Beckwith.
2664
2665         doc: regenerate INSTALL
2666         * doc/INSTALL: Reflect recent autoconf update.
2667         * doc/INSTALL.ISO: Likewise.
2668         * doc/INSTALL.UTF-8: Likewise.
2669
2670         pread: fix compilation on glibc
2671         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2672         Reported by Ralf Wildenhues.
2673
2674         dirent: fix test failure
2675         * lib/dirent.in.h (includes): Guarantee ino_t.
2676         Reported by Ralf Wildenhues.
2677
2678 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2679
2680         linkat, renameat: avoid bad free
2681         * lib/at-func2.c (at_func2): Fix typo.
2682         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2683
2684 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2685
2686         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2687         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2688         to avoid failure of symlink test later.
2689
2690 2010-01-06  Eric Blake  <ebb9@byu.net>
2691
2692         stdio, unistd: guarantee ssize_t
2693         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2694         2008 are exposed when needed.
2695         * lib/stdio.in.h (includes): Likewise.
2696         Reported by Ralf Wildenhues.
2697
2698 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2699
2700         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2701         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2702         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2703
2704 2010-01-06  Jim Meyering  <meyering@redhat.com>
2705
2706         readtokens: this module *does* require xalloc.h
2707         It uses only functions that were omitted by the old syntax-check rule.
2708         * lib/readtokens.c: Include "xalloc.h" once again.
2709         * modules/readtokens (Depends-on): Add xalloc.
2710         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2711
2712 2010-01-05  Eric Blake  <ebb9@byu.net>
2713
2714         maint: support 'make announcement' from a VPATH build
2715         * top/maint.mk (announcement): Look for correct NEWS file.
2716
2717 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2718
2719         utimens (fdutimens): ignore a negative FD, per contract
2720         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2721         when we have a valid file descriptor.  Otherwise, using a brand
2722         new glibc (with just-patched futimens that now fails with EBADF)
2723         would cause this function to fail with ENOSYS.
2724         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2725         See also http://bugzilla.redhat.com/552320.
2726
2727 2010-01-05  Eric Blake  <ebb9@byu.net>
2728
2729         strcase: document what it provides
2730         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2731         gnulib module.
2732         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2733         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2734
2735 2010-01-05  Jim Meyering  <meyering@redhat.com>
2736
2737         maint: remove useless inclusions of "xalloc.h"
2738         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2739         * lib/readtokens.c: Likewise.
2740         * lib/same.c: Likewise.
2741         * modules/getloadavg (Depends-on): Remove xalloc.
2742         * modules/readtokens: Likewise.
2743         * modules/same: Likewise.
2744
2745         maint.mk: include 4 more function names in alloca.h-checking regexp
2746         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2747         regexp.  Before, we would give a false-positive (saying alloca.h
2748         is included unnecessarily) when the only uses involved omitted symbols.
2749
2750         xalloc.h: use consistent formatting
2751         * lib/xalloc.h: Move declarations to start in the first column.
2752
2753 2010-01-05  Eric Blake  <ebb9@byu.net>
2754
2755         mkdir: avoid xalloc
2756         * lib/mkdir.c (includes): Drop unused header.
2757         Reported by John W. Eaton.
2758
2759 2010-01-04  Jim Meyering  <meyering@redhat.com>
2760
2761         nl_langinfo: avoid configure-time syntax error
2762         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2763         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2764         the empty string.  Don't let that provoke a shell syntax error.
2765
2766         regcomp, regexec, fnmatch: avoid array bounds read error
2767         * lib/regcomp.c (build_equiv_class): From glibc:
2768         Use only the low 24 bits of a findidx return value as an index
2769         into the weights array.  Patch by Ulrich Drepper:
2770         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2771         * lib/regexec.c (check_node_accept_bytes): Likewise.
2772         * lib/fnmatch_loop.c (FCT): Likewise.
2773
2774         regcomp: skip collseq lookup when there are no rules
2775         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2776         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2777
2778         regcomp: recognize ill-formed { } expressions
2779         * lib/regcomp.c (parse_dup_op): From glibc:
2780         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2781
2782         regcomp: fix typo in comment
2783         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2784         s/satisfy/satisfies/.
2785
2786         regcomp: sync from glibc: remove dead store
2787         * lib/regcomp.c (duplicate_node_closure): Remove useless
2788         search_duplicated_node call and dead store.
2789
2790         regcomp: sync from glibc; always use nl_langinfo
2791         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2792         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2793         * modules/regex (Depends-on): Add nl_langinfo.
2794
2795 2010-01-04  Eric Blake  <ebb9@byu.net>
2796
2797         fdopendir: fix configure test
2798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2799
2800 2010-01-01  Bruno Haible  <bruno@clisp.org>
2801
2802         wchar: Remove unused configure check.
2803         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2804
2805 2010-01-01  Eric Blake  <ebb9@byu.net>
2806
2807         headers: make check of system header explicit
2808         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2809         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2810         ourselves.
2811         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2812         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2814         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2815         internals.
2816         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2817         missing.
2818         Suggested by Bruno Haible.
2819
2820 2010-01-01  Jim Meyering  <meyering@redhat.com>
2821
2822         ChangeLog: tweak to eliminate unnecessary copyright line
2823         * ChangeLog: Remove a copyright line that was mistakenly updated
2824         by today's update-copyright run.  Reported by Eric Blake.
2825
2826         test-update-copyright: don't let envvar setting cause test failure
2827         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2828
2829 2010-01-01  Bruno Haible  <bruno@clisp.org>
2830
2831         localename: Avoid gcc warning.
2832         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2833         function if it is not used.
2834
2835 2010-01-01  Jim Meyering  <meyering@redhat.com>
2836
2837         update nearly all FSF copyright year lists to include 2010
2838         Use the same procedure as for 2009, outlined in
2839         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2840
2841         version-etc: set COPYRIGHT_YEAR to 2010
2842         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2843
2844 2009-12-31  Eric Blake  <ebb9@byu.net>
2845
2846         doc: correct availability of cygwin 1.5.x getopt
2847         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2848         variables.
2849         * doc/posix-functions/opterr.texi (opterr): Likewise.
2850         * doc/posix-functions/optind.texi (optind): Likewise.
2851         * doc/posix-functions/optopt.texi (optopt): Likewise.
2852         * doc/posix-functions/tzname.texi (tzname): Likewise.
2853
2854         openat: update maintainer
2855         * modules/openat (Maintainer): Add myself.
2856
2857         utimens: avoid shadowing warning
2858         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2859         buffers into one, to avoid shadowing, as well as avoiding a
2860         redundant stat.
2861         Reported by Jim Meyering.
2862
2863         test-dup2: avoid compiler warning
2864         * tests/test-dup2.c (is_inheritable): Only define if used.
2865
2866 2010-01-01  Bruno Haible  <bruno@clisp.org>
2867
2868         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2869         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2870         defined, use wctomb instead of wcrtomb.
2871
2872 2010-01-01  Bruno Haible  <bruno@clisp.org>
2873
2874         iconv: Reject native Solaris iconv.
2875         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2876         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2877
2878 2009-12-31  Bruno Haible  <bruno@clisp.org>
2879
2880         * tests/test-signal.c (main): Remove test of 'SIG'.
2881
2882 2009-12-31  Bruno Haible  <bruno@clisp.org>
2883
2884         spawn: Fix incomplete fix.
2885         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2886         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2887         warnings for GNULIB_POSIXCHECK again.
2888         Reported by Eric Blake.
2889
2890 2009-12-31  Bruno Haible  <bruno@clisp.org>
2891
2892         Avoid namespace pollution on glibc systems.
2893         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2894         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2895         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2896         glibc systems.
2897
2898 2009-12-31  Bruno Haible  <bruno@clisp.org>
2899
2900         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2901         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2902         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2903         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2904         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2905         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2906         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2907
2908 2009-12-31  Bruno Haible  <bruno@clisp.org>
2909
2910         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2911         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2912         afterwards.
2913
2914 2009-12-31  Bruno Haible  <bruno@clisp.org>
2915
2916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2917         SYS_UTSNAME_H.
2918
2919 2009-12-31  Bruno Haible  <bruno@clisp.org>
2920
2921         spawn: Fix misapplied patch.
2922         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2923         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2924         warnings for GNULIB_POSIXCHECK.
2925
2926 2009-12-31  Bruno Haible  <bruno@clisp.org>
2927
2928         times: Update after sys_times changed.
2929         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2930         * modules/times (Files): Add it.
2931         (configure.ac): Invoke gl_FUNC_TIMES.
2932
2933 2009-12-31  Bruno Haible  <bruno@clisp.org>
2934
2935         Use AC_C_INLINE where necessary.
2936         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2937         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2939         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2940         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2941         * m4/mbiter.m4 (gl_MBITER): Likewise.
2942         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2943         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2944         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2945         * modules/u64 (configure.ac): Likewise.
2946
2947 2009-12-31  Bruno Haible  <bruno@clisp.org>
2948
2949         Use AC_C_INLINE instead of module 'inline' where possible.
2950         * modules/inline (Description): Clarify purpose.
2951         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2952         * modules/count-one-bits (Depends-on): Remove inline.
2953         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2954         * modules/openat (Depends-on): Remove inline.
2955         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2956         instead of depending on module 'inline'.
2957         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2958         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2959         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2960         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2961         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2962         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2963         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2964         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2965         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2966         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2967         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2968         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2969         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2970         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2971         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2972         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2973         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2974         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2975         Likewise.
2976         * modules/unictype/property-ascii-hex-digit (Depends-on,
2977         configure.ac): Likewise.
2978         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2979         configure.ac): Likewise.
2980         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2981         configure.ac): Likewise.
2982         * modules/unictype/property-bidi-block-separator (Depends-on,
2983         configure.ac): Likewise.
2984         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2985         configure.ac): Likewise.
2986         * modules/unictype/property-bidi-common-separator (Depends-on,
2987         configure.ac): Likewise.
2988         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2989         Likewise.
2990         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2991         configure.ac): Likewise.
2992         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2993         configure.ac): Likewise.
2994         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2995         configure.ac): Likewise.
2996         * modules/unictype/property-bidi-european-digit (Depends-on,
2997         configure.ac): Likewise.
2998         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2999         configure.ac): Likewise.
3000         * modules/unictype/property-bidi-left-to-right (Depends-on,
3001         configure.ac): Likewise.
3002         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3003         configure.ac): Likewise.
3004         * modules/unictype/property-bidi-other-neutral (Depends-on,
3005         configure.ac): Likewise.
3006         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3007         Likewise.
3008         * modules/unictype/property-bidi-segment-separator (Depends-on,
3009         configure.ac): Likewise.
3010         * modules/unictype/property-bidi-whitespace (Depends-on,
3011         configure.ac): Likewise.
3012         * modules/unictype/property-combining (Depends-on, configure.ac):
3013         Likewise.
3014         * modules/unictype/property-composite (Depends-on, configure.ac):
3015         Likewise.
3016         * modules/unictype/property-currency-symbol (Depends-on,
3017         configure.ac): Likewise.
3018         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3019         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3020         Likewise.
3021         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3022         configure.ac): Likewise.
3023         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3024         Likewise.
3025         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3026         Likewise.
3027         * modules/unictype/property-extender (Depends-on, configure.ac):
3028         Likewise.
3029         * modules/unictype/property-format-control (Depends-on, configure.ac):
3030         Likewise.
3031         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3032         Likewise.
3033         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3034         Likewise.
3035         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3036         Likewise.
3037         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3038         Likewise.
3039         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3040         Likewise.
3041         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3042         Likewise.
3043         * modules/unictype/property-id-start (Depends-on, configure.ac):
3044         Likewise.
3045         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3046         Likewise.
3047         * modules/unictype/property-ids-binary-operator (Depends-on,
3048         configure.ac): Likewise.
3049         * modules/unictype/property-ids-trinary-operator (Depends-on,
3050         configure.ac): Likewise.
3051         * modules/unictype/property-ignorable-control (Depends-on,
3052         configure.ac): Likewise.
3053         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3054         Likewise.
3055         * modules/unictype/property-join-control (Depends-on, configure.ac):
3056         Likewise.
3057         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3058         Likewise.
3059         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3060         Likewise.
3061         * modules/unictype/property-logical-order-exception (Depends-on,
3062         configure.ac): Likewise.
3063         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3064         Likewise.
3065         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3066         * modules/unictype/property-non-break (Depends-on, configure.ac):
3067         Likewise.
3068         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3069         Likewise.
3070         * modules/unictype/property-numeric (Depends-on, configure.ac):
3071         Likewise.
3072         * modules/unictype/property-other-alphabetic (Depends-on,
3073         configure.ac): Likewise.
3074         * modules/unictype/property-other-default-ignorable-code-point
3075         (Depends-on, configure.ac): Likewise.
3076         * modules/unictype/property-other-grapheme-extend (Depends-on,
3077         configure.ac): Likewise.
3078         * modules/unictype/property-other-id-continue (Depends-on,
3079         configure.ac): Likewise.
3080         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3081         Likewise.
3082         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3083         Likewise.
3084         * modules/unictype/property-other-math (Depends-on, configure.ac):
3085         Likewise.
3086         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3087         Likewise.
3088         * modules/unictype/property-paired-punctuation (Depends-on,
3089         configure.ac): Likewise.
3090         * modules/unictype/property-paragraph-separator (Depends-on,
3091         configure.ac): Likewise.
3092         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3093         Likewise.
3094         * modules/unictype/property-pattern-white-space (Depends-on,
3095         configure.ac): Likewise.
3096         * modules/unictype/property-private-use (Depends-on, configure.ac):
3097         Likewise.
3098         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3099         Likewise.
3100         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3101         Likewise.
3102         * modules/unictype/property-radical (Depends-on, configure.ac):
3103         Likewise.
3104         * modules/unictype/property-sentence-terminal (Depends-on,
3105         configure.ac): Likewise.
3106         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3107         Likewise.
3108         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3109         * modules/unictype/property-terminal-punctuation (Depends-on,
3110         configure.ac): Likewise.
3111         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3112         Likewise.
3113         * modules/unictype/property-unassigned-code-value (Depends-on,
3114         configure.ac): Likewise.
3115         * modules/unictype/property-unified-ideograph (Depends-on,
3116         configure.ac): Likewise.
3117         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3118         Likewise.
3119         * modules/unictype/property-variation-selector (Depends-on,
3120         configure.ac): Likewise.
3121         * modules/unictype/property-white-space (Depends-on, configure.ac):
3122         Likewise.
3123         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3124         Likewise.
3125         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3126         Likewise.
3127         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3128         Likewise.
3129         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3130         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3131         Likewise.
3132
3133 2009-12-31  Bruno Haible  <bruno@clisp.org>
3134
3135         Remove unnecessary AC_C_INLINE invocation.
3136         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3137         since 2009-08-21.
3138
3139 2009-12-31  Jim Meyering  <meyering@redhat.com>
3140
3141         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3142         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3143         With this change, we can all remove the gpg_key_ID = ... definition
3144         from our respective cfg.mk files.
3145
3146         maint.mk: create announcement template in ~/, not in /tmp
3147         * top/maint.mk (emit_upload_commands): Adjust.
3148         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3149         Remove temporary file, .ci-msg.
3150
3151 2009-12-31  Eric Blake  <ebb9@byu.net>
3152
3153         link-warning: always build headers with link warnings
3154         * modules/arpa_inet (Makefile.am): Always build replacement
3155         header.
3156         * modules/ctype (Makefile.am): Likewise.
3157         * modules/dirent (Makefile.am): Likewise.
3158         * modules/inttypes (Makefile.am): Likewise.
3159         * modules/langinfo (Makefile.am): Likewise.
3160         * modules/locale (Makefile.am): Likewise.
3161         * modules/spawn (Makefile.am): Likewise.
3162         * modules/sys_file (Makefile.am): Likewise.
3163         * modules/sys_ioctl (Makefile.am): Likewise.
3164         * modules/sys_select (Makefile.am): Likewise.
3165         * modules/sys_socket (Makefile.am): Likewise.
3166         * modules/sys_times (Makefile.am): Likewise.
3167         * modules/sys_utsname (Makefile.am): Likewise.
3168         * modules/sys_wait (Makefile.am): Likewise.
3169         * modules/wchar (Makefile.am): Likewise.
3170         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3171         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3172         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3173         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3174         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3175         Likewise.
3176         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3177         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3178         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3179         Likewise.
3180         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3181         Likewise.
3182         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3183         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3184         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3186         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3188         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3189         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3190         (gl_WCHAR_H_DEFAULTS): Likewise.
3191
3192 2009-12-31  Eric Blake  <ebb9@byu.net>
3193
3194         signal, spawn: use link warnings
3195         * lib/signal.in.h (sigset_t): Make unconditional.
3196         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3197         (sigpending, sigprocmask, sigaction): Add link warnings.
3198         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3199         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3200         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3201         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3202         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3203         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3204         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3205         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3206         (posix_spawn_file_actions_destroy)
3207         (posix_spawn_file_actions_addopen)
3208         (posix_spawn_file_actions_addclose)
3209         (posix_spawwn_file_actions_adddup2): Likewise.
3210         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3211         * tests/test-signal.c (main): Enhance test.
3212
3213         spawn: improve wrapper support
3214         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3215         (gl_SPAWN_H_DEFAULTS): New defaults.
3216         * modules/spawn (Makefile.am): Substitute them.
3217         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3218         Only declare if missing or broken.
3219
3220         sys_times, sys_utsname: use include_next
3221         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3222         header.
3223         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3224         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3225         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3226         * modules/sys_times (Depends-on): Add include_next.
3227         (Makefile.am): Substitute additional values.
3228         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3229         * lib/sys_times.in.h (includes): Include native header, if
3230         available.
3231         * lib/sys_utsname.in.h (includes): Likewise.
3232         * tests/test-sys_times.c (main): Enhance test.
3233
3234         fdutimensat: revert prior patch
3235         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3236         utimens.h.
3237         Reported by Bruno Haible.
3238
3239 2009-12-30  Eric Blake  <ebb9@byu.net>
3240
3241         sys_wait: drop link-warning dependency
3242         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3243         link-warning efforts.
3244         * lib/sys_wait.in.h: Likewise.
3245
3246         fdutimensat: remove bogus dependency
3247         * modules/fdutimensat (Depends-on): Drop inline.
3248
3249         unistd: fix typo
3250         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3251
3252 2009-12-30  Bruno Haible  <bruno@clisp.org>
3253
3254         Fix compilation error with Solaris cc.
3255         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3256         * lib/unicase/u16-is-invariant.c: Likewise.
3257         * lib/unicase/u32-is-invariant.c: Likewise.
3258         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3259
3260 2009-12-30  Bruno Haible  <bruno@clisp.org>
3261
3262         Fix test crash.
3263         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3264         locales.
3265         Reported by Simon Josefsson <simon@josefsson.org>.
3266
3267 2009-12-30  Bruno Haible  <bruno@clisp.org>
3268
3269         Fix compilation error on most platforms.
3270         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3271         Reported by Simon Josefsson <simon@josefsson.org>
3272         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3273
3274 2009-12-30  Eric Blake  <ebb9@byu.net>
3275
3276         futimens, utimensat: work around ntfs-3g bug
3277         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3278         a ctime bug is present, and expand workaround to cover ntfs-3g.
3279         * lib/utimens.c (fdutimens, lutimens): Likewise.
3280         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3281         (validate_timespec): Adjust return value.
3282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3283         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3284         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3285
3286 2009-12-29  Eric Blake  <ebb9@byu.net>
3287
3288         link-warning: make usage consistent
3289         * modules/ctype (Depends-on): Add link-warning.
3290         (Makefile.am): Update rules accordingly.
3291         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3292         * modules/locale (Depends-on, Makefile.am): Likewise.
3293         * modules/sys_file (Makefile.am): Likewise.
3294         * modules/getopt-posix (Makefile.am): Delete unused link warning
3295         efforts.
3296         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3297         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3298         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3299         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3300
3301         stdio: remove unused variables
3302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3303         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3304         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3305
3306         tests: test more substitute headers
3307         * modules/ctype-tests: New file.
3308         * modules/dirent-tests: Likewise.
3309         * modules/spawn-tests: Likewise.
3310         * modules/sys_file-tests: Likewise.
3311         * modules/sys_ioctl-tests: Likewise.
3312         * modules/sys_wait-tests: Likewise.
3313         * tests/test-ctype.c: Likewise.
3314         * tests/test-dirent.c: Likewise.
3315         * tests/test-spawn.c: Likewise.
3316         * tests/test-sys_file.c: Likewise.
3317         * tests/test-sys_ioctl.c: Likewise.
3318         * tests/test-sys_wait.c: Likewise.
3319         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3320         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3321         whether or not flock is in use.
3322
3323         tests: remove License section from module
3324         * modules/arpa_inet-tests: Remove unneeded section.
3325         * modules/byteswap-tests: Likewise.
3326         * modules/ceilf-tests: Likewise.
3327         * modules/ceill-tests: Likewise.
3328         * modules/crypto/des-tests: Likewise.
3329         * modules/crypto/gc-arcfour-tests: Likewise.
3330         * modules/crypto/gc-arctwo-tests: Likewise.
3331         * modules/crypto/gc-des-tests: Likewise.
3332         * modules/crypto/gc-hmac-md5-tests: Likewise.
3333         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3334         * modules/crypto/gc-md2-tests: Likewise.
3335         * modules/crypto/gc-md4-tests: Likewise.
3336         * modules/crypto/gc-md5-tests: Likewise.
3337         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3338         * modules/crypto/gc-rijndael-tests: Likewise.
3339         * modules/crypto/gc-sha1-tests: Likewise.
3340         * modules/crypto/gc-tests: Likewise.
3341         * modules/crypto/md2-tests: Likewise.
3342         * modules/crypto/md4-tests: Likewise.
3343         * modules/fcntl-h-tests: Likewise.
3344         * modules/floorf-tests: Likewise.
3345         * modules/floorl-tests: Likewise.
3346         * modules/frexp-nolibm-tests: Likewise.
3347         * modules/frexp-tests: Likewise.
3348         * modules/frexpl-nolibm-tests: Likewise.
3349         * modules/frexpl-tests: Likewise.
3350         * modules/getaddrinfo-tests: Likewise.
3351         * modules/inttypes-tests: Likewise.
3352         * modules/isfinite-tests: Likewise.
3353         * modules/isinf-tests: Likewise.
3354         * modules/ldexpl-tests: Likewise.
3355         * modules/locale-tests: Likewise.
3356         * modules/math-tests: Likewise.
3357         * modules/netdb-tests: Likewise.
3358         * modules/netinet_in-tests: Likewise.
3359         * modules/printf-frexp-tests: Likewise.
3360         * modules/printf-frexpl-tests: Likewise.
3361         * modules/priv-set-tests: Likewise.
3362         * modules/random_r-tests: Likewise.
3363         * modules/round-tests: Likewise.
3364         * modules/roundf-tests: Likewise.
3365         * modules/roundl-tests: Likewise.
3366         * modules/search-tests: Likewise.
3367         * modules/select-tests: Likewise.
3368         * modules/signal-tests: Likewise.
3369         * modules/stdbool-tests: Likewise.
3370         * modules/stddef-tests: Likewise.
3371         * modules/stdint-tests: Likewise.
3372         * modules/stdio-tests: Likewise.
3373         * modules/stdlib-tests: Likewise.
3374         * modules/string-tests: Likewise.
3375         * modules/strings-tests: Likewise.
3376         * modules/sys_select-tests: Likewise.
3377         * modules/sys_socket-tests: Likewise.
3378         * modules/sys_stat-tests: Likewise.
3379         * modules/sys_time-tests: Likewise.
3380         * modules/sys_utsname-tests: Likewise.
3381         * modules/sysexits-tests: Likewise.
3382         * modules/time-tests: Likewise.
3383         * modules/trunc-tests: Likewise.
3384         * modules/truncf-tests: Likewise.
3385         * modules/truncl-tests: Likewise.
3386         * modules/tsearch-tests: Likewise.
3387         * modules/unistd-tests: Likewise.
3388         * modules/wchar-tests: Likewise.
3389         * modules/wctype-tests: Likewise.
3390
3391         tests: fix license on several tests
3392         * tests/test-des.c: Update to GPLv3+.
3393         * tests/test-flock.c: Likewise.
3394         * tests/test-fsync.c: Likewise.
3395         * tests/test-futimens.h: Likewise.
3396         * tests/test-gc-arcfour.c: Likewise.
3397         * tests/test-gc-arctwo.c: Likewise.
3398         * tests/test-gc-des.c: Likewise.
3399         * tests/test-gc-hmac-md5.c: Likewise.
3400         * tests/test-gc-hmac-sha1.c: Likewise.
3401         * tests/test-gc-md2.c: Likewise.
3402         * tests/test-gc-md4.c: Likewise.
3403         * tests/test-gc-md5.c: Likewise.
3404         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3405         * tests/test-gc-rijndael.c: Likewise.
3406         * tests/test-gc-sha1.c: Likewise.
3407         * tests/test-gc.c: Likewise.
3408         * tests/test-getcwd.c: Likewise.
3409         * tests/test-link.c: Likewise.
3410         * tests/test-link.h: Likewise.
3411         * tests/test-lutimens.h: Likewise.
3412         * tests/test-md2.c: Likewise.
3413         * tests/test-md4.c: Likewise.
3414         * tests/test-mkdir.h: Likewise.
3415         * tests/test-rename.c: Likewise.
3416         * tests/test-rename.h: Likewise.
3417         * tests/test-safe-alloc.c: Likewise.
3418         * tests/test-utimens-common.h: Likewise.
3419         * tests/test-utimens.h: Likewise.
3420
3421         maint: sync license texts
3422         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3423         * doc/gpl-3.0.texi: Revert copyright year update.
3424         * doc/lgpl-3.0.texi: Likewise.
3425
3426 2009-12-29  Jim Meyering  <meyering@redhat.com>
3427
3428         update nearly all FSF copyright year lists to include 2009
3429         The files named by the following are exempted:
3430             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3431               test -f "$dst" && { echo "$dst"; continue; }
3432               test -d "$dst" || continue
3433               echo "$dst"/$(basename "$src")
3434             done > exempt
3435             git ls-files tests/unictype >> exempt
3436         In the remaining files, convert to all-interval notation if
3437         - there is already at least one year interval like 2000-2003
3438         - the file is maintained by me
3439         - the file is in lib/uni*/, where that style already prevails
3440         Otherwise, use update-copyright's default.
3441
3442 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3443         and Eric Blake  <ebb9@byu.net>
3444
3445         tests: don't require debug system() to pass
3446         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3447         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3448         * tests/test-unlink.h (test_unlink_func): Likewise.
3449         * tests/test-fstatat.c (main): ...into callers.
3450         * tests/test-lstat.c (main): Likewise.
3451         * tests/test-rmdir.c (main): Likewise.
3452         * tests/test-unlink.c (main): Likewise.
3453         * tests/test-unlinkat.c (main): Likewise.
3454         * tests/test-areadlink-with-size.c (main): Don't require a
3455         debug-only system call to pass, aiding cross-testing to mingw.
3456         * tests/test-areadlink.c (main): Likewise.
3457         * tests/test-areadlinkat-with-size.c (main): Likewise.
3458         * tests/test-areadlinkat.c (main): Likewise.
3459         * tests/test-canonicalize-lgpl.c (main): Likewise.
3460         * tests/test-canonicalize.c (main): Likewise.
3461         * tests/test-chown.c (main): Likewise.
3462         * tests/test-fchownat.c (main): Likewise.
3463         * tests/test-lchown.c (main): Likewise.
3464         * tests/test-fdutimensat.c (main): Likewise.
3465         * tests/test-futimens.c (main): Likewise.
3466         * tests/test-link.c (main): Likewise.
3467         * tests/test-linkat.c (main): Likewise.
3468         * tests/test-mkdir.c (main): Likewise.
3469         * tests/test-mkdirat.c (main): Likewise.
3470         * tests/test-mkfifo.c (main): Likewise.
3471         * tests/test-mkfifoat.c (main): Likewise.
3472         * tests/test-mknod.c (main): Likewise.
3473         * tests/test-readlink.c (main): Likewise.
3474         * tests/test-remove.c (main): Likewise.
3475         * tests/test-rename.c (main): Likewise.
3476         * tests/test-renameat.c (main): Likewise.
3477         * tests/test-symlink.c (main): Likewise.
3478         * tests/test-symlinkat.c (main): Likewise.
3479         * tests/test-utimens.c (main): Likewise.
3480         * tests/test-utimensat.c (main): Likewise.
3481
3482 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3483
3484         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3485         on $(UNUSED_PARAMETER_H) to avoid build failure.
3486
3487 2009-12-28  Jim Meyering  <meyering@redhat.com>
3488
3489         update-copyright: you may specify a max. line length other than 72
3490         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3491
3492         maint: use consistent FSF copyright line syntax
3493         * lib/posixtm.c: Add missing comma in FSF copyright line.
3494         * lib/posixtm.h: Likewise.
3495         * lib/getugroups.c: Add missing ", Inc.".
3496
3497         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3498         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3499         FSF copyright line.  Remove trailing blanks.
3500
3501 2009-12-28  Eric Blake  <ebb9@byu.net>
3502
3503         test-dup2: reduce dependencies
3504         * modules/cloexec (Configure.ac): Set witness.
3505         * modules/dup2-tests (Depends-on): Drop cloexec.
3506         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3507         not present.
3508         Suggested by Bruno Haible.
3509
3510 2009-12-26  Bruno Haible  <bruno@clisp.org>
3511
3512         Remove an unneeded dependency.
3513         * modules/fseterr (Depends-on): Remove dup2.
3514
3515 2009-12-26  Eric Blake  <ebb9@byu.net>
3516
3517         tests: use macros.h in more places
3518         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3519         (ASSERT_STREAM): Provide default of stderr.
3520         * tests/test-dirent-safer.c: Include macros.h, using alternate
3521         stream for assertions.
3522         * tests/test-dup-safer.c: Likewise.
3523         * tests/test-freopen-safer.c: Likewise.
3524         * tests/test-getopt.c: Likewise.
3525         * tests/test-openat-safer.c: Likewise.
3526         * tests/test-pipe.c: Likewise.
3527         * tests/test-popen-safer.c: Likewise.
3528         * modules/dirent-safer-tests (Files): Include macros.h.
3529         * modules/unistd-safer-tests (Files): Likewise.
3530         * modules/freopen-safer-tests (Files): Likewise.
3531         * modules/getopt-posix-tests (Files): Likewise.
3532         * modules/openat-safer-tests (Files): Likewise.
3533         * modules/pipe-tests (Files): Likewise.
3534
3535 2009-12-26  Bruno Haible  <bruno@clisp.org>
3536
3537         javacomp: Portability fix.
3538         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3539         that it also works on Solaris.
3540
3541 2009-12-26  Bruno Haible  <bruno@clisp.org>
3542
3543         localename: Fix storage allocation of gl_locale_name_thread's result.
3544         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3545         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3546         all platforms that have 'uselocale'.
3547         (gl_locale_name_thread_unsafe): New function, extracted from
3548         gl_locale_name_thread.
3549         (gl_locale_name_thread): Call struniq on all platforms that have
3550         'uselocale'.
3551         * tests/test-localename.c (test_locale_name_thread): Check that the
3552         resulting strings are permanently allocated.
3553         * modules/localename-tests (Depends-on): Add strdup.
3554
3555 2009-12-26  Bruno Haible  <bruno@clisp.org>
3556
3557         * tests/test-localename.c (categories): Fill in the strings.
3558
3559 2009-12-26  Jim Meyering  <meyering@redhat.com>
3560
3561         isdir: complete the removal of m4/isdir.m4
3562         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3563
3564         isdir: clean up, since at least grep still uses it
3565         * lib/isdir.c: Include "isdir.h".
3566         (S_ISDIR): Remove now-unneeded definition.
3567         * modules/isdir (Files): Add lib/isdir.h.
3568         * lib/isdir.h: New file, with declaration.
3569         * m4/isdir.m4: Remove file -- unneeded.
3570
3571 2009-12-25  Bruno Haible  <bruno@clisp.org>
3572
3573         selinux-h: Make generated .h files standalone.
3574         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3575         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3576         * lib/se-selinux.in.h: Likewise.
3577         * modules/selinux-h (Depends-on): Add unused-parameter.
3578         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3579         selinux/selinux.h and selinux/context.h.
3580         Suggested by Eric Blake.
3581
3582 2009-12-25  Bruno Haible  <bruno@clisp.org>
3583
3584         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3585         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3586         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3587         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3588         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3589
3590 2009-12-24  Bruno Haible  <bruno@clisp.org>
3591
3592         openat: Fix warning.
3593         * lib/openat-proc.c: Include <unistd.h>.
3594
3595 2009-12-24  Bruno Haible  <bruno@clisp.org>
3596
3597         New module 'unused-parameter'.
3598         * build-aux/unused-parameter.h: New file, extracted from earlier
3599         gnulib-common.m4.
3600         * modules/unused-parameter: New file.
3601         * lib/unistr.h: Include unused-parameter.h.
3602         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3603         _GL_UNUSED.
3604         * modules/unistr/base (Depends-on): Add unused-parameter.
3605
3606 2009-12-24  Bruno Haible  <bruno@clisp.org>
3607
3608         Add missing dependencies to 'extensions' module.
3609         * m4/extensions.m4: Add comment.
3610         * modules/accept4 (Depends-on): Add extensions.
3611         * modules/dup3 (Depends-on): Likewise.
3612         * modules/fcntl (Depends-on): Likewise.
3613         * modules/futimens (Depends-on): Likewise.
3614         * modules/mknod (Depends-on): Likewise.
3615         * modules/pipe2 (Depends-on): Likewise.
3616         * modules/stat-time (Depends-on): Likewise.
3617         * modules/strcasestr-simple (Depends-on): Likewise.
3618         * modules/strsignal (Depends-on): Likewise.
3619         * modules/utimensat (Depends-on): Likewise.
3620         * modules/localcharset (Depends-on): Likewise. Needed because of
3621         gl_FCNTL_O_FLAGS.
3622         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3623         AC_TYPE_MBSTATE_T.
3624         * modules/wcsnrtombs (Depends-on): Likewise.
3625         * modules/wcsrtombs (Depends-on): Likewise.
3626
3627 2009-12-24  Bruno Haible  <bruno@clisp.org>
3628
3629         binary-io: Avoid gcc warning due to SET_BINARY.
3630         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3631         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3632
3633 2009-12-24  Bruno Haible  <bruno@clisp.org>
3634
3635         Avoid future namespace pollution on glibc systems.
3636         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3637         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3638         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3639         glibc systems.
3640
3641 2009-12-24  Bruno Haible  <bruno@clisp.org>
3642
3643         Refactor common macros used in tests.
3644         * tests/macros.h: New file.
3645         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3646         and/or <stdlib.h>, if appropriate.
3647         (ASSERT, SIZEOF): Remove macros.
3648         * tests/test-areadlink-with-size.c: Likewise.
3649         * tests/test-areadlinkat.c: Likewise.
3650         * tests/test-areadlinkat-with-size.c: Likewise.
3651         * tests/test-argmatch.c: Likewise.
3652         * tests/test-argv-iter.c: Likewise.
3653         * tests/test-array-mergesort.c: Likewise.
3654         * tests/test-array_list.c: Likewise.
3655         * tests/test-array_oset.c: Likewise.
3656         * tests/test-avltree_list.c: Likewise.
3657         * tests/test-avltree_oset.c: Likewise.
3658         * tests/test-avltreehash_list.c: Likewise.
3659         * tests/test-base64.c: Likewise.
3660         * tests/test-binary-io.c: Likewise.
3661         * tests/test-bitrotate.c: Likewise.
3662         * tests/test-btowc.c: Likewise.
3663         * tests/test-byteswap.c: Likewise.
3664         * tests/test-c-ctype.c: Likewise.
3665         * tests/test-c-stack.c: Likewise.
3666         * tests/test-c-strcasecmp.c: Likewise.
3667         * tests/test-c-strcasestr.c: Likewise.
3668         * tests/test-c-strncasecmp.c: Likewise.
3669         * tests/test-c-strstr.c: Likewise.
3670         * tests/test-canonicalize-lgpl.c: Likewise.
3671         * tests/test-canonicalize.c: Likewise.
3672         * tests/test-carray_list.c: Likewise.
3673         * tests/test-ceilf1.c: Likewise.
3674         * tests/test-ceilf2.c: Likewise.
3675         * tests/test-ceill.c: Likewise.
3676         * tests/test-chown.c: Likewise.
3677         * tests/test-cloexec.c: Likewise.
3678         * tests/test-copy-acl.c: Likewise.
3679         * tests/test-copy-file.c: Likewise.
3680         * tests/test-count-one-bits.c: Likewise.
3681         * tests/test-dprintf-posix.c: Likewise.
3682         * tests/test-dup2.c: Likewise.
3683         * tests/test-dup3.c: Likewise.
3684         * tests/test-duplocale.c: Likewise.
3685         * tests/test-fbufmode.c: Likewise.
3686         * tests/test-fchdir.c: Likewise.
3687         * tests/test-fchownat.c: Likewise.
3688         * tests/test-fcntl-safer.c: Likewise.
3689         * tests/test-fcntl.c: Likewise.
3690         * tests/test-fdopendir.c: Likewise.
3691         * tests/test-fdutimensat.c: Likewise.
3692         * tests/test-fflush2.c: Likewise.
3693         * tests/test-file-has-acl.c: Likewise.
3694         * tests/test-filevercmp.c: Likewise.
3695         * tests/test-flock.c: Likewise.
3696         * tests/test-floorf1.c: Likewise.
3697         * tests/test-floorf2.c: Likewise.
3698         * tests/test-floorl.c: Likewise.
3699         * tests/test-fnmatch.c: Likewise.
3700         * tests/test-fopen.h: Likewise.
3701         * tests/test-fpending.c: Likewise.
3702         * tests/test-fprintf-posix.c: Likewise.
3703         * tests/test-fpurge.c: Likewise.
3704         * tests/test-freadable.c: Likewise.
3705         * tests/test-freadahead.c: Likewise.
3706         * tests/test-freading.c: Likewise.
3707         * tests/test-freadptr.c: Likewise.
3708         * tests/test-freadptr2.c: Likewise.
3709         * tests/test-freadseek.c: Likewise.
3710         * tests/test-freopen.c: Likewise.
3711         * tests/test-frexp.c: Likewise.
3712         * tests/test-frexpl.c: Likewise.
3713         * tests/test-fseek.c: Likewise.
3714         * tests/test-fseeko.c: Likewise.
3715         * tests/test-fstatat.c: Likewise.
3716         * tests/test-fstrcmp.c: Likewise.
3717         * tests/test-fsync.c: Likewise.
3718         * tests/test-ftell.c: Likewise.
3719         * tests/test-ftello.c: Likewise.
3720         * tests/test-func.c: Likewise.
3721         * tests/test-futimens.c: Likewise.
3722         * tests/test-fwritable.c: Likewise.
3723         * tests/test-fwriting.c: Likewise.
3724         * tests/test-getcwd.c: Likewise.
3725         * tests/test-getdate.c: Likewise.
3726         * tests/test-getdelim.c: Likewise.
3727         * tests/test-getdtablesize.c: Likewise.
3728         * tests/test-getgroups.c: Likewise.
3729         * tests/test-getline.c: Likewise.
3730         * tests/test-getndelim2.c: Likewise.
3731         * tests/test-glob.c: Likewise.
3732         * tests/test-hash.c: Likewise.
3733         * tests/test-i-ring.c: Likewise.
3734         * tests/test-iconv-utf.c: Likewise.
3735         * tests/test-iconv.c: Likewise.
3736         * tests/test-idpriv-drop.c: Likewise.
3737         * tests/test-idpriv-droptemp.c: Likewise.
3738         * tests/test-inet_ntop.c: Likewise.
3739         * tests/test-inet_pton.c: Likewise.
3740         * tests/test-isblank.c: Likewise.
3741         * tests/test-isfinite.c: Likewise.
3742         * tests/test-isinf.c: Likewise.
3743         * tests/test-isnan.c: Likewise.
3744         * tests/test-isnand.h: Likewise.
3745         * tests/test-isnanf.h: Likewise.
3746         * tests/test-isnanl.h: Likewise.
3747         * tests/test-lchown.c: Likewise.
3748         * tests/test-ldexpl.c: Likewise.
3749         * tests/test-link.c: Likewise.
3750         * tests/test-linkat.c: Likewise.
3751         * tests/test-linked_list.c: Likewise.
3752         * tests/test-linkedhash_list.c: Likewise.
3753         * tests/test-localename.c: Likewise.
3754         * tests/test-lseek.c: Likewise.
3755         * tests/test-lstat.c: Likewise.
3756         * tests/test-mbmemcasecmp.c: Likewise.
3757         * tests/test-mbmemcasecoll.c: Likewise.
3758         * tests/test-mbrtowc.c: Likewise.
3759         * tests/test-mbscasecmp.c: Likewise.
3760         * tests/test-mbscasestr1.c: Likewise.
3761         * tests/test-mbscasestr2.c: Likewise.
3762         * tests/test-mbscasestr3.c: Likewise.
3763         * tests/test-mbscasestr4.c: Likewise.
3764         * tests/test-mbschr.c: Likewise.
3765         * tests/test-mbscspn.c: Likewise.
3766         * tests/test-mbsinit.c: Likewise.
3767         * tests/test-mbsncasecmp.c: Likewise.
3768         * tests/test-mbsnrtowcs.c: Likewise.
3769         * tests/test-mbspbrk.c: Likewise.
3770         * tests/test-mbspcasecmp.c: Likewise.
3771         * tests/test-mbsrchr.c: Likewise.
3772         * tests/test-mbsrtowcs.c: Likewise.
3773         * tests/test-mbsspn.c: Likewise.
3774         * tests/test-mbsstr1.c: Likewise.
3775         * tests/test-mbsstr2.c: Likewise.
3776         * tests/test-mbsstr3.c: Likewise.
3777         * tests/test-memchr.c: Likewise.
3778         * tests/test-memchr2.c: Likewise.
3779         * tests/test-memcmp.c: Likewise.
3780         * tests/test-memmem.c: Likewise.
3781         * tests/test-memrchr.c: Likewise.
3782         * tests/test-mkdir.c: Likewise.
3783         * tests/test-mkdirat.c: Likewise.
3784         * tests/test-mkfifo.c: Likewise.
3785         * tests/test-mkfifoat.c: Likewise.
3786         * tests/test-mknod.c: Likewise.
3787         * tests/test-nanosleep.c: Likewise.
3788         * tests/test-nl_langinfo.c: Likewise.
3789         * tests/test-obstack-printf.c: Likewise.
3790         * tests/test-open.c: Likewise.
3791         * tests/test-openat.c: Likewise.
3792         * tests/test-pipe-filter-gi1.c: Likewise.
3793         * tests/test-pipe-filter-gi2-main.c: Likewise.
3794         * tests/test-pipe-filter-ii1.c: Likewise.
3795         * tests/test-pipe-filter-ii2-main.c: Likewise.
3796         * tests/test-pipe2.c: Likewise.
3797         * tests/test-popen.h: Likewise.
3798         * tests/test-posixtm.c: Likewise.
3799         * tests/test-pread.c: Likewise.
3800         * tests/test-printf-frexp.c: Likewise.
3801         * tests/test-printf-frexpl.c: Likewise.
3802         * tests/test-printf-posix.c: Likewise.
3803         * tests/test-priv-set.c: Likewise.
3804         * tests/test-quotearg.c: Likewise.
3805         * tests/test-random_r.c: Likewise.
3806         * tests/test-rawmemchr.c: Likewise.
3807         * tests/test-rbtree_list.c: Likewise.
3808         * tests/test-rbtree_oset.c: Likewise.
3809         * tests/test-rbtreehash_list.c: Likewise.
3810         * tests/test-readlink.c: Likewise.
3811         * tests/test-remove.c: Likewise.
3812         * tests/test-rename.c: Likewise.
3813         * tests/test-renameat.c: Likewise.
3814         * tests/test-rmdir.c: Likewise.
3815         * tests/test-round1.c: Likewise.
3816         * tests/test-roundf1.c: Likewise.
3817         * tests/test-roundl.c: Likewise.
3818         * tests/test-safe-alloc.c: Likewise.
3819         * tests/test-sameacls.c: Likewise.
3820         * tests/test-set-mode-acl.c: Likewise.
3821         * tests/test-setenv.c: Likewise.
3822         * tests/test-sigaction.c: Likewise.
3823         * tests/test-signbit.c: Likewise.
3824         * tests/test-sleep.c: Likewise.
3825         * tests/test-snprintf-posix.c: Likewise.
3826         * tests/test-snprintf.c: Likewise.
3827         * tests/test-sprintf-posix.c: Likewise.
3828         * tests/test-stat-time.c: Likewise.
3829         * tests/test-stat.c: Likewise.
3830         * tests/test-strcasestr.c: Likewise.
3831         * tests/test-strchrnul.c: Likewise.
3832         * tests/test-strerror.c: Likewise.
3833         * tests/test-striconv.c: Likewise.
3834         * tests/test-striconveh.c: Likewise.
3835         * tests/test-striconveha.c: Likewise.
3836         * tests/test-strsignal.c: Likewise.
3837         * tests/test-strstr.c: Likewise.
3838         * tests/test-strtod.c: Likewise.
3839         * tests/test-strverscmp.c: Likewise.
3840         * tests/test-symlink.c: Likewise.
3841         * tests/test-symlinkat.c: Likewise.
3842         * tests/test-trunc1.c: Likewise.
3843         * tests/test-trunc2.c: Likewise.
3844         * tests/test-truncf1.c: Likewise.
3845         * tests/test-truncf2.c: Likewise.
3846         * tests/test-truncl.c: Likewise.
3847         * tests/test-uname.c: Likewise.
3848         * tests/test-unlink.c: Likewise.
3849         * tests/test-unlinkat.c: Likewise.
3850         * tests/test-unsetenv.c: Likewise.
3851         * tests/test-usleep.c: Likewise.
3852         * tests/test-utimens.c: Likewise.
3853         * tests/test-utimensat.c: Likewise.
3854         * tests/test-vasnprintf-posix.c: Likewise.
3855         * tests/test-vasnprintf-posix2.c: Likewise.
3856         * tests/test-vasnprintf.c: Likewise.
3857         * tests/test-vasprintf-posix.c: Likewise.
3858         * tests/test-vasprintf.c: Likewise.
3859         * tests/test-vdprintf-posix.c: Likewise.
3860         * tests/test-vfprintf-posix.c: Likewise.
3861         * tests/test-vprintf-posix.c: Likewise.
3862         * tests/test-vsnprintf-posix.c: Likewise.
3863         * tests/test-vsnprintf.c: Likewise.
3864         * tests/test-vsprintf-posix.c: Likewise.
3865         * tests/test-wcrtomb.c: Likewise.
3866         * tests/test-wcsnrtombs.c: Likewise.
3867         * tests/test-wcsrtombs.c: Likewise.
3868         * tests/test-wctype.c: Likewise.
3869         * tests/test-wcwidth.c: Likewise.
3870         * tests/test-xfprintf-posix.c: Likewise.
3871         * tests/test-xmemdup0.c: Likewise.
3872         * tests/test-xprintf-posix.c: Likewise.
3873         * tests/test-xvasprintf.c: Likewise.
3874         * tests/unicase/test-locale-language.c: Likewise.
3875         * tests/unicase/test-mapping-part1.h: Likewise.
3876         * tests/unicase/test-predicate-part1.h: Likewise.
3877         * tests/unicase/test-u8-casecmp.c: Likewise.
3878         * tests/unicase/test-u8-casecoll.c: Likewise.
3879         * tests/unicase/test-u8-casefold.c: Likewise.
3880         * tests/unicase/test-u8-is-cased.c: Likewise.
3881         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3882         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3883         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3884         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3885         * tests/unicase/test-u8-tolower.c: Likewise.
3886         * tests/unicase/test-u8-totitle.c: Likewise.
3887         * tests/unicase/test-u8-toupper.c: Likewise.
3888         * tests/unicase/test-u16-casecmp.c: Likewise.
3889         * tests/unicase/test-u16-casecoll.c: Likewise.
3890         * tests/unicase/test-u16-casefold.c: Likewise.
3891         * tests/unicase/test-u16-is-cased.c: Likewise.
3892         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3893         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3894         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3895         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3896         * tests/unicase/test-u16-tolower.c: Likewise.
3897         * tests/unicase/test-u16-totitle.c: Likewise.
3898         * tests/unicase/test-u16-toupper.c: Likewise.
3899         * tests/unicase/test-u32-casecmp.c: Likewise.
3900         * tests/unicase/test-u32-casecoll.c: Likewise.
3901         * tests/unicase/test-u32-casefold.c: Likewise.
3902         * tests/unicase/test-u32-is-cased.c: Likewise.
3903         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3904         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3905         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3906         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3907         * tests/unicase/test-u32-tolower.c: Likewise.
3908         * tests/unicase/test-u32-totitle.c: Likewise.
3909         * tests/unicase/test-u32-toupper.c: Likewise.
3910         * tests/unicase/test-ulc-casecmp.c: Likewise.
3911         * tests/unicase/test-ulc-casecoll.c: Likewise.
3912         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3913         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3914         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3915         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3916         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3917         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3918         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3919         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3920         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3921         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3922         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3923         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3924         * tests/unictype/test-bidi_byname.c: Likewise.
3925         * tests/unictype/test-bidi_name.c: Likewise.
3926         * tests/unictype/test-bidi_of.c: Likewise.
3927         * tests/unictype/test-bidi_test.c: Likewise.
3928         * tests/unictype/test-block_list.c: Likewise.
3929         * tests/unictype/test-block_of.c: Likewise.
3930         * tests/unictype/test-block_test.c: Likewise.
3931         * tests/unictype/test-categ_and.c: Likewise.
3932         * tests/unictype/test-categ_and_not.c: Likewise.
3933         * tests/unictype/test-categ_byname.c: Likewise.
3934         * tests/unictype/test-categ_name.c: Likewise.
3935         * tests/unictype/test-categ_none.c: Likewise.
3936         * tests/unictype/test-categ_of.c: Likewise.
3937         * tests/unictype/test-categ_or.c: Likewise.
3938         * tests/unictype/test-categ_test_withtable.c: Likewise.
3939         * tests/unictype/test-combining.c: Likewise.
3940         * tests/unictype/test-decdigit.c: Likewise.
3941         * tests/unictype/test-digit.c: Likewise.
3942         * tests/unictype/test-mirror.c: Likewise.
3943         * tests/unictype/test-numeric.c: Likewise.
3944         * tests/unictype/test-pr_byname.c: Likewise.
3945         * tests/unictype/test-pr_test.c: Likewise.
3946         * tests/unictype/test-predicate-part1.h: Likewise.
3947         * tests/unictype/test-scripts.c: Likewise.
3948         * tests/unictype/test-sy_c_ident.c: Likewise.
3949         * tests/unictype/test-sy_java_ident.c: Likewise.
3950         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3951         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3952         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3953         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3954         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3955         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3956         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3957         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3958         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3959         * tests/uninorm/test-compat-decomposition.c: Likewise.
3960         * tests/uninorm/test-composition.c: Likewise.
3961         * tests/uninorm/test-decomposing-form.c: Likewise.
3962         * tests/uninorm/test-decomposition.c: Likewise.
3963         * tests/uninorm/test-u8-nfc.c: Likewise.
3964         * tests/uninorm/test-u8-nfd.c: Likewise.
3965         * tests/uninorm/test-u8-nfkc.c: Likewise.
3966         * tests/uninorm/test-u8-nfkd.c: Likewise.
3967         * tests/uninorm/test-u8-normcmp.c: Likewise.
3968         * tests/uninorm/test-u8-normcoll.c: Likewise.
3969         * tests/uninorm/test-u16-nfc.c: Likewise.
3970         * tests/uninorm/test-u16-nfd.c: Likewise.
3971         * tests/uninorm/test-u16-nfkc.c: Likewise.
3972         * tests/uninorm/test-u16-nfkd.c: Likewise.
3973         * tests/uninorm/test-u16-normcmp.c: Likewise.
3974         * tests/uninorm/test-u16-normcoll.c: Likewise.
3975         * tests/uninorm/test-u32-nfc.c: Likewise.
3976         * tests/uninorm/test-u32-nfd.c: Likewise.
3977         * tests/uninorm/test-u32-nfkc.c: Likewise.
3978         * tests/uninorm/test-u32-nfkd.c: Likewise.
3979         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3980         * tests/uninorm/test-u32-normcmp.c: Likewise.
3981         * tests/uninorm/test-u32-normcoll.c: Likewise.
3982         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3983         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3984         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3985         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3986         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3987         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3988         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3989         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3990         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3991         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3992         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3993         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3994         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3995         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3996         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3997         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3998         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3999         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4000         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4001         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4002         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4003         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4004         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4005         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4006         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4007         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4008         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4009         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4010         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4011         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4012         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4013         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4014         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4015         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4016         * tests/uniwidth/test-u8-width.c: Likewise.
4017         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4018         * tests/uniwidth/test-u16-width.c: Likewise.
4019         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4020         * tests/uniwidth/test-u32-width.c: Likewise.
4021         * tests/uniwidth/test-uc_width.c: Likewise.
4022         * tests/uniwidth/test-uc_width2.c: Likewise.
4023         * modules/acl-tests (Files): Add tests/macros.h.
4024         * modules/areadlink-tests (Files): Likewise.
4025         * modules/areadlink-with-size-tests (Files): Likewise.
4026         * modules/areadlinkat-tests (Files): Likewise.
4027         * modules/areadlinkat-with-size-tests (Files): Likewise.
4028         * modules/argmatch-tests (Files): Likewise.
4029         * modules/argv-iter-tests (Files): Likewise.
4030         * modules/array-list-tests (Files): Likewise.
4031         * modules/array-mergesort-tests (Files): Likewise.
4032         * modules/array-oset-tests (Files): Likewise.
4033         * modules/avltree-list-tests (Files): Likewise.
4034         * modules/avltree-oset-tests (Files): Likewise.
4035         * modules/avltreehash-list-tests (Files): Likewise.
4036         * modules/base64-tests (Files): Likewise.
4037         * modules/binary-io-tests (Files): Likewise.
4038         * modules/bitrotate-tests (Files): Likewise.
4039         * modules/btowc-tests (Files): Likewise.
4040         * modules/byteswap-tests (Files): Likewise.
4041         * modules/c-ctype-tests (Files): Likewise.
4042         * modules/c-stack-tests (Files): Likewise.
4043         * modules/c-strcase-tests (Files): Likewise.
4044         * modules/c-strcasestr-tests (Files): Likewise.
4045         * modules/c-strstr-tests (Files): Likewise.
4046         * modules/canonicalize-lgpl-tests (Files): Likewise.
4047         * modules/canonicalize-tests (Files): Likewise.
4048         * modules/carray-list-tests (Files): Likewise.
4049         * modules/ceilf-tests (Files): Likewise.
4050         * modules/ceill-tests (Files): Likewise.
4051         * modules/chown-tests (Files): Likewise.
4052         * modules/cloexec-tests (Files): Likewise.
4053         * modules/copy-file-tests (Files): Likewise.
4054         * modules/count-one-bits-tests (Files): Likewise.
4055         * modules/dprintf-posix-tests (Files): Likewise.
4056         * modules/dup2-tests (Files): Likewise.
4057         * modules/dup3-tests (Files): Likewise.
4058         * modules/duplocale-tests (Files): Likewise.
4059         * modules/fbufmode-tests (Files): Likewise.
4060         * modules/fchdir-tests (Files): Likewise.
4061         * modules/fcntl-safer-tests (Files): Likewise.
4062         * modules/fcntl-tests (Files): Likewise.
4063         * modules/fdopendir-tests (Files): Likewise.
4064         * modules/fdutimensat-tests (Files): Likewise.
4065         * modules/fflush-tests (Files): Likewise.
4066         * modules/filevercmp-tests (Files): Likewise.
4067         * modules/flock-tests (Files): Likewise.
4068         * modules/floorf-tests (Files): Likewise.
4069         * modules/floorl-tests (Files): Likewise.
4070         * modules/fnmatch-tests (Files): Likewise.
4071         * modules/fopen-safer-tests (Files): Likewise.
4072         * modules/fopen-tests (Files): Likewise.
4073         * modules/fpending-tests (Files): Likewise.
4074         * modules/fprintf-posix-tests (Files): Likewise.
4075         * modules/fpurge-tests (Files): Likewise.
4076         * modules/freadable-tests (Files): Likewise.
4077         * modules/freadahead-tests (Files): Likewise.
4078         * modules/freading-tests (Files): Likewise.
4079         * modules/freadptr-tests (Files): Likewise.
4080         * modules/freadseek-tests (Files): Likewise.
4081         * modules/freopen-tests (Files): Likewise.
4082         * modules/frexp-nolibm-tests (Files): Likewise.
4083         * modules/frexp-tests (Files): Likewise.
4084         * modules/frexpl-nolibm-tests (Files): Likewise.
4085         * modules/frexpl-tests (Files): Likewise.
4086         * modules/fseek-tests (Files): Likewise.
4087         * modules/fseeko-tests (Files): Likewise.
4088         * modules/fstrcmp-tests (Files): Likewise.
4089         * modules/fsync-tests (Files): Likewise.
4090         * modules/ftell-tests (Files): Likewise.
4091         * modules/ftello-tests (Files): Likewise.
4092         * modules/func-tests (Files): Likewise.
4093         * modules/futimens-tests (Files): Likewise.
4094         * modules/fwritable-tests (Files): Likewise.
4095         * modules/fwriting-tests (Files): Likewise.
4096         * modules/getcwd-tests (Files): Likewise.
4097         * modules/getdate-tests (Files): Likewise.
4098         * modules/getdelim-tests (Files): Likewise.
4099         * modules/getdtablesize-tests (Files): Likewise.
4100         * modules/getgroups-tests (Files): Likewise.
4101         * modules/getline-tests (Files): Likewise.
4102         * modules/getndelim2-tests (Files): Likewise.
4103         * modules/glob-tests (Files): Likewise.
4104         * modules/hash-tests (Files): Likewise.
4105         * modules/i-ring-tests (Files): Likewise.
4106         * modules/iconv-tests (Files): Likewise.
4107         * modules/iconv_open-utf-tests (Files): Likewise.
4108         * modules/idpriv-drop-tests (Files): Likewise.
4109         * modules/idpriv-droptemp-tests (Files): Likewise.
4110         * modules/inet_ntop-tests (Files): Likewise.
4111         * modules/inet_pton-tests (Files): Likewise.
4112         * modules/isblank-tests (Files): Likewise.
4113         * modules/isfinite-tests (Files): Likewise.
4114         * modules/isinf-tests (Files): Likewise.
4115         * modules/isnan-tests (Files): Likewise.
4116         * modules/isnand-nolibm-tests (Files): Likewise.
4117         * modules/isnand-tests (Files): Likewise.
4118         * modules/isnanf-nolibm-tests (Files): Likewise.
4119         * modules/isnanf-tests (Files): Likewise.
4120         * modules/isnanl-nolibm-tests (Files): Likewise.
4121         * modules/isnanl-tests (Files): Likewise.
4122         * modules/lchown-tests (Files): Likewise.
4123         * modules/ldexpl-tests (Files): Likewise.
4124         * modules/link-tests (Files): Likewise.
4125         * modules/linkat-tests (Files): Likewise.
4126         * modules/linked-list-tests (Files): Likewise.
4127         * modules/linkedhash-list-tests (Files): Likewise.
4128         * modules/localename-tests (Files): Likewise.
4129         * modules/lseek-tests (Files): Likewise.
4130         * modules/lstat-tests (Files): Likewise.
4131         * modules/mbmemcasecmp-tests (Files): Likewise.
4132         * modules/mbmemcasecoll-tests (Files): Likewise.
4133         * modules/mbrtowc-tests (Files): Likewise.
4134         * modules/mbscasecmp-tests (Files): Likewise.
4135         * modules/mbscasestr-tests (Files): Likewise.
4136         * modules/mbschr-tests (Files): Likewise.
4137         * modules/mbscspn-tests (Files): Likewise.
4138         * modules/mbsinit-tests (Files): Likewise.
4139         * modules/mbsncasecmp-tests (Files): Likewise.
4140         * modules/mbsnrtowcs-tests (Files): Likewise.
4141         * modules/mbspbrk-tests (Files): Likewise.
4142         * modules/mbspcasecmp-tests (Files): Likewise.
4143         * modules/mbsrchr-tests (Files): Likewise.
4144         * modules/mbsrtowcs-tests (Files): Likewise.
4145         * modules/mbsspn-tests (Files): Likewise.
4146         * modules/mbsstr-tests (Files): Likewise.
4147         * modules/memchr-tests (Files): Likewise.
4148         * modules/memchr2-tests (Files): Likewise.
4149         * modules/memcmp-tests (Files): Likewise.
4150         * modules/memmem-tests (Files): Likewise.
4151         * modules/memrchr-tests (Files): Likewise.
4152         * modules/mkdir-tests (Files): Likewise.
4153         * modules/mkfifo-tests (Files): Likewise.
4154         * modules/mkfifoat-tests (Files): Likewise.
4155         * modules/mknod-tests (Files): Likewise.
4156         * modules/nanosleep-tests (Files): Likewise.
4157         * modules/nl_langinfo-tests (Files): Likewise.
4158         * modules/obstack-printf-tests (Files): Likewise.
4159         * modules/open-tests (Files): Likewise.
4160         * modules/openat-tests (Files): Likewise.
4161         * modules/pipe-filter-gi-tests (Files): Likewise.
4162         * modules/pipe-filter-ii-tests (Files): Likewise.
4163         * modules/pipe2-tests (Files): Likewise.
4164         * modules/popen-safer-tests (Files): Likewise.
4165         * modules/popen-tests (Files): Likewise.
4166         * modules/posixtm-tests (Files): Likewise.
4167         * modules/pread-tests (Files): Likewise.
4168         * modules/printf-frexp-tests (Files): Likewise.
4169         * modules/printf-frexpl-tests (Files): Likewise.
4170         * modules/printf-posix-tests (Files): Likewise.
4171         * modules/priv-set-tests (Files): Likewise.
4172         * modules/quotearg-tests (Files): Likewise.
4173         * modules/random_r-tests (Files): Likewise.
4174         * modules/rawmemchr-tests (Files): Likewise.
4175         * modules/rbtree-list-tests (Files): Likewise.
4176         * modules/rbtree-oset-tests (Files): Likewise.
4177         * modules/rbtreehash-list-tests (Files): Likewise.
4178         * modules/readlink-tests (Files): Likewise.
4179         * modules/remove-tests (Files): Likewise.
4180         * modules/rename-tests (Files): Likewise.
4181         * modules/renameat-tests (Files): Likewise.
4182         * modules/rmdir-tests (Files): Likewise.
4183         * modules/round-tests (Files): Likewise.
4184         * modules/roundf-tests (Files): Likewise.
4185         * modules/roundl-tests (Files): Likewise.
4186         * modules/safe-alloc-tests (Files): Likewise.
4187         * modules/setenv-tests (Files): Likewise.
4188         * modules/sigaction-tests (Files): Likewise.
4189         * modules/signbit-tests (Files): Likewise.
4190         * modules/sleep-tests (Files): Likewise.
4191         * modules/snprintf-posix-tests (Files): Likewise.
4192         * modules/snprintf-tests (Files): Likewise.
4193         * modules/sprintf-posix-tests (Files): Likewise.
4194         * modules/stat-tests (Files): Likewise.
4195         * modules/stat-time-tests (Files): Likewise.
4196         * modules/strcasestr-tests (Files): Likewise.
4197         * modules/strchrnul-tests (Files): Likewise.
4198         * modules/strerror-tests (Files): Likewise.
4199         * modules/striconv-tests (Files): Likewise.
4200         * modules/striconveh-tests (Files): Likewise.
4201         * modules/striconveha-tests (Files): Likewise.
4202         * modules/strsignal-tests (Files): Likewise.
4203         * modules/strstr-tests (Files): Likewise.
4204         * modules/strtod-tests (Files): Likewise.
4205         * modules/strverscmp-tests (Files): Likewise.
4206         * modules/symlink-tests (Files): Likewise.
4207         * modules/symlinkat-tests (Files): Likewise.
4208         * modules/trunc-tests (Files): Likewise.
4209         * modules/truncf-tests (Files): Likewise.
4210         * modules/truncl-tests (Files): Likewise.
4211         * modules/uname-tests (Files): Likewise.
4212         * modules/unicase/cased-tests (Files): Likewise.
4213         * modules/unicase/ignorable-tests (Files): Likewise.
4214         * modules/unicase/locale-language-tests (Files): Likewise.
4215         * modules/unicase/tolower-tests (Files): Likewise.
4216         * modules/unicase/totitle-tests (Files): Likewise.
4217         * modules/unicase/toupper-tests (Files): Likewise.
4218         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4219         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4220         * modules/unicase/u8-casefold-tests (Files): Likewise.
4221         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4222         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4223         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4224         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4225         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4226         * modules/unicase/u8-tolower-tests (Files): Likewise.
4227         * modules/unicase/u8-totitle-tests (Files): Likewise.
4228         * modules/unicase/u8-toupper-tests (Files): Likewise.
4229         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4230         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4231         * modules/unicase/u16-casefold-tests (Files): Likewise.
4232         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4233         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4234         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4235         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4236         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4237         * modules/unicase/u16-tolower-tests (Files): Likewise.
4238         * modules/unicase/u16-totitle-tests (Files): Likewise.
4239         * modules/unicase/u16-toupper-tests (Files): Likewise.
4240         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4241         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4242         * modules/unicase/u32-casefold-tests (Files): Likewise.
4243         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4244         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4245         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4246         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4247         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4248         * modules/unicase/u32-tolower-tests (Files): Likewise.
4249         * modules/unicase/u32-totitle-tests (Files): Likewise.
4250         * modules/unicase/u32-toupper-tests (Files): Likewise.
4251         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4252         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4253         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4254         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4255         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4256         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4257         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4258         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4259         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4260         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4261         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4262         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4263         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4264         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4265         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4266         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4267         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4268         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4269         * modules/unictype/block-list-tests (Files): Likewise.
4270         * modules/unictype/block-of-tests (Files): Likewise.
4271         * modules/unictype/block-test-tests (Files): Likewise.
4272         * modules/unictype/category-C-tests (Files): Likewise.
4273         * modules/unictype/category-Cc-tests (Files): Likewise.
4274         * modules/unictype/category-Cf-tests (Files): Likewise.
4275         * modules/unictype/category-Cn-tests (Files): Likewise.
4276         * modules/unictype/category-Co-tests (Files): Likewise.
4277         * modules/unictype/category-Cs-tests (Files): Likewise.
4278         * modules/unictype/category-L-tests (Files): Likewise.
4279         * modules/unictype/category-Ll-tests (Files): Likewise.
4280         * modules/unictype/category-Lm-tests (Files): Likewise.
4281         * modules/unictype/category-Lo-tests (Files): Likewise.
4282         * modules/unictype/category-Lt-tests (Files): Likewise.
4283         * modules/unictype/category-Lu-tests (Files): Likewise.
4284         * modules/unictype/category-M-tests (Files): Likewise.
4285         * modules/unictype/category-Mc-tests (Files): Likewise.
4286         * modules/unictype/category-Me-tests (Files): Likewise.
4287         * modules/unictype/category-Mn-tests (Files): Likewise.
4288         * modules/unictype/category-N-tests (Files): Likewise.
4289         * modules/unictype/category-Nd-tests (Files): Likewise.
4290         * modules/unictype/category-Nl-tests (Files): Likewise.
4291         * modules/unictype/category-No-tests (Files): Likewise.
4292         * modules/unictype/category-P-tests (Files): Likewise.
4293         * modules/unictype/category-Pc-tests (Files): Likewise.
4294         * modules/unictype/category-Pd-tests (Files): Likewise.
4295         * modules/unictype/category-Pe-tests (Files): Likewise.
4296         * modules/unictype/category-Pf-tests (Files): Likewise.
4297         * modules/unictype/category-Pi-tests (Files): Likewise.
4298         * modules/unictype/category-Po-tests (Files): Likewise.
4299         * modules/unictype/category-Ps-tests (Files): Likewise.
4300         * modules/unictype/category-S-tests (Files): Likewise.
4301         * modules/unictype/category-Sc-tests (Files): Likewise.
4302         * modules/unictype/category-Sk-tests (Files): Likewise.
4303         * modules/unictype/category-Sm-tests (Files): Likewise.
4304         * modules/unictype/category-So-tests (Files): Likewise.
4305         * modules/unictype/category-Z-tests (Files): Likewise.
4306         * modules/unictype/category-Zl-tests (Files): Likewise.
4307         * modules/unictype/category-Zp-tests (Files): Likewise.
4308         * modules/unictype/category-Zs-tests (Files): Likewise.
4309         * modules/unictype/category-and-not-tests (Files): Likewise.
4310         * modules/unictype/category-and-tests (Files): Likewise.
4311         * modules/unictype/category-byname-tests (Files): Likewise.
4312         * modules/unictype/category-name-tests (Files): Likewise.
4313         * modules/unictype/category-none-tests (Files): Likewise.
4314         * modules/unictype/category-of-tests (Files): Likewise.
4315         * modules/unictype/category-or-tests (Files): Likewise.
4316         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4317         * modules/unictype/combining-class-tests (Files): Likewise.
4318         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4319         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4320         * modules/unictype/ctype-blank-tests (Files): Likewise.
4321         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4322         * modules/unictype/ctype-digit-tests (Files): Likewise.
4323         * modules/unictype/ctype-graph-tests (Files): Likewise.
4324         * modules/unictype/ctype-lower-tests (Files): Likewise.
4325         * modules/unictype/ctype-print-tests (Files): Likewise.
4326         * modules/unictype/ctype-punct-tests (Files): Likewise.
4327         * modules/unictype/ctype-space-tests (Files): Likewise.
4328         * modules/unictype/ctype-upper-tests (Files): Likewise.
4329         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4330         * modules/unictype/decimal-digit-tests (Files): Likewise.
4331         * modules/unictype/digit-tests (Files): Likewise.
4332         * modules/unictype/mirror-tests (Files): Likewise.
4333         * modules/unictype/numeric-tests (Files): Likewise.
4334         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4335         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4336         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4337         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4338         Likewise.
4339         * modules/unictype/property-bidi-block-separator-tests (Files):
4340         Likewise.
4341         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4342         Likewise.
4343         * modules/unictype/property-bidi-common-separator-tests (Files):
4344         Likewise.
4345         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4346         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4347         Likewise.
4348         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4349         Likewise.
4350         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4351         Likewise.
4352         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4353         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4354         Likewise.
4355         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4356         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4357         Likewise.
4358         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4359         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4360         * modules/unictype/property-bidi-segment-separator-tests (Files):
4361         Likewise.
4362         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4363         * modules/unictype/property-byname-tests (Files): Likewise.
4364         * modules/unictype/property-combining-tests (Files): Likewise.
4365         * modules/unictype/property-composite-tests (Files): Likewise.
4366         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4367         * modules/unictype/property-dash-tests (Files): Likewise.
4368         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4369         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4370         Likewise.
4371         * modules/unictype/property-deprecated-tests (Files): Likewise.
4372         * modules/unictype/property-diacritic-tests (Files): Likewise.
4373         * modules/unictype/property-extender-tests (Files): Likewise.
4374         * modules/unictype/property-format-control-tests (Files): Likewise.
4375         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4376         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4377         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4378         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4379         * modules/unictype/property-hyphen-tests (Files): Likewise.
4380         * modules/unictype/property-id-continue-tests (Files): Likewise.
4381         * modules/unictype/property-id-start-tests (Files): Likewise.
4382         * modules/unictype/property-ideographic-tests (Files): Likewise.
4383         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4384         * modules/unictype/property-ids-trinary-operator-tests (Files):
4385         Likewise.
4386         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4387         * modules/unictype/property-iso-control-tests (Files): Likewise.
4388         * modules/unictype/property-join-control-tests (Files): Likewise.
4389         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4390         * modules/unictype/property-line-separator-tests (Files): Likewise.
4391         * modules/unictype/property-logical-order-exception-tests (Files):
4392         Likewise.
4393         * modules/unictype/property-lowercase-tests (Files): Likewise.
4394         * modules/unictype/property-math-tests (Files): Likewise.
4395         * modules/unictype/property-non-break-tests (Files): Likewise.
4396         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4397         * modules/unictype/property-numeric-tests (Files): Likewise.
4398         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4399         * modules/unictype/property-other-default-ignorable-code-point-tests
4400         (Files): Likewise.
4401         * modules/unictype/property-other-grapheme-extend-tests (Files):
4402         Likewise.
4403         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4404         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4405         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4406         * modules/unictype/property-other-math-tests (Files): Likewise.
4407         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4408         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4409         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4410         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4411         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4412         * modules/unictype/property-private-use-tests (Files): Likewise.
4413         * modules/unictype/property-punctuation-tests (Files): Likewise.
4414         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4415         * modules/unictype/property-radical-tests (Files): Likewise.
4416         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4417         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4418         * modules/unictype/property-space-tests (Files): Likewise.
4419         * modules/unictype/property-terminal-punctuation-tests (Files):
4420         Likewise.
4421         * modules/unictype/property-test-tests (Files): Likewise.
4422         * modules/unictype/property-titlecase-tests (Files): Likewise.
4423         * modules/unictype/property-unassigned-code-value-tests (Files):
4424         Likewise.
4425         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4426         * modules/unictype/property-uppercase-tests (Files): Likewise.
4427         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4428         * modules/unictype/property-white-space-tests (Files): Likewise.
4429         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4430         * modules/unictype/property-xid-start-tests (Files): Likewise.
4431         * modules/unictype/property-zero-width-tests (Files): Likewise.
4432         * modules/unictype/scripts-tests (Files): Likewise.
4433         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4434         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4435         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4436         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4437         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4438         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4439         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4440         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4441         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4442         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4443         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4444         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4445         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4446         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4447         * modules/uninorm/composition-tests (Files): Likewise.
4448         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4449         * modules/uninorm/decomposition-tests (Files): Likewise.
4450         * modules/uninorm/filter-tests (Files): Likewise.
4451         * modules/uninorm/nfc-tests (Files): Likewise.
4452         * modules/uninorm/nfd-tests (Files): Likewise.
4453         * modules/uninorm/nfkc-tests (Files): Likewise.
4454         * modules/uninorm/nfkd-tests (Files): Likewise.
4455         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4456         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4457         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4458         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4459         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4460         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4461         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4462         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4463         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4464         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4465         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4466         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4467         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4468         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4469         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4470         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4471         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4472         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4473         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4474         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4475         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4476         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4477         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4478         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4479         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4480         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4481         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4482         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4483         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4484         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4485         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4486         * modules/uniwidth/u8-width-tests (Files): Likewise.
4487         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4488         * modules/uniwidth/u16-width-tests (Files): Likewise.
4489         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4490         * modules/uniwidth/u32-width-tests (Files): Likewise.
4491         * modules/uniwidth/width-tests (Files): Likewise.
4492         * modules/unlink-tests (Files): Likewise.
4493         * modules/unsetenv-tests (Files): Likewise.
4494         * modules/usleep-tests (Files): Likewise.
4495         * modules/utimens-tests (Files): Likewise.
4496         * modules/utimensat-tests (Files): Likewise.
4497         * modules/vasnprintf-posix-tests (Files): Likewise.
4498         * modules/vasnprintf-tests (Files): Likewise.
4499         * modules/vasprintf-posix-tests (Files): Likewise.
4500         * modules/vasprintf-tests (Files): Likewise.
4501         * modules/vdprintf-posix-tests (Files): Likewise.
4502         * modules/vfprintf-posix-tests (Files): Likewise.
4503         * modules/vprintf-posix-tests (Files): Likewise.
4504         * modules/vsnprintf-posix-tests (Files): Likewise.
4505         * modules/vsnprintf-tests (Files): Likewise.
4506         * modules/vsprintf-posix-tests (Files): Likewise.
4507         * modules/wcrtomb-tests (Files): Likewise.
4508         * modules/wcsnrtombs-tests (Files): Likewise.
4509         * modules/wcsrtombs-tests (Files): Likewise.
4510         * modules/wctype-tests (Files): Likewise.
4511         * modules/wcwidth-tests (Files): Likewise.
4512         * modules/xmemdup0-tests (Files): Likewise.
4513         * modules/xprintf-posix-tests (Files): Likewise.
4514         * modules/xvasprintf-tests (Files): Likewise.
4515
4516 2009-12-24  Eric Blake  <ebb9@byu.net>
4517
4518         test-nanosleep: fix typo
4519         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4520         patch.
4521         Reported by Bruno Haible.
4522
4523 2009-12-24  Bruno Haible  <bruno@clisp.org>
4524
4525         Reduce namespace pollution on glibc systems.
4526         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4527         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4528         systems.
4529         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4530         <getopt.h> on glibc systems.
4531         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4532         systems.
4533         * lib/fcntl.c: Include <unistd.h> here instead.
4534
4535 2009-12-24  Bruno Haible  <bruno@clisp.org>
4536
4537         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4538
4539 2009-12-24  Eric Blake  <ebb9@byu.net>
4540
4541         tests: add signature checks
4542         * tests/signature.h (SIGNATURE_CHECK): New file.
4543         * modules/atexit-tests (Files): Use it.
4544         * modules/btowc-tests (Files): Likewise.
4545         * modules/canonicalize-lgpl-tests (Files): Likewise.
4546         * modules/ceilf-tests (Files): Likewise.
4547         * modules/ceill-tests (Files): Likewise.
4548         * modules/chown-tests (Files): Likewise.
4549         * modules/dprintf-posix-tests (Files): Likewise.
4550         * modules/dup2-tests (Files): Likewise.
4551         * modules/dup3-tests (Files): Likewise.
4552         * modules/duplocale-tests (Files): Likewise.
4553         * modules/fchdir-tests (Files): Likewise.
4554         * modules/fcntl-tests (Files): Likewise.
4555         * modules/fdopendir-tests (Files): Likewise.
4556         * modules/fflush-tests (Files): Likewise.
4557         * modules/flock-tests (Files): Likewise.
4558         * modules/floorf-tests (Files): Likewise.
4559         * modules/floorl-tests (Files): Likewise.
4560         * modules/fnmatch-tests (Files): Likewise.
4561         * modules/fopen-tests (Files): Likewise.
4562         * modules/fprintf-posix-tests (Files): Likewise.
4563         * modules/freopen-tests (Files): Likewise.
4564         * modules/frexp-nolibm-tests (Files): Likewise.
4565         * modules/frexp-tests (Files): Likewise.
4566         * modules/frexpl-nolibm-tests (Files): Likewise.
4567         * modules/frexpl-tests (Files): Likewise.
4568         * modules/fseek-tests (Files): Likewise.
4569         * modules/fseeko-tests (Files): Likewise.
4570         * modules/fsync-tests (Files): Likewise.
4571         * modules/ftell-tests (Files): Likewise.
4572         * modules/ftello-tests (Files): Likewise.
4573         * modules/futimens-tests (Files): Likewise.
4574         * modules/getaddrinfo-tests (Files): Likewise.
4575         * modules/getcwd-tests (Files): Likewise.
4576         * modules/getdelim-tests (Files): Likewise.
4577         * modules/getdtablesize-tests (Files): Likewise.
4578         * modules/getgroups-tests (Files): Likewise.
4579         * modules/gethostname-tests (Files): Likewise.
4580         * modules/getline-tests (Files): Likewise.
4581         * modules/getopt-posix-tests (Files): Likewise.
4582         * modules/gettimeofday-tests (Files): Likewise.
4583         * modules/glob-tests (Files): Likewise.
4584         * modules/iconv-tests (Files): Likewise.
4585         * modules/inet_ntop-tests (Files): Likewise.
4586         * modules/inet_pton-tests (Files): Likewise.
4587         * modules/isblank-tests (Files): Likewise.
4588         * modules/lchown-tests (Files): Likewise.
4589         * modules/ldexpl-tests (Files): Likewise.
4590         * modules/link-tests (Files): Likewise.
4591         * modules/linkat-tests (Files): Likewise.
4592         * modules/lseek-tests (Files): Likewise.
4593         * modules/lstat-tests (Files): Likewise.
4594         * modules/mbrtowc-tests (Files): Likewise.
4595         * modules/mbsinit-tests (Files): Likewise.
4596         * modules/mbsnrtowcs-tests (Files): Likewise.
4597         * modules/mbsrtowcs-tests (Files): Likewise.
4598         * modules/memchr-tests (Files): Likewise.
4599         * modules/memcmp-tests (Files): Likewise.
4600         * modules/memmem-tests (Files): Likewise.
4601         * modules/memrchr-tests (Files): Likewise.
4602         * modules/mkdir-tests (Files): Likewise.
4603         * modules/mkfifo-tests (Files): Likewise.
4604         * modules/mkfifoat-tests (Files): Likewise.
4605         * modules/mknod-tests (Files): Likewise.
4606         * modules/nanosleep-tests (Files): Likewise.
4607         * modules/nl_langinfo-tests (Files): Likewise.
4608         * modules/obstack-printf-tests (Files): Likewise.
4609         * modules/open-tests (Files): Likewise.
4610         * modules/openat-tests (Files): Likewise.
4611         * modules/perror-tests (Files): Likewise.
4612         * modules/pipe2-tests (Files): Likewise.
4613         * modules/poll-tests (Files): Likewise.
4614         * modules/popen-tests (Files): Likewise.
4615         * modules/posix_spawn-tests (Files): Likewise.
4616         * modules/posix_spawnp-tests (Files): Likewise.
4617         * modules/pread-tests (Files): Likewise.
4618         * modules/printf-posix-tests (Files): Likewise.
4619         * modules/pty-tests (Files): Likewise.
4620         * modules/random_r-tests (Files): Likewise.
4621         * modules/rawmemchr-tests (Files): Likewise.
4622         * modules/readlink-tests (Files): Likewise.
4623         * modules/remove-tests (Files): Likewise.
4624         * modules/rename-tests (Files): Likewise.
4625         * modules/renameat-tests (Files): Likewise.
4626         * modules/rmdir-tests (Files): Likewise.
4627         * modules/round-tests (Files): Likewise.
4628         * modules/roundf-tests (Files): Likewise.
4629         * modules/roundl-tests (Files): Likewise.
4630         * modules/select-tests (Files): Likewise.
4631         * modules/setenv-tests (Files): Likewise.
4632         * modules/sigaction-tests (Files): Likewise.
4633         * modules/sleep-tests (Files): Likewise.
4634         * modules/snprintf-posix-tests (Files): Likewise.
4635         * modules/snprintf-tests (Files): Likewise.
4636         * modules/sprintf-posix-tests (Files): Likewise.
4637         * modules/stat-tests (Files): Likewise.
4638         * modules/strcasestr-tests (Files): Likewise.
4639         * modules/strchrnul-tests (Files): Likewise.
4640         * modules/strerror-tests (Files): Likewise.
4641         * modules/strsignal-tests (Files): Likewise.
4642         * modules/strstr-tests (Files): Likewise.
4643         * modules/strtod-tests (Files): Likewise.
4644         * modules/strverscmp-tests (Files): Likewise.
4645         * modules/symlink-tests (Files): Likewise.
4646         * modules/symlinkat-tests (Files): Likewise.
4647         * modules/times-tests (Files): Likewise.
4648         * modules/trunc-tests (Files): Likewise.
4649         * modules/truncf-tests (Files): Likewise.
4650         * modules/truncl-tests (Files): Likewise.
4651         * modules/tsearch-tests (Files): Likewise.
4652         * modules/uname-tests (Files): Likewise.
4653         * modules/unlink-tests (Files): Likewise.
4654         * modules/unsetenv-tests (Files): Likewise.
4655         * modules/usleep-tests (Files): Likewise.
4656         * modules/utimensat-tests (Files): Likewise.
4657         * modules/vasprintf-tests (Files): Likewise.
4658         * modules/vdprintf-posix-tests (Files): Likewise.
4659         * modules/vfprintf-posix-tests (Files): Likewise.
4660         * modules/vprintf-posix-tests (Files): Likewise.
4661         * modules/vsnprintf-posix-tests (Files): Likewise.
4662         * modules/vsnprintf-tests (Files): Likewise.
4663         * modules/vsprintf-posix-tests (Files): Likewise.
4664         * modules/wcrtomb-tests (Files): Likewise.
4665         * modules/wcsnrtombs-tests (Files): Likewise.
4666         * modules/wcsrtombs-tests (Files): Likewise.
4667         * modules/wcwidth-tests (Files): Likewise.
4668         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4669         * tests/test-isinf.c (isinf): Likewise.
4670         * tests/test-isnan.c (isnan): Likewise.
4671         * tests/test-signbit.c (signbit): Likewise.
4672         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4673         declaration, either as macro or with correct signature.
4674         (select): Ensure function under test is declared with correct
4675         signature in correct header.
4676         * tests/test-atexit.c (atexit): Likewise.
4677         * tests/test-btowc.c (btowc): Likewise.
4678         * tests/test-canonicalize-lgpl.c (realpath)
4679         (canonicalize_file_name): Likewise.
4680         * tests/test-ceilf1.c (ceilf): Likewise.
4681         * tests/test-ceill.c (ceill): Likewise.
4682         * tests/test-chown.c (chown): Likewise.
4683         * tests/test-dprintf-posix.c (dprintf): Likewise.
4684         * tests/test-dup2.c (dup2): Likewise.
4685         * tests/test-dup3.c (dup3): Likewise.
4686         * tests/test-duplocale.c (duplocale): Likewise.
4687         * tests/test-fchdir.c (fchdir): Likewise.
4688         * tests/test-fchownat.c (fchownat): Likewise.
4689         * tests/test-fcntl.c (fcntl): Likewise.
4690         * tests/test-fdopendir.c (fdopendir): Likewise.
4691         * tests/test-fflush.c (fflush): Likewise.
4692         * tests/test-flock.c (flock): Likewise.
4693         * tests/test-floorf1.c (floorf): Likewise.
4694         * tests/test-floorl.c (floorl): Likewise.
4695         * tests/test-fnmatch.c (fnmatch): Likewise.
4696         * tests/test-fopen.c (fopen): Likewise.
4697         * tests/test-fprintf-posix.c (fprintf): Likewise.
4698         * tests/test-freopen.c (freopen): Likewise.
4699         * tests/test-frexp.c (frexp): Likewise.
4700         * tests/test-frexpl.c (frexpl): Likewise.
4701         * tests/test-fseek.c (fseek): Likewise.
4702         * tests/test-fseeko.c (fseeko): Likewise.
4703         * tests/test-fstatat.c (fstatat): Likewise.
4704         * tests/test-fsync.c (fsync): Likewise.
4705         * tests/test-ftell.c (ftell): Likewise.
4706         * tests/test-ftello.c (ftello): Likewise.
4707         * tests/test-futimens.c (futimens): Likewise.
4708         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4709         (gai_strerror): Likewise.
4710         * tests/test-getcwd.c (getcwd): Likewise.
4711         * tests/test-getdelim.c (getdelim): Likewise.
4712         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4713         * tests/test-getgroups.c (getgroups): Likewise.
4714         * tests/test-gethostname.c (gethostname): Likewise.
4715         * tests/test-getline.c (getline): Likewise.
4716         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4717         Likewise.
4718         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4719         * tests/test-glob.c (glob, globfree): Likewise.
4720         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4721         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4722         * tests/test-inet_pton.c (inet_pton): Likewise.
4723         * tests/test-isblank.c (isblank): Likewise.
4724         * tests/test-lchown.c (lchown): Likewise.
4725         * tests/test-ldexpl.c (ldexpl): Likewise.
4726         * tests/test-link.c (link): Likewise.
4727         * tests/test-linkat.c (linkat): Likewise.
4728         * tests/test-lseek.c (lseek): Likewise.
4729         * tests/test-lstat.c (lstat): Likewise.
4730         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4731         * tests/test-mbsinit.c (mbsinit): Likewise.
4732         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4733         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4734         * tests/test-memchr.c (memchr): Likewise.
4735         * tests/test-memcmp.c (memcmp): Likewise.
4736         * tests/test-memmem.c (memmem): Likewise.
4737         * tests/test-memrchr.c (memrchr): Likewise.
4738         * tests/test-mkdir.c (mkdir): Likewise.
4739         * tests/test-mkdirat.c (mkdirat): Likewise.
4740         * tests/test-mkfifo.c (mkfifo): Likewise.
4741         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4742         * tests/test-mknod.c (mknod): Likewise.
4743         * tests/test-nanosleep.c (nanosleep): Likewise.
4744         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4745         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4746         Likewise.
4747         * tests/test-open.c (open): Likewise.
4748         * tests/test-openat.c (openat): Likewise.
4749         * tests/test-perror.c (perror): Likewise.
4750         * tests/test-pipe2.c (pipe2): Likewise.
4751         * tests/test-poll.c (poll): Likewise.
4752         * tests/test-popen.c (popen, pclose): Likewise.
4753         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4754         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4755         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4756         (posix_spawn_file_actions_destroy)
4757         (posix_spawn_file_actions_addclose)
4758         (posix_spawn_file_actions_addopen)
4759         (posix_spawn_file_actions_adddup2): Likewise.
4760         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4761         * tests/test-pread.c (pread): Likewise.
4762         * tests/test-printf-posix.c (printf): Likewise.
4763         * tests/test-pty.c (openpty, forkpty): Likewise.
4764         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4765         (random_r): Likewise.
4766         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4767         * tests/test-readlink.c (readlink): Likewise.
4768         * tests/test-remove.c (remove): Likewise.
4769         * tests/test-rename.c (rename): Likewise.
4770         * tests/test-renameat.c (renameat): Likewise.
4771         * tests/test-rmdir.c (rmdir): Likewise.
4772         * tests/test-round1.c (round): Likewise.
4773         * tests/test-roundf1.c (roundf): Likewise.
4774         * tests/test-roundl.c (roundl): Likewise.
4775         * tests/test-setenv.c (setenv): Likewise.
4776         * tests/test-sigaction.c (sigaction): Likewise.
4777         * tests/test-sleep.c (sleep): Likewise.
4778         * tests/test-snprintf.c (snprintf): Likewise.
4779         * tests/test-sprintf-posix.c (sprintf): Likewise.
4780         * tests/test-stat.c (stat): Likewise.
4781         * tests/test-stpncpy.c (stpncpy): Likewise.
4782         * tests/test-strcasestr.c (strcasestr): Likewise.
4783         * tests/test-strchrnul.c (strchrnul): Likewise.
4784         * tests/test-strerror.c (strerror): Likewise.
4785         * tests/test-strsignal.c (strsignal): Likewise.
4786         * tests/test-strstr.c (strstr): Likewise.
4787         * tests/test-strtod.c (strtod): Likewise.
4788         * tests/test-strverscmp.c (strverscmp): Likewise.
4789         * tests/test-symlink.c (symlink): Likewise.
4790         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4791         * tests/test-times.c (times): Likewise.
4792         * tests/test-trunc1.c (trunc): Likewise.
4793         * tests/test-truncf1.c (truncf): Likewise.
4794         * tests/test-truncl.c (truncl): Likewise.
4795         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4796         Likewise.
4797         * tests/test-uname.c (uname): Likewise.
4798         * tests/test-unlink.c (unlink): Likewise.
4799         * tests/test-unlinkat.c (unlinkat): Likewise.
4800         * tests/test-unsetenv.c (unsetenv): Likewise.
4801         * tests/test-usleep.c (usleep): Likewise.
4802         * tests/test-utimensat.c (utimensat): Likewise.
4803         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4804         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4805         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4806         * tests/test-vprintf-posix.c (vprintf): Likewise.
4807         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4808         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4809         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4810         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4811         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4812         * tests/test-wcwidth.c (wcwidth): Likewise.
4813
4814         build: pull in conditional headers during GNULIB_POSIXCHECK
4815         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4816         definitions from any conditionally-included headers.
4817         * lib/stdlib.in.h (includes): Likewise.
4818         * lib/unistd.in.h (includes): Likewise.
4819
4820 2009-12-24  Bruno Haible  <bruno@clisp.org>
4821
4822         * tests/test-argv-iter.c: Include header file being tested immediately
4823         after config.h.
4824         * tests/test-base64.c: Likewise.
4825         * tests/test-flock.c: Likewise.
4826         * tests/test-fsync.c: Likewise.
4827         * tests/test-getdate.c: Likewise.
4828         * tests/test-getndelim2.c: Likewise.
4829         * tests/test-isfinite.c: Likewise.
4830         * tests/test-isinf.c: Likewise.
4831         * tests/test-strerror.c: Likewise.
4832         * tests/test-strsignal.c: Likewise.
4833
4834 2009-12-23  Eric Blake  <ebb9@byu.net>
4835
4836         unistd: work around cygwin bug
4837         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4838         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4839         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4840
4841 2009-12-23  Bruno Haible  <bruno@clisp.org>
4842
4843         localename: More tests.
4844         * tests/test-localename.c (SIZEOF): New macro.
4845         (categories): New variable.
4846         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4847         test_locale_name_default): Add test w.r.t. thread locale.
4848         (test_locale_name_thread): New function.
4849         (main): Invoke it.
4850
4851         localename: Make aware of thread locale.
4852         * lib/localename.h (gl_locale_name_thread): New declaration.
4853         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4854         behaviour with respect to thread locale.
4855         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4856         <langinfo.h>, glthread/lock.h.
4857         (SIZE_BITS): New macro.
4858         (string_hash): New function.
4859         (struct hash_node): New type.
4860         (HASH_TABLE_SIZE): New macro.
4861         (struniq_hash_table, struniq_lock): New variables.
4862         (struniq): New function.
4863         (gl_locale_name_thread): New function.
4864         (gl_locale_name): Invoke it.
4865         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4866         * modules/localename (Depends-on): Add lock.
4867         Reported by Mike Gran <spk121@yahoo.com>.
4868
4869 2009-12-23  Eric Blake  <ebb9@byu.net>
4870
4871         va-args: new module
4872         * modules/va-args: New file.
4873         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4874         * MODULES.html.sh (Core language properties): Mention it.
4875
4876         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4877         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4878         named alias for __attribute__((__unused__)).
4879         * lib/chown.c: Update client.
4880         * lib/fchmodat.c: Likewise.
4881         * lib/fts.c: Likewise.
4882         * lib/getdate.y: Likewise.
4883         * lib/getgroups.c: Likewise.
4884         * lib/getopt.c: Likewise.
4885         * lib/getugroups.c: Likewise.
4886         * lib/mkdir.c: Likewise.
4887         * lib/mkfifo.c: Likewise.
4888         * lib/mkfifoat.c: Likewise.
4889         * lib/mknod.c: Likewise.
4890         * lib/mknodat.c: Likewise.
4891         * lib/readlink.c: Likewise.
4892         * lib/se-context.in.h: Likewise.
4893         * lib/se-selinux.in.h: Likewise.
4894         * lib/sockets.c: Likewise.
4895         * lib/symlink.c: Likewise.
4896         * lib/symlinkat.c: Likewise.
4897         * lib/unicodeio.c: Likewise.
4898         * lib/unistr.h: Likewise.
4899         * tests/test-areadlink.c: Likewise.
4900         * tests/test-areadlinkat.c: Likewise.
4901         * tests/test-filenamecat.c: Likewise.
4902         * tests/test-fseeko.c: Likewise.
4903         * tests/test-ftello.c: Likewise.
4904         * tests/test-getdate.c: Likewise.
4905         * tests/test-getgroups.c: Likewise.
4906         * tests/test-gethostname.c: Likewise.
4907         * tests/test-quotearg.c: Likewise.
4908         * tests/test-version-etc.c: Likewise.
4909         * tests/test-xalloc-die.c: Likewise.
4910         * tests/test-xfprintf-posix.c: Likewise.
4911         * tests/test-xprintf-posix.c: Likewise.
4912         * tests/test-xvasprintf.c: Likewise.
4913
4914         tests: avoid compiler warnings
4915         * tests/test-fcntl.c (main): Delete unused parameters.
4916         * tests/test-freopen-safer.c (main): Likewise.
4917         * tests/test-xalloc-die.c (main): Mark unused parameters.
4918         * tests/test-fseeko.c (main): Likewise.
4919         * tests/test-ftello.c (main): Likewise.
4920         * tests/test-nanosleep.c (main): Avoid declaration warning.
4921         * tests/test-sleep.c (main): Likewise.
4922         * tests/test-unsetenv.c (main): Silence warning about string
4923         literal.
4924         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4925
4926 2009-12-23  Bruno Haible  <bruno@clisp.org>
4927
4928         * tests/test-localename.c (test_locale_name): New function, extracted
4929         from main. Also test mixed situations.
4930         (test_locale_name_posix, test_locale_name_environ,
4931         test_locale_name_default): New functions.
4932         (main): Invoke them all.
4933         * modules/localename-tests (configure.ac): Test for newlocale.
4934
4935 2009-12-23  Bruno Haible  <bruno@clisp.org>
4936
4937         unistd: Ensure getcwd gets declared before being overridden.
4938         * lib/unistd.in.h: Conditionally include <io.h>.
4939
4940 2009-12-22  Bruno Haible  <bruno@clisp.org>
4941
4942         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4943         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4944         (gl_WCHAR_H): Invoke it.
4945         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4946         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4947         Reported by Karl Berry <karl@freefriends.org>.
4948
4949 2009-12-22  Eric Blake  <ebb9@byu.net>
4950
4951         math, unistd: avoid redundant includes
4952         * lib/math.in.h (isnan): No need to re-include <math.h>.
4953         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4954
4955         getsubopt: work around cygwin bug
4956         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4957         avoid conflicting with system getsubopt.
4958         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4959         bug.
4960
4961         getopt: synchronize from glibc
4962         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4963         parameter order.  Adjust all callers.
4964         (_getopt_internal_r, main): Adjust quoting in error messages.
4965         Drop considerations for outdated POSIX 1003.2 error message.
4966         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4967         callers.
4968         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4969
4970         test-getopt: test stderr behavior
4971         * modules/getopt-posix-tests (Depends-on): Add dup2.
4972         * tests/test-getopt.c (ASSERT): Avoid stderr.
4973         (main): Move stderr to a temporary file.
4974         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4975         Instead, add parameter to inform caller if output occurred.
4976         (test_getopt): Adjust all existing tests to expect silence, and
4977         add new tests of leading ":".
4978         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4979         glibc shortcomings with leading "-:" or "+:" in optstring.
4980         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4981         Likewise.
4982         * doc/posix-functions/getopt.texi (getopt): Likewise.
4983
4984         test-getopt: enhance test
4985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4986         supports optind=0.
4987         * tests/test-getopt.c (OPTIND_MIN): Move...
4988         * tests/test-getopt.h (OPTIND_MIN): ...here.
4989         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4990         Require that optind=0 works, since modern BSD supports it in
4991         addition to optreset, and since coreutils expects it.
4992         (test_getopt_long_only): New test.
4993         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4994         glibc shortcomings with 'W;', and enforcement of optind=0.
4995         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4996         Likewise.
4997
4998 2009-12-21  Bruno Haible  <bruno@clisp.org>
4999
5000         localename: Improvements for MacOS X and Cygwin.
5001         * lib/localename.h (gl_locale_name_environ): New declaration.
5002         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5003         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5004         (gl_locale_name_posix): Invoke it.
5005         (gl_locale_name_default): Add comments. Use Windows native API also on
5006         Cygwin.
5007
5008 2009-12-21  Bruno Haible  <bruno@clisp.org>
5009
5010         Update list of Win32 locale ids.
5011         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5012         (LANG_SAMI): Renamed from LANG_SAAMI.
5013         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5014         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5015         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5016         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5017         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5018         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5019         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5020         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5021         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5022         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5023         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5024         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5025         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5026         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5027         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5028         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5029         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5030         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5031         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5032         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5033         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5034         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5035         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5036         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5037         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5038         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5039         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5040         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5041         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5042         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5043         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5044         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5045         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5046         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5047         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5048         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5049         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5050         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5051         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5052         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5053         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5054         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5055         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5056         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5057         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5058         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5059         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5060         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5061         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5062         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5063         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5064         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5065         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5066         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5067         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5068         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5069         Add more languages and countries for Sami, Sorbian. Add more countries
5070         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5071         for Pashto. Change country for Syriac, Tswana.
5072
5073 2009-12-21  Eric Blake  <ebb9@byu.net>
5074
5075         test-utimens: avoid spurious failure
5076         * tests/test-chown.h (nap): Factor...
5077         * tests/nap.h: ...into new file.
5078         * tests/test-lchown.h (nap): Avoid duplication.
5079         * tests/test-utimens-common.h (nap): Use shared implementation,
5080         necessary on file systems with 1-second resolution.
5081         * modules/chown-tests (Files): Include new file.
5082         * modules/fdutimensat-tests (Files): Likewise.
5083         * modules/futimens-tests (Files): Likewise.
5084         * modules/lchown-tests (Files): Likewise.
5085         * modules/openat-tests (Files): Likewise.
5086         * modules/utimens-tests (Files): Likewise.
5087         * modules/utimensat-tests (Files): Likewise.
5088
5089 2009-12-19  Eric Blake  <ebb9@byu.net>
5090
5091         futimens, utimensat: work around Linux bug
5092         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5093         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5094         * lib/utimensat.c (rpl_utimensat): Work around it.
5095         * lib/futimens.c (rpl_futimens): Adjust comment.
5096
5097         utimens: work around Linux ctime bug
5098         * lib/utimens.c (detect_ctime_bug): New helper function.
5099         (update_timespec): Differentiate between workaround needed for
5100         this bug vs. what is needed for systems that lack utimensat.
5101         (fdutimens, lutimens): Work around bug.
5102
5103         utimens: check for ctime update
5104         * tests/test-utimens-common.h (check_ctime): Define.
5105         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5106         * tests/test-futimens.h (test_futimens): Likewise.
5107         * tests/test-lutimens.h (test_lutimens): Likewise.
5108         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5109         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5110
5111 2009-12-19  Bruno Haible  <bruno@clisp.org>
5112
5113         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5114         * tests/test-dprintf-posix2.sh: New file.
5115         * tests/test-dprintf-posix2.c: New file.
5116         * modules/dprintf-posix-tests (Files): Add them.
5117         (configure.ac): Check for getrlimit and setrlimit.
5118         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5119
5120 2009-12-19  Bruno Haible  <bruno@clisp.org>
5121
5122         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5123         * tests/test-fprintf-posix3.sh: New file.
5124         * tests/test-fprintf-posix3.c: New file.
5125         * modules/fprintf-posix-tests (Files): Add them.
5126         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5127
5128 2009-12-19  Eric Blake  <ebb9@byu.net>
5129
5130         dirfd: fix prototype
5131         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5132         * lib/dirfd.c (dirfd): Likewise.
5133
5134         canonicalize: reduce memory usage
5135         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5136         allocation to size.
5137         Reported by Solar Designer <solar@openwall.com>.
5138
5139 2009-12-19  Bruno Haible  <bruno@clisp.org>
5140
5141         New module attribute 'Applicability'.
5142         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5143         * gnulib-tool: New option --extract-applicability.
5144         (func_usage): Document it.
5145         (sed_extract_prog): Recognize it.
5146         (func_get_applicability): New function.
5147         (func_import): Generalize handling of 'link-warning' module.
5148         * modules/link-warning (Applicability): New section.
5149         * modules/arg-nonnull (Applicability): New section.
5150         Repoted by Simon Josefsson <simon@josefsson.org>.
5151
5152 2009-12-19  Bruno Haible  <bruno@clisp.org>
5153
5154         fflush: tweak
5155         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5156         * lib/fseeko.c (rpl_fseeko): Likewise.
5157
5158 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5159
5160         * lib/gl_list.h: Fix typo in comment.
5161
5162 2009-12-16  Eric Blake  <ebb9@byu.net>
5163
5164         fcntl: use to simplify other modules
5165         * modules/cloexec (Depends-on): Add fcntl.
5166         * modules/fchdir (Depends-on): Likewise.
5167         * modules/fd-safer-flag (Depends-on): Likewise.
5168         * modules/unistd-safer (Depends-on): Likewise.
5169         * modules/dup3 (configure.ac): Set module indicator.
5170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5171         missing.
5172         * lib/fchdir.c (_gl_register_dup): Fix comment.
5173         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5174         * lib/dup-safer.c (dup_safer): Likewise.
5175         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5176         * lib/dup3.c (dup3): Likewise.
5177         * tests/test-fchdir.c (main): Enhance test.
5178         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
5179
5180         fcntl: port portions of fcntl to mingw
5181         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5182         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5183         replacement for mingw.
5184         * modules/fcntl (Description): Update.
5185         (Depends-on): Add dup2.
5186         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5187         * modules/fcntl-h (Makefile.am): Substitute it.
5188         * lib/fcntl.in.h (fcntl): Update declaration.
5189         (F_DUPFD, F_GETFD): New macros, when needed.
5190         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5191         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5192         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5193         we now guarantee.
5194
5195         fcntl: work around cygwin bug in F_DUPFD
5196         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5197         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5198         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5199         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5200         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5201
5202         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5203         * modules/fcntl (Files): List new files.
5204         (configure.ac): Run a test.
5205         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5206         * lib/fcntl.c (rpl_fcntl): Likewise.
5207         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5208         (gl_FCNTL_H): Always replace fcntl.h.
5209         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5210         * lib/fcntl.in.h (fcntl): Declare replacement.
5211         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5212         needed, plus a witness.
5213         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5214         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5215         * tests/test-fcntl.c: New file.
5216         * modules/fcntl-tests: Likewise.
5217
5218         binary-io: avoid potential compilation warning
5219         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5220         directives.
5221
5222         fflush: avoid compilation error on NetBSD
5223         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5224         between off_t and fpos_t, since the latter is sometimes a struct.
5225         * lib/fseeko.c (rpl_fseeko): Likewise.
5226         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5227
5228 2009-12-15  Eric Blake  <ebb9@byu.net>
5229
5230         fcntl-h, stdio, sys_ioctl: fix declarations
5231         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5232         function must not take arguments.
5233         * lib/sys_ioctl.in.h (ioctl): Likewise.
5234         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5235         (open): Add a link warning.
5236
5237 2009-12-15  Jim Meyering  <meyering@redhat.com>
5238
5239         areadlink, areadlink-with-size: relax license to LGPLv2+
5240         * modules/areadlink (License): Relax to LGPLv2+.
5241         * modules/areadlink-with-size (License): Likewise.
5242
5243 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5244             Bruno Haible  <bruno@clisp.org>
5245
5246         *printf: Fix memory leak.
5247         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5248         * lib/vfprintf.c (vfprintf): Likewise.
5249         * lib/dprintf.c (dprintf): Likewise.
5250         * lib/vdprintf.c (vdprintf): Likewise.
5251
5252 2009-12-14  Eric Blake  <ebb9@byu.net>
5253
5254         accept4: adjust module dependencies
5255         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5256
5257         utimens: one more try at avoiding compiler warning
5258         * lib/utimens.c (lutimens): Lower scope of result.
5259
5260 2009-12-13  Bruno Haible  <bruno@clisp.org>
5261
5262         Move the malloc checking from module 'list' to new module 'xlist'.
5263         * modules/xlist: New file.
5264         * lib/gl_xlist.h: New file.
5265         * lib/gl_xlist.c: New file.
5266         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5267         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5268         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5269         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5270         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5271         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5272         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5273         gl_sortedlist_nx_add): New declarations.
5274         (struct gl_list_implementation): Rename and change methods accordingly.
5275         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5276         (gl_list_nx_create): Renamed from gl_list_create.
5277         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5278         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5279         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5280         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5281         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5282         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5283         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5284         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5285         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5286         gl_list_create_empty.
5287         (gl_list_nx_create): Renamed from gl_list_create.
5288         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5289         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5290         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5291         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5292         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5293         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5294         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5295         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5296         * lib/gl_array_list.c: Don't include xalloc.h.
5297         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5298         NULL upon out-of-memory.
5299         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5300         out-of-memory.
5301         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5302         Change return type to 'int'.
5303         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5304         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5305         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5306         upon out-of-memory.
5307         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5308         upon out-of-memory.
5309         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5310         upon out-of-memory.
5311         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5312         upon out-of-memory.
5313         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5314         out-of-memory.
5315         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5316         Update.
5317         (gl_array_list_implementation): Update.
5318         * lib/gl_carray_list.c: Don't include xalloc.h.
5319         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5320         Return NULL upon out-of-memory.
5321         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5322         out-of-memory.
5323         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5324         Change return type to 'int'.
5325         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5326         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5327         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5328         upon out-of-memory.
5329         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5330         upon out-of-memory.
5331         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5332         out-of-memory.
5333         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5334         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5335         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5336         Update.
5337         (gl_carray_list_implementation): Update.
5338         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5339         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5340         gl_linked_create_empty. Return NULL upon out-of-memory.
5341         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5342         out-of-memory.
5343         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5344         Change return type to 'int'. Return -1 upon out-of-memory.
5345         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5346         out-of-memory.
5347         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5348         upon out-of-memory.
5349         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5350         upon out-of-memory.
5351         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5352         NULL upon out-of-memory.
5353         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5354         upon out-of-memory.
5355         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5356         out-of-memory.
5357         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5358         Update.
5359         * lib/gl_linked_list.c: Don't include xalloc.h.
5360         (gl_linked_list_implementation): Update.
5361         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5362         (add_to_bucket): Change return type to 'int'.
5363         (gl_linkedhash_list_implementation): Update.
5364         * lib/gl_anytree_list1.h (free_subtree): New function.
5365         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5366         gl_tree_create_empty. Return NULL upon out-of-memory.
5367         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5368         Change return type to 'int'. Return -1 upon out-of-memory.
5369         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5370         out-of-memory.
5371         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5372         (gl_tree_remove_node): New function, moved here from
5373         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5374         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5375         Update.
5376         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5377         malloc, not xmalloc. Return NULL upon out-of-memory.
5378         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5379         out-of-memory.
5380         (gl_tree_remove_node_from_tree): New function, extracted from
5381         gl_tree_remove_node.
5382         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5383         upon out-of-memory.
5384         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5385         out-of-memory.
5386         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5387         upon out-of-memory.
5388         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5389         upon out-of-memory.
5390         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5391         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5392         not xmalloc. Return NULL upon out-of-memory.
5393         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5394         out-of-memory.
5395         (gl_tree_remove_node_from_tree): New function, extracted from
5396         gl_tree_remove_node.
5397         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5398         upon out-of-memory.
5399         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5400         out-of-memory.
5401         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5402         upon out-of-memory.
5403         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5404         upon out-of-memory.
5405         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5406         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5407         gl_anytree_list1.h before gl_anyavltree_list2.h.
5408         (gl_avltree_list_implementation): Update.
5409         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5410         gl_anytree_list1.h before gl_anyavltree_list2.h.
5411         (gl_rbtree_list_implementation): Update.
5412         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5413         Change return type to 'int'. Return -1 upon out-of-memory. Use
5414         __builtin_expect.
5415         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5416         (gl_avltreehash_list_implementation): Update.
5417         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5418         (gl_rbtreehash_list_implementation): Update.
5419         * modules/array-list (Depends-on): Remove xalloc.
5420         * modules/carray-list (Depends-on): Likewise.
5421         * modules/linked-list (Depends-on): Likewise.
5422         * modules/linkedhash-list (Depends-on): Likewise.
5423         * modules/avltree-list (Depends-on): Likewise.
5424         * modules/rbtree-list (Depends-on): Likewise.
5425         * modules/avltreehash-list (Depends-on): Likewise.
5426         * modules/rbtreehash-list (Depends-on): Likewise.
5427
5428         * modules/xsublist: New file.
5429         * lib/gl_xsublist.h: New file.
5430         * lib/gl_xsublist.c: New file.
5431         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5432         (gl_sublist_nx_create): New declaration.
5433         * lib/gl_sublist.c: Don't include xalloc.h.
5434         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5435         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5436         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5437         Change return type to 'int'. Return -1 upon out-of-memory.
5438         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5439         upon out-of-memory.
5440         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5441         NULL upon out-of-memory.
5442         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5443         upon out-of-memory.
5444         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5445         NULL upon out-of-memory.
5446         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5447         NULL upon out-of-memory.
5448         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5449         upon out-of-memory.
5450         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5451         (gl_sublist_list_implementation): Update.
5452         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5453         upon out-of-memory.
5454         * modules/sublist (Depends-on): Remove xalloc.
5455
5456         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5457         * tests/test-carray_list.c: Likewise.
5458         * tests/test-linked_list.c: Likewise.
5459         * tests/test-linkedhash_list.c: Likewise.
5460         * tests/test-avltree_list.c: Likewise.
5461         * tests/test-rbtree_list.c: Likewise.
5462         * tests/test-avltreehash_list.c: Likewise.
5463         * tests/test-rbtreehash_list.c: Likewise.
5464         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5465         * modules/carray-list-tests (Makefile.am): Likewise.
5466         * modules/linked-list-tests (Makefile.am): Likewise.
5467         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5468         * modules/avltree-list-tests (Makefile.am): Likewise.
5469         * modules/rbtree-list-tests (Makefile.am): Likewise.
5470         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5471         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5472
5473         * NEWS: Mention the changes.
5474
5475         * lib/clean-temp.c: Include gl_xlist.h.
5476         * modules/clean-temp (Depends-on): Add xlist.
5477
5478         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5479         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5480
5481         * tests/test-array_oset.c: Include gl_xlist.h.
5482         * modules/array-oset-tests (Depends-on): Add xlist.
5483
5484         Reported by José E. Marchesi <jemarch@gnu.org>.
5485
5486 2009-12-13  Bruno Haible  <bruno@clisp.org>
5487
5488         Move the malloc checking from module 'oset' to new module 'xoset'.
5489         * modules/xoset: New file.
5490         * lib/gl_xoset.h: New file.
5491         * lib/gl_xoset.c: New file.
5492         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5493         declarations.
5494         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5495         (struct gl_oset_implementation): Rename and change methods accordingly.
5496         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5497         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5498         'int'. Mark as __warn_unused_result__.
5499         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5500         gl_oset_create_empty.
5501         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5502         'int'.
5503         * lib/gl_array_oset.c: Don't include xalloc.h.
5504         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5505         malloc, not xmalloc.
5506         (grow): Change return type to 'int'. Don't call xalloc_die.
5507         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5508         to 'int'.
5509         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5510         'int'.
5511         (gl_array_oset_implementation): Update.
5512         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5513         gl_tree_create_empty.
5514         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5515         'int'.
5516         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5517         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5518         xmalloc.
5519         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5520         not xmalloc.
5521         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5522         xmalloc.
5523         (gl_avltree_oset_implementation): Update.
5524         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5525         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5526         xmalloc.
5527         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5528         not xmalloc.
5529         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5530         xmalloc.
5531         (gl_rbtree_oset_implementation): Update.
5532         * modules/array-oset (Depends-on): Remove xalloc.
5533         * modules/avltree-oset (Depends-on): Likewise.
5534         * modules/rbtree-oset (Depends-on): Likewise.
5535         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5536         * tests/test-avltree_oset.c: Likewise.
5537         * tests/test-rbtree_oset.c: Likewise.
5538         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5539         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5540         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5541         * NEWS: Mention the change.
5542
5543 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5544
5545         maint.mk: allow a project to override release-prep commands
5546         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5547         commands into a new rule.
5548         (release-prep): New rule.
5549         (release-prep-hook): New overridable variable.
5550
5551 2009-12-13  Bruno Haible  <bruno@clisp.org>
5552
5553         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5554
5555 2009-12-13  Jim Meyering  <meyering@redhat.com>
5556
5557         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5558         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5559
5560 2009-12-12  Bruno Haible  <bruno@clisp.org>
5561
5562         duplocale: Tweak.
5563         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5564
5565 2009-12-12  Karl Berry  <karl@gnu.org>
5566
5567         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5568
5569 2009-12-12  Bruno Haible  <bruno@clisp.org>
5570
5571         * m4/po.m4: Undo incorrect untabification.
5572
5573 2009-12-12  Bruno Haible  <bruno@clisp.org>
5574
5575         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5576         * modules/c-strtod (Depends-on): Add locale.
5577         * modules/c-strtold (Depends-on): Likewise.
5578
5579 2009-12-12  Bruno Haible  <bruno@clisp.org>
5580
5581         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5582
5583 2009-12-11  Eric Blake  <ebb9@byu.net>
5584
5585         setenv: relax requirement in light of POSIX ruling
5586         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5587         not NULL.
5588         * tests/test-setenv.c (main): Relax test.
5589         * tests/test-unsetenv.c (main): Likewise.
5590         * doc/posix-functions/setenv.texi (setenv): Document this.
5591         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5592
5593 2009-12-11  Bruno Haible  <bruno@clisp.org>
5594
5595         New module 'fd-safer-flag'.
5596         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5597         * lib/dup-safer.c (dup_safer_flag): Remove function.
5598         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5599         * lib/fd-safer.c (fd_safer_flag): Remove function.
5600         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5601         * modules/cloexec (configure.ac): Drop indicator macro.
5602         * modules/fd-safer-flag: New file.
5603         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5604         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5605         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5606
5607 2009-12-11  Bruno Haible  <bruno@clisp.org>
5608
5609         Tests for module 'nl_langinfo'.
5610         * modules/nl_langinfo-tests: New file.
5611         * tests/test-nl_langinfo.sh: New file.
5612         * tests/test-nl_langinfo.c: New file.
5613
5614         New module 'nl_langinfo'.
5615         * lib/nl_langinfo.c: New file.
5616         * m4/nl_langinfo.m4: New file.
5617         * modules/nl_langinfo: New file.
5618         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5619
5620 2009-12-11  Bruno Haible  <bruno@clisp.org>
5621
5622         Tests for module 'langinfo'.
5623         * modules/langinfo-tests: New file.
5624         * tests/test-langinfo.c: New file.
5625
5626         New module 'langinfo'.
5627         * lib/langinfo.in.h: New file.
5628         * m4/langinfo_h.m4: New file.
5629         * modules/langinfo: New file.
5630         * doc/posix-headers/langinfo.texi: Mention the new module.
5631
5632 2009-12-11  Bruno Haible  <bruno@clisp.org>
5633
5634         * lib/config.charset: Untabify.
5635
5636 2009-12-11  Bruno Haible  <bruno@clisp.org>
5637
5638         * modules/unistd-safer (configure.ac): Drop indicator macro.
5639
5640 2009-12-11  Bruno Haible  <bruno@clisp.org>
5641
5642         Move pipe2-safer code to its own file.
5643         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5644         * lib/pipe-safer.c (pipe2_safer): Remove function.
5645         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5646         (Makefile.am): Add it to lib_SOURCES.
5647
5648 2009-12-10  Bruno Haible  <bruno@clisp.org>
5649
5650         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5651
5652 2009-12-10  Bruno Haible  <bruno@clisp.org>
5653
5654         Declare which arguments expect non-NULL values, for GCC and clang.
5655         * build-aux/arg-nonnull.h: New file.
5656         * modules/arg-nonnull: New file.
5657         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5658         (inet_ntop, inet_pton): Use it.
5659         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5660         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5661         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5662         (open, openat): Use it.
5663         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5664         (fnmatch): Use it.
5665         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5666         (getopt, getopt_long, getopt_long_only): Use it.
5667         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5668         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5669         Use it.
5670         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5671         (iconv_open): Use it.
5672         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5673         (strtoimax, strtoumax): Use it.
5674         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5675         (duplocale): Use it.
5676         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5677         (frexp, frexpl): Use it.
5678         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5679         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5680         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5681         (tsearch, tfind, tdelete, twalk): Use it.
5682         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5683         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5684         sigpending): Use it.
5685         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5686         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5687         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5688         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5689         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5690         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5691         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5692         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5693         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5694         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5695         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5696         Use it.
5697         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5698         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5699         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5700         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5701         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5702         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5703         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5704         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5705         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5706         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5707         strtoull, unsetenv): Use it.
5708         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5709         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5710         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5711         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5712         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5713         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5714         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5715         (strcasecmp, strncasecmp): Use it.
5716         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5717         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5718         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5719         rpl_setsockopt): Use it.
5720         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5721         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5722         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5723         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5724         (gettimeofday): Use it.
5725         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5726         (times): Use it.
5727         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5728         (uname): Use it.
5729         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5730         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5731         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5732         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5733         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5734         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5735         unlinkat, write): Use it.
5736         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5737         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5738         * lib/argv-iter.h: Include arg-nonnull.h.
5739         (_ATTRIBUTE_NONNULL_): Remove macro.
5740         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5741         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5742         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5743         optimization.
5744         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5745         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5746         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5747         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5748         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5749         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5750         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5751         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5752         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5753         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5754         * modules/dirent (Depends-on): Add arg-nonnull.
5755         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5756         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5757         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5758         * modules/fnmatch (Depends-on): Add arg-nonnull.
5759         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5760         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5761         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5762         * modules/glob (Depends-on): Add arg-nonnull.
5763         (Makefile.am): Insert arg-nonnull.h into glob.h.
5764         * modules/iconv_open (Depends-on): Add arg-nonnull.
5765         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5766         * modules/inttypes (Depends-on): Add arg-nonnull.
5767         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5768         * modules/locale (Depends-on): Add arg-nonnull.
5769         (Makefile.am): Insert arg-nonnull.h into locale.h.
5770         * modules/math (Depends-on): Add arg-nonnull.
5771         (Makefile.am): Insert arg-nonnull.h into math.h.
5772         * modules/netdb (Depends-on): Add arg-nonnull.
5773         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5774         * modules/search (Depends-on): Add arg-nonnull.
5775         (Makefile.am): Insert arg-nonnull.h into search.h.
5776         * modules/signal (Depends-on): Add arg-nonnull.
5777         (Makefile.am): Insert arg-nonnull.h into signal.h.
5778         * modules/spawn (Depends-on): Add arg-nonnull.
5779         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5780         * modules/stdio (Depends-on): Add arg-nonnull.
5781         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5782         * modules/stdlib (Depends-on): Add arg-nonnull.
5783         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5784         * modules/string (Depends-on): Add arg-nonnull.
5785         (Makefile.am): Insert arg-nonnull.h into string.h.
5786         * modules/strings (Depends-on): Add arg-nonnull.
5787         (Makefile.am): Insert arg-nonnull.h into strings.h.
5788         * modules/sys_socket (Depends-on): Add arg-nonnull.
5789         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5790         * modules/sys_stat (Depends-on): Add arg-nonnull.
5791         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5792         * modules/sys_time (Depends-on): Add arg-nonnull.
5793         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5794         * modules/sys_times (Depends-on): Add arg-nonnull.
5795         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5796         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5797         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5798         * modules/time (Depends-on): Add arg-nonnull.
5799         (Makefile.am): Insert arg-nonnull.h into time.h.
5800         * modules/unistd (Depends-on): Add arg-nonnull.
5801         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5802         * modules/wchar (Depends-on): Add arg-nonnull.
5803         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5804         * modules/argv-iter (Depends-on): Add arg-nonnull.
5805         * tests/test-canonicalize.c (null_ptr): New function.
5806         (main): Use it.
5807         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5808         (main): Use it.
5809         * tests/test-memmem.c (null_ptr): New function.
5810         (main): Use it.
5811         Reported by Jim Meyering.
5812
5813 2009-12-10  Bruno Haible  <bruno@clisp.org>
5814
5815         Use spaces for indentation, not tabs.
5816         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5817         * m4/*.m4: Untabify.
5818         * build-aux/*.h: Untabify.
5819         * tests/**/*.[hc]: Untabify.
5820         * README: New section "Indent with spaces, not TABs", based on
5821         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5822         * NEWS: Mention the change.
5823
5824 2009-12-10  Bruno Haible  <bruno@clisp.org>
5825
5826         pty test: Fix link error.
5827         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5828         test_pty_LDADD.
5829
5830 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5831
5832         * modules/pty: New file.
5833         * modules/pty-tests: New file.
5834         * m4/pty.m4: New file.
5835         * tests/test-pty.c: New file.
5836         * doc/glibc-headers/pty.texi: Modified.
5837         * doc/glibc-functions/forkpty.texi: Modified.
5838         * doc/glibc-functions/openpty.texi: Modified.
5839
5840 2009-12-10  Bruno Haible  <bruno@clisp.org>
5841
5842         Avoid syntax error in C++ mode.
5843         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5844
5845 2009-12-10  Bruno Haible  <bruno@clisp.org>
5846
5847         Use sed with option -e.
5848         * gnulib-tool (func_version, func_emit_copyright_notice,
5849         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5850         option -e to sed.
5851         * modules/link-warning (Makefile.am): Likewise.
5852
5853 2009-12-10  Jim Meyering  <meyering@redhat.com>
5854
5855         mgetgroups: do not write bytes beyond end of malloc'd buffer
5856         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5857         username, we call getgroups with a one-element-shorter buffer,
5858         but still told it the length was original, max_n_groups.
5859
5860 2009-12-09  Eric Blake  <ebb9@byu.net>
5861
5862         cloexec: relax license
5863         * modules/cloexec (Maintainer): Add myself.
5864         (License): Use LGPL, not GPL.
5865
5866         link-warning: optimize generation
5867         * modules/link-warning (Makefile.am): Reduce process usage.
5868
5869 2009-12-09  Bruno Haible  <bruno@clisp.org>
5870
5871         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5872         workaround was added on 2009-11-17.
5873
5874 2009-12-09  Jim Meyering  <meyering@redhat.com>
5875             Bruno Haible  <bruno@clisp.org>
5876
5877         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5878         * modules/link-warning (Makefile.am): Make the comment-removing sed
5879         command more robust in the face of bootstrap-prepended comment lines.
5880
5881 2009-12-09  Bruno Haible  <bruno@clisp.org>
5882
5883         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5884         most one group.
5885
5886 2009-12-09  Simon Josefsson <simon@josefsson.org>
5887             Bruno Haible  <bruno@clisp.org>
5888
5889         * build-aux/link-warning.h: Add copyright notice.
5890         * modules/link-warning (Makefile.am): Generate link-warning.h from
5891         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5892         * NEWS: Mention change in link-warning module.
5893         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5894         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5895         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5896         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5897         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5898         * modules/math (Makefile.am): Add dependency to math.h.
5899         * modules/search (Makefile.am): Add dependency to search.h.
5900         * modules/signal (Makefile.am): Add dependency to signal.h.
5901         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5902         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5903         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5904         * modules/string (Makefile.am): Add dependency to string.h.
5905         * modules/strings (Makefile.am): Add dependency to strings.h.
5906         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5907         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5908         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5909         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5910         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5911         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5912         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5913         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5914         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5915
5916 2009-12-09  Bruno Haible  <bruno@clisp.org>
5917
5918         fchdir: Optimize away rpl_fstat when possible.
5919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5920         REPLACE_OPEN_DIRECTORY.
5921         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5922
5923 2009-12-09  Bruno Haible  <bruno@clisp.org>
5924
5925         * lib/fchdir.c: Update comment.
5926
5927 2009-12-09  Bruno Haible  <bruno@clisp.org>
5928
5929         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5930
5931 2009-12-08  Eric Blake  <ebb9@byu.net>
5932
5933         fchdir: avoid memory leak on re-registration.
5934         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5935
5936 2009-12-08  Jim Meyering  <meyering@redhat.com>
5937
5938         init.sh: avoid Solaris 10 /bin/sh portability problem
5939         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5940         sourced script:
5941           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5942           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5943           bar
5944         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5945         and two tests used that idiom.
5946         * tests/init.sh: Update suggested usage comments.
5947         (path_prepend_): New function, to be used in place
5948         of the --src-path=DIR option.
5949         (setup_): Move PATH-prepending code into path_prepend_.
5950         * tests/test-pread.sh: Adapt to new usage.
5951         * tests/test-xalloc-die.sh: Likewise.
5952
5953 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5954
5955         * doc/gnulib.texi (Glibc pty.h): Add.
5956         * doc/glibc-functions/forkpty.texi: Add.
5957         * doc/glibc-functions/openpty.texi: Add.
5958         Suggested by Bruno Haible.
5959
5960 2009-12-08  Eric Blake  <ebb9@byu.net>
5961
5962         fchdir: fix logic bugs
5963         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5964         * tests/test-fchdir.c (main): Enhance test.
5965         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5966         is in use.
5967
5968         dup2: fix logic bugs
5969         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5970         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5971         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5972         exists.
5973         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5974
5975 2009-12-07  Eric Blake  <ebb9@byu.net>
5976
5977         unlink: fix m4 detection
5978         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5979
5980         unistd-safer: add unit test
5981         * modules/unistd-safer-tests: New file.
5982         * tests/test-dup-safer.c: Likewise.
5983         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5984         * tests/test-dup2.c (setmode): Likewise.
5985         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5986
5987         cloexec: preserve text vs. binary across dup_cloexec
5988         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5989         mode.
5990         * modules/dup2-tests (Depends-on): Add binary-io.
5991         * modules/cloexec-tests (Depends-on): Likewise.
5992         * tests/test-dup2.c (setmode, is_mode): New helpers.
5993         (main): Add tests that translation mode is preserved.
5994         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5995         Reported by Bruno Haible.
5996
5997         mgetgroups: reduce duplicate listings
5998         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5999         resulting array.
6000         * tests/test-chown.h (test_chown): Simplify client.
6001         * tests/test-lchown.h (test_lchown): Likewise.
6002
6003 2009-12-06  Bruno Haible  <bruno@clisp.org>
6004
6005         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6006         value.
6007
6008 2009-12-06  Bruno Haible  <bruno@clisp.org>
6009
6010         * lib/progname.c: Include stdio.h, stdlib.h.
6011         (set_program_name): Reject a NULL argument.
6012
6013 2009-12-05  Eric Blake  <ebb9@byu.net>
6014
6015         pipe2-safer: new module
6016         * modules/pipe2-safer: New file.
6017         * lib/unistd-safer.h (pipe2_safer): New prototype.
6018         * lib/unistd--.h (pipe2): New wrapper.
6019         * lib/pipe-safer.c (pipe2_safer): New function.
6020         * modules/pipe (Depends-on): Add pipe2-safer.
6021         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6022
6023         stdlib-safer: preserve cloexec flag for mkostemp[s]
6024         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6025         fd_safer_flag.
6026
6027         unistd-safer: allow preservation of cloexec status via flag
6028         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6029         prototypes.
6030         * lib/dup-safer.c (dup_safer_flag): New function.
6031         * lib/fd-safer.c (fd_safer_flag): Likewise.
6032         * modules/cloexec (configure.ac): Set witness.
6033
6034         test-dup2: enhance test
6035         * modules/dup2-tests (Depends-on): Add cloexec.
6036         * tests/test-dup2.c (main): Enhance test.
6037
6038         cloexec: add dup_cloexec
6039         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6040         header and comments.
6041         * lib/cloexec.c (set_cloexec_flag): Add comments.
6042         (dup_cloexec): New function, with mingw implementation borrowed
6043         from...
6044         * lib/w32spawn.h (dup_noinherit): ...here.
6045         * modules/execute (Depends-on): Add cloexec.
6046         * modules/pipe (Depends-on): Likewise.
6047         * modules/cloexec (Depends-on): Add dup2.
6048         * modules/cloexec-tests (Files): New file.
6049         * tests/test-cloexec.c: Likewise.
6050
6051         test-xalloc-die: fix test for mingw
6052         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6053         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6054         directory and .exe suffix off argv[0] output.
6055
6056         test-fseeko: fix test for mingw
6057         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6058         than undefining fseek, so test will pass on mingw.
6059
6060 2009-12-05  Bruno Haible  <bruno@clisp.org>
6061
6062         * lib/progname.h (set_program_name): Clarify specification.
6063         * lib/progname.c (set_program_name): Likewise.
6064         Reported by Jim Meyering.
6065
6066 2009-12-05  Jim Meyering  <meyering@redhat.com>
6067
6068         maint.mk: backslash-escape parens in default regexp
6069         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6070         backslash-escape the literal parentheses.
6071
6072         maint.mk: news-date-check: use grep -E
6073         * top/maint.mk (today): Define a Make variable, not a...
6074         (news-date-check): ...shell variable.
6075         (news-date-regexp): Use the Make variable.
6076         Use grep's -E option.  Change the failing diagnostic to mention
6077         the variable, $(news-date-regexp).
6078
6079 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6080
6081         maintainer-makefile: allow customization of NEWS entry format
6082         * top/maint.mk (news-date-regexp): New overridable variable.
6083         (news-date-check): Use it.
6084
6085 2009-12-04  Eric Blake  <ebb9@byu.net>
6086
6087         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6088         * lib/mgetgroups.h (xgetgroups): New prototype.
6089         * lib/mgetgroups.c (xgetgroups): New wrapper.
6090         (mgetgroups): Handle ENOSYS.
6091         * modules/mgetgroups (Depends-on): Add realloc.
6092         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6093
6094         mgetgroups: avoid argument promotion issues with -1
6095         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6096         for invalid gid_t.
6097         * tests/test-chown.h (getegid, test_chown): Likewise.
6098         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6099
6100 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6101
6102         exclude: Fix header file problems.
6103         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6104
6105 2009-12-01  Jim Meyering  <meyering@redhat.com>
6106
6107         fts: fts_open: do not let an empty string cause immediate failure
6108         This is required in support of GNU rm, for which the command
6109         "rm A '' B" must process and remove both A and B, in spite of
6110         the empty string argument.
6111         * lib/fts.c (fts_open): Do not let the presence of an empty string
6112         cause fts_open to fail immediately.  Most fts-using tools must be
6113         able to process all arguments, in order, and can be expected to
6114         diagnose such arguments themselves.
6115
6116 2009-11-30  Eric Blake  <ebb9@byu.net>
6117
6118         utimens: fix compilation error
6119         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6120         Declare variable at right scope.
6121
6122 2009-11-29  Jim Meyering  <meyering@redhat.com>
6123
6124         bootstrap: handle perl-5.11's changed --version output
6125         * build-aux/bootstrap (get_version): Handle perl separately,
6126         since perl-5.11's --version output is different.
6127
6128 2009-11-28  Jim Meyering  <meyering@redhat.com>
6129
6130         userspec: depend on the inttostr module, too
6131         * modules/userspec (Depends-on): Add inttostr.
6132
6133         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6134         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6135         number of MAXUID when it evaluates to (uid_t) -1.
6136         Likewise for group ID.  Reported by Matt McCutchen in
6137         <http://savannah.gnu.org/bugs/?28113>
6138
6139         userspec: reformat to use spaces, not TABs
6140         * lib/userspec.c: Expand TABs to spaces.
6141         Add Emacs' "indent-tabs-mode: nil" hint.
6142
6143 2009-11-27  Eric Blake  <ebb9@byu.net>
6144
6145         getopt-gnu: flush out another BSD bug
6146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6147         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6148         flush out BSD bug.
6149         * tests/test-getopt.h (test_getopt): End lists with NULL.
6150         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6151         (test_getopt_long_posix): Enhance test.
6152         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6153         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6154         getopt-gnu.
6155         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6156         Likewise.
6157
6158 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6159
6160         * modules/idpriv-droptemp-tests (Notice): Fix text.
6161
6162 2009-11-27  Jim Meyering  <meyering@redhat.com>
6163
6164         test-xalloc-die: avoid spurious failure due to libtool argv difference
6165         In a libtool-enabled project, this test would fail due to a difference
6166         in the emitted program name, e.g.,
6167         -test-xalloc-die: memory exhausted
6168         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6169         Use program to avoid that.
6170         * modules/xalloc-die-tests (Depends-on): Add progname.
6171         * tests/test-xalloc-die.c: Include progname.h".
6172         (program_name): Remove decl.
6173         (main): Call set_program_name.
6174         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6175
6176 2009-11-26  Richard Jones  <rjones@redhat.com>
6177
6178         w32sock: leave win32 error in place.
6179         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6180
6181 2009-11-26  Eric Blake  <ebb9@byu.net>
6182
6183         init.sh: suggest to use skip_ and fail_ functions in comments
6184         * tests/init.sh: Add a sentence.
6185
6186 2009-11-25  Bruno Haible  <bruno@clisp.org>
6187
6188         init.sh: add documentation in comments
6189         * tests/init.sh: Add some developer and user documentation.
6190
6191 2009-11-26  Jim Meyering  <meyering@redhat.com>
6192
6193         init.sh: accommodate even those who specify bogus srcdir manually
6194         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6195         configure-time tests to be sanitized, so that there is no need to
6196         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6197         (with no double quotes) suffices.  However, since tests may be
6198         invoked manually, and since you may explicitly set srcdir to the
6199         name of a directory containing spaces, do quote its uses here.
6200         * tests/test-pread.sh: Likewise.
6201         Suggested by Bruno Haible.
6202
6203         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6204         * tests/test-pread.sh: Write no data into the pipe, because
6205         test-pread actually reads none.  This avoids a diagnostic,
6206         "bash: echo: write error: Broken pipe", that arises in the unusual
6207         event something is ignoring SIGPIPE, and might be interpreted
6208         as some sort of failure.  Reported by Bruno Haible.
6209
6210 2009-11-25  Jim Meyering  <meyering@redhat.com>
6211
6212         test-pread: cover failure with ESPIPE and EINVAL
6213         * tests/test-pread.c (main): Test for failure, too.
6214         * tests/test-pread.sh: Invoke with stdin on a pipe.
6215         Suggested by Eric Blake.
6216
6217         pread: improvement and fix
6218         * modules/pread (Depends-on): Depend on lseek, for portability to
6219         e.g., mingw.  Suggested by Eric Blake.
6220         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6221
6222         unistd.in.h: correct declaration of pread
6223         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6224         Reported by Richard W.M. Jones.
6225
6226         test-pread.sh: distribute the test script
6227         * modules/pread-tests (Files): Include test-pread.sh.
6228
6229         test-pread.sh: clean up
6230         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6231         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6232         That is unnecessary, since it's always ".".
6233         Suggestion from Eric Blake.
6234
6235         test-pread.sh: make executable
6236         * tests/test-pread.sh: Set executable bit.
6237         Reported by Eric Blake.
6238
6239         correct typo in test-pread.sh
6240         * tests/test-pread.sh: Add #! line.
6241
6242         test pread
6243         * tests/test-pread.c: New file.
6244         * tests/test-pread.sh: Likewise.
6245         * modules/pread-tests: Likewise.
6246
6247         pread: new module
6248         * modules/pread: New file.
6249         * lib/unistd.in.h (pread): Define/declare.
6250         * lib/pread.c (pread): New file.
6251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6252         * modules/unistd (Makefile.am): Substitute witnesses.
6253         * doc/posix-functions/pread.texi (pread): Update.
6254         * MODULES.html.sh: Add pread.
6255
6256 2009-11-25  Jim Meyering  <meyering@redhat.com>
6257
6258         tests/init.sh: new file to be used via most *.sh tests
6259         * tests/init.sh: New file.
6260
6261 2009-11-25  Eric Blake  <ebb9@byu.net>
6262
6263         utimens: work around older Linux failure with symlinks
6264         * lib/utimens.c (lutimensat_works_really): New variable.
6265         (fdutimens, lutimens): Use it to manage kernels that support
6266         nanosecond times on files, but not on symlinks.
6267         Reported by OndÅ™ej Vašík.
6268
6269         utimes: fix configure grammar
6270         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6271
6272 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6273
6274         regex: Fix fastmap for multibyte character ranges.
6275         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6276         characters when a multibyte character range is included.
6277
6278 2009-11-22  Andy Wingo  <wingo@pobox.com>
6279
6280         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6281         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6282
6283 2009-11-24  Bruno Haible  <bruno@clisp.org>
6284
6285         doc: Most *_l functions exist in MacOS X 10.5.
6286         * doc/posix-functions/duplocale.texi: Update platforms list.
6287         * doc/posix-functions/freelocale.texi: Likewise.
6288         * doc/posix-functions/newlocale.texi: Likewise.
6289         * doc/posix-functions/uselocale.texi: Likewise.
6290         * doc/posix-functions/isalnum_l.texi: Likewise.
6291         * doc/posix-functions/isalpha_l.texi: Likewise.
6292         * doc/posix-functions/isblank_l.texi: Likewise.
6293         * doc/posix-functions/iscntrl_l.texi: Likewise.
6294         * doc/posix-functions/isdigit_l.texi: Likewise.
6295         * doc/posix-functions/isgraph_l.texi: Likewise.
6296         * doc/posix-functions/islower_l.texi: Likewise.
6297         * doc/posix-functions/isprint_l.texi: Likewise.
6298         * doc/posix-functions/ispunct_l.texi: Likewise.
6299         * doc/posix-functions/isspace_l.texi: Likewise.
6300         * doc/posix-functions/isupper_l.texi: Likewise.
6301         * doc/posix-functions/iswalnum_l.texi: Likewise.
6302         * doc/posix-functions/iswalpha_l.texi: Likewise.
6303         * doc/posix-functions/iswblank_l.texi: Likewise.
6304         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6305         * doc/posix-functions/iswctype_l.texi: Likewise.
6306         * doc/posix-functions/iswdigit_l.texi: Likewise.
6307         * doc/posix-functions/iswgraph_l.texi: Likewise.
6308         * doc/posix-functions/iswlower_l.texi: Likewise.
6309         * doc/posix-functions/iswprint_l.texi: Likewise.
6310         * doc/posix-functions/iswpunct_l.texi: Likewise.
6311         * doc/posix-functions/iswspace_l.texi: Likewise.
6312         * doc/posix-functions/iswupper_l.texi: Likewise.
6313         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6314         * doc/posix-functions/isxdigit_l.texi: Likewise.
6315         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6316         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6317         * doc/posix-functions/strcoll_l.texi: Likewise.
6318         * doc/posix-functions/strfmon_l.texi: Likewise.
6319         * doc/posix-functions/strftime_l.texi: Likewise.
6320         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6321         * doc/posix-functions/strxfrm_l.texi: Likewise.
6322         * doc/posix-functions/tolower_l.texi: Likewise.
6323         * doc/posix-functions/toupper_l.texi: Likewise.
6324         * doc/posix-functions/towctrans_l.texi: Likewise.
6325         * doc/posix-functions/towlower_l.texi: Likewise.
6326         * doc/posix-functions/towupper_l.texi: Likewise.
6327         * doc/posix-functions/wcscoll_l.texi: Likewise.
6328         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6329         * doc/posix-functions/wctrans_l.texi: Likewise.
6330         * doc/posix-functions/wctype_l.texi: Likewise.
6331         * doc/glibc-functions/strptime_l.texi: Likewise.
6332         * doc/glibc-functions/strtod_l.texi: Likewise.
6333         * doc/glibc-functions/strtof_l.texi: Likewise.
6334         * doc/glibc-functions/strtol_l.texi: Likewise.
6335         * doc/glibc-functions/strtold_l.texi: Likewise.
6336         * doc/glibc-functions/strtoll_l.texi: Likewise.
6337         * doc/glibc-functions/strtoul_l.texi: Likewise.
6338         * doc/glibc-functions/strtoull_l.texi: Likewise.
6339         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6340         * doc/glibc-functions/wcstod_l.texi: Likewise.
6341         * doc/glibc-functions/wcstof_l.texi: Likewise.
6342         * doc/glibc-functions/wcstol_l.texi: Likewise.
6343         * doc/glibc-functions/wcstold_l.texi: Likewise.
6344         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6345         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6346         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6347
6348 2009-11-24  Bruno Haible  <bruno@clisp.org>
6349
6350         duplocale: Fix logic bug.
6351         * lib/duplocale.c: Don't include <langinfo.h>.
6352         (_NL_LOCALE_NAME): Remove macro.
6353         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6354         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6355
6356 2009-11-23  Jim Meyering  <meyering@redhat.com>
6357
6358         test-update-copyright: don't hard-code /usr/bin/perl
6359         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6360         perl to print the current year.  Gilles Espinasse reported that
6361         the replaced use of perl was hard-coded as /usr/bin/perl.
6362
6363 2009-11-23  Bruno Haible  <bruno@clisp.org>
6364
6365         duplocale: Add support for glibc 2.3.x.
6366         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6367
6368 2009-11-22  Bruno Haible  <bruno@clisp.org>
6369
6370         vasnprintf: Tiny optimization.
6371         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6372         MacOS X.
6373
6374 2009-11-22  Bruno Haible  <bruno@clisp.org>
6375
6376         Tests for module 'duplocale'.
6377         * modules/duplocale-tests: New file.
6378         * tests/test-duplocale.c: New file.
6379
6380         New module 'duplocale'.
6381         * m4/duplocale.m4: New file.
6382         * lib/locale.in.h (duplocale): New declaration.
6383         * lib/duplocale.c: New file.
6384         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6385         gl_LOCALE_H_DEFAULTS): New macros.
6386         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6387         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6388         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6389         REPLACE_DUPLOCALE.
6390         * modules/duplocale: New file.
6391         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6392
6393 2009-11-22  Bruno Haible  <bruno@clisp.org>
6394
6395         * modules/locale-tests (configure.ac): Test for newlocale function.
6396         * tests/test-locale.c: When the system has extended locale functions,
6397         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6398
6399         locale: Make locale_t available when possible.
6400         * lib/locale.in.h: Include <xlocale.h> when it exists.
6401         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6402         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6403         * modules/locale (Depends-on): Add extensions.
6404         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6405         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6406
6407 2009-11-22  Bruno Haible  <bruno@clisp.org>
6408
6409         Add comments.
6410         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6411         invocation.
6412         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6413         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6414         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6415
6416 2009-11-22  Bruno Haible  <bruno@clisp.org>
6417
6418         error: account for the possibility of freopen (stdout).
6419         * lib/error.c: Include <unistd.h>.
6420         (flush_stdout): New function, extracted from error and error_at_line.
6421         Determine stdout's fd dynamically.
6422         (error, error_at_line): Invoke flush_stdout.
6423         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6424         * modules/error (Depends-on): Add unistd.
6425
6426 2009-11-22  Bruno Haible  <bruno@clisp.org>
6427
6428         diffseq: Add comment.
6429         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6430
6431 2009-11-22  Jim Meyering  <meyering@redhat.com>
6432
6433         c-stack: avoid defining an unused static function
6434         * lib/c-stack.c (find_stack_direction): Do not define this function
6435         when it will not be used.
6436
6437         diffseq: avoid spurious gcc warnings
6438         * lib/diffseq.h (IF_LINT2): Define.
6439         (compareseq): Use it to initialize two members of "part".
6440         This avoids two used-uninitialized warnings.
6441
6442 2009-11-21  Jim Meyering  <meyering@redhat.com>
6443
6444         c-stack: avoid "ignoring return value of `write'" warning
6445         * lib/c-stack.c: Include "ignore-value.h".
6446         (die): Explicitly ignore each write return value.
6447         * modules/c-stack (Depends-on): Add ignore-value.
6448
6449 2009-11-21  Bruno Haible  <bruno@clisp.org>
6450
6451         diffseq: reduce scope of variable 'best'.
6452         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6453         variable, earlier used for two different purposes.
6454
6455 2009-11-21  Jim Meyering  <meyering@redhat.com>
6456
6457         diffseq: remove useless assignment to "best"
6458         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6459         assignment.  At that point "best" is already guaranteed to be zero.
6460
6461 2009-11-20  Eric Blake  <ebb9@byu.net>
6462
6463         build: mention ftp redirector in release announcements
6464         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6465         values that used to come from cfg.mk; mention FTP redirect URL.
6466         * build-aux/announce-gen: Mention the mirror list.
6467         Suggested by Karl Berry.
6468
6469         nanosleep: improve port to mingw
6470         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6472         LIB_NANOSLEEP, but only when needed.
6473         * modules/select (Link): Document LIBSOCKET.
6474         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6475         enough.
6476
6477         nanosleep: work around cygwin bug
6478         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6479         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6480         bug.
6481         (getnow): Delete, not needed.
6482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6483         LIB_CLOCK_GETTIME.
6484         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6485         clock-time, gettime.
6486         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6487         bug.
6488         * modules/nanosleep-tests: New test.
6489         * tests/test-nanosleep.c: New file.
6490
6491         sleep: work around cygwin bug
6492         * lib/sleep.c (rpl_sleep): Work around the bug.
6493         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6494         (gl_PREREQ_SLEEP): Delete unused macro.
6495         * modules/sleep (Depends-on): Add verify.
6496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6497         * modules/unistd (Makefile.am): Substitute witness.
6498         * lib/unistd.in.h (sleep): Update prototype.
6499         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6500         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6501         * modules/sleep-tests (Depends-on): Check for alarm.
6502
6503 2009-11-20  Jim Meyering  <meyering@redhat.com>
6504
6505         maint.mk: improve sc_prohibit_magic_number_exit
6506         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6507         so it does not match uses like System.exit(1).
6508         Add comments showing how to correct all offenders.
6509
6510 2009-11-19  Eric Blake  <ebb9@byu.net>
6511
6512         xalloc-die-tests: add missing library
6513         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6514
6515         test-xvasprintf: silence compiler warnings
6516         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6517         empty string from gcc.
6518
6519 2009-11-19  Jim Meyering  <meyering@redhat.com>
6520
6521         xfreopen: new module, from coreutils
6522         * modules/xfreopen: New module.
6523         * lib/xfreopen.c: New file.
6524         * lib/xfreopen.h: New file.
6525         * MODULES.html.sh (File stream based Input/Output"): Add it.
6526
6527 2009-11-19  Eric Blake  <ebb9@byu.net>
6528
6529         manywarnings: depend on warnings
6530         * modules/manywarnings (Depends-on): Add warnings.
6531
6532         build: avoid compiler warnings
6533         * lib/select.c (rpl_select): Delete unused variable.
6534         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6535
6536 2009-11-18  Eric Blake  <ebb9@byu.net>
6537
6538         tests: avoid false negative with --with-packager
6539         * tests/test-version-etc.sh: Discard packager information.
6540         * tests/test-argp-version-etc-1.sh: Likewise.
6541         Reported by Mike Frysinger.
6542
6543         utimens: fix regression on Solaris
6544         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6545         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6546         can only change fd timestamps via futimesat.  Instead, use an
6547         additional witness macro to avoid BSD bug.
6548         Reported by Jim Meyering.
6549
6550 2009-11-17  Eric Blake  <ebb9@byu.net>
6551
6552         usleep: use it to simplify tests
6553         * modules/stat-time-tests (Depends-on): Add usleep.
6554         (configure.ac): Drop usleep check.
6555         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6556         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6557         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6558         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6559         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6560         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6561         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6562         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6563         Likewise.
6564         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6565         * tests/test-lchown.h (nap): Likewise.
6566         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6567         * tests/test-stat-time.c (nap): Likewise.
6568         * tests/test-utimens-common.h (nap): Update comments.
6569
6570         usleep: new module
6571         * modules/usleep: New file.
6572         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6573         * lib/usleep.c (usleep): Likewise.
6574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6575         * modules/unistd (Makefile.am): Substitute witnesses.
6576         * lib/unistd.in.h (usleep): Add declaration.
6577         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6578         * MODULES.html.sh (Date and time): Likewise.
6579         * modules/usleep-tests (Depends-on): New test.
6580         * tests/test-usleep.c: New file.
6581
6582         chown: work around OpenBSD bug
6583         * lib/chown.c (rpl_chown): Work around the bug.
6584         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6585         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6586         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6587         * modules/chown (Depends-on): Add stdbool.
6588         * modules/lchown (Depends-on): Likewise.
6589         * doc/posix-functions/chown.texi (chown): Document the bug.
6590         * doc/posix-functions/lchown.texi (lchown): Likewise.
6591         * tests/test-lchown.h (test_chown): Relax test.
6592
6593         mkstemp: avoid conflict with C++ keyword template
6594         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6595         * lib/mkostemp.c (mkostemp): Likewise.
6596         * lib/mkostemps.c (mkostemps): Likewise.
6597         * lib/mkstemp.c (mkstemp): Likewise.
6598         * lib/mkstemps.c (mkstemps): Likewise.
6599
6600         xalloc-die-tests: optimize
6601         * tests/test-xalloc-die.sh: Reduce number of processes.
6602
6603 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6604
6605         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6606         patch from ludo@gnu.org (Ludovic Courtès).
6607
6608 2009-11-17  Jim Meyering  <meyering@redhat.com>
6609
6610         version-etc: use proper license string
6611         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6612         * modules/version-etc-fsf: Likewise.
6613
6614 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6615
6616         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6617         printed to stdout.  Deal with EOL differences.
6618
6619 2009-11-17  Eric Blake  <ebb9@byu.net>
6620
6621         unsetenv: work around Solaris bug
6622         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6623         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6624         Reported by Jim Meyering.
6625
6626         vasnprintf: avoid compiler warnings
6627         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6628         variables.
6629         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6630
6631 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6632
6633         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6634         settings since xalloc-die is no longer the self test,
6635         xalloc-die.sh is.
6636
6637 2009-11-17  Jim Meyering  <meyering@redhat.com>
6638
6639         test-xalloc-die.sh: make the code agree with the commit log
6640         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6641         at the end, just in case you happen to have a test-xalloc-die
6642         program in some other PATH directory.
6643
6644         test-xalloc-die.sh: fix a portability bug
6645         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6646         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6647         Otherwise, argv[0] (as often seen in diagnostics) would be too
6648         system-dependent, sometimes with, and sometimes without the leading "./".
6649
6650         version-etc-fsf: relax license to LGPLv3+
6651         * modules/version-etc-fsf (License): Relax license.
6652
6653 2009-11-16  Eric Blake  <ebb9@byu.net>
6654
6655         xalloc-die-tests: avoid printing null pointer
6656         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6657         shell script.
6658         * tests/test-xalloc-die.c (program_name): Declare.
6659         * tests/test-xalloc-die.sh (tmpfiles): New file.
6660
6661         setenv, unsetenv: work around various bugs
6662         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6663         (setenv) [HAVE_SETENV]: Work around bugs.
6664         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6665         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6666         for bugs.
6667         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6668         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6670         * modules/stdlib (Makefile.am): Update substitutions.
6671         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6672         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6673         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6674         * modules/setenv-tests: New test.
6675         * modules/unsetenv-tests: Likewise.
6676         * tests/test-setenv.c: New file.
6677         * tests/test-unsetenv.c: Likewise.
6678
6679 2009-11-16  Jim Meyering  <meyering@redhat.com>
6680
6681         version-etc: relax license to LGPLv3+
6682         * modules/version-etc (License): Relax license.
6683
6684         better AC_REQUIRE expanded-before-required-warning avoidance
6685         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6686         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6687         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6688         which is no longer needed.
6689
6690 2009-11-16  Eric Blake  <ebb9@byu.net>
6691
6692         test-freading: clean up temporary file
6693         * tests/test-freading.c (main): Remove file on success, and use
6694         ASSERT more liberally.
6695         Reported by Jim Meyering.
6696
6697 2009-11-16  Jim Meyering  <meyering@redhat.com>
6698
6699         avoid new AC_REQUIRE expanded-before-required warnings
6700         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6701         merely using it.
6702         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6703         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6704
6705 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6706
6707         * tests/test-xalloc-die.c: New file.
6708         * modules/xalloc-die-tests: New file.
6709         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6710         XFAIL_TESTS so it can be appended by modules.
6711
6712 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6713
6714         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6715         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6716
6717 2009-11-14  Eric Blake  <ebb9@byu.net>
6718
6719         fnmatch: avoid compiler warning
6720         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6721         to silence compiler warning about mismatch signedness in ?:.
6722         Reported by Robert Millan.
6723
6724         intprops: add double-inclusion guard
6725         * lib/intprops.h: Allow idempotent includes.
6726         Suggested by Bruce Korb.
6727
6728         openat: detect Solaris fchownat bug
6729         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6730         penalizing glibc chownat when only lchownat is broken.
6731         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6732         trailing slash bugs.
6733         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6734         * modules/openat-tests (Files): Include more files.
6735         (Depends-on): Add mgetgroups, sleep, stat-time.
6736         (configure.ac): Add additional checks.
6737         (Makefile.am): Build new test.
6738         * tests/test-fchownat.c: New file.
6739
6740         lchown: detect Solaris and FreeBSD bug
6741         * lib/lchown.c (rpl_lchown): Work around bug.
6742         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6744         * modules/unistd (Makefile.am): Populate it.
6745         * lib/unistd.in.h (lchown): Update declaration.
6746         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6747         * modules/lchown-tests: New file.
6748         * tests/test-lchown.h (test_lchown): Likewise.
6749         * tests/test-lchown.c (main): Likewise.
6750
6751         chown: detect Solaris and FreeBSD bug
6752         * lib/chown.c (rpl_chown): Work around bug.
6753         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6754         (gl_PREREQ_CHOWN): Delete.
6755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6756         * modules/unistd (Makefile.am): Populate it.
6757         * lib/unistd.in.h (chown): Update declaration.
6758         * lib/lchown.c (chown): Update client.
6759         * modules/lchown (Depends-on): Add lstat.
6760         * doc/posix-functions/chown.texi (chown): Document the bug.
6761         * doc/posix-functions/getgroups.texi (getgroups): Document
6762         getgroups pitfall.
6763         * modules/chown-tests: New file.
6764         * tests/test-chown.h (test_chown): Likewise.
6765         * tests/test-chown.c (main): Likewise.
6766
6767 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6768
6769         gnulib-tool: correctly detect absence of m4 directories
6770         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6771
6772 2009-11-14  Jim Meyering  <meyering@redhat.com>
6773
6774         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6775         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6776
6777 2009-11-14  John W. Eaton  <jwe@gnu.org>
6778
6779         strftime.h: wrap funtion declaration in extern "C" block
6780         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6781
6782 2009-11-13  Eric Blake  <ebb9@byu.net>
6783
6784         getgroups: avoid compiler warning
6785         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6786
6787         getgroups: work around FreeBSD bug
6788         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6789         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6790         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6791         * tests/test-getgroups.c (main): Fix buffer overrun.
6792
6793         getgroups: avoid compilation failure
6794         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6795         * modules/getgroups (Depends-on): Add stdint.
6796
6797 2009-11-13  Jim Meyering  <meyering@redhat.com>
6798
6799         test-getgroups: avoid compilation failure
6800         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6801
6802 2009-11-13  Eric Blake  <ebb9@byu.net>
6803
6804         mgetgroups: new module, taken from coreutils
6805         * modules/mgetgroups: New file.
6806         * lib/mgetgroups.h: Likewise.
6807         * lib/mgetgroups.c (mgetgroups): Likewise.
6808         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6809         * MODULES.html.sh (Users and groups): Mention it.
6810
6811         getgroups: don't expose GETGROUPS_T to user
6812         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6813         an element at a time if GETGROUPS_T is wrong size.
6814         * lib/getugroups.h (getugroups): Change signature.
6815         * lib/unistd.in.h (getgroups): Likewise.
6816         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6817         signature needs fixing.
6818         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6819         AC_TYPE_GETGROUPS.
6820         * modules/group-member (Depends-on): Add getgroups.
6821         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6822         (group_member): Rely on getgroups replacement.
6823         * lib/getugroups.c (getugroups): Use gid_t.
6824         * tests/test-getgroups.c (main): Likewise.
6825         * NEWS: Mention the signature change.
6826         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6827         problem with signature.
6828         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6829         GETGROUPS_T is still useful for setgroups.
6830
6831         getgroups, getugroups: provide stubs for mingw
6832         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6833         * lib/getugroups.c (getugroups): Likewise.
6834         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6835         function.  Modernize replacement scheme.
6836         (gl_PREREQ_GETGROUPS): Delete.
6837         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6838         * modules/getgroups (configure.ac): Declare witness.
6839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6840         * modules/unistd (Depends-on): Substitute witness.
6841         * lib/unistd.in.h (getgroups): Declare replacement.
6842
6843         getgroups: avoid calling exit
6844         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6845         drop xalloc.
6846         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6847         dependencies.
6848         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6849         exiting, in the rare case of malloc failure.
6850
6851         getgroups: fix logic error
6852         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6853         has more than 20 groups.
6854         * modules/getgroups-tests: New test.
6855         * tests/test-getgroups.c: New file.
6856
6857 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6858
6859         * tests/test-base64.c: Improve.
6860
6861 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6862
6863         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6864         Blake <ebb9@byu.net>.
6865
6866 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6867
6868         * tests/test-xvasprintf.c: Add %s%s related checks.
6869
6870 2009-11-12  Eric Blake  <ebb9@byu.net>
6871
6872         version-etc: match standards.texi style
6873         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6874         and use <> only for URLs.
6875
6876 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6877
6878         fts: do not fail on a submount during traversal
6879         * lib/fts.c (fts_build): Read the stat info again after opening
6880         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6881         Original report at http://bugzilla.redhat.com/501848.
6882
6883 2009-11-12  Jim Meyering  <meyering@redhat.com>
6884
6885         bootstrap: sync from coreutils
6886         * build-aux/bootstrap (bootstrap_epilogue): New function.
6887         Use git_modules_config in one more place.  This make bootstrap's
6888         --gnulib-srcdir option more useful for testing.
6889
6890         bootstrap: generalize autoheader check
6891         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6892         AC_CONFIG_HEADERS.
6893
6894 2009-11-11  Eric Blake  <ebb9@byu.net>
6895
6896         mkfifoat: use new modules for Solaris and BSD bugs
6897         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6898         * lib/mkfifoat.c (mknodat): Split...
6899         * lib/mknodat.c (mknodat): ...into new file.
6900         * modules/mkfifoat (Files): Ship new file.
6901         (Depends-on): Add mkfifo, mknod.
6902         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6903         (Depends-on): Add symlink.
6904         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6905         redundant with test_mkfifo.h.
6906         (do_mkfifoat, do_mknodat): New helpers.
6907
6908         mknod: new module
6909         * modules/mknod: New file.
6910         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6911         * lib/mknod.c (mknod): Likewise.
6912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6913         defaults.
6914         * modules/sys_stat (Makefile.am): Substitute them.
6915         * lib/sys_stat.in.h (mknod): Declare replacement.
6916         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6917         Document it.
6918         * doc/posix-functions/mknod.texi (mknod): Likewise.
6919         * modules/mknod-tests: New test.
6920         * tests/test-mknod.c: Likewise.
6921
6922         mkfifo: new module
6923         * modules/mkfifo: New file.
6924         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6925         * lib/mkfifo.c (mkfifo): Likewise.
6926         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6927         defaults.
6928         * modules/sys_stat (Makefile.am): Substitute them.
6929         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6930         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6931         Document it.
6932         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6933         * modules/mkfifo-tests: New test.
6934         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6935         from test-mkfifoat.c.
6936         * tests/test-mkfifo.c: New file.
6937
6938         readlink: detect FreeBSD bug
6939         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6940         slash on symlink.
6941         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6942         * tests/test-readlink.h (test_readlink): Enhance test.
6943
6944         symlink: detect FreeBSD bug
6945         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6946         slash on symlink.
6947         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6948         * tests/test-symlink.h (test_symlink): Enhance test.
6949
6950 2009-11-10  Eric Blake  <ebb9@byu.net>
6951
6952         link: detect FreeBSD bug
6953         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6954         symlink.
6955         * doc/posix-functions/link.texi (link): Document the bug.
6956         * tests/test-link.h (test_link): Enhance test.
6957         * tests/test-linkat.c (main): Update caller.
6958
6959         unlink, remove: detect FreeBSD bug
6960         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6961         slash on symlink.
6962         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6963         * doc/posix-functions/remove.texi (remove): Likewise.
6964         * tests/test-unlink.h (test_unlink): Enhance test.
6965         * tests/test-remove.c (main): Likewise.
6966
6967 2009-11-09  Eric Blake  <ebb9@byu.net>
6968
6969         rename: detect FreeBSD bug
6970         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6971         slash on symlink.
6972         * modules/renameat-tests (Depends-on): Add filenamecat.
6973         * tests/test-rename.h (test_rename): Allow one more errno.
6974         * tests/test-renameat.c (main): Likewise.
6975         * doc/posix-functions/rename.texi (rename): Document the bug.
6976
6977         open: detect FreeBSD bug
6978         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6979         symlink.
6980         * doc/posix-functions/open.texi (open): Document the bug.
6981         * doc/posix-functions/utimes.texi (utimes): Likewise.
6982         * tests/test-open.h (test_open): Add parameters, and test symlink
6983         handling.
6984         * tests/test-open.c (main): Adjust caller.
6985         * tests/test-fcntl-safer.c (main): Likewise.
6986         * modules/open-tests (Depends-on): Add stdbool, symlink.
6987         * modules/fcntl-safer-tests (Depends-on): Likewise.
6988         * tests/test-openat.c (main): Add test-open tests.
6989
6990         stat: detect FreeBSD bug
6991         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6992         symlink.
6993         * doc/posix-functions/stat.texi (stat): Document the bug.
6994         * tests/test-stat.h (test_stat_func): Add argument.
6995         * tests/test-stat.c (main): Adjust caller.
6996         * tests/test-fstatat.c (main): Likewise.
6997         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6998         Reported by Jim Meyering.
6999
7000 2009-11-09  James Youngman  <jay@gnu.org>
7001
7002         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7003         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7004
7005 2009-11-08  Jim Meyering  <meyering@redhat.com>
7006
7007         utimens: remove invalid futimesat call
7008         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7009         It used the file descriptor of the target file as the DIR_FD
7010         parameter and NULL as the file name.  That caused failure with
7011         errno == EFAULT on FreeBSD-8.0-rc2
7012
7013 2009-11-07  Eric Blake  <ebb9@byu.net>
7014
7015         fflush, freadseek: use fseeko, not fseek
7016         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7017         (clear_ungetc_buffer): Avoid potential problems on large files.
7018         * lib/freadseek.c (freadseek): Likewise.
7019         * modules/freadseek (Depends-on): Add fseeko.
7020         * modules/fseek (configure.ac): Set a witness.
7021         * tests/test-fflush.c (main): Use fseeko.
7022         * tests/test-fpurge.c (fseek): Disable link warning.
7023         * tests/test-freadable.c (fseek): Likewise.
7024         * tests/test-freading.c (fseek): Likewise.
7025         * tests/test-fseeko.c (fseek): Likewise.
7026         * tests/test-ftell.c (fseek): Likewise.
7027         * tests/test-ftello.c (fseek): Likewise.
7028         * tests/test-fwritable.c (fseek): Likewise.
7029         * tests/test-fwriting.c (fseek): Likewise.
7030
7031 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7032
7033         * modules/memchr (Depends-on): Drop getpagesize dependency.
7034
7035 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7036
7037         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7038         Reported by Ludovic Courtès.
7039         * build-aux/pmccabe2html: Improve example usage.
7040         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7041
7042 2009-11-06  Jim Meyering  <meyering@redhat.com>
7043
7044         do-release-commit-and-tag: New module.
7045         Automate the release-commit and tag process.
7046         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7047         * modules/do-release-commit-and-tag: New file.
7048         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7049
7050 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7051
7052         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7053         because test-select.c uses inet_pton.
7054
7055 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7056
7057         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7058         GETADDRINFO_LIB.  Bump serial number.
7059         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7060         Suggested by Eric Blake <ebb9@byu.net>.
7061
7062 2009-11-05  Eric Blake  <ebb9@byu.net>
7063
7064         strtod: detect darwin bug
7065         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7066         Reported by Leo Davis.
7067
7068         freopen-safer: new module
7069         * modules/freopen-safer: New module.
7070         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7071         * lib/freopen-safer.c (freopen_safer): New file.
7072         * lib/stdio-safer.h (freopen_safer): New declaration.
7073         * lib/stdio--.h (freopen): New override.
7074         * MODULES.html.sh (File stream based Input/Output): Mention it.
7075         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7076         freopen-safer module.
7077         * doc/posix-functions/stderr.texi (stderr): Likewise.
7078         * doc/posix-functions/stdin.texi (stdin): Likewise.
7079         * doc/posix-functions/stdout.texi (stdout): Likewise.
7080         * modules/freopen-safer-tests: New test.
7081         * tests/test-reopen-safer.c: New file.
7082
7083 2009-11-05  Jim Meyering  <meyering@redhat.com>
7084
7085         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7086         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7087
7088 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7089
7090         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7091
7092 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7093
7094         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7095
7096 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7097
7098         Fix link error.
7099         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7100         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7101
7102 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7103
7104         * tests/test-func.c: Also test value of __func__.
7105
7106 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7107
7108         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7109         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7110
7111 2009-11-05  Bruno Haible  <bruno@clisp.org>
7112
7113         Fix link error.
7114         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7115         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7116         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7117
7118 2009-11-05  Bruno Haible  <bruno@clisp.org>
7119
7120         Tests for module 'inet_pton'.
7121         * modules/inet_pton-tests: New file.
7122         * tests/test-inet_pton.c: New file.
7123
7124 2009-11-05  Bruno Haible  <bruno@clisp.org>
7125
7126         Tests for module 'inet_ntop'.
7127         * modules/inet_ntop-tests: New file.
7128         * tests/test-inet_ntop.c: New file.
7129
7130 2009-11-04  Eric Blake  <ebb9@byu.net>
7131
7132         stdlib-safer: wrap all mkstemp variants
7133         * modules/mkostemp (configure.ac): Set witness.
7134         * modules/mkostemps (configure.ac): Likewise.
7135         * modules/mkstemps (configure.ac): Likewise.
7136         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7137         (mkstemps_safer): Wrap more functions.
7138         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7139         wrapping.
7140         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7141         (mkstemps_safer): Implement the wrappers.
7142
7143         mkstemps, mkostemps: new modules
7144         * modules/mkostemps: New module.
7145         * modules/mkstemps: Likewise.
7146         * lib/mkostemps.c (mkostemps): New file.
7147         * lib/mkstemps.c (mkstemps): Likewise.
7148         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7149         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7151         * modules/stdlib (Makefile.am): Substitute them.
7152         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7153         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7154         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7155         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7156         * MODULES.html.sh (File system functions): Mention them.
7157
7158         tempname: resync from glibc
7159         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7160         same values for __GT_FILE as glibc.  Abort even when assertions
7161         are disabled.
7162         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7163         match its value otherwise.  Allow idempotent inclusion.
7164         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7165         * lib/mkostemp.c (mkostemp): Likewise.
7166         * lib/mkstemp.c (mkstemp): Likewise.
7167         * lib/tmpfile.c (tmpfile): Likewise.
7168         * NEWS: Document this.
7169
7170         utimens: fix use of futimens on older Linux
7171         * lib/utimens.c (fdutimens): Use updated, rather than original,
7172         timespec to avoid bug in older Linux kernel.
7173         Reported by Simon Josefsson.
7174
7175 2009-11-04  Bruno Haible  <bruno@clisp.org>
7176
7177         Make num_processors more flexible and consistent.
7178         * lib/nproc.h (enum nproc_query): New type.
7179         (num_processors): Add a 'query' argument.
7180         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7181         (num_processors): Add a 'query' argument. Test the value of the
7182         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7183         mingw, count the number of CPUs available for the current process.
7184         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7185         Check for sched_getaffinity and sched_getaffinity_np.
7186         * modules/nproc (Depends-on): Add c-ctype, extensions.
7187         * NEWS: Mention the change.
7188
7189 2009-11-03  Bruno Haible  <bruno@clisp.org>
7190
7191         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7192
7193 2009-11-03  Jim Meyering  <meyering@redhat.com>
7194
7195         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7196         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7197         if it is defined.
7198
7199 2009-11-02  Eric Blake  <ebb9@byu.net>
7200
7201         mktime, timegm: share common declaration
7202         * lib/mktime-internal.h: New file.
7203         * lib/mktime.c: Use it rather than open-coding a declaration.
7204         * lib/timegm.c: Likewise.
7205         * modules/mktime (Files): Ship it.
7206         * modules/timegm (Files): Likewise.
7207         Suggested by Bruno Haible.
7208
7209         test-update-copyright: update test to match script changes
7210         * tests/test-update-copyright.sh: Avoid hard-coding perl
7211         location.  Don't update *.bak created by earlier runs.
7212
7213 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7214             Simon Josefsson  <simon@josefsson.org>
7215             Bruno Haible  <bruno@clisp.org>
7216
7217         Fix link error on Solaris 8.
7218         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7219         also in libnsl. Define also INET_PTON_LIB.
7220         * modules/inet_pton (Link): New section.
7221
7222 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7223             Bruno Haible  <bruno@clisp.org>
7224
7225         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7226         * modules/inet_ntop (Link): New section.
7227         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7228
7229 2009-11-02  Eric Blake  <ebb9@byu.net>
7230
7231         maint: avoid compiler warnings in m4 macros
7232         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7233         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7234
7235 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7236
7237         * m4/pmccabe2html.m4: Remove file.
7238         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7239         function.  Change maintainer.
7240         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7241         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7242         Courtès).
7243
7244 2009-10-31  Eric Blake  <ebb9@byu.net>
7245
7246         fseeko: fix m4 regression
7247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7248         regression from 2009-10-27.
7249         Reported by Ralf Wildenhues.
7250
7251 2009-10-31  Jim Meyering  <meyering@redhat.com>
7252
7253         inttostr: aesthetics and improved (compile-time) safety
7254         Define inttype_is_signed rather than inttype_is_unsigned,
7255         since the sole use is via "#if inttype_is_signed".
7256         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7257         inttype_is_unsigned.
7258         * lib/offtostr.c (inttype_is_signed): Likewise.
7259         * lib/uinttostr.c (inttype_is_signed): Likewise.
7260         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7261         * lib/inttostr.c (inttostr): Use verify to cross-check the
7262         inttype_is_signed value and the signedness of the actual type.
7263         * modules/inttostr (Depends-on): Add verify.
7264
7265 2009-10-30  Eric Blake  <ebb9@byu.net>
7266
7267         build: avoid compiler warnings
7268         * lib/fchmodat.c (lchmod): Mark unused variables.
7269         * lib/getopt.c (_getopt_initialize): Likewise.
7270         * lib/mktime.c (__mktime_internal): Provide prototype.
7271         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7272         older gcc that do not understand #pragma GCC diagnostic.
7273         * lib/uinttostr.c (inttype_is_unsigned): Define.
7274         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7275
7276 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7277
7278         stat: fix compilation on AIX
7279         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7280         only see struct stat64.
7281
7282 2009-10-30  Eric Blake  <ebb9@byu.net>
7283
7284         exclude: make more robust
7285         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7286         rather than masking a coding bug.
7287         Suggested by Bruno Haible.
7288
7289 2009-10-30  Jim Meyering  <meyering@redhat.com>
7290
7291         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7292         Rather than putting #!/usr/bin/perl on the first line,
7293         start with a variant of what's recommended by "man perlrun" that
7294         invokes the first "perl" program from your shell's search path.
7295         * build-aux/gitlog-to-changelog: Replace #!... as above.
7296         Add a "Local Variables" perl mode setting.
7297         Prompted by a patch from Ludovic Courtès.
7298         Improved by Eric Blake.
7299         * build-aux/useless-if-before-free: Likewise.
7300         * build-aux/announce-gen: Likewise.
7301         * build-aux/update-copyright: Likewise.
7302
7303 2009-10-29  Eric Blake  <ebb9@byu.net>
7304
7305         filenamecat-lgpl: adjust clients
7306         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7307         filenamecat.
7308         * modules/renameat (Depends-on): Likewise.
7309
7310         filenamecat: split into filenamecat-lgpl
7311         * modules/filenamecat-lgpl: New module.
7312         * modules/filenamecat (Files): Move library-safe files into
7313         filenamecat-lgpl.
7314         (Depends-on): Add filenamecat-lgpl.
7315         (configure.ac): Declare witness.
7316         * lib/filenamecat.h (file_name_concat): Only declare when using
7317         GPL module.
7318         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7319         Move...
7320         * lib/filenamecat-lgpl.c: ...into new file.
7321         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7322         (gl_FILE_NAME_CONCAT): Use it.
7323         * MODULES.html.sh (File system functions): Mention new module.
7324
7325         argp: avoid memory leak
7326         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7327         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7328         base_name, since the latter malloc()s and can call exit().
7329         Leak introduced 2006-07-03.
7330
7331         dirname-lgpl: adjust clients that don't need full dirname
7332         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7333         * modules/filenamecat (Depends-on): Likewise.
7334         * modules/linkat (Depends-on): Likewise.
7335         * modules/mkancesdirs (Depends-on): Likewise.
7336         * modules/mkdir (Depends-on): Likewise.
7337         * modules/openat (Depends-on): Likewise.
7338         * modules/savewd (Depends-on): Likewise.
7339         * modules/rename (Depends-on): Likewise.
7340         (License): Relax license.
7341         * modules/mkdir-tests (Depends-on): Drop progname.
7342         (Makefile.am): Delete unneeded LDADD.
7343         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7344
7345         dirname: split into dirname-lgpl
7346         * modules/dirname-lgpl: New module.
7347         * modules/dirname (Files): Move library-safe files into
7348         dirname-lgpl.
7349         (Depends-on): Add dirname-lgpl.
7350         (configure.ac): Declare witness.
7351         * modules/double-slash-root (License): Relax license.
7352         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7353         module.
7354         * lib/dirname.c (dir_len, mdir_name): Move...
7355         * lib/dirname-lgpl.c: ...into new file.
7356         * lib/basename.c (last_component, base_len): Move...
7357         * lib/basename-lgpl.c: ...into new file.
7358         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7359         (gl_DIRNAME): Use it.
7360         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7361         Mention new module.
7362         * modules/dirname-tests (Depends-on): Add progname.
7363         * tests/test-dirname.c (program_name): Delete.
7364
7365         mkdir: make safe for libraries
7366         * modules/mkdir (Depends-on): Drop xalloc.
7367         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7368         exit.
7369
7370         tests: avoid some compiler warnings
7371         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7372         literals.
7373         * tests/test-memchr.c (main): Avoid type mismatch.
7374         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7375         * tests/test-base64.c (main): Likewise.
7376         * tests/test-getdelim.c (main): Likewise.
7377         * tests/test-gethostname.c (main): Likewise.
7378         * tests/test-getline.c (main): Likewise.
7379         * tests/test-netinet_in.c (main): Likewise.
7380         * tests/test-select.c (open_server_socket, main): Likewise.
7381         * tests/test-select-stdin.c (main): Likewise.
7382         * tests/test-sockets.c (main): Likewise.
7383         * tests/test-strsignal.c (main): Likewise.
7384         * tests/test-sys_select.c (main): Likewise.
7385         * tests/test-sys_socket.c (main): Likewise.
7386         * tests/test-u64.c (main): Likewise.
7387         * tests/test-xfprintf-posix.c (main): Likewise.
7388         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7389
7390         sockets: avoid compiler warning
7391         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7392
7393         maint: detect usage(1) and other suspicious exits
7394         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7395
7396 2009-10-29  Jim Meyering  <meyering@redhat.com>
7397
7398         timespec: long-to-int truncation could make timespec_cmp malfunction
7399         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7400         a multiple of 2^32 nanoseconds as no difference.
7401
7402 2009-10-28  Jim Meyering  <meyering@redhat.com>
7403
7404         fprintftime: wrap macro code argument in "do {...} while(0)"
7405         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7406         cpy macro must be a statement that can be followed by a semicolon.
7407         Now that the else clause contains a comment and is hence longer
7408         than one line, I require curly braces.  That in turn requires
7409         that we wrap this code block in the standard do...while(0).
7410
7411         fprintftime: remove stray semicolon from previous change
7412         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7413
7414         fprintftime: avoid a warning about ignored fwrite return value
7415         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7416         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7417         that is unsafe.
7418         * modules/fprintftime (Depends-on): Add ignore-value.
7419
7420         exclude: avoid an unwarranted warning
7421         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7422
7423 2009-10-27  Eric Blake  <ebb9@byu.net>
7424
7425         fseek: avoid compilation failure when fflush is replaced
7426         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7427         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7428         module is in use.
7429         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7430         module is not in use; since REPLACE_FSEEK worked otherwise.
7431         (GNULIB_FTELLO): Likewise for ftell.
7432         Reported by Ian Beckwith and others.
7433
7434 2009-10-27  Bruno Haible  <bruno@clisp.org>
7435
7436         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7437         Reported by Jim Meyering.
7438
7439 2009-10-27  Jim Meyering  <jim@meyering.net>
7440             Bruno Haible  <bruno@clisp.org>
7441
7442         Avoid warning despite dropping the return value of fwrite.
7443         * lib/unicodeio.c: Include ignore-value.h.
7444         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7445         * modules/unicodeio (Depends-on): Add ignore-value.
7446
7447 2009-10-26  Eric Blake  <ebb9@byu.net>
7448
7449         areadlinkat: fix fallback path
7450         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7451         pointer and zero.
7452
7453 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7454
7455         Use a better IO block size for modern systems
7456         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7457         * lib/md2.c: Likewise.
7458         * lib/md4.c: Likewise.
7459         * lib/md5.c: Likewise.
7460         * lib/sha1.c: Likewise.
7461         * lib/sha256.c: Likewise.
7462         * lib/sha512.c: Likewise.
7463
7464 2009-10-22  Eric Blake  <ebb9@byu.net>
7465
7466         tests: avoid several compiler warnings
7467         * tests/test-getcwd.c (main): Avoid buffer underflow.
7468         * tests/test-getdate.c (main): String literals are not safe with
7469         putenv, so use setenv.  Declare unused argument.
7470         * modules/getdate-tests (Depends-on): Add setenv.
7471         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7472         problems with string literals in char *.
7473         * tests/test-hash.c (main): Avoid shadowing declaration.
7474         (insert_new): Treat string literals as char const *.
7475         * tests/test-getopt.h (test_getopt): Likewise.
7476         (getopt_loop): Alter types to minimize casting elsewhere.
7477         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7478         (test_getopt_long_posix): Likewise.
7479         (do_getopt_long): Add wrapper to minimize casting.
7480         * tests/test-atexit.c (clear_temp_file): Use void.
7481         * tests/test-areadlink-with-size.c (main): Declare unused
7482         arguments.
7483         * tests/test-areadlink.c (main): Likewise.
7484         * tests/test-areadlinkat-with-size.c (main): Likewise.
7485         * tests/test-areadlinkat.c (main): Likewise.
7486         * tests/test-canonicalize-lgpl.c (main): Likewise.
7487         * tests/test-canonicalize.c (main): Likewise.
7488         * tests/test-dirent-safer.c (main): Likewise.
7489         * tests/test-dirname.c (main): Likewise.
7490         * tests/test-dup2.c (main): Likewise.
7491         * tests/test-fchdir.c (main): Likewise.
7492         * tests/test-fcntl-h.c (main): Likewise.
7493         * tests/test-fcntl-safer.c (main): Likewise.
7494         * tests/test-fdopendir.c (main): Likewise.
7495         * tests/test-fdutimensat.c (main): Likewise.
7496         * tests/test-fflush.c (main): Likewise.
7497         * tests/test-filenamecat.c (main): Likewise.
7498         * tests/test-filevercmp.c (main): Likewise.
7499         * tests/test-fopen-safer.c (main): Likewise.
7500         * tests/test-fopen.c (main): Likewise.
7501         * tests/test-fpending.c (main): Likewise.
7502         * tests/test-fpurge.c (main): Likewise.
7503         * tests/test-freading.c (main): Likewise.
7504         * tests/test-fstatat.c (main): Likewise.
7505         * tests/test-fsync.c (main): Likewise.
7506         * tests/test-futimens.c (main): Likewise.
7507         * tests/test-getndelim2.c (main): Likewise.
7508         * tests/test-gettimeofday.c (main): Likewise.
7509         * tests/test-getopt.c (main): Likewise.
7510         * tests/test-i-ring.c (main): Likewise.
7511         * tests/test-inttypes.c (main): Likewise.
7512         * tests/test-link.c (main): Likewise.
7513         * tests/test-lstat.c (main): Likewise.
7514         * tests/test-math.c (main): Likewise.
7515         * tests/test-md5.c (main): Likewise.
7516         * tests/test-memchr2.c (main): Likewise.
7517         * tests/test-memrchr.c (main): Likewise.
7518         * tests/test-mkdir.c (main): Likewise.
7519         * tests/test-mkdirat.c (main): Likewise.
7520         * tests/test-mkfifoat.c (main): Likewise.
7521         * tests/test-open.c (main): Likewise.
7522         * tests/test-openat-safer.c (main): Likewise.
7523         * tests/test-openat.c (main): Likewise.
7524         * tests/test-quotearg.c (main): Likewise.
7525         * tests/test-rawmemchr.c (main): Likewise.
7526         * tests/test-readlink.c (main): Likewise.
7527         * tests/test-remove.c (main): Likewise.
7528         * tests/test-rename.c (main): Likewise.
7529         * tests/test-renameat.c (main): Likewise.
7530         * tests/test-rmdir.c (main): Likewise.
7531         * tests/test-sha1.c (main): Likewise.
7532         * tests/test-signal.c (main): Likewise.
7533         * tests/test-sigaction.c (main): Likewise.
7534         * tests/test-stat.c (main): Likewise.
7535         * tests/test-stat-time.c (main): Likewise.
7536         * tests/test-stddef.c (main): Likewise.
7537         * tests/test-stdint.c (main): Likewise.
7538         * tests/test-stdio.c (main): Likewise.
7539         * tests/test-stdlib.c (main): Likewise.
7540         * tests/test-strchrnul.c (main): Likewise.
7541         * tests/test-strerror.c (main): Likewise.
7542         * tests/test-string.c (main): Likewise.
7543         * tests/test-strtod.c (main): Likewise.
7544         * tests/test-strverscmp.c (main): Likewise.
7545         * tests/test-symlink.c (main): Likewise.
7546         * tests/test-symlinkat.c (main): Likewise.
7547         * tests/test-sys_stat.c (main): Likewise.
7548         * tests/test-sys_time.c (main): Likewise.
7549         * tests/test-time.c (main): Likewise.
7550         * tests/test-unistd.c (main): Likewise.
7551         * tests/test-unlink.c (main): Likewise.
7552         * tests/test-unlinkat.c (main): Likewise.
7553         * tests/test-utimens.c (main): Likewise.
7554         * tests/test-utimensat.c (main): Likewise.
7555         * tests/test-version-etc.c (main): Likewise.
7556         * tests/test-wchar.c (main): Likewise.
7557         * tests/test-wctype.c (main): Likewise.
7558         * tests/test-xprintf-posix.c (main): Likewise.
7559         * tests/test-posixtm.c (main): Likewise.
7560         (STREQ): Delete unused macro.
7561         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7562         shadowed variables.
7563         * tests/test-memchr.c (main): Likewise.
7564
7565 2009-10-21  Eric Blake  <ebb9@byu.net>
7566
7567         areadlinkat: avoid failure on older glibc
7568         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7569         rather than mis-comparing 0 against FUNC_RESULT of char*.
7570
7571 2009-10-21  Bruno Haible  <bruno@clisp.org>
7572
7573         * modules/stpncpy (License): Relicense under LGPLv2+.
7574         Reported by David Lutterkort <lutter@redhat.com>.
7575
7576 2009-10-20  Eric Blake  <ebb9@byu.net>
7577
7578         utimensat: work around Solaris 9 bug
7579         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7580         has trailing slash bugs.
7581         * tests/test-lutimens.h (test_lutimens): Enhance test.
7582         * tests/test-utimens.h (test_utimens): Likewise.
7583         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7584         * doc/posix-functions/utimes.texi (utimes): Likewise.
7585         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7586         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7587         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7588         * doc/posix-functions/futimens.texi (futimens): Likewise.
7589
7590         fdutimensat: new module
7591         * modules/fdutimensat: New file.
7592         * lib/fdutimensat.c (fdutimensat): Likewise.
7593         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7594         * MODULES.html.sh (File system functions): Mention module.
7595         * modules/fdutimensat-tests: New test.
7596         * tests/test-fdutimensat.c: Likewise.
7597
7598         doc: regenerate INSTALL
7599         * doc/INSTALL: Reflect recent autoconf update.
7600         * doc/INSTALL.ISO: Likewise.
7601         * doc/INSTALL.UTF-8: Likewise.
7602
7603 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7604
7605         acl: warn if ACL support is not detected
7606         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7607
7608 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7609
7610         * lib/nproc.h: Add extern "C" block for C++.
7611
7612 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7613             Bruno Haible  <bruno@clisp.org>
7614
7615         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7616         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7617         * doc/posix-functions/isalpha.texi: Likewise.
7618         * doc/posix-functions/isblank.texi: Likewise.
7619         * doc/posix-functions/iscntrl.texi: Likewise.
7620         * doc/posix-functions/isdigit.texi: Likewise.
7621         * doc/posix-functions/isgraph.texi: Likewise.
7622         * doc/posix-functions/islower.texi: Likewise.
7623         * doc/posix-functions/isprint.texi: Likewise.
7624         * doc/posix-functions/ispunct.texi: Likewise.
7625         * doc/posix-functions/isspace.texi: Likewise.
7626         * doc/posix-functions/isupper.texi: Likewise.
7627         * doc/posix-functions/isxdigit.texi: Likewise.
7628
7629 2009-10-18  Bruno Haible  <bruno@clisp.org>
7630
7631         Tests for module 'isblank'.
7632         * modules/isblank-tests: New file.
7633         * tests/test-isblank.c: New file.
7634
7635         New module 'isblank'.
7636         * lib/isblank.c: New file.
7637         * m4/isblank.m4: New file.
7638         * modules/isblank: New file.
7639         * doc/posix-functions/isblank.texi: Mention the new module.
7640
7641 2009-10-18  Bruno Haible  <bruno@clisp.org>
7642
7643         New module 'ctype'.
7644         * lib/ctype.in.h: New file.
7645         * m4/ctype.m4: New file.
7646         * modules/ctype: New file.
7647         * doc/posix-headers/ctype.texi: Mention the new module.
7648
7649 2009-10-18  Jim Meyering  <meyering@redhat.com>
7650
7651         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7652         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7653         right after its initialization, rather than farther down.
7654         Keeping these in close proximity makes it easier to ensure
7655         that each such variable is initialized.  E.g.,
7656
7657             LIB_CLOCK_GETTIME=
7658             AC_SUBST([LIB_CLOCK_GETTIME])
7659
7660         This change also increments these serial numbers.
7661         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7662         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7664
7665 2009-10-18  Bruno Haible  <bruno@clisp.org>
7666
7667         Don't let environment variables perturb build.
7668         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7669         (gl_PREREQ_GETHRXTIME): ... not here.
7670
7671 2009-10-18  Bruno Haible  <bruno@clisp.org>
7672
7673         Avoid symlink attack in localcharset module.
7674         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7675         (O_NOFOLLOW): Define fallback.
7676         (get_charset_aliases): Don't open the file if it is a symbolic link.
7677         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7678         gl_FCNTL_H.
7679         (gl_FCNTL_H): Require it.
7680         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7681         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7682         Reported by Fergal Glynn <fglynn@veracode.com>.
7683
7684 2009-10-18  Bruno Haible  <bruno@clisp.org>
7685
7686         Implement nproc for mingw.
7687         * lib/nproc.c: Include <windows.h>
7688         (num_processors): On native Windows platforms, try GetSystemInfo.
7689
7690 2009-10-18  Bruno Haible  <bruno@clisp.org>
7691
7692         Implement nproc for IRIX.
7693         * lib/nproc.c: Include <sys/sysmp.h>.
7694         (num_processors): On IRIX systems, try sysmp.
7695         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7696
7697 2009-10-18  Bruno Haible  <bruno@clisp.org>
7698
7699         Implement nproc for HP-UX.
7700         * lib/nproc.c: Include <sys/pstat.h>
7701         (num_processors): On HP-UX systems, try pstat_getdynamic.
7702         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7703         pstat_getdynamic.
7704
7705 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7706             Bruno Haible  <bruno@clisp.org>
7707
7708         Implement nproc for NetBSD, OpenBSD.
7709         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7710         (ARRAY_SIZE): New macro.
7711         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7712         * m4/nproc.m4: New file.
7713         * modules/nproc (Files): Add m4/nproc.m4.
7714         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7715         (Makefile.am): Instead, augment lib_SOURCES.
7716
7717 2009-10-18  Bruno Haible  <bruno@clisp.org>
7718
7719         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7720         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7721         sys/param.h.
7722
7723 2009-10-16  Eric Blake  <ebb9@byu.net>
7724
7725         utimensat: new module
7726         * modules/utimensat: New file.
7727         * lib/utimensat.c (utimensat): Likewise.
7728         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7729         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7730         so we can work around Linux bugs.
7731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7732         * modules/sys_stat (Makefile.am): Substitute them.
7733         * lib/sys_stat.in.h (utimensat): Declare it.
7734         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7735         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7736         * modules/utimensat-tests: New test.
7737         * tests/test-utimensat.c: Likewise.
7738
7739         utimens: let lutimens work on non-symlinks
7740         * lib/utimens.c (lutimens): Fall back to utimens rather than
7741         failing with ENOSYS, when file is not a symlink.
7742         (utimens): Reduce redirection.
7743         * tests/test-lutimens.h (test_lutimens): Update test to cover
7744         non-symlinks.
7745         * tests/test-utimens.h (test_utimens): Update test to cover
7746         symlinks.
7747         * tests/test-utimens.c (main): Update caller.
7748
7749         utimens: cache whether utimensat syscall works
7750         * lib/utimens.c (utimensat_works_really): New cache variable.
7751         (fdutimens, lutimens): Use it to avoid failing syscall.
7752
7753         test-stat-time, test-utimens: improve portability
7754         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7755         ext4 on alpha, and for cygwin.
7756         * tests/test-utimens-common.h: New file.
7757         (nap): Factor delays into single function.
7758         * tests/test-lutimens.h (test_lutimens): Use new header.
7759         * tests/test-futimens.h (test_futimens): Likewise.
7760         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7761         timestamps to occur from same machine, as was done previously for
7762         test_utimens.
7763         * modules/utimens-tests (Files): Ship new file.
7764         * modules/futimens-tests (Files): Likewise.
7765         Reported in part by Jim Meyering.
7766
7767         sys_stat: sort replacement declarations
7768         * lib/sys_stat.in.h: Sort declarations.
7769         * lib/futimens.c (futimens): Fix typo.
7770
7771 2009-10-15  Jim Meyering  <meyering@redhat.com>
7772
7773         don't let environment settings perturb build
7774         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7775         could cause a configure-time and/or build-time malfunction.
7776         Typically, a configure-time function-in-library test is performed
7777         via code like this:
7778
7779           LIB_VAR=
7780           AC_SUBST([LIB_VAR])
7781           prefix_saved_LIBS=$LIBS
7782             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7783                        [test "$ac_cv_search_FUNC" = "none required" ||
7784                         LIB_VAR=$ac_cv_search_FUNC])
7785           LIBS=$prefix_saved_LIBS
7786
7787         However, in each of the files affected by this change, the LIB_VAR=
7788         initialization was omitted.  Thus, when set in the environment, its
7789         value would propagate into generated Makefiles when FUNC is not found
7790         in LIB_NAME.
7791         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7792         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7794
7795 2009-10-14  Eric Blake  <ebb9@byu.net>
7796
7797         fchdir: avoid infinite recursion in mingw
7798         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7799         recursing.
7800
7801         test-stat-time: port to mingw
7802         * tests/test-stat-time.c (force_unlink): Return a value.
7803         (test_ctime) [W32]: Fix compilation error.
7804         (nap): Don't call usleep with too large an argument.  Use
7805         force_unlink.
7806         * doc/pastposix-functions/usleep.texi (usleep): Document the
7807         portability issue.
7808
7809 2009-10-13  Jim Meyering  <meyering@redhat.com>
7810
7811         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7812         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7813         * modules/pipe-filter-ii: Likewise.
7814         * modules/sys_socket-tests: Likewise.
7815         * modules/tsearch-tests: Likewise.
7816         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7817         (check): Depend on it.
7818
7819 2009-10-12  Eric Blake  <ebb9@byu.net>
7820
7821         utimens-tests: port to NFS file systems
7822         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7823         comparisons to avoid spurious failures from timestamp drift
7824         between NFS machines.
7825
7826 2009-10-12  Eric Blake  <ebb9@byu.net>
7827
7828         stat-time-tests: minor cleanups
7829         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7830         * tests/test-stat-time.c (nap): Separate assignment from call.
7831         Suggested by Paolo Bonzini and Bruno Haible.
7832
7833         sys_stat: guarantee struct timespec
7834         * lib/sys_stat.in.h (includes): Always include <time.h>
7835         * modules/sys_stat (Depends-on): Add time.
7836         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7837         mode_t permission values.
7838         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7839         get at subsecond timestamps.
7840
7841 2009-10-10  Eric Blake  <ebb9@byu.net>
7842
7843         futimens: new module
7844         * modules/futimens: New file.
7845         * lib/futimens.c (futimens): Likewise.
7846         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7847         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7848         we can work around Linux bugs.
7849         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7850         * modules/sys_stat (Makefile.am): Substitute them.
7851         * lib/sys_stat.in.h (futimens): Declare it.
7852         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7853         * doc/posix-functions/futimens.texi (futimens): Likewise.
7854         * modules/futimens-tests: New test.
7855         * tests/test-futimens.c: Likewise.
7856
7857         utimens: introduce fdutimens
7858         * lib/utimens.h (fdutimens): New prototype.
7859         * lib/utimens.c (gl_futimens): Move guts...
7860         (fdutimens): ...to new interface.
7861         * tests/test-utimens.c (do_fdutimens): Use it.
7862
7863         utimens: add UTIME_NOW and UTIME_OMIT support
7864         * lib/utimens.c (validate_timespec, update_timespec): New helper
7865         functions.
7866         (gl_futimens, lutimens): Use them.
7867         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7868         stdbool, sys_stat.
7869         (Link): Mention resulting library dependency.
7870         * modules/utimecmp (Link): Likewise.
7871         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7872         (Makefile.am): Pick up library dependency.
7873         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7874         definition.
7875         * tests/test-sys_stat.c: Test the definitions.
7876         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7877         * NEWS: Document library dependency.
7878
7879         utimecmp: support symlink timestamps
7880         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7881         hashing when possible.  Use pathconf when available.
7882         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7883         * modules/utimecmp (Depends-on): Add lstat.
7884
7885         utimens: add lutimens interface
7886         * lib/utimens.c (lutimens): New function.
7887         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7888         * lib/utimens.h (lutimens): Declare new interface.
7889         * tests/test-utimens.c (main): Enhance test.
7890         * tests/test-lutimens.h (test_lutimens): New file.
7891         * modules/utimens-tests (Files): Distribute it.
7892         (Depends-on): Add symlink.
7893         (configure.ac): Check for usleep.
7894
7895         utimens: validate futimens usage
7896         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7897         fewer syscalls on failure later on.  Avoid compiler warning on
7898         mingw.
7899         * modules/utimens (Depends-on): Add dup2.
7900
7901         utimens: add test
7902         * modules/utimens-tests: New test.
7903         * tests/test-utimens.h: New file.
7904         * tests/test-futimens.h: Likewise.
7905         * tests/test-utimens.c: Likewise.
7906
7907         doc: mention timestamp portability issues
7908         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7909         instead.
7910         * doc/posix-functions/utime.texi (utime): Likewise.
7911         * doc/posix-functions/utimes.texi (utimes): Likewise.
7912         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7913         instead.
7914         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7915         module.
7916         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7917         Mention weakness with symlink timestamps.
7918         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7919         to utimensat/futimens instead.
7920         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7921
7922         test-dup2: enhance test
7923         * tests/test-dup2.c (main): Also check AT_FDCWD.
7924
7925         test-stat-time: avoid more spurious failures
7926         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7927         xfs; and avoid race if the two timestamps cross quantization edge.
7928
7929         relocatable: prefer 'file system' over 'filesystem'
7930         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7931         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7932         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7933         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7934         * lib/relocatable.c (compute_curr_prefix): Likewise.
7935
7936 2009-10-10  Jim Meyering  <meyering@redhat.com>
7937
7938         stat-time-tests: check for the usleep function
7939         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7940
7941 2009-10-10  Bruno Haible  <bruno@clisp.org>
7942
7943         * modules/xnanosleep: Put the Link section after the Include section.
7944
7945 2009-10-09  Eric Blake  <ebb9@byu.net>
7946
7947         dup2: work around FreeBSD 6.1 bug
7948         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7949         * doc/posix-functions/dup2.texi (dup2): Document it.
7950         Reported by Nelson H. F. Beebe and Jim Meyering.
7951
7952         test-stat-time: port to buggy NFS clients
7953         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7954         (test_ctime): Also skip test if mtime and ctime are skewed.
7955
7956         maint: prefer 'file system' over 'filesystem'
7957         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7958         * doc/posix-functions/lstat.texi (lstat): Likewise.
7959         * lib/file-has-acl.c (file_has_acl): Likewise.
7960         * lib/fwriteerror.c [TEST]: Likewise.
7961         * tests/test-areadlink.h (test_areadlink): Likewise.
7962         * tests/test-areadlinkat-with-size.c (main): Likewise.
7963         * tests/test-areadlinkat.c (main): Likewise.
7964         * tests/test-canonicalize-lgpl.c (main): Likewise.
7965         * tests/test-canonicalize.c (main): Likewise.
7966         * tests/test-fstatat.c (main): Likewise.
7967         * tests/test-linkat.c (main): Likewise.
7968         * tests/test-lstat.h (test_lstat_func): Likewise.
7969         * tests/test-mkdir.h (test_mkdir): Likewise.
7970         * tests/test-readlink.h (test_readlink): Likewise.
7971         * tests/test-remove.c (main): Likewise.
7972         * tests/test-rename.h (test_rename): Likewise.
7973         * tests/test-renameat.c (main): Likewise.
7974         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7975         * tests/test-symlink.h (test_symlink): Likewise.
7976         * tests/test-symlinkat.c (main): Likewise.
7977         * tests/test-unlink.h (test_unlink_func): Likewise.
7978         * tests/test-unlinkat.c (main): Likewise.
7979
7980         maint: make realtime library usage explicit
7981         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7982         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7983         * modules/settime (Link): Likewise.
7984         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7985
7986         test-stat-time: speed up execution
7987         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7988         warning on mingw.
7989         (nap): New helper function.
7990         (prepare_test): Use it to reduce sleep time.
7991         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7992         execution.
7993         * modules/stat-time-tests (configure.ac): Check for usleep.
7994
7995 2009-10-09  Jim Meyering  <meyering@redhat.com>
7996
7997         selinux-h: always use getfilecon wrappers
7998         * lib/getfilecon.c: New file.
7999         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8000         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8001         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8002         (fgetfilecon): Provide a stub.
8003         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8004         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8005         file unconditionally.
8006         When <selinux/selinux.h> is found, arrange to use wrappers.
8007         * modules/selinux-h (Files): Add getfilecon.c.
8008         (Makefile.am): Substitute include-next-related bits
8009         into the now-always-generated selinux/selinux.h file.
8010         * doc/glibc-functions/lgetfilecon.texi: New file.
8011         * doc/glibc-functions/fgetfilecon.texi: New file.
8012         * doc/glibc-functions/getfilecon.texi: New file.
8013         * doc/glibc-functions/getfilecon-desc.texi: New file.
8014         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8015         which to pull in the new files.
8016         * MODULES.html.sh (Misc): Add selinux-h.
8017
8018 2009-10-08  Jim Meyering  <meyering@redhat.com>
8019
8020         unistd: fix comment typo
8021         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8022
8023 2009-10-08  Eric Blake  <ebb9@byu.net>
8024
8025         areadlink: use SIZE_MAX consistently
8026         * modules/areadlink (Depends-on): Add stdint.
8027         * modules/areadlink-with-size (Depends-on): Likewise.
8028         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8029         gives NULL; drop sys/types, since unistd gives size_t; and add
8030         stdint for SIZE_MAX.
8031         (SIZE_MAX): Rely on headers.
8032         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8033         and add stdint.
8034         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8035         (SIZE_MAX): Likewise.
8036         (INITIAL_BUF_SIZE): Turn into enum.
8037         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8038
8039 2009-10-08  Jim Meyering  <meyering@redhat.com>
8040
8041         areadlinkat: avoid compilation failure
8042         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8043         Fix typo in comment.
8044
8045 2009-10-07  Eric Blake  <ebb9@byu.net>
8046
8047         areadlinkat-with-size: new module
8048         * modules/areadlinkat-with-size: New module.
8049         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8050         * lib/areadlink.h (areadlinkat): Declare it.
8051         * MODULES.html.sh (File system functions): Mention it.
8052         * modules/areadlinkat-with-size-tests: New test.
8053         * tests/test-areadlinkat-with-size.c: New file.
8054
8055         xreadlinkat: new module
8056         * modules/xreadlinkat: New module.
8057         * lib/xreadlinkat.c (xreadlinkat): New file.
8058         * lib/xreadlink.h (xreadlinkat): Declare it.
8059         * MODULES.html.sh (File system functions): Mention it.
8060
8061         areadlinkat: new module
8062         * lib/at-func.c (FUNC_FAIL): New define.
8063         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8064         * modules/areadlinkat: New module.
8065         * lib/linkat.c (areadlinkat): Move...
8066         * lib/areadlinkat.c (areadlinkat): ...to new file.
8067         * lib/areadlink.h (areadlinkat): Declare it.
8068         * modules/linkat (Depends-on): Add areadlinkat.
8069         * MODULES.html.sh (File system functions): Mention it.
8070         * modules/areadlinkat-tests: New test.
8071         * tests/test-areadlinkat.c: New file.
8072
8073         areadlink, areadlink-with-size: add tests
8074         * modules/areadlink-tests: New test.
8075         * modules/areadlink-with-size-tests: Likewise.
8076         * tests/test-areadlink.h: New file.
8077         * tests/test-areadlink.c: Likewise.
8078         * tests/test-areadlink-with-size.c: Likewise.
8079
8080         maint: minor cleanups
8081         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8082         _UNUSED_PARAMETER_ instead.
8083         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8084         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8085         * modules/linkat-tests (Files): Distribute test-link.h.
8086
8087         openat, utimens: whitespace cleanup
8088         * lib/openat.c: Prefer space throughout, rather than mix of 8
8089         spaces vs. tabs.
8090         * lib/at-func.c: Likewise.
8091         * lib/utimens.c: Likewise.
8092
8093         openat: avoid using wrong fd
8094         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8095         working directory chooses same fd.
8096         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8097
8098         mkdir, mkdirat: fix cygwin 1.5.x bug
8099         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8100         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8101         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8102         bug.
8103         (gl_PREREQ_MKDIR): Delete unused macro.
8104         * modules/mkdir (Files): Track file rename.
8105         (configure.ac): Update macro name.
8106         * modules/openat (Depends-on): Add mkdir.
8107         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8108
8109         mkdir, mkdirat: add tests
8110         * modules/mkdir-tests: New test.
8111         * tests/test-mkdir.h: New file.
8112         * tests/test-mkdir.c: Likewise.
8113         * tests/test-mkdirat.c: Likewise.
8114         * modules/openat-tests (Files): Add new files.
8115         (Makefile.am): Run new test.
8116
8117 2009-10-06  Eric Blake  <ebb9@byu.net>
8118
8119         doc: tweak *at function documentation
8120         * doc/posix-functions/faccessat.texi (faccessat): Mention
8121         known issue with replacement.
8122         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8123         * doc/posix-functions/linkat.texi (linkat): Likewise.
8124         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8125         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8126         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8127         * doc/posix-functions/renameat.texi (renameat): Likewise.
8128         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8129
8130         openat: fix GNU/Hurd bug in unlinkat
8131         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8132         broken.
8133         * doc/posix-functions/unlink.texi (unlink): Document this.
8134         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8135
8136         fdopendir: fix GNU/Hurd bug
8137         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8138         allowing non-directory fds.
8139         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8140         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8141         * modules/dirent (Makefile.am): Substitute it.
8142         * lib/dirent.in.h (fdopendir): Declare replacement.
8143         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8144         * tests/test-fdopendir.c (main): Test something other than
8145         /dev/null, since on Hurd that behaves like a directory.
8146
8147         test-symlink: port to GNU/Hurd
8148         * tests/test-symlink.h (test_symlink): Relax expected errno.
8149
8150         doc: tweak more cygwin information
8151         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8152         now compatible with glibc.
8153         * doc/posix-functions/getopt.texi (getopt): Likewise.
8154
8155         getopt-gnu: add another test
8156         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8157         guarantee behavior relied on by m4.
8158         * tests/test-getopt.c (main): Use it.
8159         * modules/getopt-posix-tests (Depends-on): Add setenv.
8160         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8161
8162         getopt: fix compilation on darwin
8163         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8164         include.
8165         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8166         Reported by Ludovic Courtès.
8167
8168 2009-10-06  Bruno Haible  <bruno@clisp.org>
8169
8170         * modules/size_max (Description): Discourage its use.
8171         Reported by Simon Josefsson.
8172
8173 2009-10-06  Jim Meyering  <meyering@redhat.com>
8174
8175         linkat: avoid compilation failure
8176         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8177
8178 2009-10-05  Eric Blake  <ebb9@byu.net>
8179
8180         linkat: support Linux 2.6.17
8181         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8182         linkat on Linux, but allow cache variable override.
8183         * lib/linkat.c (rpl_linkat): Define override.
8184         * modules/linkat (Depends-on): Add symlinkat.
8185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8186         * modules/unistd (Makefile.am): Substitute it.
8187         * lib/unistd.in.h (linkat): Declare replacement.
8188         Reported by Pádraig Brady.
8189
8190         quotearg: port test to systems with C.UTF-8 locale
8191         * tests/test-quotearg.c (struct result_strings): Add another
8192         member, differentiating between C.ASCII and C.UTF-8 handling.
8193         (compare_strings): Add parameter.
8194         (main): Adjust all callers.
8195
8196         getopt: avoid clash with FreeBSD _getopt_internal
8197         * lib/getopt.in.h (_getopt_internal): Override the name.
8198         * lib/getopt_int.h (includes): Pick up any overrides.
8199         Reported by Reuben Thomas.
8200
8201         hash: allow C89 compilation
8202         * lib/hash.c (check_tuning): Move declaration before statement.
8203         Reported by Reuben Thomas.
8204
8205 2009-10-05  Karl Berry  <karl@gnu.org>
8206
8207         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8208
8209 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8210             Bruno Haible  <bruno@clisp.org>
8211
8212         * lib/uname.c (uname): Use a table-driven algorithm to compute
8213         Windows NT versions.
8214
8215 2009-10-04  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8218         program_invocation_short_name.
8219         * modules/progname (configure.ac): Test for presence of
8220         program_invocation_short_name.
8221         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8222
8223 2009-10-04  Bruno Haible  <bruno@clisp.org>
8224
8225         * lib/progname.c (set_program_name): Fix comment.
8226         Reported by Jim Meyering.
8227
8228 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8229             Bruno Haible  <bruno@clisp.org>
8230
8231         * lib/uname.c: Include <string.h>.
8232         (uname): Do only one call to GetVersionEx in the common case.
8233
8234 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8235             Bruno Haible  <bruno@clisp.org>
8236
8237         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8238         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8239         (uname): Add support for Windows CE and various non-x86 CPU types.
8240
8241 2009-10-03  Bruno Haible  <bruno@clisp.org>
8242
8243         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8244         invocation to tests/configure.ac.
8245         Reported by Ian Beckwith <ianb@erislabs.net>.
8246
8247 2009-10-02  Eric Blake  <ebb9@byu.net>
8248
8249         fchdir: avoid compiler warning
8250         * lib/fchdir.c (canonicalize_file_name)
8251         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8252
8253         test-open: support mingw errno values
8254         * tests/test-open.h (test_open): Relax test.
8255         * tests/test-fopen.h (test_fopen): Likewise.
8256         * tests/test-openat-safer.c (main): Likewise.
8257
8258         open: fix opening directory on mingw
8259         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8260
8261         test-open: on GNU/Hurd, /dev/null is a directory
8262         * tests/test-fopen.h (main): Rename...
8263         (test_fopen): ...to this.  Use a guaranteed non-directory when
8264         confirming open behavior on trailing slash.
8265         * tests/test-openat-safer.c (main): Likewise.
8266         * tests/test-open.h (main): Likewise....
8267         (test_open): ...to this.
8268         * tests/test-fopen.c (main): Adjust caller.
8269         * tests/test-fopen-safer.c (main): Likewise.
8270         * tests/test-open.c (main): Likewise.
8271         * tests/test-fcntl-safer.c (main): Likewise.
8272         Reported by Samuel Thibault.
8273
8274         rename, fchdir: don't ignore chdir failure
8275         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8276         * lib/rename.c (rpl_rename) [W32]: Likewise.
8277         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8278         an empty destination directory if source cannot be renamed,
8279         although there is still possibility for failure.
8280         * doc/posix-functions/rename.texi (rename): Document the race.
8281         Reported by Jim Meyering.
8282
8283         maint: cleanup whitespace in recent commits
8284         * lib/rename.c (rpl_rename): Remove tabs.
8285         * tests/test-link.h (test_link): Likewise.
8286         * lib/fchdir.c (get_name): Likewise.
8287         Reported by Jim Meyering.
8288
8289 2009-10-02  Ben Pfaff  <blp@gnu.org>
8290
8291         relocatable-prog-wrapper: Add missing dependency on
8292         double-slash-root.
8293         * modules/relocatable-prog-wrapper: Add dependency.
8294         Reported by Ian Beckwith <ianb@erislabs.net>.
8295
8296 2009-10-02  Eric Blake  <ebb9@byu.net>
8297
8298         renameat: fix Solaris bugs
8299         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8300         needed fixing.
8301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8302         * modules/stdio (Makefile.am): Substitute it.
8303         * lib/stdio.in.h (renameat): Declare replacement.
8304         * lib/renameat.c (rpl_renameat): Implement fix.
8305
8306         renameat: new module
8307         * modules/renameat: New file.
8308         * lib/renameat.c (renameat): Likewise.
8309         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8311         * modules/stdio (Makefile.am): Substitute them.
8312         * lib/stdio.in.h (renameat): Declare it.
8313         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8314         * doc/posix-functions/renameat.texi (renameat): Likewise.
8315         * modules/renameat-tests: New test.
8316         * tests/test-renameat.c: Likewise.
8317
8318         rename: fix mingw bugs
8319         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8320         directory overwrite bugs.
8321
8322         rename: fix another cygwin 1.5 bug
8323         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8324         checks.
8325         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8326         unnecessary cygwin workarounds.  Also work around bug with moving
8327         full directory onto an empty one.
8328         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8329
8330         rename-dest-slash: merge into rename module
8331         * modules/rename-dest-slash (Status): Mark obsolete.
8332         (Depends-on): Add rename.
8333         (Files): Let rename do it all.
8334         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8335         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8336         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8337         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8338         * lib/rename.c (rpl_rename): Update comments.
8339
8340         rename: fix cygwin 1.5.x bugs
8341         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8342         * lib/rename.c (rpl_rename): Work around them.
8343         * modules/rename (Depends-on): Add same-inode.
8344
8345         rename: fix Solaris 10 bug
8346         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8347         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8348         was the only bug.
8349
8350         rename: fix Solaris 9 bug
8351         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8352         on non-directory.  Avoid calling exit.
8353         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8354         strdup.
8355         * modules/rename-tests (Depends-on): Drop lstat.
8356         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8357         (gl_PREREQ_RENAME): Delete unused macro.
8358
8359         rename-dest-slash: fix NetBSD bug
8360         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8361         links.
8362         * modules/rename-dest-slash (Depends-on): Add same-inode.
8363
8364         rename-tests: new test, exposes several platform bugs
8365         * modules/rename-tests: New file.
8366         * tests/test-rename.h: Likewise.
8367         * tests/test-rename.c: Likewise.
8368         * doc/posix-functions/rename.texi (rename): Improve documentation,
8369         including bugs that will eventually be fixed in gnulib.
8370
8371 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8372
8373         * lib/uname.c: Include <stdlib.h>
8374         (uname): Assume version info is available.
8375
8376 2009-10-02  Jim Meyering  <meyering@redhat.com>
8377
8378         gnu-web-doc-update: correct --help output
8379         * build-aux/gnu-web-doc-update: Make --help output relevant.
8380
8381         gnu-web-doc-update: add standard options
8382         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8383
8384         gnu-web-doc-update: New module.
8385         Use this script to automatically update the on-line web documentation
8386         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8387         * modules/gnu-web-doc-update: New file, from coreutils.
8388         * build-aux/gnu-web-doc-update: New script.
8389
8390 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8391
8392         link: LoadLibrary is not needed.
8393         * lib/link.c: Use GetModuleHandle.
8394
8395 2009-10-01  Eric Blake  <ebb9@byu.net>
8396
8397         getopt: bump serial number
8398         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8399         change.
8400
8401         tests: tighten link, rmdir, and remove tests
8402         * tests/test-link.h (includes): No need to use <config.h> here.
8403         Clean up if directory hard link was created, otherwise test for
8404         trailing '.'.
8405         * tests/test-linkat.c (main): Simplify.
8406         * tests/test-remove.c (main): Enhance test for trailing '.'.
8407         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8408
8409 2009-10-01  Jim Meyering  <meyering@redhat.com>
8410
8411         maint.mk: requiring "make major" was annoying, for a "minor" release.
8412         What is intended is "stable", to contrast with alpha and beta,
8413         so require "make stable", not "make major".
8414         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8415         (get_tool_versions): Likewise.
8416         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8417
8418 2009-09-30  Ben Pfaff  <blp@gnu.org>
8419
8420         Fix broken build of replacement for Windows tmpfile().
8421         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8422         flags argument added along with the 'mkostemp' module.
8423
8424 2009-09-28  Bruno Haible  <bruno@clisp.org>
8425
8426         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8427         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8428         to 'remove_elt'.
8429         (gl_list_remove): Update.
8430         * lib/gl_list.c (gl_list_remove): Update.
8431         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8432         to 'remove_elt'.
8433         (gl_oset_remove): Update.
8434         * lib/gl_list.c (gl_oset_remove): Update.
8435         Reported by Eric Blake.
8436
8437 2009-09-28  Eric Blake  <ebb9@byu.net>
8438
8439         doc: mention yet more cygwin 1.7 status
8440         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8441         cygwin.
8442         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8443         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8444
8445         argp: fix test failure
8446         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8447         that are not upper-case.  Pass correct range to tolower.
8448
8449 2009-09-27  Jim Meyering  <meyering@redhat.com>
8450
8451         test-yesno: work around sparc-dash here-document infelicity
8452         Without this change, the literal \177 byte in a here document
8453         would make dash 0.5.5.1-3 access uninitialized memory.
8454         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8455         Instead, use a marker, "@", and filter through tr to create the desired
8456         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8457
8458 2009-09-27  Bruno Haible  <bruno@clisp.org>
8459
8460         Disable untested support for new flavours of ACLs on AIX.
8461         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8462         progress.
8463         * lib/set-mode-acl.c (qset_acl): Likewise.
8464
8465 2008-12-07  Bruno Haible  <bruno@clisp.org>
8466
8467         Add support for new flavours of ACLs on AIX. (Untested.)
8468         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8469         (file_has_acl): Add support for newer AIX.
8470         * lib/set-mode-acl.c (qset_acl): Likewise.
8471         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8472         Rainer Tammer <tammer@tammer.net>.
8473
8474 2009-09-26  Eric Blake  <ebb9@byu.net>
8475
8476         argp: fix compilation of getopt
8477         * lib/getopt.in.h (includes): Use different guard than glibc.
8478         Reported by Sergey Poznyakoff.
8479
8480         doc: mention more cygwin 1.7 status
8481         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8482         bug.
8483         * doc/posix-functions/execl.texi (execl): Likewise.
8484         * doc/posix-functions/execle.texi (execle): Likewise.
8485         * doc/posix-functions/execlp.texi (execlp): Likewise.
8486         * doc/posix-functions/execv.texi (execv): Likewise.
8487         * doc/posix-functions/execve.texi (execve): Likewise.
8488         * doc/posix-functions/execvp.texi (execvp): Likewise.
8489         * doc/glibc-functions/canonicalize_file_name.texi
8490         (canonicalize_file_name): Cygwin 1.7 now provides this.
8491         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8492         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8493         on AT_SYMLINK_NOFOLLOW.
8494
8495 2009-09-24  Eric Blake  <ebb9@byu.net>
8496
8497         test-linkat: make test more robust
8498         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8499
8500         getopt: fix inclusion guards for cygwin
8501         * modules/getopt-posix (Depends-on): Add include-next.
8502         (Makefile.am): Substitute more items in replacement header.
8503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8504         <getopt.h>.
8505         * lib/getopt.in.h (includes): Use split inclusion guard, and
8506         prefer <getopt.h> over include <unistd.h> when one is present.
8507         (option): Also override name of 'struct option'.
8508
8509         same-inode: revert prior change; it is not yet ready
8510         * NEWS: Undo mention of this change.
8511         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8512         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8513         * lib/cycle-check.c (cycle_check): Likewise.
8514         * lib/same.c (same_name): Likewise.
8515         * lib/at-func2.c (at_func2): Likewise.
8516
8517 2009-09-23  Eric Blake  <ebb9@byu.net>
8518
8519         linkat: new module
8520         * modules/linkat: New file.
8521         * lib/at-func2.c (at_func2): Likewise.
8522         * lib/linkat.c (linkat): Likewise.
8523         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8524         * lib/openat-priv.h (at_func2): Add declaration.
8525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8526         * modules/unistd (Makefile.am): Substitute them.
8527         * lib/unistd.in.h (linkat): Declare it.
8528         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8529         * doc/posix-functions/linkat.texi (linkat): Likewise.
8530         * doc/posix-functions/link.texi (link): Tweak wording.
8531         * tests/test-link.c (main): Move guts...
8532         * tests/test-link.h (test_link): ...into new file.
8533         * modules/linkat-tests: New test.
8534         * tests/test-linkat.c: Likewise.
8535         * modules/link-tests (Files): Ship new file.
8536         (Depends-on): Add stdbool.
8537
8538         dirname: add library-safe mdir_name
8539         * lib/dirname.h (mdir_name): New prototype.
8540         * lib/dirname.c (dir_name): Move guts...
8541         (mdir_name): ...to new function that avoids xalloc_die.
8542
8543         fchdir: another mingw fix
8544         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8545         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8546         on mingw (where it has not yet been ported), and make it optional
8547         elsewhere.
8548         (_gl_register_fd): Use it.
8549
8550         same-inode: make SAME_INODE tri-state, to port to mingw
8551         * NEWS: Mention this change.
8552         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8553         st_ino always being 0.
8554         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8555         * lib/cycle-check.c (cycle_check): Likewise.
8556         * lib/same.c (same_name): Likewise.
8557
8558         lstat: avoid mingw compilation error
8559         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8560         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8561         lstat ourselves.
8562         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8563         was adequate.
8564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8565         the checks for lstat.
8566         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8567
8568         link: fix test failure on Solaris 9
8569         * lib/link.c (rpl_link): Don't assume link will catch bogus
8570         trailing slash on source.
8571
8572         test-symlinkat: enhance test
8573         * tests/test-readlink.c (main): Move guts...
8574         * tests/test-readlink.h (test_readlink): ...into new file.
8575         * tests/test-symlink.c (main): Move guts...
8576         * tests/test-symlink.h (test_symlink): ...into new file.
8577         * tests/test-symlinkat.c (main): Use new files for further
8578         coverage.
8579         (do_symlink, do_readlink): New helper functions.
8580         * modules/symlink-tests (Files): Ship new file.
8581         (Depends-on): Add stdbool.
8582         * modules/readlink-tests (Files): Ship new file.
8583         (Depends-on): Add stdbool.
8584         * modules/symlinkat-tests (Files): Use new files.
8585
8586 2009-09-23  Eric Blake  <ebb9@byu.net>
8587
8588         readlink: document portability issue with symlink length
8589         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8590         systems have bogus st_size on symlinks, and mention the
8591         areadlink-with-size module.
8592         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8593         * doc/posix-functions/readlink.texi (readlink): Mention the
8594         areadlink module, and ERANGE failure.
8595         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8596         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8597
8598         readlink: fix Solaris 9 bug with trailing slash
8599         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8600         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8601         * doc/posix-functions/readlink.texi (readlink): Document this.
8602         * modules/readlink-tests: New test.
8603         * tests/test-readlink.c: Likewise.
8604
8605         readlink: fix cygwin 1.5.x bug with return type
8606         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8607         * lib/unistd.in.h (readlink): Use ssize_t.
8608         * lib/readlink.c (readlink): Likewise.
8609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8610         * modules/unistd (Makefile.am): Substitute it.
8611         * lib/unistd.in.h (readlink): Declare replacement.
8612         * doc/posix-functions/readlink.texi (readlink): Document this.
8613
8614         symlink: use throughout gnulib
8615         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8616         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8617         symlink is not used.
8618         * modules/symlinkat (Depends-on): Add symlink.
8619         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8620         * modules/canonicalize-tests (Depends-on): Likewise.
8621         * modules/lstat-tests (Depends-on): Likewise.
8622         * modules/openat-tests (Depends-on): Likewise.
8623         * modules/remove-tests (Depends-on): Likewise.
8624         * modules/rmdir-tests (Depends-on): Likewise.
8625         * modules/unlink-tests (Depends-on): Likewise.
8626         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8627         * tests/test-canonicalize.c (symlink): Likewise.
8628         * tests/test-fstatat.c (symlink): Likewise.
8629         * tests/test-lstat.c (symlink): Likewise.
8630         * tests/test-remove.c (symlink): Likewise.
8631         * tests/test-rmdir.c (symlink): Likewise.
8632         * tests/test-unlink.c (symlink): Likewise.
8633         * tests/test-unlinkat.c (symlink): Likewise.
8634
8635         symlink: new module, for Solaris 9 bug
8636         * modules/symlink: New file.
8637         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8638         * lib/symlink.c: Likewise.
8639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8640         * modules/unistd (Makefile.am): Substitute them.
8641         * lib/unistd.in.h (symlink): Declare replacement.
8642         * MODULES.html.sh (File system functions): Mention it.
8643         * doc/posix-functions/symlink.texi (symlink): Likewise.
8644         * modules/symlink-tests: New test.
8645         * tests/test-symlink.c: Likewise.
8646
8647 2009-09-23  Bruno Haible  <bruno@clisp.org>
8648
8649         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8650         when needed.
8651         Test case: gnulib-tool --import --with-tests atexit inttypes.
8652         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8653
8654 2009-09-23  Bruno Haible  <bruno@clisp.org>
8655
8656         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8657         subcommand, not in a subshell.
8658
8659 2009-09-22  Eric Blake  <ebb9@byu.net>
8660
8661         unistd: sort replacement declarations
8662         * lib/unistd.in.h: Sort declarations.
8663
8664         open, openat: minor optimization
8665         * lib/open.c (open): If open succeeded, len is non-zero.
8666         * lib/openat.c (rpl_openat): Likewise.
8667
8668         link-follow: ensure correct result
8669         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8670         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8671         distinguish between possible failures.
8672
8673 2009-09-21  Eric Blake  <ebb9@byu.net>
8674
8675         fts: avoid compiler warning
8676         * lib/fts.c (dirent_inode_sort_may_be_useful)
8677         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8678
8679 2009-09-19  Bruno Haible  <bruno@clisp.org>
8680
8681         * lib/progreloc.c (canonicalize_file_name): New declaration.
8682
8683 2009-09-19  Eric Blake  <ebb9@byu.net>
8684
8685         link: fix quoting
8686         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8687
8688         openat: fix openat bugs on Solaris 9
8689         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8690         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8691         * modules/openat (Depends-on): Add open.
8692         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8693         * modules/fcntl-h (Makefile.am): Substitute it.
8694         * lib/fcntl.in.h (openat): Declare replacement.
8695         * doc/posix-functions/openat.texi (openat): Document this.
8696
8697         openat: move fstatat and unlinkat into correct files
8698         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8699         compiled.
8700         * lib/openat.c (fstatat, unlinkat): Move...
8701         * lib/fstatat.c (fstatat): ...into correct files.
8702         * lib/unlinkat.c (unlinkat): Likewise.
8703
8704         openat: fix unlinkat bugs on Solaris 9
8705         * lib/unlinkat.c (unlinkat): New file.
8706         * modules/openat (Depends-on): Add unlink.
8707         (Files): Distribute it.
8708         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8709         trailing slash behavior is broken.
8710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8711         * modules/unistd (Makefile.am): Substitute it.
8712         * lib/unistd.in.h (unlinkat): Declare replacement.
8713         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8714
8715         openat: fix fstatat bugs on Solaris 9
8716         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8717         stat.
8718         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8719
8720         test-unlinkat: enhance test, to expose Solaris 9 bug
8721         * tests/test-unlink.c (main): Factor guts...
8722         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8723         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8724         * tests/test-rmdir.c (main): Adjust caller.
8725         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8726         (unlinker): New helper function.
8727         (rmdirat): Enhance check.
8728         * modules/rmdir-tests (Depends-on): Add stdbool.
8729         * modules/unlink-tests (Depends-on): Likewise.
8730         (Files): Add test-unlink.h.
8731         * modules/openat-tests (Files): Likewise.
8732         (Depends-on): Add unlinkdir.
8733
8734         test-fstatat: new test, to expose Solaris 9 bugs
8735         * tests/test-stat.c (main): Factor guts...
8736         * tests/test-stat.h (test_stat_func): ...into new file.
8737         * tests/test-lstat.c (main): Factor guts...
8738         * tests/test-lstat.h (test_lstat_func): ...into new file.
8739         * tests/test-fstatat.c: New file.
8740         * modules/stat-tests (Files): Add test-stat.h.
8741         * modules/lstat-tests (Files): Add test-lstat.h.
8742         (Depends-on): Add stdbool.
8743         * modules/openat-tests (Depends-on): Add pathmax.
8744         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8745         (Makefile.am): Run new test.
8746
8747         remove: new module, for mingw and Solaris 9 bugs
8748         * modules/remove: New file.
8749         * lib/remove.c: Likewise.
8750         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8752         * modules/stdio (Makefile.am): Use them.
8753         * lib/stdio.in.h (remove): Declare replacement.
8754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8755         * doc/posix-functions/remove.texi (remove): Likewise.
8756         * modules/remove-tests: New test.
8757         * tests/test-remove.c: Likewise.
8758
8759         unlink: new module, for Solaris 9 bug
8760         * modules/unlink: New file.
8761         * lib/unlink.c: Likewise.
8762         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8764         * modules/unistd (Makefile.am): Use them.
8765         * lib/unistd.in.h (stat): Declare replacement.
8766         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8767         * doc/posix-functions/unlink.texi (unlink): Likewise.
8768         * modules/unlink-tests: New test.
8769         * tests/test-unlink.c: Likewise.
8770
8771         lstat: fix Solaris 9 bug
8772         * lib/lstat.c (lstat): Also check for trailing slash on
8773         non-symlink, non-directories.  Use stat module to simplify logic.
8774         * doc/posix-functions/lstat.texi (lstat): Document it.
8775         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8776         (configure.ac): Check for symlink.
8777         * tests/test-lstat.c (main): Add more tests.
8778
8779         stat: add as dependency to other modules
8780         * modules/chown (Depends-on): Add stat.
8781         * modules/euidaccess (Depends-on): Likewise.
8782         * modules/fchdir (Depends-on): Likewise.
8783         * modules/isdir (Depends-on): Likewise.
8784         * modules/link (Depends-on): Likewise.
8785         * modules/lstat (Depends-on): Likewise.
8786         * modules/mkdir-p (Depends-on): Likewise.
8787         * modules/modechange (Depends-on): Likewise.
8788         * modules/open (Depends-on): Likewise.
8789         * modules/readlink (Depends-on): Likewise.
8790         * modules/same (Depends-on): Likewise.
8791
8792         stat: fix Solaris 9 bug
8793         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8794         slash.
8795         * lib/stat.c (rpl_stat): Work around it.
8796         * doc/posix-functions/stat.texi (stat): Update documentation.
8797
8798         stat: new module, for mingw bug
8799         * modules/stat: New file.
8800         * lib/stat.c: Likewise.
8801         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8802         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8803         * modules/sys_stat (Makefile.am): Use them.
8804         * lib/sys_stat.in.h (stat): Declare replacement.
8805         * lib/openat.c (fstatat): Deal with lstat and stat being function
8806         macros.
8807         * modules/openat (Depends-on): Add inline.
8808         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8809         * doc/posix-functions/stat.texi (stat): Likewise.
8810         * modules/stat-tests: New test.
8811         * tests/test-stat.c: Likewise.
8812
8813 2009-09-19  Jim Meyering  <meyering@redhat.com>
8814
8815         syntax-check: detect unnecessary inclusion of canonicalize.h
8816         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8817
8818 2009-09-19  Eric Blake  <ebb9@byu.net>
8819
8820         canonicalize-lgpl: adjust clients to use correct header
8821         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8822         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8823         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8824         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8825         * lib/progreloc.c (includes): Likewise.
8826
8827 2009-09-19  Jim Meyering  <meyering@redhat.com>
8828
8829         test-posixtm.c: correct a comment
8830         * tests/test-posixtm.c: Correct first-line comment.
8831         Spotted by Eric Blake.
8832
8833 2009-09-16  Jim Meyering  <meyering@redhat.com>
8834
8835         posixtm-tests: make T const-correct; add a test case
8836         * tests/test-posixtm.c (T): Declare const.
8837         Add a test for -(2^31+1).
8838         Remove useless can-succeed-only-in-2002 test.
8839
8840         posixtm-tests: adjust the sole failing test
8841         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8842         expected output matches what mktime now produces.  Cross-checked via
8843         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8844
8845         posixtm: move #ifdef'd tests into a new module
8846         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8847         * tests/test-posixtm.c: ... this new file.
8848         * modules/posixtm-tests: New module.
8849
8850 2009-09-19  Eric Blake  <ebb9@byu.net>
8851
8852         openat: simplify use of at-func.c
8853         * lib/at-func.c (includes): Include prerequisites here, to
8854         simplify requirements on client files.
8855         * lib/openat-priv.h: Add double-inclusion guard.
8856         * lib/faccessat.c (includes): Simplify.
8857         * lib/fchmodat.c (includes): Likewise.
8858         * lib/fchownat.c (includes): Likewise.
8859         * lib/mkdirat.c (includes): Likewise.
8860         * lib/mkfifoat.c (includes): Likewise.
8861         * lib/symlinkat.c (includes): Likewise.
8862
8863         openat: allow return of fd 0
8864         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8865         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8866         unistd-safer.
8867         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8868         <fcntl.h>; this module does not leak fds.
8869         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8870         must be allowed to return 0, leaving openat_safer to add the
8871         safety.
8872         (openat_permissive): Avoid writing to just-opened fd 2 if
8873         restoring the current directory fails.
8874         * lib/openat-die.c (openat_restore_fail): Add comment.
8875         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8876         (save_cwd): Guarantee safe fd, but without use of open_safer.
8877         * tests/test-openat.c: New test.
8878         * modules/openat-tests (Files, Makefile.am): Distribute and build
8879         new file.
8880
8881         relocatable-prog-wrapper: fix build
8882         * modules/relocatable-prog-wrapper (Files): Update name of
8883         canonicalize m4 file, broken on 2009-09-17.
8884         Reported by emad hajjar <aleppos@hotmail.com>.
8885
8886 2009-09-19  Bruno Haible  <bruno@clisp.org>
8887
8888         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8889         * lib/safe-alloc.c: Likewise.
8890         Reported by Ian Beckwith <ianb@erislabs.net>.
8891
8892 2009-09-18  Bruno Haible  <bruno@clisp.org>
8893
8894         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8895         Reported by <erobles@sensacd.com.mx>.
8896
8897 2009-09-17  Eric Blake  <ebb9@byu.net>
8898
8899         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8900         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8901         slashes when checking if last component is missing.
8902         * tests/test-canonicalize.c (main): Test this.
8903
8904         canonicalize, canonicalize-lgpl: honor // if distinct from /
8905         * modules/canonicalize (Files): Add double-slash-root.m4.
8906         * modules/canonicalize-lgpl (Files): Likewise.
8907         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8908         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8909         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8910         fallback definition.
8911         (canonicalize_filename_mode): Use it to protect //.
8912         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8913         (__realpath): Likewise.
8914         * tests/test-canonicalize.c (main): Test this.
8915         * tests/test-canonicalize-lgpl.c (main): Likewise.
8916         * modules/canonicalize-tests (Depends-on): Add same-inode.
8917         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8918
8919         canonicalize-lgpl: fix glibc bug with trailing slash
8920         * m4/canonicalize-lgpl.m4: Move contents...
8921         * m4/canonicalize.m4: ...here.
8922         (gl_CANONICALIZE_LGPL): Factor realpath check...
8923         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8924         glibc 2.3.5 bug, fixed 2005-04-27.
8925         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8926         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8927         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8928         * modules/canonicalize-lgpl (Files): Manage file rename.
8929         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8930         * modules/stdlib (Makefile.am): Substitute witness.
8931         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8932         is needed.
8933         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8934         replacement is required.
8935         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8936         * doc/glibc-functions/canonicalize_file_name.texi
8937         (canonicalize_file_name): Document this.
8938         * doc/posix-functions/realpath.texi (realpath): Likewise.
8939
8940         canonicalize-lgpl: reject non-directory with trailing slash
8941         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8942         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8943         catches failures in glibc 2.3.5.
8944         * tests/test-canonicalize.c (main): Likewise.
8945
8946         canonicalize-lgpl: use native realpath if it works
8947         * lib/canonicalize-lgpl.c (realpath): Guard with
8948         FUNC_REALPATH_WORKS.
8949         * lib/stdlib.in.h (realpath): Make declaration optional based on
8950         HAVE_REALPATH.
8951         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8952         native realpath works.
8953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8954         * modules/stdlib (Makefile.am): Substitute witness.
8955
8956         canonicalize, canonicalize-lgpl: use <stdlib.h>
8957         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8958         (Include): Mention <stdlib.h>.
8959         (configure.ac): Mention functions we provide.
8960         * modules/canonicalize (configure.ac): Likewise.
8961         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8962         realpath if canonicalize_file_name is missing.
8963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8964         * modules/stdlib (Makefile.am): Substitute witnesses.
8965         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8966         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8967         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8968         * NEWS: Document this.
8969         * doc/glibc-functions/canonicalize_file_name.texi
8970         (canonicalize_file_name): Likewise.
8971         * doc/posix-functions/realpath.texi (realpath): Likewise.
8972         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8973
8974         test-canonicalize: consolidate into single C program
8975         * tests/test-canonicalize.sh: Delete; move setup into...
8976         * tests/test-canonicalize.c (main): ...the program, making it
8977         easier to run in debugger.  Add some tests.
8978         * modules/canonicalize-tests (Files): Remove unused file.
8979         (Depends-on): Add progname.
8980         (configure.ac, Makefile.am): Simplify.
8981
8982         test-canonicalize-lgpl: consolidate into single C program
8983         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8984         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8985         easier to run in debugger.  Add some tests.
8986         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8987         (configure.ac, Makefile.am): Simplify.
8988
8989         canonicalize: avoid resolvepath
8990         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8991         unnecessary checks.
8992         * lib/canonicalize.c (includes): Simplify.
8993         (canonicalize_file_name): Drop resolvepath implementation.
8994         * modules/canonicalize (Depends-on): Drop filenamecat.
8995
8996         canonicalize: don't lose errno
8997         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8998         over calls to free.
8999
9000         canonicalize: simplify errno handling
9001         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9002         assignment.
9003
9004         canonicalize, canonicalize-lgpl: update module dependencies
9005         * modules/canonicalize (Depends-on): Add extensions, lstat,
9006         pathmax, stdlib.
9007         (Files): Drop pathmax.h.
9008         (configure.ac): Adjust macro name.
9009         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9010         lstat, stdlib, sys_stat.
9011         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9012         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9013         extensions.
9014         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9015         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9016         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9017         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9018         declaration, if available.
9019         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9020         we can rely on the readlink module.
9021         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9022         (includes): Use <unistd.h> unconditionally.
9023
9024 2009-09-17  Eric Blake  <ebb9@byu.net>
9025
9026         maint: make Include sections of modules consistent
9027         * modules/alloca: Use only header name; no need to list #include.
9028         * modules/alloca-opt: Likewise.
9029         * modules/arpa_inet: Likewise.
9030         * modules/canon-host: Likewise.
9031         * modules/configmake: Likewise.
9032         * modules/dirent: Likewise.
9033         * modules/eealloc: Likewise.
9034         * modules/environ: Likewise.
9035         * modules/fchdir: Likewise.
9036         * modules/fcntl: Likewise.
9037         * modules/fcntl-h: Likewise.
9038         * modules/gethrxtime: Likewise.
9039         * modules/gettime: Likewise.
9040         * modules/ignore-value: Likewise.
9041         * modules/inet_ntop: Likewise.
9042         * modules/inet_pton: Likewise.
9043         * modules/inttypes: Likewise.
9044         * modules/isnand-nolibm: Likewise.
9045         * modules/isnanf-nolibm: Likewise.
9046         * modules/mbchar: Likewise.
9047         * modules/mbfile: Likewise.
9048         * modules/mbiter: Likewise.
9049         * modules/mbuiter: Likewise.
9050         * modules/netdb: Likewise.
9051         * modules/netinet_in: Likewise.
9052         * modules/nproc: Likewise.
9053         * modules/pagealign_alloc: Likewise.
9054         * modules/poll: Likewise.
9055         * modules/printf-frexp: Likewise.
9056         * modules/pthread: Likewise.
9057         * modules/putenv: Likewise.
9058         * modules/random_r: Likewise.
9059         * modules/relocatable-prog: Likewise.
9060         * modules/search: Likewise.
9061         * modules/select: Likewise.
9062         * modules/selinux-h: Likewise.
9063         * modules/settime: Likewise.
9064         * modules/signal: Likewise.
9065         * modules/size_max: Likewise.
9066         * modules/socklen: Likewise.
9067         * modules/ssize_t: Likewise.
9068         * modules/stdarg: Likewise.
9069         * modules/stdbool: Likewise.
9070         * modules/stddef: Likewise.
9071         * modules/stdint: Likewise.
9072         * modules/stdio: Likewise.
9073         * modules/stdlib: Likewise.
9074         * modules/string: Likewise.
9075         * modules/strings: Likewise.
9076         * modules/sys_file: Likewise.
9077         * modules/sys_ioctl: Likewise.
9078         * modules/sys_select: Likewise.
9079         * modules/sys_socket: Likewise.
9080         * modules/sys_stat: Likewise.
9081         * modules/sys_time: Likewise.
9082         * modules/sys_times: Likewise.
9083         * modules/sys_utsname: Likewise.
9084         * modules/sys_wait: Likewise.
9085         * modules/sysexits: Likewise.
9086         * modules/time: Likewise.
9087         * modules/times: Likewise.
9088         * modules/tmpfile: Likewise.
9089         * modules/trim: Likewise.
9090         * modules/unistd: Likewise.
9091         * modules/wchar: Likewise.
9092         * modules/wctype: Likewise.
9093
9094 2009-09-17  Bruno Haible  <bruno@clisp.org>
9095
9096         Make getdate.y compile on QNX and NetBSD 5 / i386.
9097         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9098         TIME_T_FITS_IN_LONG_INT.
9099         * lib/getdate.y (long_time_t): New type.
9100         (relative_time): Change type of 'seconds' field to long_time_t.
9101         (get_date): Update types of local variables. Check against overflow
9102         during conversion from long_time_t to time_t.
9103         Reported by Matt Kraai <kraai@ftbfs.org>
9104         and Hasso Tepper <hasso@netbsd.org>.
9105
9106 2009-09-17  Bruno Haible  <bruno@clisp.org>
9107
9108         * modules/COPYING: Update copyright years.
9109         * modules/README: Likeiwse.
9110         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9111         Reported by Ian Beckwith <ianb@erislabs.net>.
9112
9113 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9114
9115         * users.txt: Update references for gnuit package.
9116
9117 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9118
9119         * m4/getdelim.m4: Fix typo in copyright line.
9120
9121 2009-09-17  Bruno Haible  <bruno@clisp.org>
9122
9123         * lib/atoll.c: Use the standard header with GPL copyright.
9124         * lib/argz.in.h: Likewise.
9125         * lib/glob.c: Likewise.
9126         * lib/glob-libc.h: Likewise.
9127         * lib/random_r.c: Likewise.
9128         * lib/siglist.h: Likewise.
9129         * lib/strsignal.c: Likewise.
9130         Reported by Ian Beckwith <ianb@erislabs.net>.
9131
9132 2009-09-17  Eric Blake  <ebb9@byu.net>
9133
9134         rmdir: ensure correct dependency order
9135         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9136
9137 2009-09-17  Bruno Haible  <bruno@clisp.org>
9138
9139         Disable assertion that fails on NetBSD 5 / i386.
9140         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9141         Reported by Sam Steingold <sds@gnu.org>
9142         and Hasso Tepper <hasso@netbsd.org>.
9143
9144 2009-09-16  Eric Blake  <ebb9@byu.net>
9145
9146         unlinkdir: port to mingw
9147         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9148         on which no one can unlink a directory.
9149
9150         stdlib: sort witness names
9151         * modules/stdlib (Makefile.am): Sort replacements.
9152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9153         * lib/stdlib.in.h: Likewise.
9154
9155         parse-duration-tests: avoid link failure
9156         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9157         LIBINTL.
9158         Reported by Tom G. Christensen.
9159
9160         openat-tests: ensure unlinkat behaves like rmdir
9161         * tests/test-rmdir.c (main): Factor guts...
9162         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9163         * modules/rmdir-tests (Files): Ship new file.
9164         * modules/openat-tests: New test.
9165         * tests/test-unlinkat.c: Likewise.
9166
9167         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9168         * modules/rmdir-errno (Status, Notice): Now obsolete.
9169
9170         rmdir: work around cygwin 1.5.x and mingw bugs
9171         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9172         * lib/rmdir.c (rmdir): Work around it.
9173         * modules/rmdir (Status, Notice): No longer obsolete.
9174         (Files): Add dos.m4.
9175         (Depends-on): Add unistd.
9176         (configure.ac): Set witnesses.
9177         (License): Relax to LGPLv2+.
9178         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9179         * modules/unistd (Makefile.am): Substitute witnesses.
9180         * lib/unistd.in.h (rmdir): Declare replacement.
9181         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9182         * modules/rmdir-tests: New tests.
9183         * tests/test-rmdir.c: Likewise.
9184
9185 2009-09-15  Eric Blake  <ebb9@byu.net>
9186
9187         fchdir: improve use of replacement functions
9188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9190         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9191         REPLACE_CLOSEDIR.
9192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9193         * modules/sys_stat (Makefile.am): Substitute correct witness.
9194         * modules/dirent (Makefile.am): Likewise.
9195         * modules/unistd (Makefile.am): Likewise.
9196         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9197         * lib/unistd.in.h (dup): Likewise.
9198         * lib/sys_stat.in.h (fstat): Likewise.
9199
9200         maint: ignore gnulib-tool temp files
9201         * .gitignore: Ignore files created during gnulib-tool --test.
9202
9203 2009-09-13  Jim Meyering  <meyering@redhat.com>
9204
9205         posixtm: don't reject a time that specify "60" as the number of seconds
9206         * lib/posixtm.c (posixtime): The code to reject invalid dates
9207         would also reject a time specified with the .60 suffix.
9208         But POSIX allows that, in order to accommodate leap seconds.
9209         So don't reject it.
9210         (main): Adjust tests accordingly.
9211         * modules/posixtm (Depends-on): Add stpcpy.
9212
9213 2009-09-11  Jim Meyering  <meyering@redhat.com>
9214
9215         announce-gen: include [$release_type] in emitted Subject:
9216         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9217         e.g., [stable] in the emitted Subject: line.
9218
9219 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9220
9221         Remove obsolete macros from several modules.
9222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9223         obsolete Autoconf macros with their modern counterparts.
9224         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9225         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9227         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9228         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9229         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9230         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9231         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9232         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9233         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9234         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9235         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9236         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9237         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9238         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9239         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9240         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9241         * m4/time_r.m4 (gl_TIME_R): Likewise.
9242         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9243         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9244         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9245
9246         Fix copyright header in build-aux scripts.
9247         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9248         recommendation.
9249         * build-aux/ncftpput-ftp: Likewise.
9250         * build-aux/update-copyright: Likewise.
9251
9252 2009-09-09  Eric Blake  <ebb9@byu.net>
9253
9254         test-link: allow Linux choice of errno
9255         * tests/test-link.c (main): Relax test for alternate error.
9256
9257         strndup: fix improper m4 caching
9258         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9259         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9260         (gl_PREREQ_STRNDUP): Delete.
9261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9262         * modules/string (Makefile.am): Substitute it.
9263         * lib/string.in.h (strndup): Modernize prototype.
9264
9265         getcwd: port to mingw
9266         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9267         different from the POSIX assumptions made throughout the getcwd
9268         module; fortunately, the mingw getcwd does not need replacement.
9269         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9270         * modules/getcwd-tests: New test.
9271         * tests/test-getcwd.c: Likewise.
9272
9273         link: fix platform bugs
9274         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9275         * lib/link.c (link): Work around them.  Fix related mingw bug.
9276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9277         * modules/unistd (Makefile.am): Substitute it.
9278         * lib/unistd.in.h (link): Declare replacement.
9279         * doc/posix-functions/link.texi (link): Document this.
9280         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9281
9282         test-link: consolidate into single C program, test more cases
9283         * tests/test-link.sh: Delete.
9284         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9285         at least Cygwin and Solaris.
9286         * modules/link-tests (Files): Remove unused file.
9287         (Depends-on): Add errno, sys_stat.
9288         (Makefile.am): Simplify.
9289
9290 2009-09-08  Bruno Haible  <bruno@clisp.org>
9291
9292         Work around towlower, towupper bug on mingw.
9293         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9294         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9295         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9296         * doc/posix-functions/towupper.texi: Likewise.
9297         Reported by Eric Blake.
9298
9299 2009-09-08  Jim Meyering  <meyering@redhat.com>
9300
9301         build: don't try to run autoheader if we don't use it
9302         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9303         is not used in configure.ac.
9304
9305 2009-09-08  Eric Blake  <ebb9@byu.net>
9306
9307         euidaccess: fix compilation error
9308         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9309
9310         rawmemchr: relax license
9311         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9312         okay.
9313         Reported by Jim Meyering.
9314
9315         mkfifoat: new module
9316         * modules/mkfifoat: New file.
9317         * lib/mkfifoat.c: Likewise.
9318         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9319         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9320         * modules/sys_stat (Makefile.am): Use them.
9321         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9322         * MODULES.html.sh (File system functions): Mention module.
9323         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9324         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9325         * modules/mkfifoat-tests: New test.
9326         * tests/test-mkfifoat.c: Likewise.
9327
9328         strchrnul: relax license
9329         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9330         okay.
9331         Reported by Jim Meyering.
9332
9333 2009-09-08  Eric Blake  <ebb9@byu.net>
9334
9335         fstatat: fix compilation on Solaris
9336         * lib/fstatat.c (includes): Add fcntl.h.
9337         Reported by Pádraig Brady.
9338
9339 2009-09-07  Eric Blake  <ebb9@byu.net>
9340
9341         rename: modernize replacement
9342         * modules/rename (Depends-on): Add stdio.
9343         (configure.ac): Declare witness.
9344         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9345         stdio take care of replacement.
9346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9347         * modules/stdio (Makefile.am): Substitute them.
9348         * lib/stdio.in.h (rename): Declare replacement.
9349         * lib/rename.c (includes): Allow cross-compilation to non-windows
9350         machines.
9351         * doc/posix-functions/rename.texi (rename): Improve
9352         documentation.
9353
9354         stdio: sort witness names
9355         * modules/stdio (Makefile.am): Sort replacements.
9356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9357         * lib/stdio.in.h: Likewise.
9358
9359         getcwd: minor cleanups
9360         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9361         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9362
9363         openat: provide more convenience names
9364         * modules/faccessat (configure.ac): Add C witness.
9365         * lib/unistd.in.h (readlinkat): Fix typo.
9366         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9367         convenience wrappers.
9368         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9369         wrappers in syntax checks.
9370
9371 2009-09-06  Eric Blake  <ebb9@byu.net>
9372
9373         doc: fix comments in recent patches
9374         * lib/faccessat.c: Mention correct function.
9375         * lib/fchmodat.c: Likewise.
9376         * lib/fchownat.c: Likewise.
9377         * lib/symlinkat.c: Likewise.
9378         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9379         constants.
9380
9381         faccessat, symlinkat: continue cleanup of previous patch
9382         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9383         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9384         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9386         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9387         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9388         set.
9389
9390 2009-09-06  Bruno Haible  <bruno@clisp.org>
9391
9392         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9393         (fstatat): Declare if GNULIB_FSTATAT is set.
9394         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9395         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9396         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9397         * modules/fcntl-h (Files): Remove m4/openat.m4.
9398         * modules/sys_stat (Files): Remove m4/openat.m4.
9399         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9400         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9401         * modules/unistd (Files): Remove m4/openat.m4.
9402         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9403         GNULIB_OPENAT.
9404         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9405         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9406         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9407         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9408         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9409         gl_OPENAT_DEFAULTS.
9410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9411         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9412         Don't require gl_OPENAT_DEFAULTS.
9413         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9414         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9415         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9416         (gl_OPENAT_DEFAULTS): Remove macro.
9417
9418 2009-09-06  Bruno Haible  <bruno@clisp.org>
9419
9420         * modules/openat (configure.ac): Remove unneeded witness.
9421
9422 2009-09-06  Bruno Haible  <bruno@clisp.org>
9423
9424         Set errno to ENOSYS when a function is entirely unsupported.
9425         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9426         EOPNOTSUPP.
9427         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9428         * modules/chown (Depends-on): Remove errno.
9429
9430 2009-09-06  Bruno Haible  <bruno@clisp.org>
9431
9432         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9433
9434 2009-09-06  Bruno Haible  <bruno@clisp.org>
9435
9436         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9437
9438 2009-09-06  Ben Pfaff  <blp@gnu.org>
9439             Bruno Haible  <bruno@clisp.org>
9440
9441         Work around a glibc bug in strtok_r.
9442         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9443         Undefine if UNDEFINE_STRTOK_R is set.
9444         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9446         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9447         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9448         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9449         UNDEFINE_STRTOK_R.
9450         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9451
9452 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9453
9454         exclude: minor fix
9455         * lib/exclude.c: Include wctype.h
9456
9457 2009-09-06  Akim Demaille  <demaille@gostai.com>
9458
9459         bootstrap: improve error message
9460         * build-aux/bootstrap (find_tool): Upon failure, report the list
9461         of candidates.
9462         Honor the initial value of the envvar.
9463
9464 2009-09-05  Eric Blake  <ebb9@byu.net>
9465
9466         symlinkat: new module
9467         * modules/symlinkat: New file.
9468         * lib/symlinkat.c: Likewise.
9469         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9471         * modules/unistd (Makefile.am): Use them.
9472         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9473         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9474         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9475         * MODULES.html.sh (File system functions): Mention module.
9476         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9477         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9478         * modules/symlinkat-tests: New test.
9479         * tests/test-symlinkat.c: Likewise.
9480
9481         test-openat-safer: add more checks
9482         * tests/test-openat-safer.c (main): Check more code paths.
9483
9484 2009-09-05  Jim Meyering  <meyering@redhat.com>
9485
9486         syntax-check: detect unnecessary inclusion of openat.h
9487         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9488
9489 2009-09-05  Bruno Haible  <bruno@clisp.org>
9490
9491         Support towlower, towupper.
9492         * doc/posix-functions/towlower.texi: Mention module wctype.
9493         * doc/posix-functions/towupper.texi: Likewise.
9494         * lib/wctype.in.h (towlower, towupper): New functions.
9495         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9496         (ASSERT): New macro.
9497         (e): New variable.
9498         (main): Test also towlower, towupper. Test WEOF argument.
9499         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9500
9501 2009-09-05  Bruno Haible  <bruno@clisp.org>
9502
9503         Fix conversion behaviour when the input is invalid.
9504         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9505         mark occurring in first pass of indirect conversion.
9506         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9507         input.
9508         Found by clang's static analyzer.
9509
9510 2009-09-05  Bruno Haible  <bruno@clisp.org>
9511
9512         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9513         where direct conversion is possible.
9514
9515 2009-09-04  Eric Blake  <ebb9@byu.net>
9516
9517         openat: fail with ENOENT on empty name
9518         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9519         buffer.
9520
9521         link-follow: fix logic bug in prior patch
9522         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9523         reversed sense of yes and no in prior patch.  Avoid confusing
9524         compilation failure with desired semantics.
9525
9526         link-follow: accomodate mingw and cross-compilation
9527         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9528         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9529         cross-compilation results to -1, to make linkat easier to
9530         implement when cross-compiling.  Trivially support mingw.
9531         * modules/link-follow (configure.ac): Call new name.
9532         * NEWS: Mention this.
9533
9534 2009-09-03  Eric Blake  <ebb9@byu.net>
9535
9536         faccessat: compile replacement
9537         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9538         needed.
9539
9540         fts: fix compilation error
9541         * lib/fts.c (includes): Re-add "openat.h", for
9542         openat_needs_fchdir.
9543
9544         faccessat: new module
9545         * modules/faccessat: New file.
9546         * lib/faccessat.c: Likewise.
9547         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9549         * modules/unistd (Makefile.am): Use it.
9550         * lib/unistd.in.h (faccessat): Declare it.
9551         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9552         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9553         * MODULES.html.sh (File system functions): Mention it.
9554         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9555         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9556
9557         euidaccess: prefer POSIX over non-standard implementation
9558         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9559         * lib/euidaccess.c (euidaccess): Use it if available.
9560
9561         openat: make template easier to use
9562         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9563         AT_FUNC_F2 to be undefined.
9564         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9565         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9566         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9567         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9568         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9569         Likewise.
9570         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9571         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9572         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9573         Likewise.
9574
9575         openat: declare in POSIX headers
9576         * NEWS: Mention this.
9577         * modules/openat (configure.ac): Declare witnesses.
9578         (Depends-on): Add fcntl-h, sys_stat, unistd.
9579         (Include): Mention correct headers.
9580         * modules/fcntl-h (Depends-on): Add link-warning.
9581         (Files): Add openat.m4.
9582         (Makefile.am): Substitute witnesses.
9583         * modules/sys_stat (Files, Makefile.am): Likewise.
9584         * modules/unistd (Files, Makefile.am): Likewise.
9585         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9586         (gl_OPENAT_DEFAULTS): New macro.
9587         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9590         (SYS_STAT_H): Remove unused variable.
9591         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9592         * lib/fcntl--.h (includes): Remove unneeded header.
9593         * lib/openat-safer.c (includes): Likewise.
9594         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9595         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9596         appropriate headers.
9597         (__OPENAT_PREFIX): Delete.
9598         * lib/fcntl.in.h (openat): Provide declaration.
9599         (AT_FDCWD): Fix Solaris bug.
9600         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9601         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9602         * lib/fchmodat.c (includes):  Adjust to find declaration.
9603         * lib/fchownat.c (includes): Likewise.
9604         * lib/mkdirat.c (includes): Likewise.
9605         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9606         still visible.
9607
9608 2009-09-02  Eric Blake  <ebb9@byu.net>
9609
9610         errno: use consistently
9611         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9612         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9613         * lib/canonicalize.c (ELOOP): Likewise.
9614         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9615         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9616         * lib/lchown.c (EOPNOTSUPP): Likewise.
9617         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9618         * lib/savewd.c (ESTALE): Likewise.
9619         * lib/settime.c (ENOSYS): Likewise.
9620         * lib/utimens.c (ENOSYS): Likewise.
9621         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9622         * lib/chdir-safer.c (ELOOP): Likewise.
9623         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9624         * modules/c-stack (Depends-on): Add errno.
9625         * modules/canonicalize (Depends-on): Likewise.
9626         * modules/chdir-safer (Depends-on): Likewise.
9627         * modules/fdopendir (Depends-on): Likewise.
9628         * modules/inet_ntop (Depends-on): Likewise.
9629         * modules/inet_pton (Depends-on): Likewise.
9630         * modules/lchown (Depends-on): Likewise.
9631         * modules/openat (Depends-on): Likewise.
9632         * modules/savewd (Depends-on): Likewise.
9633         * modules/settime (Depends-on): Likewise.
9634         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9635
9636         fts: avoid leaking fds
9637         * modules/fts (Depends-on): Add cloexec.
9638         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9639         flag.
9640
9641         fts: make directory fds more robust
9642         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9643         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9644
9645         backupfile, chdir-long, fts, savedir: make safer
9646         * lib/backupfile.c (includes): Use "dirent--.h", since
9647         numbered_backup can write to stderr during readdir.
9648         * lib/savedir.c (includes): Likewise.
9649         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9650         emulation can write to stderr on failure.
9651         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9652         * lib/getcwd.c: Document why opendir_safer is unused.
9653         * lib/glob.c: Likewise.
9654         * lib/scandir.c: Likewise.
9655         * lib/openat-proc.c: Likewise, for open_safer.
9656         * modules/backupfile (Depends-on): Add dirent-safer.
9657         * modules/savedir (Depends-on): Likewise.
9658         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9659         * modules/chdir-long (Depends-on): Add openat-safer.
9660
9661         openat-safer: new module
9662         * modules/openat-safer: New file.
9663         * lib/openat-safer.c: Likewise.
9664         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9665         * lib/fcntl-safer.h (openat_safer): Declare.
9666         * lib/fcntl--.h (openat): Override.
9667         * MODULES.html.sh (File descriptor based I/O): Mention it.
9668         * lib/openat.h: Add double-inclusion guards.
9669         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9670         "fcntl--.h", so we can implement openat.
9671         * modules/openat-safer-tests: New test.
9672         * tests/test-openat-safer.c: New file.
9673
9674         dirent-safer: new module
9675         * modules/dirent-safer: New file.
9676         * lib/dirent--.h: Likewise.
9677         * lib/dirent-safer.h: Likewise.
9678         * lib/opendir-safer.c: Likewise.
9679         * m4/dirent-safer.m4: Likewise.
9680         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9681         * modules/dirent-safer-tests: New test.
9682         * tests/test-dirent-safer.c: New file.
9683         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9684
9685         fdopendir: optimize on mingw
9686         * lib/unistd.in.h (_gl_directory_name): New prototype.
9687         * lib/fchdir.c (_gl_directory_name): Implement it.
9688         (fchdir): Use it to simplify implementation.
9689         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9690         fchdir, when available, to avoid calling [f]chdir().
9691
9692         fdopendir: split into its own module
9693         * lib/openat.c (fdopendir): Move...
9694         * lib/fdopendir.c: ...into new file.
9695         * modules/fdopendir: New module.
9696         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9697         * modules/openat (Depends-on): Add fdopendir.
9698         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9699         fdopendir here.
9700         * modules/savedir (Depends-on): Only need fdopendir, not full
9701         openat.
9702         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9703         * lib/openat.h (fdopendir): Drop prototype.
9704         * lib/dirent.in.h (fdopendir): Provide prototype.
9705         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9706         * modules/dirent (Makefile.am): Substitute them.
9707         * MODULES.html.sh (File system functions): Mention it.
9708         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9709         * modules/fdopendir-tests: New file.
9710         * tests/test-fdopendir.c: Likewise.
9711
9712         fchdir: use more consistent macro convention
9713         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9714         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9715         REPLACE_FCHDIR, rather than relying on config.h macros.
9716         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9717         inside a single make-time REPLACE_FCHDIR block, rather than using
9718         the config.h FCHDIR_REPLACEMENT.
9719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9720         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9721         Manage fstat replacement.
9722         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9723         REPLACE_FCHDIR.
9724         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9725         (Makefile.am): Substitute REPLACE_FCHDIR.
9726         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9727         FCHDIR_REPLACEMENT.
9728         * lib/dup-safer.c (dup_safer): Likewise.
9729         * lib/dup2.c (rpl_dup2): Likewise.
9730         * lib/dup3.c (rpl_dup3): Likewise.
9731         * lib/open.c (rpl_open): Likewise.
9732
9733         fchdir: simplify error handling, and support dup3
9734         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9735         stdbool, malloc-posix, realloc-posix.
9736         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9737         (ensure_dirs_slot): Return false on allocation failure.
9738         (rpl_dup2): Delete.
9739         (_gl_register_dup): New function.
9740         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9741         (_gl_register_fd): Close fd on allocation failure.
9742         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9743         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9744         prototype.
9745         (rpl_dup2_fchdir): Delete prototype.
9746         * lib/open.c (open): Update caller.
9747         * lib/dup2.c (dup2): Track fchdir metadata.
9748         * lib/dup3.c (dup3): Likewise.
9749         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9751
9752 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9753
9754         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9755         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9756         don't pass arguments to AC_OUTPUT.
9757
9758 2009-09-02  Bruno Haible  <bruno@clisp.org>
9759
9760         * modules/mkdtemp (License): Relicense under LGPLv2+.
9761         Reported by Paolo Bonzini.
9762
9763 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9764
9765         Replace uses of obsolete autoconf macros in Jim's modules.
9766         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9767         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9768         can evoke a warning from autoconf when run with -Wobsolete
9769         enabled.  They were declared obsolete for good reasons (see
9770         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9771         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9772         should not continue using the deprecated macros.
9773         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9774         obsolete Autoconf macros with modern counterparts.
9775         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9776         * m4/dos.m4 (gl_AC_DOS): Likewise.
9777         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9779         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9780         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9781         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9783         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9784         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9785         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9786         Likewise.
9787         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9789         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9790         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9791         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9792         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9793
9794 2009-09-01  Eric Blake  <ebb9@byu.net>
9795
9796         fchdir: fix off-by-one bug in previous patch
9797         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9798         (_gl_unregister_fd): Delete useless if.
9799
9800 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9801
9802         maint.mk: sort the list of syntax-check rules
9803         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9804         easier to get a sense of progress when the rules are run sequentially
9805         and take a long time.
9806
9807 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9808
9809         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9810         * modules/netinet_in: Likewise.
9811         * modules/sys_file: Likewise.
9812         * modules/sys_ioctl: Likewise.
9813         * modules/sys_select: Likewise.
9814         * modules/sys_socket: Likewise.
9815         * modules/sys_stat: Likewise.
9816         * modules/sys_time: Likewise.
9817         * modules/sys_times: Likewise.
9818         * modules/sys_utsname: Likewise.
9819         * modules/sys_wait: Likewise.
9820
9821 2009-09-01  Jim Meyering  <meyering@redhat.com>
9822
9823         fts: help ensure that return values are not ignored
9824         * lib/fts_.h (__GNUC_PREREQ): Define.
9825         (__attribute_warn_unused_result__): Define.
9826         (fts_children, fts_close, fts_open, fts_read): Declare with
9827         __attribute_warn_unused_result__.
9828
9829         fts: fts_close now fails also when closing a dir file descriptor fails
9830         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9831         and propagate to caller, along with errno.
9832
9833         announce-gen: correct formatting in --help output
9834         * build-aux/announce-gen (usage): Move the one-line description in
9835         --help output "up", to where it belongs, just after Usage:.
9836
9837 2009-08-31  Eric Blake  <ebb9@byu.net>
9838
9839         fchdir: port to mingw
9840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9841         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9842         opened, then use a substitute.
9843         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9844         replacement.
9845         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9846         (_gl_register_fd): No need to check stat if open already filters
9847         all directories.
9848         (fchdir): Fix error condition to match POSIX.
9849         * modules/fchdir (Depends-on): Add sys_stat.
9850         * doc/posix-functions/open.texi (open): Document the limitation.
9851         * modules/fchdir-tests: New file.
9852         * tests/test-fchdir.c: Likewise.
9853
9854         canonicalize: allow cross-testing from cygwin to mingw
9855         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9856         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9857         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9858         Likewise.
9859         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9860         target does not support symlinks.
9861         * tests/test-canonicalize-lgpl.sh: Likewise.
9862
9863         chown: avoid compilation warning on mingw
9864         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9865         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9866         mingw.
9867         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9868         * modules/chown (Depends-on): Add errno.
9869
9870 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9871
9872         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9873         command.
9874
9875 2009-08-31  Jim Meyering  <meyering@redhat.com>
9876
9877         canonicalize: remove useless initialization
9878         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9879         initialization of local, "end".
9880
9881 2009-08-30  Bruno Haible  <bruno@clisp.org>
9882
9883         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9884         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9885         ENOSYS.
9886
9887 2009-08-30  Bruno Haible  <bruno@clisp.org>
9888
9889         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9890         /usr/xpg4/bin/tr when it exists.
9891         * tests/test-pipe-filter-gi1.sh: Likewise.
9892
9893 2009-08-30  Bruno Haible  <bruno@clisp.org>
9894
9895         Work around deficient /usr/bin/id program on Solaris.
9896         * tests/test-file-has-acl.sh (ID): New variable.
9897         * tests/test-set-mode-acl.sh (ID): Likewise.
9898         * tests/test-copy-acl.sh (ID): Likewise.
9899         * tests/test-copy-file.sh (ID): Likewise.
9900
9901 2009-08-30  Bruno Haible  <bruno@clisp.org>
9902
9903         New module 'xstriconveh'.
9904         * lib/xstriconveh.h: New file.
9905         * lib/xstriconveh.c: New file.
9906         * modules/xstriconveh: New file.
9907
9908 2009-08-30  Bruno Haible  <bruno@clisp.org>
9909
9910         Make it easier to use mem_cd_iconveh.
9911         * lib/striconveh.h (iconveh_t): New type.
9912         (iconveh_open, iconveh_close): New declarations.
9913         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9914         with a single 'const iconveh_t *' argument.
9915         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9916         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9917         with a single 'const iconveh_t *' argument.
9918         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9919         * tests/test-striconveh.c (main): Update.
9920         * NEWS: Mention the change.
9921
9922 2009-08-30  Bruno Haible  <bruno@clisp.org>
9923
9924         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9925         problem.
9926
9927 2009-08-30  Bruno Haible  <bruno@clisp.org>
9928
9929         Work around iconv_open problem on Solaris.
9930         * lib/iconv_open-solaris.gperf: New file.
9931         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9932         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9933         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9934         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9935         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9936         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9937
9938 2009-08-29  Jim Meyering  <meyering@redhat.com>
9939
9940         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9941         * top/maint.mk (cvs-check): Remove target; it was just an alias
9942         to the better-named vc-diff-check.
9943         (maintainer-distcheck): Remove rule.  It was used only from
9944         the (alpha/beta/major) target, and all of its commands but one
9945         were coreutils-specific.
9946         (vc-dist): Remove rule.
9947         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9948         Run vc-diff-check, not vc-dist.
9949         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9950
9951 2009-08-27  Bruno Haible  <bruno@clisp.org>
9952
9953         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9954         of 0.
9955
9956 2009-08-27  Bruno Haible  <bruno@clisp.org>
9957
9958         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9959         compilers.
9960         * doc/func.texi: Document the SunPRO C bug.
9961
9962 2009-08-27  Bruno Haible  <bruno@clisp.org>
9963
9964         Fix link error on Solaris.
9965         * tests/test-parse-duration.c (xstrdup): Remove function.
9966
9967 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9968
9969         ignore-value: handle pointer types, too
9970         * lib/ignore-value.h (__attribute__): Remove definition.
9971         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9972         of a more concise and more-often effective "(void) i" statement.
9973         (ignore_ptr): New function to suppress warnings from functions that
9974         return pointers, and to make it explicit that one function doesn't
9975         handle all cases.
9976
9977 2009-08-25  Bruno Haible  <bruno@clisp.org>
9978
9979         dup2: work around a Linux bug.
9980         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9981         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9982         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9983         Reported by Simon Josefsson.
9984
9985 2009-08-25  Jim Meyering  <meyering@redhat.com>
9986
9987         libguestfs uses gnulib
9988         * users.txt: Add libguestfs.
9989
9990 2009-08-24  Eric Blake  <ebb9@byu.net>
9991
9992         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9993         * lib/pipe2.c (includes): Add binary-io.h.
9994         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9995
9996 2009-08-24  Bruno Haible  <bruno@clisp.org>
9997
9998         Tolerate declared but missing accept4 syscall.
9999         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10000         available.
10001         * lib/sys_socket.in.h (accept4): If the function is already present,
10002         override it.
10003         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10004         * modules/accept4 (Makefile.am): Compile accept4.c always.
10005         Reported by Paolo Bonzini and Eric Blake.
10006
10007 2009-08-23  Bruno Haible  <bruno@clisp.org>
10008
10009         New module 'accept4'.
10010         * lib/sys_socket.in.h (accept4): New declaration.
10011         * lib/accept4.c: New file.
10012         * m4/accept4.m4: New file.
10013         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10014         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10015         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10016         HAVE_ACCEPT4.
10017         * modules/accept4: New file.
10018         * doc/glibc-functions/accept4.texi: Mention the new module.
10019
10020 2009-08-24  Jim Meyering  <meyering@redhat.com>
10021
10022         progname: also set global program_invocation_name, when possible
10023         Before this change, a libtool-enabled program that calls glibc's
10024         error function would report the program name as
10025         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10026         * modules/progname (configure.ac): Check for a declaration of
10027         program_invocation_name.
10028         * lib/progname.c:  Include <errno.h>.
10029         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10030         Set program_invocation_name.
10031
10032 2009-08-23  Bruno Haible  <bruno@clisp.org>
10033
10034         * lib/dup3.c: Include <string.h>.
10035
10036 2009-08-23  Bruno Haible  <bruno@clisp.org>
10037
10038         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10039         * lib/pipe2.c (pipe2): Likewise.
10040         Suggested by Eric Blake.
10041
10042 2009-08-23  Bruno Haible  <bruno@clisp.org>
10043
10044         Tolerate declared but missing dup3 syscall.
10045         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10046         * lib/unistd.in.h (dup3): If the function is already present,
10047         override it.
10048         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10049         * modules/dup3 (Makefile.am): Compile dup3.c always.
10050         Reported by Paolo Bonzini.
10051
10052 2009-08-23  Bruno Haible  <bruno@clisp.org>
10053
10054         Tolerate declared but missing pipe2 syscall.
10055         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10056         available.
10057         * lib/unistd.in.h (pipe2): If the function is already present,
10058         override it.
10059         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10060         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10061         Reported by Paolo Bonzini.
10062
10063 2009-08-23  Bruno Haible  <bruno@clisp.org>
10064
10065         * lib/pipe2.c (pipe2): Move #ifs inside function.
10066
10067 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10068
10069         quotearg: document limitations of quote_these_too
10070         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10071         those limitations are created.
10072         * lib/quotearg.h (set_char_quoting): Document that digits and
10073         letters that are special after backslash are not permitted.
10074         (quotearg_char): Cross-reference set_char_quoting documentation.
10075
10076 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10077
10078         quotearg: implement custom_quoting_style
10079         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10080         right_quote fields.
10081         (set_custom_quoting): New public function.
10082         (quotearg_buffer_restyled): Add left_quote and right_quote
10083         arguments, handle them very much like locale quoting, and update
10084         all uses.
10085         (quotearg_n_custom): New public function.
10086         (quotearg_n_custom_mem): New public function.
10087         (quotearg_custom): New public function.
10088         (quotearg_custom_mem): New public function.
10089         * lib/quotearg.h: Prototype and document new public functions.
10090         (enum quoting_style): For escape_quoting_style and
10091         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10092         ignored even though they're otherwise like c_quoting_style.
10093         Add custom_quoting_style member and document with comparison to
10094         clocale_quoting_style.
10095         * tests/test-quotearg.c (custom_quotes): New array.
10096         (custom_results): New array.
10097         (main): Extend to test custom quoting.
10098
10099 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10100
10101         quotearg: fix right quote escaping when it's in quote_these_too
10102         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10103         quote, be sure to prepend only one backslash.
10104         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10105         (main): Test it.
10106
10107 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10108
10109         quotearg-tests: test escaping of embedded locale quotes
10110         * tests/test-quotearg.c (struct result_strings): Add member for
10111         new input.
10112         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10113         (inputs): Add new input.
10114         (results_g): Add expected results.
10115         (flag_results): Likewise.
10116         (locale_results): Likewise.
10117         (compare_strings): Check those.
10118
10119 2009-08-23  Bruno Haible  <bruno@clisp.org>
10120
10121         Tests for module 'dup3'.
10122         * modules/dup3-tests: New file.
10123         * tests/test-dup3.c: New file.
10124
10125         New module 'dup3'.
10126         * lib/unistd.in.h (dup3): New declaration.
10127         * lib/dup3.c: New file.
10128         * m4/dup3.m4: New file.
10129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10130         HAVE_DUP3.
10131         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10132         * modules/dup3: New file.
10133         * doc/glibc-functions/dup3.texi: Mention the new module.
10134
10135 2009-08-23  Bruno Haible  <bruno@clisp.org>
10136
10137         Tweak the dup2 test.
10138         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10139         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10140         the test file is still empty. Fix argument order of lseek.
10141
10142 2009-08-23  Bruno Haible  <bruno@clisp.org>
10143
10144         Avoid test link errors when the modules getopt-gnu, gettext are used.
10145         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10147
10148 2009-08-23  Bruno Haible  <bruno@clisp.org>
10149
10150         Fix getdtablesize() on mingw.
10151         * lib/getdtablesize.c (getdtablesize): Implement differently.
10152         * lib/unistd.in.h (getdtablesize): Improve comment.
10153
10154 2009-08-23  Bruno Haible  <bruno@clisp.org>
10155
10156         New module 'mkostemp'.
10157         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10158         * lib/stdlib.in.h (mksotemp): New declaration.
10159         * lib/mkostemp.c: New file, from glibc with modifications.
10160         * lib/tempname.h (GT_FILE): Remove outdated comment.
10161         (gen_tempname): Add flags argument.
10162         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10163         (__GT_FILE): Map to 1.
10164         (small_open, large_open): Remove macros.
10165         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10166         * lib/mkstemp.c (mkstemp): Update.
10167         * lib/mkdtemp.c (mkdtemp): Likewise.
10168         * m4/mkostemp.m4: New file.
10169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10170         HAVE_MKOSTEMP.
10171         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10172         HAVE_MKOSTEMP.
10173         * modules/mkostemp: New file, based on modules/mkstemp.
10174         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10175         * NEWS: Mention the change.
10176
10177 2009-08-23  Bruno Haible  <bruno@clisp.org>
10178
10179         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10180         Reported by Eric Blake.
10181
10182 2009-08-23  Bruno Haible  <bruno@clisp.org>
10183
10184         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10185         Reported by Eric Blake.
10186
10187 2009-08-23  Bruno Haible  <bruno@clisp.org>
10188
10189         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10190         * modules/pipe2 (Depends-on): Likewise.
10191
10192 2009-08-23  Eric Blake  <ebb9@byu.net>
10193
10194         fcntl-h: add O_TTY_INIT support
10195         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10196         * tests/test-fcntl-h.c (o): Test it.
10197         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10198
10199         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10200         * modules/fcntl: Move <fcntl.h> header replacement...
10201         * modules/fcntl-h: ...to new name, so as not to collide with
10202         like-named function.
10203         * tests/test-fcntl.c: Rename...
10204         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10205         * modules/fcntl-tests: Rename...
10206         * modules/fcntl-h-tests: ...to this.  Update test file name.
10207         * modules/chdir-long (Depends-on): Update clients.
10208         * modules/chdir-safer (Depends-on): Likewise.
10209         * modules/fcntl-safer (Depends-on): Likewise.
10210         * modules/fts (Depends-on): Likewise.
10211         * modules/mkancesdirs (Depends-on): Likewise.
10212         * modules/mkdir-p (Depends-on): Likewise.
10213         * modules/open (Depends-on): Likewise.
10214         * modules/savewd (Depends-on): Likewise.
10215         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10216         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10217
10218 2009-08-22  Bruno Haible  <bruno@clisp.org>
10219
10220         * modules/binary-io (License): Relicense under LGPL.
10221         * modules/pipe2 (License): Likewise.
10222
10223 2009-08-22  Bruno Haible  <bruno@clisp.org>
10224
10225         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10226         return value.
10227         * lib/pipe-filter-gi.c (filter_init): Likewise.
10228         Reported by Eric Blake.
10229
10230 2009-08-22  Bruno Haible  <bruno@clisp.org>
10231
10232         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10233         * modules/pipe (Depends-on): Add pipe2.
10234
10235 2009-08-22  Bruno Haible  <bruno@clisp.org>
10236
10237         Tests for module 'pipe2'.
10238         * modules/pipe2-tests: New file.
10239         * tests/test-pipe2.c: New file.
10240
10241         New module 'pipe2'.
10242         * lib/unistd.in.h (pipe2): New declaration.
10243         * lib/pipe2.c: New file.
10244         * m4/pipe2.m4: New file.
10245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10246         HAVE_PIPE2.
10247         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10248         * modules/pipe2: New file.
10249         * doc/glibc-functions/pipe2.texi: Mention the new module.
10250
10251 2009-08-22  Bruno Haible  <bruno@clisp.org>
10252
10253         Reference some new glibc functions.
10254         * doc/glibc-functions/accept4.texi: New file.
10255         * doc/glibc-functions/dup3.texi: New file.
10256         * doc/glibc-functions/mkostemp.texi: New file.
10257         * doc/glibc-functions/pipe2.texi: New file.
10258         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10259         (Glibc sys/socket.h): Refer to accept4.
10260         (Glibc unistd.h): Refer to dup3, pipe2.
10261         Reported by Eric Blake.
10262
10263 2009-08-22  Jim Meyering  <meyering@redhat.com>
10264             Bruno Haible  <bruno@clisp.org>
10265
10266         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10267         This makes it so packages using automake-1.11's silent-rules option
10268         can print e.g., a single "GEN    configmake.h" line, rather than
10269         the 30+ statements that perform the job.  If you want to see the
10270         actual commands, you can still run "make V=1".
10271         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10272         so that make output is abbreviated when those variables are defined
10273         appropriately.
10274         * modules/argz: Likewise.
10275         * modules/arpa_inet: Likewise.
10276         * modules/byteswap: Likewise.
10277         * modules/configmake: Likewise.
10278         * modules/dirent: Likewise.
10279         * modules/errno: Likewise.
10280         * modules/fcntl: Likewise.
10281         * modules/float: Likewise.
10282         * modules/fnmatch: Likewise.
10283         * modules/getopt-posix: Likewise.
10284         * modules/glob: Likewise.
10285         * modules/iconv_open: Likewise.
10286         * modules/inttypes: Likewise.
10287         * modules/localcharset: Likewise.
10288         * modules/locale: Likewise.
10289         * modules/math: Likewise.
10290         * modules/netdb: Likewise.
10291         * modules/netinet_in: Likewise.
10292         * modules/poll: Likewise.
10293         * modules/posix_spawnp-tests: Likewise.
10294         * modules/sched: Likewise.
10295         * modules/search: Likewise.
10296         * modules/selinux-h: Likewise.
10297         * modules/signal: Likewise.
10298         * modules/spawn: Likewise.
10299         * modules/stdarg: Likewise.
10300         * modules/stdbool: Likewise.
10301         * modules/stddef: Likewise.
10302         * modules/stdint: Likewise.
10303         * modules/stdio: Likewise.
10304         * modules/stdlib: Likewise.
10305         * modules/string: Likewise.
10306         * modules/strings: Likewise.
10307         * modules/sys_file: Likewise.
10308         * modules/sys_ioctl: Likewise.
10309         * modules/sys_select: Likewise.
10310         * modules/sys_socket: Likewise.
10311         * modules/sys_stat: Likewise.
10312         * modules/sys_time: Likewise.
10313         * modules/sys_times: Likewise.
10314         * modules/sys_utsname: Likewise.
10315         * modules/sys_wait: Likewise.
10316         * modules/sysexits: Likewise.
10317         * modules/time: Likewise.
10318         * modules/unistd: Likewise.
10319         * modules/wchar: Likewise.
10320         * modules/wctype: Likewise.
10321
10322 2009-08-22  Jim Meyering  <meyering@redhat.com>
10323
10324         announce-gen: detect write failure
10325         * build-aux/announce-gen: Add Coda at end.
10326         Remove equivalent-but-more-verbose block at top.
10327
10328 2009-08-19  Akim Demaille  <demaille@gostai.com>
10329
10330         bootstrap: --help to stdout.
10331         * bootstrap (usage): Don't send --help to stderr.
10332         Use a here doc instead of a long string.
10333
10334 2009-08-21  Eric Blake  <ebb9@byu.net>
10335
10336         test-popen-safer: split from test-popen
10337         * tests/test-popen.c (main): Move...
10338         * tests/test-popen.h: ...into new file.
10339         * tests/test-popen-safer2.c: New file.
10340         * modules/popen-tests (Files): Add test-popen.h.
10341         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10342         Suggested by Bruno Haible.
10343
10344         test-fcntl-safer: split from test-open
10345         * tests/test-open.c (main): Move...
10346         * tests/test-open.h: ...into new file.
10347         * tests/test-fcntl-safer.c: New file.
10348         * modules/open-tests (Files): Add test-open.h.
10349         * modules/fcntl-safer-tests: New file.
10350         Suggested by Bruno Haible.
10351
10352         test-fopen-safer: split from test-fopen
10353         * tests/test-fopen.c (main): Move...
10354         * tests/test-fopen.h: ...into new file.
10355         * tests/test-fopen-safer.c: New file.
10356         * modules/fopen-tests (Files): Add test-fopen.h.
10357         * modules/fopen-safer-tests: New file.
10358         Suggested by Bruno Haible.
10359
10360 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10361
10362         popen-safer: test O_CLOEXEC at run-time.
10363         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10364
10365 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10366
10367         fcntl: move more flags to the header
10368         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10369         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10370         * lib/fcntl.in.h: Do both things here.
10371
10372 2009-08-21  Jim Meyering  <meyering@redhat.com>
10373
10374         consistently remove $@-t before redirecting to it
10375         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10376         * modules/alloca-opt: Likewise.
10377         * modules/byteswap: Likewise.
10378         * modules/fnmatch: Likewise.
10379         * modules/getopt-posix: Likewise.
10380         * modules/glob: Likewise.
10381         * modules/poll: Likewise.
10382         * modules/posix_spawnp-tests: Likewise.
10383         * modules/sys_socket: Likewise.
10384         * modules/sysexits: Likewise.
10385
10386 2009-08-21  Eric Blake  <ebb9@byu.net>
10387
10388         popen: simplify access to original popen
10389         * lib/popen.c (rpl_popen): No need to worry about popen being a
10390         macro.
10391         Reported by Bruno Haible.
10392
10393 2009-08-20  Eric Blake  <ebb9@byu.net>
10394
10395         build: avoid some compiler warnings
10396         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10397         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10398         type.
10399         (new_exclude_segment, excluded_file_pattern_p)
10400         (excluded_file_name_p): Reduce scope.
10401         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10402         old-style declaration.
10403
10404 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10405
10406         * tests/test-exclude1.sh: Handle Windows EOL.
10407         * tests/test-exclude2.sh: Likewise.
10408         * tests/test-exclude3.sh: Likewise.
10409         * tests/test-exclude4.sh: Likewise.
10410         * tests/test-exclude5.sh: Likewise.
10411         * tests/test-exclude6.sh: Likewise.
10412         * tests/test-exclude7.sh: Likewise.
10413
10414 2009-08-19  Akim Demaille  <demaille@gostai.com>
10415
10416         bootstrap: find sha1sum when named gsha1sum.
10417         * bootstrap (find_tool): New.
10418         ($SHA1SUM): New.
10419         Use it.
10420
10421 2009-08-20  Jim Meyering  <meyering@redhat.com>
10422
10423         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10424         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10425         expression that converts "." in a file name to "\." in the resulting
10426         regexp.  Start with a dummy statement, so that prior shell variable
10427         definitions are expanded portably.  Reported by Simon Josefsson.
10428
10429 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10430
10431         Fix polling for writeability of a screen buffer.
10432         * lib/poll.c: Distinguish input and screen buffers for the
10433         Win32 implementation.
10434         * lib/select.c: Likewise.
10435
10436 2009-08-19  Eric Blake  <ebb9@byu.net>
10437
10438         popen-safer: prevent popen from clobbering std descriptors
10439         * modules/popen-safer: New file.
10440         * lib/popen-safer.c: Likewise.
10441         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10442         * lib/stdio--.h (popen): Provide override.
10443         * lib/stdio-safer.h (popen_safer): Provide declaration.
10444         * tests/test-popen.c (includes): Partially test this.
10445         * modules/popen-safer-tests: New file, for more tests.
10446         * tests/test-popen-safer.c: Likewise.
10447         * MODULES.html.sh (file stream based Input/Output): Mention it.
10448
10449         tests: test some of the *-safer modules
10450         * modules/fopen-safer (Depends-on): Add fopen.
10451         * modules/fcntl-safer (Depends-on): Add fcntl.
10452         * modules/stdlib-safer (Depends-on): Add stdlib.
10453         (configure.ac): Set indicator.
10454         * modules/unistd-safer (configure.ac): Likewise.
10455         * modules/tmpfile-safer (configure.ac): Likewise.
10456         (Depends-on): Add tmpfile.
10457         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10458         active.
10459         * tests/test-fopen.c (includes): Test safer versions when they are
10460         in use.
10461         * tests/test-open.c (includes): Likewise.
10462
10463         popen: fix cygwin 1.5 bug when stdin closed
10464         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10465         * modules/popen: New file.
10466         * modules/popen-tests: Likewise.
10467         * tests/test-popen.c: Likewise.
10468         * m4/popen.m4: Likewise.
10469         * lib/popen.c: Likewise.
10470         * lib/stdio.in.h (popen): New declaration.
10471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10472         * modules/stdio (Makefile.am): Likewise.
10473         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10474
10475 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10476
10477         maint.mk: give full control over update-copyright exclusions
10478         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10479         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10480         (update-copyright): Don't force inclusion of top-level
10481         ChangeLog.  Don't force exclusion of all COPYING files, but make
10482         them the default exclusion instead.
10483
10484 2009-08-16  Bruno Haible  <bruno@clisp.org>
10485
10486         Fix test failures on Solaris 10.
10487         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10488         tests when Solaris iconv() is used.
10489         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10490         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10491         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10492         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10493         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10494
10495 2009-08-16  Bruno Haible  <bruno@clisp.org>
10496
10497         Fix test failures on Solaris 10.
10498         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10499         'tr' program and pass it as first argument.
10500         * tests/test-pipe-filter-gi1.sh: Likewise.
10501         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10502         program as first argument.
10503         * tests/test-pipe-filter-gi1.c (main): Likewise.
10504
10505 2009-08-16  Eric Blake  <ebb9@byu.net>
10506
10507         fpurge: fix previous commits
10508         * modules/fpurge (Makefile.am): Make replacement conditional,
10509         partially reverting 2007-04-29 change; missed in previous
10510         attempt.
10511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10512         is missing.
10513
10514 2009-08-16  Bruno Haible  <bruno@clisp.org>
10515
10516         Clarify fpurge's effect on the file position.
10517         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10518         * tests/test-fpurge.c (main): Make a second pass for checking the file
10519         position.
10520
10521 2009-08-16  Bruno Haible  <bruno@clisp.org>
10522
10523         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10524         declaration of fpurge is missing.
10525         * tests/test-fpurge.c (main): Check that the file has not more contents
10526         than expected. Close the file before removing it.
10527
10528 2009-08-15  Eric Blake  <ebb9@byu.net>
10529
10530         fpurge: don't wrap working cygwin implementation
10531         * lib/fpurge.c (fpurge): Fix comment typo.
10532         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10533         1.7 to avoid replacement.
10534         * tests/test-fpurge.c (main): Enhance test.
10535
10536 2009-08-15  Eric Blake  <ebb9@byu.net>
10537         and Jim Meyering  <meyering@redhat.com>
10538
10539         test-update-copyright: skip if perl is insufficient
10540         * tests/test-update-copyright.sh: Failure to run maintainer tool
10541         should not cause testsuite failure on cygwin 1.5.
10542
10543 2009-08-14  Eric Blake  <ebb9@byu.net>
10544
10545         doc: mention more functions added in cygwin 1.7.0
10546         * doc/posix-headers/limits.texi (limits.h): Update for recent
10547         cygwin additions.
10548         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10549         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10550         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10551         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10552         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10553
10554 2009-08-14  Eric Blake  <ebb9@byu.net>
10555
10556         maint.mk: simplify update-copyright rule
10557         * top/maint.mk (update-copyright-local): Delete, and document how
10558         to do it in cfg.mk instead.
10559         (update-copyright-exclude-regexp): Delete, and document how to do
10560         it in .x-update-copyright instead.
10561         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10562         exclude ChangeLog.
10563
10564 2009-08-14  Bruno Haible  <bruno@clisp.org>
10565
10566         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10567
10568 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10569
10570         maint.mk: support update-copyright-env
10571         * top/maint.mk (update-copyright-env): Define place-holder.
10572         (update-copyright): Expand $(update-copyright-env) before
10573         invoking update-copyright.
10574
10575 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10576
10577         update-copyright: implement forced reformatting
10578         * build-aux/update-copyright: Implement and document
10579         UPDATE_COPYRIGHT_FORCE.
10580         * tests/test-update-copyright.sh: Test it.
10581
10582 2009-08-14  Eric Blake  <ebb9@byu.net>
10583         and Bruno Haible  <bruno@clisp.org>
10584
10585         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10586         * tests/test-locale.c: Revert previous patch related to NULL.
10587         * tests/test-stdio.c: Likewise.
10588         * tests/test-stdlib.c: Likewise.
10589         * tests/test-string.c: Likewise.
10590         * tests/test-unistd.c: Likewise.
10591         * modules/time-tests (Depends-on): Add verify.
10592         * modules/wchar-tests (Depends-on): Likewise.
10593         * tests/test-time.c: Test for NULL compliance.
10594         * tests/test-wchar.c: Likewise.
10595         * modules/locale (Depends-on): Add stddef.
10596         * modules/stdio (Depends-on): Likewise.
10597         * modules/stdlib (Depends-on): Likewise.
10598         * modules/string (Depends-on): Likewise.
10599         * modules/time (Depends-on): Likewise.
10600         * modules/unistd (Depends-on): Likewise.
10601         * modules/wchar (Depends-on): Likewise.
10602         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10603         * lib/stdlib.in.h (includes): Likewise.
10604         * lib/string.in.h (includes): Likewise.
10605         * lib/time.in.h (includes): Likewise.
10606         * lib/unistd.in.h (includes): Likewise.
10607         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10608         replaced.
10609         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10610         * m4/stddef_h.m4: New file.
10611         * modules/stddef: Likewise.
10612         * lib/stddef.in.h: Likewise.
10613         * modules/stddef-tests: Likewise.
10614         * tests/test-stddef.c: Likewise.
10615         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10616         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10617         * doc/posix-headers/locale.texi (locale.h): Likewise.
10618         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10619         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10620         * doc/posix-headers/string.texi (string.h): Likewise.
10621         * doc/posix-headers/time.texi (time.h): Likewise.
10622         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10623         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10624
10625 2009-08-14  Eric Blake  <ebb9@byu.net>
10626
10627         doc: improve git diff of texinfo files
10628         * .gitattributes: Add rule for *.texi files, with hint on how to
10629         use it.
10630         Copied from m4, and based on a report by Bruno Haible.
10631
10632 2009-08-14  Bruno Haible  <bruno@clisp.org>
10633
10634         Disable multithread support by default on Cygwin 1.5.x for real.
10635         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10636
10637 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10638
10639         update-copyright: much ado about intervals
10640         * build-aux/update-copyright: Implement and document
10641         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10642         of copyright year intervals.
10643         Also, document UPDATE_COPYRIGHT_YEAR.
10644         * tests/test-update-copyright.sh: Test it.
10645
10646         update-copyright: convert 2-digit to 4-digit years
10647         * build-aux/update-copyright: Implement and document.
10648         * tests/test-update-copyright.sh: Update.
10649
10650 2009-08-14  Jim Meyering  <meyering@redhat.com>
10651
10652         test-exclude: avoid coreutils "make check" failure
10653         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10654         just as in test-argmatch.c.
10655
10656 2009-08-13  Eric Blake  <ebb9@byu.net>
10657
10658         test-dup2: fix bad assumption
10659         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10660         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10661
10662         test-version-etc: fix CRLF portability issue
10663         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10664         recognize \r.
10665         * tests/test-argp-version-etc-1.sh: Likewise.
10666
10667         getopt: update client modules
10668         * modules/argp (Depends-on): Use getopt-gnu.
10669         * modules/git-merge-changelog (Depends-on): Likewise.
10670         * modules/long-options (Depends-on): Likewise.
10671         * modules/xstrtol (Depends-on): Likewise.
10672
10673 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10674
10675         * tests/test-version-etc.sh: Don't fail on different
10676         project/version.  Don't fail on CRLF differences.  Rewrite to use
10677         multiple -e instead of multiple sed forks, suggested by Eric Blake
10678         <ebb9@byu.net>.
10679         * tests/test-argp-version-etc-1.sh: Likewise.
10680
10681 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10682
10683         * tests/test-version-etc.sh: Don't fail on different
10684         project/version.
10685
10686 2009-08-12  Bruno Haible  <bruno@clisp.org>
10687
10688         Tests for modules 'getopt-posix', 'getopt-gnu'.
10689         * modules/getopt-posix-tests: New file.
10690         * tests/test-getopt.c: New file.
10691         * tests/test-getopt.h: New file.
10692         * tests/test-getopt_long.h: New file.
10693
10694         New modules 'getopt-posix', 'getopt-gnu'.
10695         * modules/getopt-gnu: New file, renamed from modules/getopt.
10696         * modules/getopt-posix: New file.
10697         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10698         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10699         (gl_GETOPT): Remove macro.
10700         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10701         Disable the test against BSD systems that declare optreset. Test
10702         against mingw bug. Test against lack of support of optional arguments
10703         on many platforms.
10704         * doc/glibc-headers/getopt.texi: Update module name and list of
10705         relevant platforms.
10706         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10707         'getopt-gnu' and more portability problems.
10708         * NEWS: Mention the changes.
10709
10710 2009-08-12  Bruno Haible  <bruno@clisp.org>
10711
10712         Ensure that optarg etc. get declared by <unistd.h>.
10713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10714         AC_USE_SYSTEM_EXTENSIONS.
10715         * modules/getopt (Depends-on): Add 'extensions'.
10716
10717 2009-08-12  Bruno Haible  <bruno@clisp.org>
10718
10719         Avoid test link errors.
10720         * modules/pipe-filter-ii-tests (Makefile.am): Define
10721         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10722         * modules/pipe-filter-gi-tests (Makefile.am): Define
10723         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10725
10726 2009-08-12  Bruno Haible  <bruno@clisp.org>
10727
10728         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10729         gl_GETOPT_SUBSTITUTE before.
10730         (gl_GETOPT): Use it.
10731         * m4/argp.m4 (gl_ARGP): Update.
10732         Reported by Sergey Poznyakoff.
10733
10734         * m4/getopt.m4: Reorder macros.
10735         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10736         (gl_GETOPT_SUBSTITUTE): Remove macro.
10737
10738 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10739
10740         Minor improvement in gitlog-to-changelog
10741
10742         * build-aux/gitlog-to-changelog: New option `--format' makes
10743         output format string configurable.
10744
10745 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10746
10747         Optimize exclude: use hash tables for non-wildcard patterns.
10748
10749         * lib/exclude.c: Include hash.h and mbuiter.h
10750         (struct exclude_pattern, exclude_segment): New data types.
10751         (struct exclude): Rewrite.
10752         (fnmatch_pattern_has_wildcards): New function.
10753         (new_exclude_segment, free_exclude_segment): New functions.
10754         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10755         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10756         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10757         * modules/exclude: Depend on hash and mbuiter.
10758
10759         * modules/exclude-tests: New file.
10760         * tests/test-exclude.c: New file.
10761         * tests/test-exclude1.sh: New file.
10762         * tests/test-exclude2.sh: New file.
10763         * tests/test-exclude3.sh: New file.
10764         * tests/test-exclude4.sh: New file.
10765         * tests/test-exclude5.sh: New file.
10766         * tests/test-exclude6.sh: New file.
10767         * tests/test-exclude7.sh: New file.
10768
10769 2009-08-12  Bruno Haible  <bruno@clisp.org>
10770
10771         Ensure that getopt() gets declared by <unistd.h>.
10772         * lib/unistd.in.h: Conditionally include getopt.h.
10773         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10774         Set GNULIB_UNISTD_H_GETOPT.
10775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10776         GNULIB_UNISTD_H_GETOPT.
10777         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10778
10779 2009-08-12  Bruno Haible  <bruno@clisp.org>
10780
10781         Clarify logic.
10782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10783         gl_replace_getopt instead of GETOPT_H.
10784
10785 2009-08-12  Bruno Haible  <bruno@clisp.org>
10786
10787         * m4/getopt.m4: Add comments.
10788
10789 2009-08-12  Bruno Haible  <bruno@clisp.org>
10790
10791         Disable multithread support by default on Cygwin 1.5.x.
10792         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10793         set gl_use_threads=no if not specified otherwise.
10794
10795 2009-08-11  Bruno Haible  <bruno@clisp.org>
10796
10797         Avoid compilation error on NetBSD 5.0.
10798         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10799         * tests/test-stdio.c: Likewise.
10800         * tests/test-stdlib.c: Likewise.
10801         * tests/test-string.c: Likewise.
10802         * tests/test-unistd.c: Likewise.
10803         Reported by Greg Troxel <gdt@ir.bbn.com>
10804         at <https://savannah.gnu.org/support/?106973>.
10805
10806 2009-08-11  Bruno Haible  <bruno@clisp.org>
10807
10808         * modules/dup2-tests (Depends-on): Remove close.
10809
10810         Undo 2009-07-19 commit.
10811         * modules/acl-tests (Depends-on): Remove close.
10812         * modules/binary-io-tests (Depends-on): Likewise.
10813         * modules/closein-tests (Depends-on): Likewise.
10814         * modules/flock-tests (Depends-on): Likewise.
10815         * modules/fsync-tests (Depends-on): Likewise.
10816         * modules/lseek-tests (Depends-on): Likewise.
10817         * modules/pipe-tests (Depends-on): Likewise.
10818         * modules/posix_spawn-tests (Depends-on): Likewise.
10819         * modules/posix_spawnp-tests (Depends-on): Likewise.
10820         * modules/stat-time-tests (Depends-on): Likewise.
10821         * modules/yesno-tests (Depends-on): Likewise.
10822
10823 2009-08-10  Bruno Haible  <bruno@clisp.org>
10824
10825         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10826
10827 2009-08-10  Bruno Haible  <bruno@clisp.org>
10828
10829         Fix a gcc warning.
10830         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10831
10832 2009-08-10  Bruno Haible  <bruno@clisp.org>
10833
10834         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10835         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10836         not only the first time.
10837         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10838         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10839         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10840         is 1, not only the the first time.
10841
10842 2009-08-10  Bruno Haible  <bruno@clisp.org>
10843
10844         Make it possible to use module 'gethostname' without module 'close'.
10845         * lib/unistd.in.h (close): Evoke a link error only if
10846         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10848         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10849         * modules/unistd (Makefile.am): Substitute
10850         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10851         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10852         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10853         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10854         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10855         * modules/sys_ioctl (Makefile.am): Substitute
10856         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10857         * modules/socket (configure.ac): On native Windows, set
10858         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10859         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10860         Reported by Sam Steingold <sds@gnu.org>.
10861
10862 2009-08-10  Bruno Haible  <bruno@clisp.org>
10863
10864         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10865         * modules/ioctl (configure.ac): Likewise.
10866
10867 2009-08-10  Bruno Haible  <bruno@clisp.org>
10868
10869         Avoid collision between gnulib wrapper and libintl wrapper.
10870         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10871         already defined in intl/printf.c.
10872         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10873         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10874
10875 2009-08-09  Bruno Haible  <bruno@clisp.org>
10876
10877         Make <sys/select.h> really self-contained, also on Solaris 10.
10878         * lib/sys_select.in.h: Include <string.h>.
10879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10880         Solaris 10 problem.
10881         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10882         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10883         Reported by Jim Meyering.
10884
10885 2009-08-09  Bruno Haible  <bruno@clisp.org>
10886
10887         Avoid warnings from 'aclocal' that are due to a use of macro name
10888         AM_XGETTEXT_OPTION that is not defined in automake.
10889         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10890         automake.
10891         * modules/error (configure.ac): Likewise.
10892         * modules/propername (configure.ac): Likewise.
10893         * modules/vasprintf (configure.ac): Likewise.
10894         * modules/verror (configure.ac): Likewise.
10895         * modules/xprintf (configure.ac): Likewise.
10896         * modules/xvasprintf (configure.ac): Likewise.
10897
10898 2009-08-08  Bruno Haible  <bruno@clisp.org>
10899
10900         Avoid compilation error in C++ mode.
10901         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10902         Reported by Sam Steingold <sds@gnu.org>.
10903
10904 2009-08-08  Bruno Haible  <bruno@clisp.org>
10905
10906         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10907         for the various Unix platforms.
10908         * doc/posix-headers/limits.texi: Update platforms list regarding
10909         HOST_NAME_MAX.
10910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10911
10912 2009-08-07  Jim Meyering  <meyering@redhat.com>
10913
10914         selinux-at: fix typo in a comment
10915         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10916         Spotted by Paolo Bonzini.
10917
10918         selinux-at: remove redundant m4 code, add documentation
10919         * modules/selinux-at (configure.ac): Remove redundant code.
10920         LIB_SELINUX is already set via the dependent module, selinux-h.
10921         (Include): Add quotes around selinux-at.h.
10922         * lib/selinux-at.h: Add documentation.
10923         Reported by Bruno Haible in
10924         http://marc.info/?l=gnulib-bug&m=124958988300749
10925
10926 2009-08-07  Bruno Haible  <bruno@clisp.org>
10927
10928         Avoid link error on MacOS X 10.3 and 10.4.
10929         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10930         on non-ELF systems.
10931         * lib/argp-pv.c (argp_program_version): Likewise.
10932         Reported by Simon Josefsson.
10933
10934 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10935
10936         * tests/test-version-etc.sh: Use $EXEEXT.
10937
10938 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10939
10940         update-copyright: update documentation to point to maint.mk
10941         * build-aux/update-copyright: Here.
10942
10943 2009-08-06  Jim Meyering  <meyering@redhat.com>
10944
10945         maint.mk: support update-copyright-local
10946         * top/maint.mk (update-copyright-local): Define place-holder.
10947         (update-copyright): Depend on $(update-copyright-local).
10948
10949 2009-08-06  Jim Meyering  <meyering@redhat.com>
10950
10951         selinux-at: new module
10952         Initially written for coreutils, this module will soon be
10953         used by findutils, too.
10954         * MODULES.html.sh [Misc]: Add selinux-at.
10955         * lib/selinux-at.h: New file, from coreutils.
10956         * lib/selinux-at.c: Likewise.
10957         * modules/selinux-at: Likewise.
10958         (License): Change from LGPL to GPL, since it depends
10959         on the GPL'd openat module.
10960
10961         doc: update README
10962         * README: Remove references to cogito.
10963         Remove cvs-repo-updating instructions from 2007.
10964         Don't imply that CVS is better if you have limited disk space.
10965
10966 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10967
10968         update-copyright: support C-style comments
10969         * build-aux/update-copyright: Implement and document.
10970         * tests/test-update-copyright.sh: Test.
10971
10972 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10973
10974         update-copyright: support omitted "(C)"
10975         * build-aux/update-copyright: Implement and document.  Also,
10976         allow variable whitespace before "(C)".
10977         * tests/test-update-copyright.sh: Test.
10978
10979 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10980
10981         update-copyright: don't trip on non-FSF copyright statements
10982         * build-aux/update-copyright: Fix so that the first correctly
10983         formatted FSF copyright statement is recognized no matter what
10984         appears before it.  Update documentation.
10985         * tests/test-update-copyright.sh: Test that.
10986
10987 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10988
10989         update-copyright: clean up code a little
10990         * build-aux/update-copyright: Append "_re" to the name of any
10991         variable holding a regular expression.
10992         Replace "old" and "new" with "stmt" in variable names.
10993         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10994         handled correctly.
10995         Format code more consistently.
10996
10997 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10998
10999         update-copyright-tests: improve portability
11000         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11001         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11002
11003 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11004
11005         update-copyright: support @copyright{} and &copy;
11006         * build-aux/update-copyright: Implement and document.
11007         * tests/test-update-copyright.sh: Test.
11008
11009 2009-08-04  Jim Meyering  <meyering@redhat.com>
11010
11011         update-copyright-tests: correctly test EOL=\r\n handling
11012         * tests/test-update-copyright.sh: Put \r at the end of some lines
11013         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11014
11015         maint.mk: make update-copyright exclusion list more configurable
11016         * top/maint.mk (update-copyright): Default to excluding COPYING,
11017         but allow an override, in case someone does want to update that file.
11018
11019         maint.mk: don't update copyright date in COPYING
11020         * top/maint.mk (update-copyright): Exclude COPYING.
11021
11022         maint.mk: add a copyright-updating rule
11023         * top/maint.mk (update-copyright): New rule.
11024         Derived from coreutils/Makefile.am.
11025
11026         update-copyright: rename some variables
11027         * build-aux/update-copyright: Rename a few variables for clarity.
11028         Tweak syntax.  List Joel E. Denny as coauthor.
11029
11030 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11031
11032         update-copyright: fix bug for 2-digit last year and add tests
11033         * build-aux/update-copyright: Fix bug.
11034         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11035         specified.
11036         * modules/update-copyright-tests: New
11037         * tests/test-update-copyright.sh: New.
11038
11039 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11040
11041         update-copyright: handle leading tabs in line prefix
11042         * build-aux/update-copyright: Count leading tabs as 8 spaces
11043         when computing margin.  This helps with the formatting of
11044         ChangeLogs, for example.
11045         Fix documentation a little.
11046
11047 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11048
11049         update-copyright: support EOL=\r\n
11050         * build-aux/update-copyright: Implement that.
11051
11052 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11053
11054         update-copyright: automatically format copyright statements
11055         * build-aux/update-copyright: Implement that.
11056         Also, be a little more predictable and safer by always failing
11057         when the full copyright format is not perfectly recognized as an
11058         unbroken whole.  Discussed at
11059         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11060         Rewrite documentation.
11061
11062 2009-08-03  Bruno Haible  <bruno@clisp.org>
11063
11064         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11065
11066 2009-08-02  Bruno Haible  <bruno@clisp.org>
11067
11068         Tests for module 'uname'.
11069         * modules/uname-tests: New file.
11070         * tests/test-uname.c: New file.
11071
11072         New module 'uname'.
11073         * lib/uname.c: New file.
11074         * m4/uname.m4: New file.
11075         * modules/uname: New file.
11076         * doc/posix-functions/uname.texi: Mention the new module.
11077
11078 2009-08-02  Bruno Haible  <bruno@clisp.org>
11079
11080         Tests for module 'sys_utsname'.
11081         * modules/sys_utsname-tests: New file.
11082         * tests/test-sys_utsname.c: New file.
11083
11084         New module 'sys_utsname'.
11085         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11086         * m4/sys_utsname_h.m4: New file.
11087         * modules/sys_utsname: New file.
11088         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11089
11090 2009-08-02  Bruno Haible  <bruno@clisp.org>
11091
11092         Implicitly initialize the sockets library.
11093         * lib/gethostname.c: Include sockets.h.
11094         (rpl_gethostname): Invoke gl_sockets_startup.
11095         * lib/socket.c: Include sockets.h.
11096         (rpl_socket): Invoke gl_sockets_startup.
11097         * modules/gethostname (Depends-on): Add sockets.
11098         * modules/socket (Depends-on): Likewise.
11099         * tests/test-poll.c: Don't include sockets.h.
11100         (main): Don't invoke gl_sockets_startup.
11101         * tests/test-select.c: Don't include sockets.h.
11102         (main): Don't invoke gl_sockets_startup.
11103
11104 2009-08-02  Bruno Haible  <bruno@clisp.org>
11105
11106         Allow multiple calls to gl_sockets_startup.
11107         * lib/sockets.c (initialized_sockets_version): New variable.
11108         (gl_sockets_startup): Do nothing if already called for this or a higher
11109         version.
11110         (gl_sockets_cleanup): Reset initialized_sockets_version.
11111
11112 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11113
11114         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11115         different project/version.
11116
11117 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11118             Bruno Haible  <bruno@clisp.org>
11119
11120         Tests for module 'pipe-filter-gi'.
11121         * modules/pipe-filter-gi-tests: New file.
11122         * tests/test-pipe-filter-gi1.sh: New file.
11123         * tests/test-pipe-filter-gi1.c: New file.
11124         * tests/test-pipe-filter-gi2.sh: New file.
11125         * tests/test-pipe-filter-gi2-main.c: New file.
11126         * tests/test-pipe-filter-gi2-child.c: New file.
11127
11128         New module 'pipe-filter-gi'.
11129         * lib/pipe-filter-gi.c: New file.
11130         * modules/pipe-filter-gi: New file.
11131
11132 2009-08-02  Bruno Haible  <bruno@clisp.org>
11133             Paolo Bonzini  <bonzini@gnu.org>
11134
11135         Tests for module 'pipe-filter-ii'.
11136         * modules/pipe-filter-ii-tests: New file.
11137         * tests/test-pipe-filter-ii1.sh: New file.
11138         * tests/test-pipe-filter-ii1.c: New file.
11139         * tests/test-pipe-filter-ii2.sh: New file.
11140         * tests/test-pipe-filter-ii2-main.c: New file.
11141         * tests/test-pipe-filter-ii2-child.c: New file.
11142
11143         New module 'pipe-filter-ii'.
11144         * lib/pipe-filter.h: New file.
11145         * lib/pipe-filter-ii.c: New file.
11146         * lib/pipe-filter-aux.h: New file.
11147         * modules/pipe-filter-ii: New file.
11148
11149 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11150
11151         * lib/gc-libgcrypt.c: Change copyright to FSF.
11152         * lib/gc-gnulib.c: Likewise.
11153
11154 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11155
11156         * lib/gethostname.c: Include limits.h.
11157
11158 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11159             Bruno Haible  <bruno@clisp.org>
11160
11161         Ensure HOST_NAME_MAX as part of the gethostname module.
11162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11163         define also HOST_NAME_MAX.
11164         * tests/test-gethostname.c: Include <limits.h>.
11165         (main): Check also HOST_NAME_MAX.
11166         * doc/posix-headers/limits.texi: Document the mingw problem.
11167
11168 2009-08-02  Bruno Haible  <bruno@clisp.org>
11169
11170         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11171         Add comments.
11172
11173 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11174
11175         * lib/gethostname.c: Add Windows wrapper.
11176         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11177         * modules/gethostname: Depend on sys_socket & errno, for also
11178         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11179         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11180
11181 2009-07-31  Jim Meyering  <meyering@redhat.com>
11182
11183         getloadavg: fix symbol name in comment
11184         * lib/getloadavg.c: Correct a typo I introduced when adding
11185         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11186         Matt Kraai spotted the problem.
11187
11188 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11189
11190         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11191         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11192         code also if ! defined N_NAME_POINTER.
11193         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11194         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11195         but the n_name member is a 12-byte array.
11196
11197 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11198
11199         update-copyright: generalize comment handling
11200         * build-aux/update-copyright: Handle copyright statements
11201         within more comment styles.
11202         Document usage.
11203         Report any file with an external copyright holder or parse failure.
11204
11205 2009-07-29  Jim Meyering  <meyering@redhat.com>
11206
11207         mktime: correct setting of REPLACE_MKTIME
11208         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11209
11210         update-copyright: new module
11211         * modules/update-copyright: New file.
11212         * build-aux/update-copyright: New file.
11213         * MODULES.html.sh (maint+release support): Add update-copyright.
11214
11215 2009-07-27  Bruno Haible  <bruno@clisp.org>
11216
11217         Fix compilation error when <ctime> is used and mktime is replaced.
11218         * lib/time.in.h (mktime): New declaration.
11219         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11220         REPLACE_MKTIME instead of defining mktime in config.h.
11221         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11222         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11223         Reported by Ross McFarland <rwmcfa1@neces.com>.
11224
11225 2009-07-27  Bruno Haible  <bruno@clisp.org>
11226
11227         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11228         Reported by Matt Kraai <mkraai@beckman.com>.
11229
11230 2009-07-25  Jim Meyering  <meyering@redhat.com>
11231
11232         maint.mk: avoid warnings about missing files
11233         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11234         diagnostic when .prev-version does not exist.
11235         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11236         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11237         nonexistent cfg.mk.
11238         Suggestions from Simon Josefsson.
11239
11240 2009-07-25  Bruno Haible  <bruno@clisp.org>
11241
11242         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11243         defined as macros. Needed on QNX 6.4.1.
11244         Reported by Matt Kraai <mkraai@beckman.com>.
11245
11246 2009-07-23  Jim Meyering  <meyering@redhat.com>
11247
11248         maint.mk: invoke "make dist" with a working value of XZ_OPT
11249         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11250
11251 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11252
11253         Make fseeko.c compile on QNX.
11254         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11255
11256 2009-07-22  Peter Simons  <simons@cryp.to>
11257
11258         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11259         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11260         * lib/md4.h: Likewise.
11261         * lib/md5.h: Likewise.
11262         * lib/sha1.h: Likewise.
11263         * lib/sha256.h: Likewise.
11264         * lib/sha512.h: Likewise.
11265
11266         tests-sha1: don't assign literal string to 'char *' variable
11267         * tests/test-sha1.c (main): Declare locals with "const" to match
11268         attributes of the right hand side.
11269
11270 2009-07-21  Eric Blake  <ebb9@byu.net>
11271
11272         dup2: fix more mingw problems
11273         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11274         fd to itself.
11275         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11276         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11277         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11278         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11279         care of mingw bugs.
11280
11281 2009-07-21  Jim Meyering  <meyering@redhat.com>
11282
11283         vc-list-files: avoid failure when /bin/sh is dash
11284         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11285         On some Debian based systems, /bin/sh is a symlink to dash, and running
11286         this command would omit the "/" following each 'tests' prefix:
11287           dash -x build-aux/vc-list-files -C . tests
11288         That is because bash and dash work differently:
11289           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11290           bash ok
11291           dash odd
11292
11293 2009-07-21  Eric Blake  <ebb9@byu.net>
11294
11295         dup2-tests: test previous patch
11296         * modules/dup2-tests: New file.
11297         * tests/test-dup2.c: Likewise.
11298         * tests/test-open.c (main): Avoid unspecified behavior.
11299         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11300         test.
11301
11302         dup2: work around mingw and cygwin 1.5 bug
11303         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11305         * modules/unistd (Makefile.am): Substitute it.
11306         * lib/unistd.in.h (dup2): Declare the replacement.
11307         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11308         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11309         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11310         * modules/execute (Depends-on): Add dup2.
11311         * modules/fseterr (Depends-on): Likewise.
11312         * modules/pipe (Depends-on): Likewise.
11313         * modules/posix_spawn-internal (Depends-on): Likewise.
11314
11315 2009-07-21  Bruno Haible  <bruno@clisp.org>
11316
11317         * modules/.gitattributes: New file.
11318
11319 2009-07-20  Bruno Haible  <bruno@clisp.org>
11320
11321         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11322         (main): Use it.
11323
11324 2009-07-20  Eric Blake  <ebb9@byu.net>
11325
11326         test-pipe: make a bit more robust.
11327         * tests/test-pipe.c (myerr): Allow error messages regardless of
11328         what we do to stderr.
11329         (test_pipe): Rearrange to avoid deadlock.
11330         (child_main): Try a larger read, to ensure we avoided deadlock.
11331         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11332         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11333         if misused.
11334
11335 2009-07-19  Jim Meyering  <meyering@redhat.com>
11336
11337         fts: avoid false-positive cycle-detection
11338         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11339         for each new command line argument.
11340
11341 2009-07-19  Bruno Haible  <bruno@clisp.org>
11342
11343         Fix build error on mingw with the modules sys_select and unistd.
11344         * modules/acl-tests (Depends-on): Add close.
11345         * modules/binary-io-tests (Depends-on): Likewise.
11346         * modules/closein-tests (Depends-on): Likewise.
11347         * modules/flock-tests (Depends-on): Likewise.
11348         * modules/fsync-tests (Depends-on): Likewise.
11349         * modules/lseek-tests (Depends-on): Likewise.
11350         * modules/pipe-tests (Depends-on): Likewise.
11351         * modules/posix_spawn-tests (Depends-on): Likewise.
11352         * modules/posix_spawnp-tests (Depends-on): Likewise.
11353         * modules/stat-time-tests (Depends-on): Likewise.
11354         * modules/yesno-tests (Depends-on): Likewise.
11355
11356 2009-07-19  Bruno Haible  <bruno@clisp.org>
11357
11358         Unify conditionals.
11359         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11360         macros, not at the compiler macros.
11361         * lib/pipe.c: Likewise.
11362         * lib/execute.c: Likewise.
11363         * lib/spawni.c: Likewise.
11364
11365 2009-07-19  Bruno Haible  <bruno@clisp.org>
11366
11367         Fix handling of closed stdin/stdout/stderr on mingw.
11368         * lib/w32spawn.h: Include unistd.h.
11369         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11370         file descriptor with O_NOINHERIT flag.
11371         (fd_safer_noinherit): New function, based on fd-safer.c.
11372         (dup_safer_noinherit): New function, based on dup-safer.c.
11373         (undup_safer_noinherit): New function.
11374         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11375         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11376         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11377         instead of fd_safer.
11378         * tests/test-pipe.c: Include <windows.h>.
11379         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11380
11381         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11382         from main.
11383         (test_pipe): Pass an extra argument for disambiguation.
11384         (main): Invoke parent_main or child_main.
11385
11386         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11387         consistently.
11388
11389 2009-07-18  Eric Blake  <ebb9@byu.net>
11390
11391         test-pipe: fix mingw build
11392         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11393
11394 2009-07-18  Bruno Haible  <bruno@clisp.org>
11395
11396         * modules/pipe-tests (Makefile.am): Fix typo.
11397
11398 2009-07-18  Eric Blake  <ebb9@byu.net>
11399
11400         error: fix mingw build
11401         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11402         Reported by Bruno Haible.
11403
11404         error: avoid undefined use of stdout
11405         * lib/error.c (error, error_at_line): Check that fd 1 is open
11406         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11407         is handling faults and the close_stdout module wants to report the
11408         detection of closed stdout as an error.
11409
11410 2009-07-17  Eric Blake  <ebb9@byu.net>
11411
11412         pipe: be robust in face of closed fds
11413         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11414         should cause child to misbehave.
11415         * modules/pipe-tests: New module.
11416         * tests/test-pipe.c: New file.
11417         * tests/test-pipe.sh: New file.
11418         Reported by Akim Demaille.
11419
11420 2009-07-14  Bruno Haible  <bruno@clisp.org>
11421
11422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11423         Reported by anonymous kc.
11424
11425 2009-07-07  Jim Meyering  <meyering@redhat.com>
11426
11427         maint.mk: don't look for translatable strings in *.m4 or *.mk
11428         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11429         when searching for translatable strings.
11430
11431 2009-07-05  Jim Meyering  <meyering@redhat.com>
11432
11433         remove superfluous parentheses in STREQ definition
11434         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11435         * lib/getugroups.c (STREQ): Likewise.
11436         * lib/fnmatch.c (STREQ): Likewise.
11437         Spotted by Bruno Haible.
11438
11439 2009-07-04  Jim Meyering  <meyering@redhat.com>
11440
11441         argv-iter: new module
11442         * MODULES.html.sh: Add argv-iter.
11443         * lib/argv-iter.c, lib/argv-iter.h: New files.
11444         * modules/argv-iter: New file.
11445         * modules/argv-iter-tests: New file.
11446         * tests/test-argv-iter.c: Test it.
11447
11448 2009-07-04  Bruno Haible  <bruno@clisp.org>
11449
11450         Fix assertion.
11451         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11452         contains more exact copies of a given entry than file2, leave the extra
11453         copies unpaired rather than aborting.
11454         Reported by Eric Blake.
11455
11456 2009-07-02  Bruno Haible  <bruno@clisp.org>
11457
11458         Speedup git-merge-changelog for git cherry-pick.
11459         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11460         (entries_mapping_get): New function, extracted from compute_mapping.
11461         (entries_mapping_reverse_get): New function.
11462         (compute_mapping): Add a 'full' argument. Return the result in a
11463         'struct entries_mapping'.
11464         (main): Update. Access the mappings through entries_mapping_get.
11465         Reported by Eric Blake.
11466
11467 2009-07-02  Bruno Haible  <bruno@clisp.org>
11468
11469         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11470         best_i.
11471
11472 2009-07-02  Bruno Haible  <bruno@clisp.org>
11473
11474         Speed up approximate search for matching ChangeLog entries.
11475         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11476         argument. Call fstrcmp_bounded instead of fstrcmp.
11477         (compute_mapping, try_split_merged_entry, main): Update callers.
11478
11479 2009-07-02  Bruno Haible  <bruno@clisp.org>
11480
11481         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11482
11483 2009-06-30  Bruno Haible  <bruno@clisp.org>
11484
11485         Reduce the number of uc_is_cased calls.
11486         * lib/unicase.h (casing_suffix_context_t): Add
11487         'first_char_except_ignorable' field.
11488         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11489         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11490         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11491         Update initializer.
11492         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11493         case-ignorable characters.
11494         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11495         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11496         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11497         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11498         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11499
11500 2009-06-30  Bruno Haible  <bruno@clisp.org>
11501
11502         Tests for module 'unicase/ignorable'.
11503         * modules/unicase/ignorable-tests: New file.
11504         * tests/unicase/test-ignorable.c: New file, generated by
11505         gen-uni-tables.
11506
11507         Tests for module 'unicase/cased'.
11508         * modules/unicase/cased-tests: New file.
11509         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11510         * tests/unicase/test-predicate-part1.h: New file, derived from
11511         tests/unictype/test-predicate-part1.h.
11512         * tests/unicase/test-predicate-part2.h: New file, same as
11513         tests/unictype/test-predicate-part2.h.
11514
11515         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11516         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11517         (output_casing_properties): New function.
11518         (main): Call it.
11519         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11520         * lib/unicase/cased.c: Include unictype/bitmap.h.
11521         (uc_is_cased): Define through a bitmap lookup.
11522         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11523         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11524         (uc_is_case_ignorable): Define through a bitmap lookup.
11525         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11526         lib/unictype/bitmap.h.
11527         (Depends-on): Add inline. Clean up.
11528         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11529         lib/unictype/bitmap.h.
11530         (Depends-on): Add inline. Clean up.
11531         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11532         recognition.
11533         * tests/unicase/test-u16-tolower.c (main): Likewise.
11534         * tests/unicase/test-u32-tolower.c (main): Likewise.
11535
11536 2009-06-30  Bruno Haible  <bruno@clisp.org>
11537
11538         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11539         * lib/unicase/u16-casemap.c: Likewise.
11540         * lib/unicase/u32-casemap.c: Likewise.
11541
11542 2009-06-29  Bruno Haible  <bruno@clisp.org>
11543
11544         Define u32_casefold as a wrapper around u32_ct_casefold.
11545         * lib/unicase/u32-casefold.c: Update.
11546         * modules/unicase/u32-casefold (Depends-on): Add
11547         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11548         unicase/empty-suffix-context. Clean up.
11549
11550         Define u16_casefold as a wrapper around u16_ct_casefold.
11551         * lib/unicase/u16-casefold.c: Update.
11552         * modules/unicase/u16-casefold (Depends-on): Add
11553         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11554         unicase/empty-suffix-context. Clean up.
11555
11556         Define u8_casefold as a wrapper around u8_ct_casefold.
11557         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11558         * lib/unicase/u8-casefold.c: Update.
11559         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11560         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11561
11562         Define u32_totitle as a wrapper around u32_ct_totitle.
11563         * lib/unicase/u32-totitle.c: Update.
11564         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11565         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11566
11567         Define u16_totitle as a wrapper around u16_ct_totitle.
11568         * lib/unicase/u16-totitle.c: Update.
11569         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11570         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11571
11572         Define u8_totitle as a wrapper around u8_ct_totitle.
11573         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11574         functions.
11575         (FUNC): Delegate to U_CT_TOTITLE.
11576         * lib/unicase/u8-totitle.c: Update.
11577         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11578         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11579
11580         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11581         invocation.
11582         * modules/unicase/u32-tolower (Depends-on): Add
11583         unicase/empty-prefix-context, unicase/empty-suffix-context.
11584
11585         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11586         invocation.
11587         * modules/unicase/u16-tolower (Depends-on): Add
11588         unicase/empty-prefix-context, unicase/empty-suffix-context.
11589
11590         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11591         * modules/unicase/u8-tolower (Depends-on): Add
11592         unicase/empty-prefix-context, unicase/empty-suffix-context.
11593
11594         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11595         invocation.
11596         * modules/unicase/u32-toupper (Depends-on): Add
11597         unicase/empty-prefix-context, unicase/empty-suffix-context.
11598
11599         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11600         invocation.
11601         * modules/unicase/u16-toupper (Depends-on): Add
11602         unicase/empty-prefix-context, unicase/empty-suffix-context.
11603
11604         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11605         * modules/unicase/u8-toupper (Depends-on): Add
11606         unicase/empty-prefix-context, unicase/empty-suffix-context.
11607
11608         New module 'unicase/u32-ct-casefold'.
11609         * lib/unicase/u32-ct-casefold.c: New file.
11610         * modules/unicase/u32-ct-casefold: New file.
11611
11612         New module 'unicase/u16-ct-casefold'.
11613         * lib/unicase/u16-ct-casefold.c: New file.
11614         * modules/unicase/u16-ct-casefold: New file.
11615
11616         New module 'unicase/u8-ct-casefold'.
11617         * lib/unicase/u8-ct-casefold.c: New file.
11618         * lib/unicase/u-ct-casefold.h: New file, derived from
11619         lib/unicase/u-casefold.h.
11620         * modules/unicase/u8-ct-casefold: New file.
11621
11622         New module 'unicase/u32-ct-totitle'.
11623         * lib/unicase/u32-ct-totitle.c: New file.
11624         * modules/unicase/u32-ct-totitle: New file.
11625
11626         New module 'unicase/u16-ct-totitle'.
11627         * lib/unicase/u16-ct-totitle.c: New file.
11628         * modules/unicase/u16-ct-totitle: New file.
11629
11630         New module 'unicase/u8-ct-totitle'.
11631         * lib/unicase/u8-ct-totitle.c: New file.
11632         * lib/unicase/u-ct-totitle.h: New file, derived from
11633         lib/unicase/u-totitle.h.
11634         * modules/unicase/u8-ct-totitle: New file.
11635
11636         New module 'unicase/u32-ct-tolower'.
11637         * lib/unicase/u32-ct-tolower.c: New file.
11638         * modules/unicase/u32-ct-tolower: New file.
11639
11640         New module 'unicase/u16-ct-tolower'.
11641         * lib/unicase/u16-ct-tolower.c: New file.
11642         * modules/unicase/u16-ct-tolower: New file.
11643
11644         New module 'unicase/u8-ct-tolower'.
11645         * lib/unicase/u8-ct-tolower.c: New file.
11646         * modules/unicase/u8-ct-tolower: New file.
11647
11648         New module 'unicase/u32-ct-toupper'.
11649         * lib/unicase/u32-ct-toupper.c: New file.
11650         * modules/unicase/u32-ct-toupper: New file.
11651
11652         New module 'unicase/u16-ct-toupper'.
11653         * lib/unicase/u16-ct-toupper.c: New file.
11654         * modules/unicase/u16-ct-toupper: New file.
11655
11656         New module 'unicase/u8-ct-toupper'.
11657         * lib/unicase/u8-ct-toupper.c: New file.
11658         * modules/unicase/u8-ct-toupper: New file.
11659
11660         Add context arguments to u*_casemap functions.
11661         * lib/unicase/unicasemap.h: Include unicase.h.
11662         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11663         suffix_context arguments.
11664         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11665         functions.
11666         (FUNC): Add prefix_context and suffix_context arguments. Use
11667         uc_is_cased and uc_is_case_ignorable.
11668         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11669         * lib/unicase/u16-casemap.c: Likewise.
11670         * lib/unicase/u32-casemap.c: Likewise.
11671         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11672         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11673         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11674         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11675         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11676         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11677
11678         New module 'unicase/u32-suffix-context'.
11679         * lib/unicase/u32-suffix-context.c: New file.
11680         * modules/unicase/u32-suffix-context: New file.
11681
11682         New module 'unicase/u16-suffix-context'.
11683         * lib/unicase/u16-suffix-context.c: New file.
11684         * modules/unicase/u16-suffix-context: New file.
11685
11686         New module 'unicase/u8-suffix-context'.
11687         * lib/unicase/u8-suffix-context.c: New file.
11688         * lib/unicase/u-suffix-context.h: New file.
11689         * modules/unicase/u8-suffix-context: New file.
11690
11691         New module 'unicase/empty-suffix-context'.
11692         * lib/unicase/empty-suffix-context.c: New file.
11693         * modules/unicase/empty-suffix-context: New file.
11694
11695         New module 'unicase/u32-prefix-context'.
11696         * lib/unicase/u32-prefix-context.c: New file.
11697         * modules/unicase/u32-prefix-context: New file.
11698
11699         New module 'unicase/u16-prefix-context'.
11700         * lib/unicase/u16-prefix-context.c: New file.
11701         * modules/unicase/u16-prefix-context: New file.
11702
11703         New module 'unicase/u8-prefix-context'.
11704         * lib/unicase/u8-prefix-context.c: New file.
11705         * lib/unicase/u-prefix-context.h: New file.
11706         * lib/unicase/context.h: New file.
11707         * modules/unicase/u8-prefix-context: New file.
11708
11709         New module 'unicase/empty-prefix-context'.
11710         * lib/unicase/empty-prefix-context.c: New file.
11711         * modules/unicase/empty-prefix-context: New file.
11712
11713         New module 'unicase/ignorable'.
11714         * lib/unicase/ignorable.c: New file.
11715         * modules/unicase/ignorable: New file.
11716
11717         New module 'unicase/cased'.
11718         * lib/unicase/caseprop.h: New file.
11719         * lib/unicase/cased.c: New file.
11720         * modules/unicase/cased: New file.
11721
11722         New functions for case mapping of substrings.
11723         * lib/unicase.h (casing_prefix_context_t): New type.
11724         (unicase_empty_prefix_context): New variable.
11725         (u8_casing_prefix_context, u16_casing_prefix_context,
11726         u32_casing_prefix_context, u8_casing_prefixes_context,
11727         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11728         declarations.
11729         (casing_suffix_context_t): New type.
11730         (unicase_empty_suffix_context): New variable.
11731         (u8_casing_suffix_context, u16_casing_suffix_context,
11732         u32_casing_suffix_context, u8_casing_suffixes_context,
11733         u16_casing_suffixes_context, u32_casing_suffixes_context,
11734         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11735         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11736         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11737         declarations.
11738
11739 2009-06-28  Jim Meyering  <meyering@redhat.com>
11740
11741         boostrap: indent only with spaces
11742         * build-aux/bootstrap: Indent only with spaces, never TABs.
11743
11744         bootstrap: split long lines
11745         * build-aux/bootstrap: Keep line length < 80.
11746
11747         bootstrap: sync from coreutils
11748         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11749         just as autoreconf does.  Verify a list of prerequisite
11750         package-name,version-number pairs if defined in bootstrap.conf.
11751         Refer to README-prereq, if prerequisites are not satisfied.
11752
11753 2009-06-27  Eric Blake  <ebb9@byu.net>
11754
11755         tests: add test for bogus NULL definition
11756         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11757         * tests/test-stdlib.c: Likewise.
11758         * tests/test-string.c: Likewise.
11759         * tests/test-locale.c: Likewise.
11760         * tests/test-unistd.c: Likewise.
11761         * modules/stdio-tests (Depends-on): Add verify.
11762         * modules/stdlib-tests (Depends-on): Likewise.
11763         * modules/string-tests (Depends-on): Likewise.
11764         * modules/locale-tests (Depends-on): Likewise.
11765         * modules/unistd-tests (Depends-on): Likewise.
11766
11767 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11768
11769         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11770         self-explaining comment.
11771         * m4/selinux-selinux-h: Update serial.
11772         (gl_LIBSELINUX): New macro, adding a warning for missing development
11773         packages to code extracted from...
11774         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11775         Add warning for missing development packages here, too.
11776
11777 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11778
11779         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11780
11781 2009-06-25  Eric Blake  <ebb9@byu.net>
11782
11783         version-etc: fix regression
11784         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11785         gcc.
11786         (version_etc): Use it, to catch bugs with trailing NULL.
11787         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11788         (version_etc_va): Fix logic bug.
11789         * modules/version-etc-tests: Add test.
11790         * tests/test-version-etc.c: New file.
11791         * tests/test-version-etc.sh: Likewise.
11792
11793 2009-06-25  Sam Steingold  <sds@gnu.org>
11794
11795         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11796         mbtowc declaration.
11797
11798 2009-06-25  Eric Blake  <ebb9@byu.net>
11799
11800         fpurge: migrate into <stdio.h>
11801         * lib/fpurge.h: Delete...
11802         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11803         * lib/fpurge.c (fpurge): Change declaring header.
11804         * modules/fpurge (Files): Drop deleted file.
11805         (Depends-on): Add stdio.
11806         (configure.ac): Set witness.
11807         * modules/stdio (Makefile.am): Support fpurge macros.
11808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11809         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11810         * lib/fflush.c: Update client.
11811         * tests/test-fpurge.c: Likewise.
11812         * NEWS: Mention the change.
11813
11814 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11815
11816         * lib/argp-version-etc.c (program_authors): Add const
11817         qualifier.
11818         * lib/version-etc.c: Fix typos in the comments.
11819         * modules/argp-version-etc: Depends on version-etc.
11820
11821 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11822
11823         argp-version-etc: new module.
11824
11825         * lib/argp-version-etc.c: New file.
11826         * lib/argp-version-etc.h: New file.
11827         * modules/argp-version-etc: New file.
11828         * modules/argp-version-etc-tests: New file.
11829         * tests/test-argp-version-etc.c: New test.
11830         * tests/test-argp-version-etc-1.sh: New test.
11831
11832 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11833
11834         Provide additional interfaces and documentation for version-etc
11835         module.
11836
11837         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11838         interfaces.
11839         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11840         prototypes.
11841
11842 2009-06-24  Bruno Haible  <bruno@clisp.org>
11843
11844         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11845         HAVE_LIB${NAME} macro.
11846         Reported by Sam Steingold <sds@gnu.org>.
11847
11848 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11849
11850         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11851         needed.
11852
11853 2009-06-21  Bruno Haible  <bruno@clisp.org>
11854
11855         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11856         work.
11857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11858         together with LIB${NAME}, LTLIB${NAME}.
11859         Reported by Sam Steingold <sds@gnu.org>.
11860
11861 2009-06-20  Jim Meyering  <meyering@redhat.com>
11862
11863         tests: make sc_require_test_exit_idiom more generic
11864         * top/maint.mk (Exit_witness_file): New overridable variable.
11865         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11866         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11867
11868 2009-06-19  Jim Meyering  <meyering@redhat.com>
11869
11870         hash: reverse order of src/dst parameters in an internal interface
11871         * lib/hash.c (transfer_entries): Reverse order of parameters to
11872         put DST before SRC.  Adjust callers.
11873
11874         tests: test-hash: avoid wholesale duplication
11875         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11876         Instead, use a loop and add a single conditional.
11877
11878         tests: test-hash: allow seed selection via a command line argument
11879         * tests/test-hash.c (get_seed): New function.
11880         (main): Use it.
11881
11882 2009-06-19  Eric Blake  <ebb9@byu.net>
11883
11884         hash: avoid memory leak on allocation failure
11885         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11886         failure.  Factor repeated algorithm...
11887         (transfer_entries): ...into new helper routine.
11888         (hash_delete): React to hash_rehash return value.
11889
11890         hash: reduce memory pressure in hash_rehash no-op case
11891         * lib/hash.c (next_prime): Avoid overflow.
11892         (hash_initialize): Factor bucket size computation...
11893         (compute_bucket_size): ...into new helper function.
11894         (hash_rehash): Use new function and open coding to reduce memory
11895         pressure, and avoid a memory leak in USE_OBSTACK code.
11896         Reported by Jim Meyering.
11897
11898 2009-06-18  Eric Blake  <ebb9@byu.net>
11899
11900         hash: make rotation more obvious
11901         * modules/hash (Depends-on): Add bitrotate and stdint.
11902         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11903         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11904         (SIZE_MAX): Rely on headers for definition.
11905         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11906         (raw_hasher): Use rotr_sz.
11907         Suggested by Jim Meyering.
11908
11909         hash: fix memory leak in last patch
11910         * lib/hash.c (hash_rehash): Avoid memory leak.
11911
11912         hash: avoid no-op rehashing
11913         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11914
11915         hash: provide default callback functions
11916         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11917         (hash_initialize): Use them as defaults.
11918         * tests/test-hash.c (main): Test this.
11919
11920         hash: minor optimization
11921         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11922         when possible.
11923         (hash_initialize): Document this promise.
11924         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11925         * tests/test-hash.c (hash_compare_strings): Test this.
11926
11927 2009-06-18  Bruno Haible  <bruno@clisp.org>
11928
11929         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11930         going to be replaced anyway.
11931
11932 2009-06-18  Bruno Haible  <bruno@clisp.org>
11933
11934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11935         in one place.
11936         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11937         be replaced anyway.
11938
11939 2009-06-18  Eric Blake  <ebb9@byu.net>
11940
11941         hash: check for resize before insertion
11942         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11943         threshold before insertion, so that a pathological hash_rehash
11944         that fills every bucket can still trigger another rehash.
11945
11946 2009-06-18  Jim Meyering  <meyering@redhat.com>
11947
11948         hash-tests: add a loop around the small tests
11949         * tests/test-hash.c (main): Repeat small tests with selected
11950         small initial table sizes.
11951
11952 2009-06-17  Eric Blake  <ebb9@byu.net>
11953
11954         hash: minor cleanups
11955         * lib/hash.h (hash_entry): Make opaque, by moving...
11956         * lib/hash.c (hash_entry): ...here.
11957         (hash_insert): Clarify restrictions on what can be inserted.
11958         (hash_get_next): Clarify when it is safe to remove an element
11959         during traversal.
11960         (check_tuning): Skip verification when tuning is known safe.
11961         (hash_initialize): Clarify restrictions on tuning.
11962
11963 2009-06-17  Jim Meyering  <jim@meyering.net>
11964         and Eric Blake  <ebb9@byu.net>
11965
11966         hash-tests: new module
11967         * modules/hash-tests: New file.
11968         * tests/test-hash.c: New file.
11969
11970 2009-06-17  Eric Blake  <ebb9@byu.net>
11971
11972         strstr-simple: document new module
11973         * MODULES.html.sh: Document new module.
11974
11975         strstr, strcasestr: replace on platforms with broken memchr
11976         * modules/strstr: Split into...
11977         * modules/strstr-simple: ...new module that does not care about
11978         performance, but does care about glibc bug.
11979         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11980         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11981         if platform memchr is broken, per Debian bug 521737.
11982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11983         memchr.
11984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11985         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11986         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11987         * modules/mountlist (Depends-on): Add strstr-simple.
11988         * modules/gen-uni-tables (Depends-on): Likewise.
11989         * modules/argz (Depends-on): Add strstr.
11990
11991 2009-06-17  Bruno Haible  <bruno@clisp.org>
11992
11993         * modules/posix_spawn-internal (Depends-on): Add errno.
11994
11995 2009-06-17  Bruno Haible  <bruno@clisp.org>
11996
11997         Define missing ESTALE on Interix 3.5.
11998         * lib/errno.in.h (ESTALE): Assign a value if missing.
11999         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12000         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12001         missing.
12002         * doc/posix-headers/errno.texi: Mention the Interix bug.
12003         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12004
12005 2009-06-15  Eric Blake  <ebb9@byu.net>
12006
12007         memchr, memchr2: add valgrind exception
12008         * lib/memchr.valgrind: New file.
12009         * lib/memchr2.valgrind: New file.
12010         * modules/memchr (Files): Distribute valgrind file.
12011         * modules/memchr2 (Files): Likewise.
12012
12013         docs: memchr is no longer obsolete
12014         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12015         * lib/string.in.h (memchr): Simplify logic.
12016
12017 2009-06-14  Jim Meyering  <meyering@redhat.com>
12018
12019         link-follow: fix the "checking..." message to not mention trailing slash
12020         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12021         never considered trailing slashes.
12022
12023 2009-06-14  Bruno Haible  <bruno@clisp.org>
12024
12025         * m4/memchr.m4: Mention also the bug on IA-64.
12026         * doc/posix-functions/memchr.texi: Likewise.
12027
12028 2009-06-12  Eric Blake  <ebb9@byu.net>
12029
12030         memchr: detect broken x86_64 and alpha implementations
12031         * modules/memchr-tests (Depends-on): Move mmap detection...
12032         * modules/memchr (Depends-on): ...here.
12033         (configure.ac): Set indicator.
12034         * lib/string.in.h (memchr): Declare replacement.
12035         * modules/string (Makefile.am): Trigger replacement.
12036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12037         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12038         bugs.
12039         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12040         * modules/getpagesize (License): Relax license.
12041
12042 2009-06-11  Bruno Haible  <bruno@clisp.org>
12043
12044         * lib/idpriv.h: Add more references.
12045
12046 2009-06-08  Bruno Haible  <bruno@clisp.org>
12047
12048         Tests for module 'idpriv-droptemp'.
12049         * modules/idpriv-droptemp-tests: New file.
12050         * tests/test-idpriv-droptemp.sh: New file.
12051         * tests/test-idpriv-droptemp.su.sh: New file.
12052         * tests/test-idpriv-droptemp.c: New file.
12053
12054         New module 'idpriv-droptemp'.
12055         * lib/idpriv-droptemp.c: New file.
12056         * modules/idpriv-droptemp: New file.
12057
12058 2009-06-08  Bruno Haible  <bruno@clisp.org>
12059
12060         Tests for module 'idpriv-drop'.
12061         * modules/idpriv-drop-tests: New file.
12062         * tests/test-idpriv-drop.sh: New file.
12063         * tests/test-idpriv-drop.su.sh: New file.
12064         * tests/test-idpriv-drop.c: New file.
12065
12066         New module 'idpriv-drop'.
12067         * lib/idpriv.h: New file.
12068         * lib-idpriv-drop.c: New file.
12069         * m4/idpriv.m4: New file.
12070         * modules/idpriv-drop: New file.
12071
12072 2009-06-08  Bruno Haible  <bruno@clisp.org>
12073
12074         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12075         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12076         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12078         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12080         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12081
12082 2009-06-08  Eric Blake  <ebb9@byu.net>
12083
12084         test-strstr: use memory fence, when possible
12085         * tests/test-strstr.c (main): Use memory fence, in order to be
12086         more likely to trigger Debian bug 521737.
12087         * modules/strstr-tests (Files): Pull in additional files.
12088
12089         memchr: no longer obsolete, for wider field testing
12090         * modules/memchr (Status, Notice): Delete, this module is no
12091         longer obsolete.
12092         * modules/vasnprintf (Depends-on): Add memchr.
12093
12094 2009-06-07  Jim Meyering  <meyering@redhat.com>
12095
12096         hash: declare some functions with the warn_unused_result attribute
12097         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12098
12099 2009-06-07  Bruno Haible  <bruno@clisp.org>
12100
12101         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12102         Reported by Eric Blake.
12103
12104 2009-06-06  Eric Blake  <ebb9@byu.net>
12105
12106         test-alignof: fix typo with long double
12107         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12108         compiler error.
12109
12110 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12111
12112         Escape non-texinfo { and }s.
12113         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12114         markup error.
12115
12116 2009-06-04  Jim Meyering  <meyering@redhat.com>
12117
12118         gitlog-to-changelog: don't infloop on an empty commit log
12119         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12120         Reported by Boris Petersen <transacid@centerim.org>.
12121
12122 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12123
12124         version-etc: extend for packagers
12125         Add three new configure options, intended for packagers:
12126           --with-packager="packager name"
12127           --with-packager-version="packager-specific version"
12128           --with-packager-bug-reports="packager bug reporting"
12129         An example with coreutils:
12130           $ ./configure \
12131             --with-packager=Gentoo \
12132             --with-packager-bug-report=http://bugs.gentoo.org/ \
12133             --with-packager-version="patchset 1.6"
12134           $ ./src/ls --version | head -n2
12135           ls (GNU coreutils) 7.1-dirty
12136           Packaged by Gentoo (patchset 1.6)
12137         Note that the bug reporting info via --help doesn't show up because
12138         coreutils uses its own custom emit_bug_reporting_address() implementation
12139         in src/system.h.  If it didn't, it'd look like:
12140           $ ./src/ls --help | tail -n4
12141           Report bugs to <bug-coreutils@gnu.org>.
12142           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12143           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12144           General help using GNU software: <http://www.gnu.org/gethelp/>.
12145         * lib/version-etc.c: Print new information, if provided.
12146         * m4/version-etc.m4: New file.
12147         * modules/version-etc (Files): Add m4/version-etc.m4.
12148         (configure.ac): Add gl_VERSION_ETC.
12149
12150 2009-05-31  Bruno Haible  <bruno@clisp.org>
12151
12152         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12153         and 'int64_t'.
12154         * modules/alignof-tests (Dependencies): Add stdint.
12155         Reported by Eric Blake.
12156
12157 2009-05-31  Bruno Haible  <bruno@clisp.org>
12158
12159         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12160         restriction due to compiler bugs.
12161         Reported by Eric Blake.
12162
12163 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12164             Bruno Haible  <bruno@clisp.org>
12165
12166         Fix test-alignof failure.
12167         * lib/alignof.h (alignof_slot): New macro.
12168         (alignof_type): New macro, with the same semantics as the previous
12169         'alignof'.
12170         (alignof): Alias to alignof_slot.
12171         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12172         check that the results are usable as constant expressions.
12173
12174 2009-05-31  Bruno Haible  <bruno@clisp.org>
12175
12176         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12177         * tests/test-memchr.c (main): Check that memchr does not read past the
12178         first occurrence of the byte.
12179         * tests/test-strstr.c (main): Update comment.
12180         Suggested by Eric Blake.
12181
12182 2009-05-30  Bruno Haible  <bruno@clisp.org>
12183
12184         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12185         detail how to use dumpbin.
12186         Reported by David Byron <dbyron@dbyron.com>.
12187
12188 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12189
12190         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12191
12192 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12193
12194         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12195
12196 2009-05-28  Bruno Haible  <bruno@clisp.org>
12197
12198         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12199         build-aux/ files.
12200
12201 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12202
12203         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12204
12205 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12206
12207         * gnulib-tool (sed_transform_main_lib_file)
12208         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12209         regexps.
12210
12211 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12212
12213         * tests/test-strstr.c: Add another self-test.
12214         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12215         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12216
12217 2009-05-23  Bruno Haible  <bruno@clisp.org>
12218
12219         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12220         change.
12221
12222 2009-05-21  Bruno Haible  <bruno@clisp.org>
12223
12224         Simplify use of mode_t varargs.
12225         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12226         uses 'mode_t' or 'int'.
12227         * lib/openat.c (openat): Likewise.
12228         * lib/open-safer.c (open_safer): Likewise.
12229         * m4/mode_t.m4: New file.
12230         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12231         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12233         * modules/open (Files): Add m4/mode_t.m4.
12234         * modules/openat (Files): Likewise.
12235         * modules/fcntl-safer (Files): Likewise.
12236         Suggested by Eric Blake.
12237
12238 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12239
12240         * doc/glibc-functions/fallocate.texi: New file.
12241         * doc/gnulib.texi: Include it.
12242
12243 2009-05-21  Eric Blake  <ebb9@byu.net>
12244             Bruno Haible  <bruno@clisp.org>
12245
12246         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12247         invocations.
12248         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12249
12250 2009-05-21  Eric Blake  <ebb9@byu.net>
12251             Bruno Haible  <bruno@clisp.org>
12252
12253         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12254         include_next. Fix of 2008-11-20 commit.
12255         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12256         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12257         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12258         NEXT_MATH_H.
12259         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12260         instead of NEXT_MATH_H.
12261
12262 2009-05-21  Bruno Haible  <bruno@clisp.org>
12263
12264         Avoid redefinition warnings for SIZE_MAX.
12265         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12266         Reported by Simon Josefsson.
12267
12268 2009-05-21  Bruno Haible  <bruno@clisp.org>
12269
12270         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12271         AC_CACHE_VAL.
12272
12273 2009-05-20  Bruno Haible  <bruno@clisp.org>
12274
12275         Make zeroptr.h work on mingw.
12276         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12277         mprotect.
12278         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12279         * modules/memchr2-tests (configure.ac): Likewise.
12280         * modules/memcmp-tests (configure.ac): Likewise.
12281         * modules/memmem-tests (configure.ac): Likewise.
12282         * modules/memrchr-tests (configure.ac): Likewise.
12283         Reported by Simon Josefsson.
12284
12285 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12286
12287         * tests/test-glob.c: Include string.h for strcmp prototype.
12288
12289 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12290
12291         * modules/getdelim (Depends-on): Add explicit stdint, although it
12292         was implicitly already pulled in via realloc-posix.
12293         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12294
12295 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12296
12297         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12298         G. Christensen" <tgc@jupiterrise.com>.
12299         * m4/sys_socket_h.m4: Check for sa_family_t.
12300         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12301         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12302         * tests/test-sys_socket.c: Check that sa_family_t works.
12303
12304 2009-05-18  Eric Blake  <ebb9@byu.net>
12305
12306         maint.mk: allow gnulib_dir in VPATH build
12307         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12308
12309 2009-05-15  Jim Meyering  <meyering@redhat.com>
12310
12311         maint.mk: Give gnulib_dir a default definition.
12312         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12313         Thus, most packages no longer need to specify this variable in cfg.mk
12314
12315 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12316
12317         rename.m4: fix typos that would make non-mingw cross-configure fail
12318         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12319
12320 2009-05-13  Eric Blake  <ebb9@byu.net>
12321
12322         mmap-anon: avoid out-of-order autoconf expansion
12323         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12324         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12325         * modules/memchr-tests (Depends-on): Add extensions.
12326         * modules/memchr2-tests (Depends-on): Add extensions.
12327         * modules/memcmp-tests (Depends-on): Add extensions.
12328         * modules/memmem-tests (Depends-on): Add extensions.
12329         * modules/memrchr-tests (Depends-on): Add extensions.
12330
12331 2009-05-13  Bruno Haible  <bruno@clisp.org>
12332
12333         Make some tests ISO C 99 compliant.
12334         * tests/zerosize-ptr.h: New file.
12335         * tests/test-memchr.c: Include zerosize-ptr.h.
12336         (main): Use a zero-size object pointer instead of NULL.
12337         * tests/test-memchr2.c: Include zerosize-ptr.h.
12338         (main): Use a zero-size object pointer instead of NULL.
12339         * tests/test-memcmp.c: Include zerosize-ptr.h.
12340         (main): Use a zero-size object pointer instead of NULL.
12341         * tests/test-memmem.c: Include zerosize-ptr.h.
12342         (main): Use a zero-size object pointer instead of NULL.
12343         * tests/test-memrchr.c: Include zerosize-ptr.h.
12344         (main): Use a zero-size object pointer instead of NULL.
12345         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12346         m4/mmap-anon.m4.
12347         (Depends-on): Add getpagesize.
12348         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12349         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12350         m4/mmap-anon.m4.
12351         (Depends-on): Add getpagesize.
12352         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12353         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12354         m4/mmap-anon.m4.
12355         (Depends-on): Add getpagesize.
12356         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12357         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12358         m4/mmap-anon.m4.
12359         (Depends-on): Add getpagesize.
12360         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12361         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12362         m4/mmap-anon.m4.
12363         (Depends-on): Add getpagesize.
12364         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12365
12366 2009-05-12  Bruno Haible  <bruno@clisp.org>
12367
12368         Tests for module 'alignof'.
12369         * modules/alignof-tests: New file.
12370         * tests/test-alignof.c: New file.
12371
12372 2009-05-12  Bruno Haible  <bruno@clisp.org>
12373
12374         Fix alignof macro.
12375         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12376         vendor compilers that are always correct.
12377
12378 2009-05-12  Bruno Haible  <bruno@clisp.org>
12379
12380         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12381         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12382         not whether its fully works.
12383
12384 2009-05-12  Bruno Haible  <bruno@clisp.org>
12385
12386         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12387
12388 2009-05-12  Jim Meyering  <meyering@redhat.com>
12389
12390         * top/maint.mk: Adjust backslash alignment.
12391
12392 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12393
12394         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12395
12396 2009-05-11  Eric Blake  <ebb9@byu.net>
12397
12398         argp: avoid undefined behavior
12399         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12400         macros.
12401
12402 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12403
12404         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12405         user.name to prevent git commit from complaining.
12406
12407 2009-05-10  Bruno Haible  <bruno@clisp.org>
12408
12409         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12410         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12411         it rewrites every file name only once.
12412         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12413
12414 2009-05-08  Bruno Haible  <bruno@clisp.org>
12415
12416         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12417         instead of 'max'.
12418
12419 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12420
12421         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12422         sockaddr_storage test.
12423
12424 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12425
12426         * modules/sys_socket (Makefile.am): Substitute
12427         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12428         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12429         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12430         * tests/test-sys_socket.c: Check sockaddr_storage.
12431
12432 2009-05-08  Bruno Haible  <bruno@clisp.org>
12433
12434         New module 'alignof'.
12435         * lib/alignof.h: New file.
12436         * modules/alignof: New file.
12437
12438 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12439             Bruno Haible  <bruno@clisp.org>
12440
12441         Fix test-file-has-acl on FreeBSD.
12442         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12443         mask is implicitly added.
12444         * tests/test-file-has-acl.c: Include <signal.h>.
12445         (main): Terminate the test after 5 seconds.
12446         * modules/acl-tests (configure.ac): Check for alarm function.
12447
12448 2009-05-04  Bruno Haible  <bruno@clisp.org>
12449
12450         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12451         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12452         * modules/errno (configure.ac): Drop AC_REQUIRE.
12453         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12454         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12455
12456 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12457
12458         * modules/glob-tests: New module.
12459         * tests/test-glob.c: Add.
12460
12461 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12462
12463         * modules/fnmatch-tests: New module.
12464         * tests/test-fnmatch.c: Add.
12465
12466 2009-05-04  Eric Blake  <ebb9@byu.net>
12467
12468         maint: make the new no-submodule-changes rule VPATH-safe
12469         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12470
12471 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12472             Bruno Haible  <bruno@clisp.org>
12473
12474         acl: Fix infinite loop on FreeBSD.
12475         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12476         of return value from acl_get_entry.
12477         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12478         Likewise.
12479
12480 2009-05-03  Bruno Haible  <bruno@clisp.org>
12481
12482         * lib/acl-internal.h (acl_entries): Clarify return value.
12483         * lib/acl_entries.c (acl_entries): Likewise.
12484
12485 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12486
12487         Bug fix in acl module.
12488         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12489
12490 2009-05-03  Bruno Haible  <bruno@clisp.org>
12491
12492         Create gperf-generated file in the source dir, not in the build dir.
12493         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12494         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12495         * modules/unicase/locale-language (unicase/locale-languages.h):
12496         Likewise.
12497         * modules/unicase/special-casing (unicase/special-casing-table.h):
12498         Likewise.
12499         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12500         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12501         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12502         Reported by Ralf Wildenhues.
12503
12504 2009-05-03  Bruno Haible  <bruno@clisp.org>
12505
12506         * modules/fnmatch (Description, configure.ac): Taken from
12507         fnmatch-posix.
12508         * modules/fnmatch-posix: Turn into a symbolic reference to the
12509         'fnmatch' module, and deprecate.
12510         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12511
12512 2009-05-03  Bruno Haible  <bruno@clisp.org>
12513
12514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12515         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12516         Reported by Ralf Wildenhues.
12517
12518 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12519
12520         * m4/fnmatch.m4: Fix fnmatch re-define.
12521
12522 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12523
12524         priv-set: new module and tests; adapt write-any-file
12525         * lib/priv-set.c: New file.
12526         * lib/priv-set.h: New file.
12527         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12528         * lib/write-any-file.c: Simplify by using priv-set module.
12529         * m4/priv-set.m4: New file.
12530         * modules/priv-set: New file.
12531         * modules/unlinkdir: Add dependency on priv-set module.
12532         * modules/write-any-file: Likewise.
12533
12534         Tests for module 'priv-set'.
12535         * modules/priv-set-tests: New file.
12536         * tests/test-priv-set.c: New file.
12537
12538 2009-05-03  Jim Meyering  <meyering@redhat.com>
12539             Bruno Haible  <bruno@clisp.org>
12540
12541         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12542         use the converted UTF-8 variant of the name instead.
12543
12544 2009-05-03  Jim Meyering  <meyering@redhat.com>
12545
12546         tests: tighten some getdate tests
12547         * tests/test-getdate.c (main): Tighten tests: require equality,
12548         not just greater than.  Set TZ envvar to UTC0.
12549
12550 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12551
12552         getdate: correctly interpret "next monday" when run on a Monday
12553         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12554         that e.g., "next tues" (when run on a tuesday) results in a date
12555         that is one week in the future, and not today's date.
12556         I.e., add a week when the wday is the same as the current one.
12557         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12558         and earlier by Martin Bernreuther and Jan Minář.
12559         * tests/test-getdate.c (main): Check that "next DAY" is always in
12560         the future and that "last DAY" is always in the past.
12561
12562 2009-05-02  Jim Meyering  <meyering@redhat.com>
12563
12564         build: ensure that a release build fails when a submodule is unclean
12565         * top/maint.mk (no-submodule-changes): New rule.
12566         (alpha beta major): Depend on it.
12567
12568 2009-05-02  Bruno Haible  <bruno@clisp.org>
12569
12570         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12571         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12572         shell variable gl_fnmatch_required to detect which variant is
12573         requested.
12574         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12575         gl_FUNC_FNMATCH_POSIX.
12576         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12577         exclude fnmatch-posix.
12578
12579 2009-05-02  Bruno Haible  <bruno@clisp.org>
12580
12581         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12582         * modules/mbsrtowcs (License): Change to LGPLv2+.
12583         * modules/strnlen1 (License): Likewise.
12584         Reported by Simon Josefsson.
12585
12586 2009-05-02  Bruno Haible  <bruno@clisp.org>
12587
12588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12589         "cross".
12590         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12591         gnulib-tool was called with option --source-base=lib.
12592
12593 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12594
12595         Use automake *-local hooks without commands, for extensibility.
12596         * modules/localcharset (Makefile.am): Rename install-exec-local
12597         rule to install-exec-localcharset, and make it a prerequisite of
12598         install-exec-local.  Likewise, rename the uninstall-local rule to
12599         uninstall-localcharset, and make it a prerequisite of the former.
12600
12601 2009-05-01  Bruno Haible  <bruno@clisp.org>
12602
12603         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12604         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12605         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12607         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12608         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12609         m4/locale-zh.m4, m4/codeset.m4.
12610
12611         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12612         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12613         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12614         m4/locale-zh.m4.
12615
12616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12617         REPLACE_WCRTOMB if mbstate_t must be replaced.
12618         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12619         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12620
12621 2009-05-01  Bruno Haible  <bruno@clisp.org>
12622
12623         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12624         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12625         dngettext, dcngettext, textdomain, bindtextdomain,
12626         bind_textdomain_codeset): Undefine before redefining.
12627
12628 2009-04-30  Bruno Haible  <bruno@clisp.org>
12629
12630         Fix bug introduced on 2009-04-25.
12631         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12632         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12633         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12634         is defined.
12635         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12636         is defined.
12637         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12638         is defined.
12639         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12640
12641 2009-04-28  Bruno Haible  <bruno@clisp.org>
12642
12643         Comment tweaks.
12644         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12645         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12646         * lib/unicase.h (u*_casexfrm): Likewise.
12647         Reported by Paolo Bonzini.
12648
12649 2009-04-28  Bruno Haible  <bruno@clisp.org>
12650
12651         Fix a compilation error.
12652         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12653         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12654         Reported by Jim Meyering.
12655
12656 2009-04-27  Bruno Haible  <bruno@clisp.org>
12657
12658         New module 'libunistring'.
12659         * modules/libunistring: New file.
12660         * m4/libunistring.m4: New file.
12661         * MODULES.html.sh (Unicode string functions): Add it.
12662
12663 2009-04-27  Eric Blake  <ebb9@byu.net>
12664
12665         maint.mk: allow package-specific header to provide <config.h>
12666         * top/maint.mk (sc_require_config_h): New variable.
12667         (sc_require_config_h, sc_require_config_h_first): Use it.
12668
12669 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12670
12671         * top/maint.mk (sc_avoid_if_before_free): Except
12672         useless-if-before-free script.
12673
12674 2009-04-27  Eric Blake  <ebb9@byu.net>
12675
12676         maintainer-makefile: depend on all required helper scripts
12677         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12678         useless-if-before-free.
12679         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12680         version, rather than assuming gnulib checkout is available.
12681         Reported by Simen Josefsson.
12682
12683 2009-04-26  Bruno Haible  <bruno@clisp.org>
12684
12685         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12686         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12687         "../" or "..".
12688
12689 2009-04-26  Bruno Haible  <bruno@clisp.org>
12690
12691         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12692         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12693         AC_LIB_HAVE_LINKFLAGS.
12694
12695 2009-04-26  Bruno Haible  <bruno@clisp.org>
12696
12697         Simplify calling convention of u*_conv_from_encoding.
12698         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12699         u32_conv_from_encoding): Expect a resultbuf argument and return the
12700         result directly as a pointer.
12701         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12702         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12703         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12704         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12705         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12706         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12707         Update.
12708         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12709         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12710         * lib/vasnprintf.c (VASNPRINTF): Update.
12711         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12712         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12713         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12714         * NEWS: Mention the change.
12715
12716 2009-04-26  Bruno Haible  <bruno@clisp.org>
12717
12718         Simplify calling convention of u*_conv_to_encoding.
12719         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12720         u32_conv_to_encoding): Expect a resultbuf argument and return the
12721         result directly as a pointer.
12722         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12723         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12724         freeing scaled_offsets if mem_iconveha failed.
12725         * lib/unicase/u-casexfrm.h (FUNC): Update.
12726         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12727         * lib/vasnprintf.c (VASNPRINTF): Update.
12728         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12729         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12730         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12731         * NEWS: Mention the change.
12732
12733 2009-04-26  Bruno Haible  <bruno@clisp.org>
12734
12735         Avoid test failures on AIX and OSF/1.
12736         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12737         malloc(0).
12738         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12739         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12740         Likewise.
12741         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12742         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12743         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12744         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12745         * doc/posix-functions/malloc.texi: Document the portability problem
12746         related to malloc(0).
12747
12748 2009-04-26  Bruno Haible  <bruno@clisp.org>
12749
12750         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12751         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12752         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12753
12754 2009-04-25  Bruno Haible  <bruno@clisp.org>
12755
12756         Avoid link error when creating a namespace clean library.
12757         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12758         as macro with arguments if already defined as an alias.
12759         * lib/signbitf.c (gl_signbitf): Don't undefine.
12760         * lib/signbitd.c (gl_signbitd): Don't undefine.
12761         * lib/signbitl.c (gl_signbitl): Don't undefine.
12762
12763 2009-04-25  Jim Meyering  <meyering@redhat.com>
12764
12765         vc-list-files: fix another quoting bug
12766         * build-aux/vc-list-files: Avoid sed backslash expansion
12767         of pathological directory names.
12768
12769 2009-04-25  Eric Blake  <ebb9@byu.net>
12770
12771         vc-list-files: fix shell quoting error
12772         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12773         timestamp.
12774
12775 2009-04-25  Jim Meyering  <meyering@redhat.com>
12776
12777         vc-list-files: restore lost functionality with subdir argument
12778         * build-aux/vc-list-files: When given a non-"." sub-directory
12779         argument, substitute the $dir/ prefix back onto each resulting name.
12780         Otherwise, coreutils' root_tests check would fail.
12781
12782 2009-04-24  Eric Blake  <ebb9@byu.net>
12783
12784         vc-list-files: ignore git symlinks
12785         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12786         than ls-files, to ignore git symlinks.
12787
12788         maint.mk: import improvements from m4
12789         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12790         (move_if_change): Delete unused macro.
12791         (news-date-check, vc-diff-check): Support VPATH builds.
12792         (announcement): Likewise.  Split --bootstrap-tools list...
12793         (boostrap-tools): ...into separate list, which can be overridden
12794         in cfg.mk.
12795         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12796         requiring dependency on useless-if-before-free module.
12797         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12798         Support VPATH builds.
12799
12800 2009-04-24  Jim Meyering  <meyering@redhat.com>
12801
12802         maint.mk: remove coreutils-specific rules and variables
12803         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12804         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12805         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12806
12807         maint.mk: remove obsolete rule
12808         * top/maint.mk (rel-check): Remove rule.
12809         (WGET, WGETFLAGS): Remove now-unused variables.
12810
12811 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12812
12813         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12814         consistency.
12815
12816         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12817         '$(PATH_SEPARATOR)' instead of ':'.
12818
12819 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12820
12821         * lib/getopt1.c (main): Use 'const' for static array.
12822
12823 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12824
12825         * top/maint.mk: Sync with coreutils.
12826         * NEWS: Explain incompatibilities.
12827
12828 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12829             Bruno Haible  <bruno@clisp.org>
12830
12831         Fix cross-compilation results.
12832         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12833         statement, as third argument of AC_TRY_RUN.
12834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12835         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12836         Likewise.
12837         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12838         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12839         Likewise.
12840         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12842         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12843
12844 2009-04-20  Bruno Haible  <bruno@clisp.org>
12845
12846         Avoid test failure on mingw.
12847         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12848
12849 2009-04-20  Bruno Haible  <bruno@clisp.org>
12850
12851         Avoid compilation error on mingw.
12852         * modules/localename-tests (Depends-on): Add locale.
12853
12854 2009-04-19  Bruno Haible  <bruno@clisp.org>
12855
12856         Support for building a shared library on Windows platforms.
12857         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12858         (main): Test the presence of UNINORM_NFC here.
12859         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12860         (main): Test the presence of UNINORM_NFD here.
12861         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12862         (main): Test the presence of UNINORM_NFKC here.
12863         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12864         (main): Test the presence of UNINORM_NFKD here.
12865
12866 2009-04-19  Bruno Haible  <bruno@clisp.org>
12867
12868         Avoid a compiler warning.
12869         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12870         Change type of variable 'sequence'.
12871
12872 2009-04-19  Bruno Haible  <bruno@clisp.org>
12873
12874         * modules/configmake (Makefile.am): When the contents of configmake.h
12875         does not change, arrange to preserve its modification time.
12876
12877 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12878
12879         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12880         gettext domain.
12881
12882 2009-04-16  Jim Meyering  <meyering@redhat.com>
12883
12884         useless-if-before-free: improve conversion code
12885         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12886         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12887
12888 2009-04-14  Bruno Haible  <bruno@clisp.org>
12889
12890         * modules/fcntl (Depends-on): Add extensions.
12891         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12892
12893 2009-04-12  Ben Pfaff  <blp@gnu.org>
12894
12895         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12896         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12897
12898 2009-03-20  Ben Pfaff  <blp@gnu.org>
12899
12900         Make rename replace existing destinations on Windows.
12901         * m4/rename.m4: Add test for Mingw.
12902         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12903         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12904         * doc/posix-functions/rename.texi: Document.
12905
12906 2009-04-10  Bruno Haible  <bruno@clisp.org>
12907
12908         New include file "iconveh.h".
12909         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12910         * lib/striconveh.h: Include it.
12911         (enum iconv_ilseq_handler): Remove definition.
12912         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12913         striconveh.h.
12914         * lib/striconveha.c: Include striconveh.h.
12915         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12916         * modules/striconveh (Files): Add lib/iconveh.h.
12917         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12918         lib/striconveh.h.
12919
12920 2009-04-10  Bruno Haible  <bruno@clisp.org>
12921
12922         * lib/uniconv.h: Update comment.
12923
12924 2009-04-10  Bruno Haible  <bruno@clisp.org>
12925
12926         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12927         always.
12928         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12929         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12930         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12931         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12932         "unistring-notinline.h", so that the function gets defined always.
12933         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12934         * lib/unistr/u8-uctomb.c: Likewise.
12935         * lib/unistr/u16-mbtouc.c: Likewise.
12936         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12937         * lib/unistr/u16-uctomb.c: Likewise.
12938         * lib/unistr/u32-mbtouc.c: Likewise.
12939         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12940         * lib/unistr/u32-uctomb.c: Likewise.
12941
12942 2009-04-10  Bruno Haible  <bruno@clisp.org>
12943
12944         Mark 'utime' obsolete.
12945         * modules/utime (Status, Notice): New sections.
12946         Suggested by Jim Meyering.
12947
12948         Fix cross-compile guess for utime test.
12949         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12950         autoconf.
12951         * doc/posix-functions/utime.texi: Give more precisions.
12952         Reported by Jan <ipif@ymail.com>.
12953
12954 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12955
12956         filevercmp: correct today's change
12957         * lib/filevercmp.c: Also handle coreutils' test inputs.
12958         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12959
12960         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12961         for reporting it.
12962         * lib/filevercmp.c: Special handle for "", "." and "..".
12963         * tests/test-filevercmp.c: Enlarge the set suite.
12964
12965 2009-04-07  Jim Meyering  <meyering@redhat.com>
12966
12967         useless-if-before-free: show how to remove braced useless free, too
12968         * build-aux/useless-if-before-free: still only in a comment, though.
12969
12970 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12971
12972         maint.mk: import changes to syntax-check macros from coreutils
12973         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12974         Use them in the relevant macros.
12975
12976 2009-04-06  Bruno Haible  <bruno@clisp.org>
12977
12978         Fix unportable use of bit-fields.
12979         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12980         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12981         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12982
12983 2009-04-06  Bruno Haible  <bruno@clisp.org>
12984
12985         Avoid test failures on AIX and OSF/1.
12986         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12987         that malloc(0) = NULL.
12988         * tests/unicase/test-u8-tolower.c (check): Likewise.
12989         * tests/unicase/test-u8-totitle.c (check): Likewise.
12990         * tests/unicase/test-u8-toupper.c (check): Likewise.
12991         * tests/unicase/test-u16-casefold.c (check): Likewise.
12992         * tests/unicase/test-u16-tolower.c (check): Likewise.
12993         * tests/unicase/test-u16-totitle.c (check): Likewise.
12994         * tests/unicase/test-u16-toupper.c (check): Likewise.
12995         * tests/unicase/test-u32-casefold.c (check): Likewise.
12996         * tests/unicase/test-u32-tolower.c (check): Likewise.
12997         * tests/unicase/test-u32-totitle.c (check): Likewise.
12998         * tests/unicase/test-u32-toupper.c (check): Likewise.
12999         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13000         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13001         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13002         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13003         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13004         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13005         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13006         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13007         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13008         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13009         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13010         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13011
13012 2009-04-05  Bruno Haible  <bruno@clisp.org>
13013
13014         Work around an autoconf limitation.
13015         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13016         comment line if it would be longer than 3 KB.
13017
13018 2009-04-05  Bruno Haible  <bruno@clisp.org>
13019
13020         Avoid test failure with libiconv-1.13.
13021         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13022         of the expected test results.
13023
13024 2009-04-05  Bruno Haible  <bruno@clisp.org>
13025
13026         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13027         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13028         that it should be installed.
13029
13030 2009-04-05  Bruno Haible  <bruno@clisp.org>
13031
13032         * gnulib-tool: New option --copy-file.
13033         (func_usage): Document it.
13034         (func_dest_tmpfilename): Moved out of func_import.
13035         (func_add_file, func_update_file): New functions, extracted from
13036         func_import.
13037         (func_import): Update.
13038
13039 2009-04-05  Karl Berry  <karl@gnu.org>
13040
13041         * README: prominently mention gnulib-tool.
13042         Rearrange sections so getting the code is near the top.
13043
13044 2009-04-05  Bruno Haible  <bruno@clisp.org>
13045
13046         * lib/unicase.h: Mention u*_cmp2.
13047         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13048         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13049         * lib/unicase/ulc-casecmp.c: Likewise.
13050         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13051         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13052         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13053         unistr/u8-cmp.
13054         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13055         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13056         unistr/u16-cmp.
13057         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13058         unistr/u32-cmp.
13059
13060         * lib/uninorm.h: Mention u*_cmp2.
13061         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13062         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13063         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13064         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13065         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13066         unistr/u8-cmp.
13067         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13068         unistr/u16-cmp.
13069         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13070         unistr/u32-cmp.
13071
13072         New module 'unistr/u32-cmp2'.
13073         * lib/unistr/u32-cmp2.c: New file.
13074         * modules/unistr/u32-cmp2: New file.
13075
13076         New module 'unistr/u16-cmp2'.
13077         * lib/unistr/u16-cmp2.c: New file.
13078         * modules/unistr/u16-cmp2: New file.
13079
13080         New module 'unistr/u8-cmp2'.
13081         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13082         * lib/unistr/u8-cmp2.c: New file.
13083         * lib/unistr/u-cmp2.h: New file.
13084         * modules/unistr/u8-cmp2: New file.
13085
13086 2009-04-05  Bruno Haible  <bruno@clisp.org>
13087
13088         * lib/unictype.h (uc_property_is_valid): New macro.
13089         * tests/unictype/test-pr_byname.c (main): Use it.
13090
13091         * lib/unistr.h: Doc fixes.
13092         * lib/uniconv.h: Doc fixes.
13093         * lib/unictype.h: Doc fixes.
13094
13095 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         Port coreutils 7.2 to Solaris 8.
13098
13099         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13100         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13101         for Solaris 8.  This is a bit of a hack, as it means it's the
13102         caller's responsibility to add -lnsl if needed, but most likely it
13103         won't be needed since only getaddrinfo uses this and getaddrinfo
13104         isn't needed on Solaris 8.
13105
13106         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13107         problem to Solaris 8 encountered with coreutils 7.2, which
13108         resulted in a message "fnmatch.c:292: warning: passing argument 4
13109         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13110         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13111
13112 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13113
13114         * m4/ld-version-script.m4: Add FIXME comment.
13115
13116 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13117
13118         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13119         SOVERSION variable.
13120
13121 2009-04-02  Bruno Haible  <bruno@clisp.org>
13122
13123         * Makefile (info, html, dvi, pdf): Combine the rules.
13124         Suggested by Jim Meyering.
13125
13126 2009-04-01  Bruno Haible  <bruno@clisp.org>
13127
13128         * Makefile (info, html, dvi, pdf): New targets.
13129         Reported by Reuben Thomas <rrt@sc3d.org>.
13130
13131 2009-04-01  Bruno Haible  <bruno@clisp.org>
13132
13133         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13134         can be put into PATH.
13135         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13136
13137 2009-04-01  Bruno Haible  <bruno@clisp.org>
13138
13139         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13140
13141 2009-04-01  Bruno Haible  <bruno@clisp.org>
13142
13143         Rename module 'visibility'.
13144         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13145         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13146         * doc/gnulib.texi: Update.
13147         * MODULES.html.sh (Misc): Update.
13148         * NEWS: Mention the change.
13149
13150 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13151
13152         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13153         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13154         Eric Blake <ebb9@byu.net> for review.
13155         * MODULES.html.sh: Add lib-msvc-compat.
13156         * doc/gnulib.texi: Link to new section.
13157         * m4/ld-output-def.m4: New file.
13158         * doc/ld-output-def.texi: New file.
13159
13160 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13161
13162         Rename ld-version-script to lib-symbol-versions.  Suggested by
13163         Bruno Haible <bruno@clisp.org>.
13164         * modules/ld-version-script: Renamed to lib-symbol-versions.
13165         * doc/ld-version-script.texi: Fix module name.
13166         * MODULES.html.sh: Add lib-symbol-versions.
13167
13168 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13169
13170         * modules/u64-tests: New file.
13171         * tests/test-u64.c: New file.
13172
13173 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13174
13175         * MODULES.html.sh: Mention u64.
13176         * modules/u64: New module.
13177         * modules/crypto/sha512: Depend on u64 module instead of providing
13178         u64.h.
13179
13180 2009-03-27  Eric Blake  <ebb9@byu.net>
13181
13182         test-strerror: make debugging EAI_SYSTEM easier
13183         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13184         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13185         failure was EAI_SYSTEM.
13186
13187 2009-03-25  Bruno Haible  <bruno@clisp.org>
13188
13189         Fix a problem with --enable-relocatable on Solaris 7.
13190         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13191         since 2008-02-24.
13192
13193 2009-03-25  Eric Blake  <ebb9@byu.net>
13194
13195         test-sockets: avoid gcc warning
13196         * tests/test-sockets.c (main): Silence compiler warning.
13197
13198 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         New modules nproc, pthread, contributed by Glen Lenker.
13201
13202         * MODULES.html.sh: Add pthread, nproc.
13203         * lib/nproc.c: New file.
13204         * lib/nproc.h: New file.
13205         * lib/pthread.in.h: New file.
13206         * m4/pthread.m4: New file.
13207         * modules/nproc: New file.
13208         * modules/pthread: New file.
13209
13210 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13211
13212         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13213         New variable.
13214
13215 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13216
13217         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13218         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13219         * tests/test-filevercmp.c: Add tests for backup suffixes.
13220
13221 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13222
13223         * modules/stdlib (Depends-on): Add stdint, needed when defining
13224         struct random_data on, for example, HP-UX 10.20.  Reported by
13225         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13226
13227 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13228
13229         * lib/readline.c (readline): Call fflush on stdout after printing
13230         prompt.
13231
13232 2009-03-20  Bruno Haible  <bruno@clisp.org>
13233
13234         Remove dependency from 'close' module to -lws2_32 on native Windows.
13235         * lib/close-hook.h: New file.
13236         * lib/close-hook.c: New file.
13237         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13238         w32sock.h.
13239         (_gl_close_fd_maybe_socket): Remove function.
13240         (rpl_close): Invoke execute_all_close_hooks instead of
13241         _gl_close_fd_maybe_socket.
13242         * lib/sockets.c: Include close-hook.h, w32sock.h.
13243         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13244         (close_sockets_hook): New variable.
13245         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13246         (gl_sockets_cleanup): Unregister it.
13247         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13248         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13249         * modules/close-hook: New file.
13250         * modules/close (Files): Remove lib/w32sock.h.
13251         (Depends-on): Add close-hook.
13252         (Link): Remove section.
13253         * modules/sockets (Files): Add lib/w32sock.h.
13254         (Depends-on): Add close-hook.
13255         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13256         invocation.
13257         * NEWS: Mention that LIB_CLOSE is gone.
13258
13259 2009-03-23  Eric Blake  <ebb9@byu.net>
13260
13261         signal-tests: test previous patch
13262         * tests/test-signal.c: New file.
13263         * modules/signal-tests: Likewise.
13264
13265         signal.h: always support 'volatile sig_atomic_t'
13266         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13267         (gl_SIGNAL_H_DEFAULTS): Add a default.
13268         * modules/signal (Makefile.am): Substitute if needed.
13269         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13270         users can blindly add volatile.
13271         * doc/posix-headers/signal.texi (signal.h): Document it.
13272         Reported by Matthew Woehlke.
13273
13274 2009-03-23  Jim Meyering  <meyering@redhat.com>
13275
13276         pathmax: PATH_MAX: use pathconf only when available
13277         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13278         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13279         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13280         This avoids a link failure in a PSP cross-compilation environment
13281         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13282
13283         * lib/vasnprintf.c (divide): Fix typo in comment.
13284
13285 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13286
13287         * gnulib-tool (func_filter_filelist): Fix comment.
13288
13289 2009-03-20  Bruno Haible  <bruno@clisp.org>
13290
13291         Make sockets.h self-contained.
13292         * lib/sockets.c: Include sockets.h first.
13293         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13294
13295 2009-03-19  Eric Blake  <ebb9@byu.net>
13296
13297         doc: mention more functions added in cygwin 1.7.0
13298         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13299         addition.
13300         * doc/posix-functions/log2f.texi: Likewise.
13301
13302 2009-03-19  Jim Meyering  <meyering@redhat.com>
13303
13304         fsusage: avoid syntax error due to statement-before-declaration
13305         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13306         after all declarations.  Reported by Matthew Woehlke in
13307         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13308
13309 2009-03-18  Eric Blake  <ebb9@byu.net>
13310
13311         build-aux/compile: sync from automake
13312         * build-aux/compile: New file, from automake.
13313         * config/srclist.txt: Mention build-aux/compile.
13314
13315 2009-03-17  Bruno Haible  <bruno@clisp.org>
13316
13317         * lib/git-merge-changelog.c: Fix typo in comment.
13318         Reported by Reuben Thomas <rrt@sc3d.org>.
13319
13320 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13321
13322         * m4/regex.m4: update and improve help for
13323         --without-included-regex.
13324
13325 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13326
13327         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13328         failure on missing include files.
13329
13330 2009-03-17  Eric Blake  <ebb9@byu.net>
13331
13332         doc: mention more functions added in cygwin 1.7.0
13333         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13334         addition.
13335         * doc/posix-functions/fwscanf.texi: Likewise.
13336         * doc/posix-functions/swprintf.texi: Likewise.
13337         * doc/posix-functions/swscanf.texi: Likewise.
13338         * doc/posix-functions/vfwprintf.texi: Likewise.
13339         * doc/posix-functions/vfwscanf.texi: Likewise.
13340         * doc/posix-functions/vswprintf.texi: Likewise.
13341         * doc/posix-functions/vswscanf.texi: Likewise.
13342         * doc/posix-functions/vwprintf.texi: Likewise.
13343         * doc/posix-functions/vwscanf.texi: Likewise.
13344         * doc/posix-functions/wcscasecmp.texi: Likewise.
13345         * doc/posix-functions/wcsdup.texi: Likewise.
13346         * doc/posix-functions/wcsftime.texi: Likewise.
13347         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13348         * doc/posix-functions/wprintf.texi: Likewise.
13349         * doc/posix-functions/wscanf.texi: Likewise.
13350         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13351
13352 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13353
13354         maint.mk: really add $(AM_MAKEFLAGS)
13355         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13356         was inadvertently omitted in the last commit.
13357         Spotted by Bruno Haible.
13358
13359         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13360         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13361         $(AM_MAKEFLAGS)' rather than plain `make'.
13362
13363         gnulib-tool: execute $MAKE not make
13364         * gnulib-tool: Default $MAKE to 'make'.
13365         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13366         than make.  Initialize $MAKE in the do-autobuild script.
13367
13368         gnulib-tool: use $MAKE not make in generated files
13369         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13370         make, in generated files.  Initialize $MAKE in the do-autobuild
13371         script.
13372
13373         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13374
13375         GNUmakefile: disable parallelism only for multiple, recursive targets
13376         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13377         additions in the Makefile.
13378         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13379         by Automake.
13380         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13381         are listed on the command line and at least one of them is
13382         listed in $(ALL_RECURSIVE_TARGETS).
13383
13384 2009-03-14  Bruno Haible  <bruno@clisp.org>
13385
13386         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13387         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13388         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13389         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13390         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13391         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13392         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13393         unistr/u8-uctomb.
13394         * modules/unistr/u8-strchr (Depends-on): Likewise.
13395         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13396         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13397         unistr/u16-uctomb.
13398         * modules/unistr/u16-strchr (Depends-on): Likewise.
13399         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13400
13401 2009-03-12  Bruno Haible  <bruno@clisp.org>
13402
13403         Work around select() bug on Interix 3.5.
13404         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13405         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13406         * m4/select.m4: New file.
13407         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13408         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13409         * modules/select (Files): Add m4/select.m4.
13410         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13411         * modules/nanosleep (Depends-on): Add select.
13412         * modules/poll (Depends-on): Likewise.
13413         * doc/posix-functions/select.texi: Mention the Interix bug.
13414         Reported by Markus Duft <mduft@gentoo.org>.
13415
13416         * lib/select.c: Renamed from lib/winsock-select.c.
13417         * modules/select (Files): Add lib/select.c, remove
13418         lib/winsock-select.c.
13419         (configure.ac): Update.
13420
13421 2009-03-12  Jim Meyering  <meyering@redhat.com>
13422
13423         avoid gcc warnings about unused macro definitions
13424         * lib/readtokens.c (STREQ): Remove unused definition.
13425         * lib/xmalloc.c (SIZE_MAX): Likewise.
13426         * lib/openat-die.c (N_): Likewise.
13427         * lib/mountlist.c (SIZE_MAX): Remove definition.
13428         Instead, include <stdint.h>.
13429         * lib/readutmp.c: Likewise.
13430         * modules/readutmp (Depends-on): Add stdint.
13431         * modules/mountlist (Depends-on): Add stdint.
13432         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13433
13434 2009-03-10  Bruno Haible  <bruno@clisp.org>
13435
13436         Tests for module 'mbmemcasecoll'.
13437         * modules/mbmemcasecoll-tests: New file.
13438         * tests/test-mbmemcasecoll1.sh: New file.
13439         * tests/test-mbmemcasecoll2.sh: New file.
13440         * tests/test-mbmemcasecoll3.sh: New file.
13441         * tests/test-mbmemcasecoll.c: New file.
13442
13443         New module 'mbmemcasecoll'.
13444         * lib/mbmemcasecoll.h: New file.
13445         * lib/mbmemcasecoll.c: New file.
13446         * modules/mbmemcasecoll: New file.
13447
13448         * tests/test-mbmemcasecmp.h: New file, extracted from
13449         tests/test-mbmemcasecmp.c.
13450         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13451         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13452         (main): Update.
13453         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13454
13455 2009-03-09  Bruno Haible  <bruno@clisp.org>
13456
13457         Tests for module 'mbmemcasecmp'.
13458         * modules/mbmemcasecmp-tests: New file.
13459         * tests/test-mbmemcasecmp1.sh: New file.
13460         * tests/test-mbmemcasecmp2.sh: New file.
13461         * tests/test-mbmemcasecmp3.sh: New file.
13462         * tests/test-mbmemcasecmp.c: New file.
13463
13464         New module 'mbmemcasecmp'.
13465         * lib/mbmemcasecmp.h: New file.
13466         * lib/mbmemcasecmp.c: New file.
13467         * modules/mbmemcasecmp: New file.
13468
13469 2009-03-09  Bruno Haible  <bruno@clisp.org>
13470
13471         Tests for module 'unicase/ulc-casecoll'.
13472         * modules/unicase/ulc-casecoll-tests: New file.
13473         * tests/unicase/test-ulc-casecoll1.sh: New file.
13474         * tests/unicase/test-ulc-casecoll2.sh: New file.
13475         * tests/unicase/test-ulc-casecoll.c: New file.
13476
13477         New module 'unicase/ulc-casecoll'.
13478         * lib/unicase.h (ulc_casecoll): New declaration.
13479         * lib/unicase/ulc-casecoll.c: New file.
13480         * modules/unicase/ulc-casecoll: New file.
13481
13482         New module 'unicase/ulc-casexfrm'.
13483         * lib/unicase.h (ulc_casexfrm): New declaration.
13484         * lib/unicase/ulc-casexfrm.c: New file.
13485         * modules/unicase/ulc-casexfrm: New file.
13486
13487 2009-03-09  Bruno Haible  <bruno@clisp.org>
13488
13489         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13490         invocations.
13491
13492         * m4/mbscasecmp.m4: Remove file.
13493         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13494         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13495
13496         * m4/mbscasestr.m4: Remove file.
13497         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13498         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13499
13500         * m4/mbschr.m4: Remove file.
13501         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13502         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13503
13504         * m4/mbscspn.m4: Remove file.
13505         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13506         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13507
13508         * m4/mbslen.m4: Remove file.
13509         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13510         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13511
13512         * m4/mbsncasecmp.m4: Remove file.
13513         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13514         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13515
13516         * m4/mbsnlen.m4: Remove file.
13517         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13518         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13519
13520         * m4/mbspbrk.m4: Remove file.
13521         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13522         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13523
13524         * m4/mbspcasecmp.m4: Remove file.
13525         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13526         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13527
13528         * m4/mbsrchr.m4: Remove file.
13529         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13530         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13531
13532         * m4/mbssep.m4: Remove file.
13533         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13534         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13535
13536         * m4/mbsspn.m4: Remove file.
13537         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13538         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13539
13540         * m4/mbsstr.m4: Remove file.
13541         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13542         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13543
13544         * m4/mbstok_r.m4: Remove file.
13545         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13546         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13547
13548         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13549
13550         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13551         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13552
13553         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13554
13555 2009-03-08  Bruno Haible  <bruno@clisp.org>
13556
13557         Tests for module 'unicase/ulc-casecmp'.
13558         * modules/unicase/ulc-casecmp-tests: New file.
13559         * tests/unicase/test-ulc-casecmp1.sh: New file.
13560         * tests/unicase/test-ulc-casecmp2.sh: New file.
13561         * tests/unicase/test-ulc-casecmp.c: New file.
13562
13563         New module 'unicase/ulc-casecmp'.
13564         * lib/unicase.h (ulc_casecmp): New declaration.
13565         * lib/unicase/ulc-casecmp.c: New file.
13566         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13567         'const SRC_UNIT *'.
13568         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13569         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13570         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13571         * modules/unicase/ulc-casecmp: New file.
13572
13573         Tests for module 'unicase/u32-is-cased'.
13574         * modules/unicase/u32-is-cased-tests: New file.
13575         * tests/unicase/test-u32-is-cased.c: New file.
13576
13577         Tests for module 'unicase/u16-is-cased'.
13578         * modules/unicase/u16-is-cased-tests: New file.
13579         * tests/unicase/test-u16-is-cased.c: New file.
13580
13581         Tests for module 'unicase/u8-is-cased'.
13582         * modules/unicase/u8-is-cased-tests: New file.
13583         * tests/unicase/test-u8-is-cased.c: New file.
13584         * tests/unicase/test-is-cased.h: New file.
13585
13586         New module 'unicase/u32-is-cased'.
13587         * lib/unicase/u32-is-cased.c: New file.
13588         * modules/unicase/u32-is-cased: New file.
13589
13590         New module 'unicase/u16-is-cased'.
13591         * lib/unicase/u16-is-cased.c: New file.
13592         * modules/unicase/u16-is-cased: New file.
13593
13594         New module 'unicase/u8-is-cased'.
13595         * lib/unicase/u8-is-cased.c: New file.
13596         * lib/unicase/u-is-cased.h: New file.
13597         * modules/unicase/u8-is-cased: New file.
13598
13599         Tests for module 'unicase/u32-is-casefolded'.
13600         * modules/unicase/u32-is-casefolded-tests: New file.
13601         * tests/unicase/test-u32-is-casefolded.c: New file.
13602
13603         Tests for module 'unicase/u16-is-casefolded'.
13604         * modules/unicase/u16-is-casefolded-tests: New file.
13605         * tests/unicase/test-u16-is-casefolded.c: New file.
13606
13607         Tests for module 'unicase/u8-is-casefolded'.
13608         * modules/unicase/u8-is-casefolded-tests: New file.
13609         * tests/unicase/test-u8-is-casefolded.c: New file.
13610         * tests/unicase/test-is-casefolded.h: New file.
13611
13612         New module 'unicase/u32-is-casefolded'.
13613         * lib/unicase/u32-is-casefolded.c: New file.
13614         * modules/unicase/u32-is-casefolded: New file.
13615
13616         New module 'unicase/u16-is-casefolded'.
13617         * lib/unicase/u16-is-casefolded.c: New file.
13618         * modules/unicase/u16-is-casefolded: New file.
13619
13620         New module 'unicase/u8-is-casefolded'.
13621         * lib/unicase/u8-is-casefolded.c: New file.
13622         * modules/unicase/u8-is-casefolded: New file.
13623
13624         Tests for module 'unicase/u32-is-titlecase'.
13625         * modules/unicase/u32-is-titlecase-tests: New file.
13626         * tests/unicase/test-u32-is-titlecase.c: New file.
13627
13628         Tests for module 'unicase/u16-is-titlecase'.
13629         * modules/unicase/u16-is-titlecase-tests: New file.
13630         * tests/unicase/test-u16-is-titlecase.c: New file.
13631
13632         Tests for module 'unicase/u8-is-titlecase'.
13633         * modules/unicase/u8-is-titlecase-tests: New file.
13634         * tests/unicase/test-u8-is-titlecase.c: New file.
13635         * tests/unicase/test-is-titlecase.h: New file.
13636
13637         New module 'unicase/u32-is-titlecase'.
13638         * lib/unicase/u32-is-titlecase.c: New file.
13639         * modules/unicase/u32-is-titlecase: New file.
13640
13641         New module 'unicase/u16-is-titlecase'.
13642         * lib/unicase/u16-is-titlecase.c: New file.
13643         * modules/unicase/u16-is-titlecase: New file.
13644
13645         New module 'unicase/u8-is-titlecase'.
13646         * lib/unicase/u8-is-titlecase.c: New file.
13647         * modules/unicase/u8-is-titlecase: New file.
13648
13649         Tests for module 'unicase/u32-is-lowercase'.
13650         * modules/unicase/u32-is-lowercase-tests: New file.
13651         * tests/unicase/test-u32-is-lowercase.c: New file.
13652
13653         Tests for module 'unicase/u16-is-lowercase'.
13654         * modules/unicase/u16-is-lowercase-tests: New file.
13655         * tests/unicase/test-u16-is-lowercase.c: New file.
13656
13657         Tests for module 'unicase/u8-is-lowercase'.
13658         * modules/unicase/u8-is-lowercase-tests: New file.
13659         * tests/unicase/test-u8-is-lowercase.c: New file.
13660         * tests/unicase/test-is-lowercase.h: New file.
13661
13662         New module 'unicase/u32-is-lowercase'.
13663         * lib/unicase/u32-is-lowercase.c: New file.
13664         * modules/unicase/u32-is-lowercase: New file.
13665
13666         New module 'unicase/u16-is-lowercase'.
13667         * lib/unicase/u16-is-lowercase.c: New file.
13668         * modules/unicase/u16-is-lowercase: New file.
13669
13670         New module 'unicase/u8-is-lowercase'.
13671         * lib/unicase/u8-is-lowercase.c: New file.
13672         * modules/unicase/u8-is-lowercase: New file.
13673
13674         Tests for module 'unicase/u32-is-uppercase'.
13675         * modules/unicase/u32-is-uppercase-tests: New file.
13676         * tests/unicase/test-u32-is-uppercase.c: New file.
13677
13678         Tests for module 'unicase/u16-is-uppercase'.
13679         * modules/unicase/u16-is-uppercase-tests: New file.
13680         * tests/unicase/test-u16-is-uppercase.c: New file.
13681
13682         Tests for module 'unicase/u8-is-uppercase'.
13683         * modules/unicase/u8-is-uppercase-tests: New file.
13684         * tests/unicase/test-u8-is-uppercase.c: New file.
13685         * tests/unicase/test-is-uppercase.h: New file.
13686
13687         New module 'unicase/u32-is-uppercase'.
13688         * lib/unicase/u32-is-uppercase.c: New file.
13689         * modules/unicase/u32-is-uppercase: New file.
13690
13691         New module 'unicase/u16-is-uppercase'.
13692         * lib/unicase/u16-is-uppercase.c: New file.
13693         * modules/unicase/u16-is-uppercase: New file.
13694
13695         New module 'unicase/u8-is-uppercase'.
13696         * lib/unicase/u8-is-uppercase.c: New file.
13697         * modules/unicase/u8-is-uppercase: New file.
13698
13699         New module 'unicase/u32-is-invariant'.
13700         * lib/unicase/u32-is-invariant.c: New file.
13701         * modules/unicase/u32-is-invariant: New file.
13702
13703         New module 'unicase/u16-is-invariant'.
13704         * lib/unicase/u16-is-invariant.c: New file.
13705         * modules/unicase/u16-is-invariant: New file.
13706
13707         New module 'unicase/u8-is-invariant'.
13708         * lib/unicase/u8-is-invariant.c: New file.
13709         * lib/unicase/invariant.h: New file.
13710         * lib/unicase/u-is-invariant.h: New file.
13711         * modules/unicase/u8-is-invariant: New file.
13712
13713         Tests for module 'unicase/u32-casecoll'.
13714         * modules/unicase/u32-casecoll-tests: New file.
13715         * tests/unicase/test-u32-casecoll.c: New file.
13716
13717         Tests for module 'unicase/u16-casecoll'.
13718         * modules/unicase/u16-casecoll-tests: New file.
13719         * tests/unicase/test-u16-casecoll.c: New file.
13720
13721         Tests for module 'unicase/u8-casecoll'.
13722         * modules/unicase/u8-casecoll-tests: New file.
13723         * tests/unicase/test-u8-casecoll.c: New file.
13724
13725         New module 'unicase/u32-casecoll'.
13726         * lib/unicase/u32-casecoll.c: New file.
13727         * modules/unicase/u32-casecoll: New file.
13728
13729         New module 'unicase/u16-casecoll'.
13730         * lib/unicase/u16-casecoll.c: New file.
13731         * modules/unicase/u16-casecoll: New file.
13732
13733         New module 'unicase/u8-casecoll'.
13734         * lib/unicase/u8-casecoll.c: New file.
13735         * lib/unicase/u-casecoll.h: New file.
13736         * modules/unicase/u8-casecoll: New file.
13737
13738         New module 'unicase/u32-casexfrm'.
13739         * lib/unicase/u32-casexfrm.c: New file.
13740         * modules/unicase/u32-casexfrm: New file.
13741
13742         New module 'unicase/u16-casexfrm'.
13743         * lib/unicase/u16-casexfrm.c: New file.
13744         * modules/unicase/u16-casexfrm: New file.
13745
13746         New module 'unicase/u8-casexfrm'.
13747         * lib/unicase/u8-casexfrm.c: New file.
13748         * lib/unicase/u-casexfrm.h: New file.
13749         * modules/unicase/u8-casexfrm: New file.
13750
13751         Tests for module 'unicase/u32-casecmp'.
13752         * modules/unicase/u32-casecmp-tests: New file.
13753         * tests/unicase/test-u32-casecmp.c: New file.
13754
13755         Tests for module 'unicase/u16-casecmp'.
13756         * modules/unicase/u16-casecmp-tests: New file.
13757         * tests/unicase/test-u16-casecmp.c: New file.
13758
13759         Tests for module 'unicase/u8-casecmp'.
13760         * modules/unicase/u8-casecmp-tests: New file.
13761         * tests/unicase/test-u8-casecmp.c: New file.
13762         * tests/unicase/test-casecmp.h: New file.
13763
13764         New module 'unicase/u32-casecmp'.
13765         * lib/unicase/u32-casecmp.c: New file.
13766         * modules/unicase/u32-casecmp: New file.
13767
13768         New module 'unicase/u16-casecmp'.
13769         * lib/unicase/u16-casecmp.c: New file.
13770         * modules/unicase/u16-casecmp: New file.
13771
13772         New module 'unicase/u8-casecmp'.
13773         * lib/unicase/u8-casecmp.c: New file.
13774         * lib/unicase/u-casecmp.h: New file.
13775         * modules/unicase/u8-casecmp: New file.
13776
13777         Tests for module 'unicase/u32-casefold'.
13778         * modules/unicase/u32-casefold-tests: New file.
13779         * tests/unicase/test-u32-casefold.c: New file.
13780
13781         Tests for module 'unicase/u16-casefold'.
13782         * modules/unicase/u16-casefold-tests: New file.
13783         * tests/unicase/test-u16-casefold.c: New file.
13784
13785         Tests for module 'unicase/u8-casefold'.
13786         * modules/unicase/u8-casefold-tests: New file.
13787         * tests/unicase/test-u8-casefold.c: New file.
13788
13789         New module 'unicase/u32-casefold'.
13790         * lib/unicase/u32-casefold.c: New file.
13791         * modules/unicase/u32-casefold: New file.
13792
13793         New module 'unicase/u16-casefold'.
13794         * lib/unicase/u16-casefold.c: New file.
13795         * modules/unicase/u16-casefold: New file.
13796
13797         New module 'unicase/u8-casefold'.
13798         * lib/unicase/u8-casefold.c: New file.
13799         * lib/unicase/u-casefold.h: New file.
13800         * modules/unicase/u8-casefold: New file.
13801
13802         New module 'unicase/tocasefold'.
13803         * lib/unicase/casefold.h: New file.
13804         * lib/unicase/tocasefold.c: New file.
13805         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13806         * modules/unicase/tocasefold: New file.
13807
13808         Tests for module 'unicase/u32-totitle'.
13809         * modules/unicase/u32-totitle-tests: New file.
13810         * tests/unicase/test-u32-totitle.c: New file.
13811
13812         Tests for module 'unicase/u16-totitle'.
13813         * modules/unicase/u16-totitle-tests: New file.
13814         * tests/unicase/test-u16-totitle.c: New file.
13815
13816         Tests for module 'unicase/u8-totitle'.
13817         * modules/unicase/u8-totitle-tests: New file.
13818         * tests/unicase/test-u8-totitle.c: New file.
13819
13820         New module 'unicase/u32-totitle'.
13821         * lib/unicase/u32-totitle.c: New file.
13822         * modules/unicase/u32-totitle: New file.
13823
13824         New module 'unicase/u16-totitle'.
13825         * lib/unicase/u16-totitle.c: New file.
13826         * modules/unicase/u16-totitle: New file.
13827
13828         New module 'unicase/u8-totitle'.
13829         * lib/unicase/u8-totitle.c: New file.
13830         * lib/unicase/u-totitle.h: New file.
13831         * modules/unicase/u8-totitle: New file.
13832
13833         Tests for module 'unicase/u32-tolower'.
13834         * modules/unicase/u32-tolower-tests: New file.
13835         * tests/unicase/test-u32-tolower.c: New file.
13836
13837         Tests for module 'unicase/u16-tolower'.
13838         * modules/unicase/u16-tolower-tests: New file.
13839         * tests/unicase/test-u16-tolower.c: New file.
13840
13841         Tests for module 'unicase/u8-tolower'.
13842         * modules/unicase/u8-tolower-tests: New file.
13843         * tests/unicase/test-u8-tolower.c: New file.
13844
13845         New module 'unicase/u32-tolower'.
13846         * lib/unicase/u32-tolower.c: New file.
13847         * modules/unicase/u32-tolower: New file.
13848
13849         New module 'unicase/u16-tolower'.
13850         * lib/unicase/u16-tolower.c: New file.
13851         * modules/unicase/u16-tolower: New file.
13852
13853         New module 'unicase/u8-tolower'.
13854         * lib/unicase/u8-tolower.c: New file.
13855         * modules/unicase/u8-tolower: New file.
13856
13857         Tests for module 'unicase/u32-toupper'.
13858         * modules/unicase/u32-toupper-tests: New file.
13859         * tests/unicase/test-u32-toupper.c: New file.
13860
13861         Tests for module 'unicase/u16-toupper'.
13862         * modules/unicase/u16-toupper-tests: New file.
13863         * tests/unicase/test-u16-toupper.c: New file.
13864
13865         Tests for module 'unicase/u8-toupper'.
13866         * modules/unicase/u8-toupper-tests: New file.
13867         * tests/unicase/test-u8-toupper.c: New file.
13868
13869         New module 'unicase/u32-toupper'.
13870         * lib/unicase/u32-toupper.c: New file.
13871         * modules/unicase/u32-toupper: New file.
13872
13873         New module 'unicase/u16-toupper'.
13874         * lib/unicase/u16-toupper.c: New file.
13875         * modules/unicase/u16-toupper: New file.
13876
13877         New module 'unicase/u8-toupper'.
13878         * lib/unicase/u8-toupper.c: New file.
13879         * modules/unicase/u8-toupper: New file.
13880
13881         New module 'unicase/u32-casemap'.
13882         * lib/unicase/u32-casemap.c: New file.
13883         * modules/unicase/u32-casemap: New file.
13884
13885         New module 'unicase/u16-casemap'.
13886         * lib/unicase/u16-casemap.c: New file.
13887         * modules/unicase/u16-casemap: New file.
13888
13889         New module 'unicase/u8-casemap'.
13890         * lib/unicase/unicasemap.h: New file.
13891         * lib/unicase/u8-casemap.c: New file.
13892         * lib/unicase/u-casemap.h: New file.
13893         * modules/unicase/u8-casemap: New file.
13894
13895         New module 'unicase/special-casing'.
13896         * lib/unicase/special-casing.h: New file.
13897         * lib/unicase/special-casing.c: New file.
13898         * lib/unicase/special-casing-table.gperf: New file, generated by
13899         gen-uni-tables.c.
13900         * modules/unicase/special-casing: New file.
13901
13902         Tests for module 'unicase/locale-language'.
13903         * modules/unicase/locale-language-tests: New file.
13904         * tests/unicase/test-locale-language.sh: New file.
13905         * tests/unicase/test-locale-language.c: New file.
13906
13907         New module 'unicase/locale-language'.
13908         * lib/unicase/locale-language.c: New file.
13909         * lib/unicase/locale-languages.gperf: New file.
13910         * modules/unicase/locale-language: New file.
13911
13912         Generate more tables for case conversion and case folding.
13913         * lib/gen-uni-tables.c (SCC_*): New enum items.
13914         (struct special_casing_rule): New type.
13915         (casing_rules, num_casing_rules, allocated_casing_rules): New
13916         variables.
13917         (add_casing_rule, fill_casing_rules): New functions.
13918         (struct casefold_rule): New type.
13919         (casefolding_rules, num_casefolding_rules,
13920         allocated_casefolding_rules): New variables.
13921         (fill_casefolding_rules): New function.
13922         (unicode_casefold): New variable.
13923         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13924         sort_casing_rules, output_casing_rules): New functions.
13925         (main): Accept to more arguments: SpecialCasing.txt and
13926         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13927         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13928         Output mapping for casefolding.
13929
13930         * lib/unicase.h: Include stdbool.h, uninorm.h.
13931         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13932         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13933         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13934         arguments.
13935         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13936         resultp arguments.
13937         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13938         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13939         resultp arguments.
13940         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13941         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13942         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13943         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13944         declarations.
13945         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13946
13947 2009-03-08  Bruno Haible  <bruno@clisp.org>
13948
13949         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13950         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13951         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13952         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13953
13954 2009-03-07  Bruno Haible  <bruno@clisp.org>
13955
13956         Adjust u*_normcmp, u*_normcoll API.
13957         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13958         u16_normcoll, u32_normcoll): Change failure conventions.
13959         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13960         errno and return -1.
13961         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13962
13963 2009-03-07  Bruno Haible  <bruno@clisp.org>
13964
13965         Tests for module 'uninorm/u32-normcoll'.
13966         * modules/uninorm/u32-normcoll-tests: New file.
13967         * tests/uninorm/test-u32-normcoll.c: New file.
13968
13969         Tests for module 'uninorm/u16-normcoll'.
13970         * modules/uninorm/u16-normcoll-tests: New file.
13971         * tests/uninorm/test-u16-normcoll.c: New file.
13972
13973         Tests for module 'uninorm/u8-normcoll'.
13974         * modules/uninorm/u8-normcoll-tests: New file.
13975         * tests/uninorm/test-u8-normcoll.c: New file.
13976
13977 2009-03-07  Bruno Haible  <bruno@clisp.org>
13978
13979         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13980         tests/uninorm/test-u32-normcmp.c.
13981         * tests/uninorm/test-u32-normcmp.c: Include it.
13982         (test_nonascii): New function, extracted from main. Add some more
13983         tests.
13984         (main): Invoke test_ascii and test_nonascii.
13985         * modules/uninorm/u32-normcmp-tests (Files): Add
13986         tests/uninorm/test-u32-normcmp.h.
13987         (Depends-on): Remove uninorm/u32-normcmp.
13988
13989         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13990         tests/uninorm/test-u16-normcmp.c.
13991         * tests/uninorm/test-u16-normcmp.c: Include it.
13992         (test_nonascii): New function, extracted from main. Add some more
13993         tests.
13994         (main): Invoke test_ascii and test_nonascii.
13995         * modules/uninorm/u16-normcmp-tests (Files): Add
13996         tests/uninorm/test-u16-normcmp.h.
13997         (Depends-on): Remove uninorm/u16-normcmp.
13998
13999         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14000         tests/uninorm/test-u8-normcmp.c.
14001         * tests/uninorm/test-u8-normcmp.c: Include it.
14002         (test_nonascii): New function, extracted from main. Add some more
14003         tests.
14004         (main): Invoke test_ascii and test_nonascii.
14005         * modules/uninorm/u8-normcmp-tests (Files): Add
14006         tests/uninorm/test-u8-normcmp.h.
14007         (Depends-on): Remove uninorm/u8-normcmp.
14008
14009 2009-03-07  Bruno Haible  <bruno@clisp.org>
14010
14011         New module 'uninorm/u32-normcoll'.
14012         * lib/uninorm/u32-normcoll.c: New file.
14013         * modules/uninorm/u32-normcoll: New file.
14014
14015         New module 'uninorm/u16-normcoll'.
14016         * lib/uninorm/u16-normcoll.c: New file.
14017         * modules/uninorm/u16-normcoll: New file.
14018
14019         New module 'uninorm/u8-normcoll'.
14020         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14021         declarations.
14022         * lib/uninorm/u8-normcoll.c: New file.
14023         * lib/uninorm/u-normcoll.h: New file.
14024         * modules/uninorm/u8-normcoll: New file.
14025
14026         New module 'uninorm/u32-normxfrm'.
14027         * lib/uninorm/u32-normxfrm.c: New file.
14028         * modules/uninorm/u32-normxfrm: New file.
14029
14030         New module 'uninorm/u16-normxfrm'.
14031         * lib/uninorm/u16-normxfrm.c: New file.
14032         * modules/uninorm/u16-normxfrm: New file.
14033
14034         New module 'uninorm/u8-normxfrm'.
14035         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14036         declarations.
14037         * lib/uninorm/u8-normxfrm.c: New file.
14038         * lib/uninorm/u-normxfrm.h: New file.
14039         * modules/uninorm/u8-normxfrm: New file.
14040
14041 2009-03-07  Bruno Haible  <bruno@clisp.org>
14042
14043         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14044         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14045         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14046
14047 2009-03-07  Bruno Haible  <bruno@clisp.org>
14048
14049         New module 'memxfrm'.
14050         * lib/memxfrm.h: New file.
14051         * lib/memxfrm.c: New file.
14052         * modules/memxfrm: New file.
14053
14054 2009-03-07  Bruno Haible  <bruno@clisp.org>
14055
14056         New module 'memcmp2'.
14057         * lib/memcmp2.h: New file.
14058         * lib/memcmp2.c: New file.
14059         * modules/memcmp2: New file.
14060
14061 2009-03-07  Bruno Haible  <bruno@clisp.org>
14062
14063         Tests for module 'uninorm/decomposing-form'.
14064         * modules/uninorm/decomposing-form-tests: New file.
14065         * tests/uninorm/test-decomposing-form.c: New file.
14066
14067         New module 'uninorm/decomposing-form'.
14068         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14069         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14070         Add 'decomposing_variant' field.
14071         * lib/uninorm/decomposing-form.c: New file.
14072         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14073         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14074         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14075         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14076         * modules/uninorm/decomposing-form: New file.
14077         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14078         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14079
14080 2009-03-07  Bruno Haible  <bruno@clisp.org>
14081
14082         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14083         strings.
14084
14085 2009-03-06  Bruno Haible  <bruno@clisp.org>
14086
14087         Tests for module 'uninorm/u32-normcmp'.
14088         * tests/uninorm/test-u32-normcmp.c: New file.
14089         * modules/uninorm/u32-normcmp-tests: New file.
14090
14091         Tests for module 'uninorm/u16-normcmp'.
14092         * tests/uninorm/test-u16-normcmp.c: New file.
14093         * modules/uninorm/u16-normcmp-tests: New file.
14094
14095         Tests for module 'uninorm/u8-normcmp'.
14096         * tests/uninorm/test-u8-normcmp.c: New file.
14097         * modules/uninorm/u8-normcmp-tests: New file.
14098
14099         New module 'uninorm/u32-normcmp'.
14100         * lib/uninorm/u32-normcmp.c: New file.
14101         * modules/uninorm/u32-normcmp: New file.
14102
14103         New module 'uninorm/u16-normcmp'.
14104         * lib/uninorm/u16-normcmp.c: New file.
14105         * modules/uninorm/u16-normcmp: New file.
14106
14107         New module 'uninorm/u8-normcmp'.
14108         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14109         declarations.
14110         * lib/uninorm/u8-normcmp.c: New file.
14111         * lib/uninorm/u-normcmp.h: New file.
14112         * modules/uninorm/u8-normcmp: New file.
14113
14114 2009-03-06  Bruno Haible  <bruno@clisp.org>
14115
14116         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14117         Reported by Eric Blake.
14118
14119 2009-03-06  Eric Blake  <ebb9@byu.net>
14120             Bruno Haible  <bruno@clisp.org>
14121
14122         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14123         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14124         condition.
14125         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14126         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14127         condition.
14128         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14129
14130 2009-03-06  Eric Blake  <ebb9@byu.net>
14131
14132         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14133         to avoid compiler warnings.
14134         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14135
14136 2009-03-05  Bruno Haible  <bruno@clisp.org>
14137
14138         * tests/test-ftell.c (main): Disable test beyond end of file on
14139         FreeMiNT.
14140         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14141
14142 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14143
14144         * lib/filevercmp.c: Move hidden files up in ordering.
14145         * tests/test-filevercmp.c: Add tests for hidden files.
14146
14147 2009-03-04  Bruno Haible  <bruno@clisp.org>
14148
14149         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14150         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14151         AM_CFLAGS.
14152         Reported by Simon Josefsson.
14153
14154 2009-03-03  Bruno Haible  <bruno@clisp.org>
14155
14156         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14157         Reported by Simon Josefsson.
14158
14159         * doc/ld-version-script.texi: Update node reference.
14160
14161 2009-03-03  Bruno Haible  <bruno@clisp.org>
14162
14163         * modules/visibility (License): Change to 'unlimited'.
14164         Suggested by Simon Josefsson.
14165
14166 2009-03-03  Jim Meyering  <meyering@redhat.com>
14167
14168         unlinkdir: cannot_unlink_dir may modify process state
14169         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14170         it's neither thread-safe nor appropriate for use in a library.
14171
14172 2009-03-03  Eric Blake  <ebb9@byu.net>
14173
14174         test-closein: silence test under Darwin
14175         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14176         care if it dies from EPIPE or EBADF.
14177
14178 2009-03-03  Bruno Haible  <bruno@clisp.org>
14179
14180         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14181         earlier.
14182         * doc/visibility.texi: Fix @node and @section.
14183
14184 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14185
14186         * doc/gnulib.texi: Link to sections for ld version script and
14187         visibility.
14188         * doc/visibility.texi: Add @node and @section.
14189         * modules/ld-version-script: New module.
14190         * m4/ld-version-script.m4: New file.
14191         * doc/ld-version-script.texi: New file.
14192
14193 2009-03-02  David Lutterkort  <lutter@redhat.com>
14194
14195         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14197
14198 2009-03-02  Bruno Haible  <bruno@clisp.org>
14199
14200         * doc/visibility.texi: Mention libtool's -export-symbols option.
14201
14202 2009-03-02  Jim Meyering  <meyering@redhat.com>
14203
14204         announce-gen: new option: --no-print-checksums
14205         * build-aux/announce-gen (usage): Describe it.
14206         (print_checksums): Print a newline here, not in the [*] footnote.
14207         (main): Honor it.
14208
14209 2009-03-01  Bruno Haible  <bruno@clisp.org>
14210
14211         Use socklen_t in the native Windows replacements prototypes.
14212         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14213         instead of 'int'.
14214         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14215         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14216         * modules/getsockopt (Depends-on): Add socklen.
14217         * modules/setsockopt (Depends-on): Add socklen.
14218
14219 2009-03-01  Bruno Haible  <bruno@clisp.org>
14220
14221         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14222         least 4.2.
14223
14224 2009-03-01  Eric Blake  <ebb9@byu.net>
14225             Bruno Haible  <bruno@clisp.org>
14226
14227         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14228         error messages.
14229         * lib/wait-process.c (wait_subprocess): Omit error message about
14230         deadly signal sent to the child of termsigp != NULL.
14231
14232 2009-03-01  Eric Blake  <ebb9@byu.net>
14233
14234         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14235
14236 2009-03-01  Bruno Haible  <bruno@clisp.org>
14237
14238         Avoid a gcc warning.
14239         * tests/test-sched.c (b): Make global.
14240         Reported by Eric Blake.
14241
14242 2009-01-19  Martin Lambers  <marlam@marlam.de>
14243
14244         Provide POSIX semantics for socket timeout options on W32.
14245         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14246         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14247         * modules/setsockopt: Depend on sys_time module for struct timeval.
14248         * modules/getsockopt: Depend on sys_time module for struct timeval.
14249
14250 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14251
14252         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14253         __USE_GNU, for consistency with netdb.in.h.
14254         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14255
14256 2009-03-01  Bruno Haible  <bruno@clisp.org>
14257
14258         More support for FreeMiNT.
14259         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14260         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14261
14262 2009-03-01  Bruno Haible  <bruno@clisp.org>
14263
14264         More support for FreeMiNT.
14265         * lib/fpurge.c (fpurge): Correct last commit.
14266         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14267
14268 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14269
14270         Fix unportable awk script in vc-list-files.
14271         * build-aux/vc-list-files: In the replacement awk script, use
14272         substr with a second argument of 1, not zero.
14273         Report by Simon Josefsson.
14274
14275 2009-02-28  Bruno Haible  <bruno@clisp.org>
14276
14277         More support for FreeMiNT.
14278         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14279         to FreeMiNT today.
14280         * lib/fwriting.c (fwriting): Likewise.
14281         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14282
14283 2009-02-28  Bruno Haible  <bruno@clisp.org>
14284
14285         * tests/test-freadseek.c (main): Disable test beyond end of file on
14286         FreeMiNT.
14287         * tests/test-ftello.c (main): Likewise.
14288         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14289
14290 2009-02-28  Bruno Haible  <bruno@clisp.org>
14291
14292         Add tentative support for FreeMiNT.
14293         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14294         * lib/fpurge.c (fpurge): Likewise.
14295         * lib/freadable.c (freadable): Likewise.
14296         * lib/freading.c (freading): Likewise.
14297         * lib/freadptr.c (freadptr): Likewise.
14298         * lib/freadseek.c (freadptrinc): Likewise.
14299         * lib/fseeko.c (rpl_fseeko): Likewise.
14300         * lib/fseterr.c (fseterr): Likewise.
14301         * lib/fwritable.c (fwritable): Likewise.
14302         * lib/fwriting.c (fwriting): Likewise.
14303         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14304         Hourihane.
14305         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14306
14307 2009-02-28  Bruno Haible  <bruno@clisp.org>
14308
14309         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14310         SIGCHLD.
14311         Reported by Jim Meyering.
14312
14313 2009-02-28  Bruno Haible  <bruno@clisp.org>
14314
14315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14316         Mention the results of these tests on various platforms.
14317         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14318         order.
14319         * doc/posix-functions/printf.texi: Likewise.
14320         * doc/posix-functions/snprintf.texi: Likewise.
14321         * doc/posix-functions/sprintf.texi: Likewise.
14322         * doc/posix-functions/vfprintf.texi: Likewise.
14323         * doc/posix-functions/vprintf.texi: Likewise.
14324         * doc/posix-functions/vsnprintf.texi: Likewise.
14325         * doc/posix-functions/vsprintf.texi: Likewise.
14326         * doc/glibc-functions/obstack_printf.texi: Likewise.
14327         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14328
14329 2009-02-28  Bruno Haible  <bruno@clisp.org>
14330
14331         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14332         Reported by Loïc Minier <lool@dooz.org>.
14333
14334 2009-02-27  Bruno Haible  <bruno@clisp.org>
14335
14336         * gnulib-tool (func_import): Make the sed expression used to create the
14337         sed script for updating the .gitignore file POSIX compliant.
14338         Reported by Eric Blake.
14339
14340 2009-02-27  Bruno Haible  <bruno@clisp.org>
14341
14342         * gnulib-tool (sed): Don't alias as "sed --posix".
14343         Reported by Eric Blake.
14344
14345 2009-02-27  Bruno Haible  <bruno@clisp.org>
14346
14347         Avoid test link errors.
14348         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14349         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14350         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14351         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14353
14354 2009-02-27  Bruno Haible  <bruno@clisp.org>
14355
14356         Avoid spurious "(cached)" in configure output.
14357         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14358         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14360         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14361         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14362         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14363         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14364         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14365         Reported by Eric Blake.
14366
14367 2009-02-27  Eric Blake  <ebb9@byu.net>
14368
14369         printf: fix regression in previous patch
14370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14371
14372 2009-02-27  Bruno Haible  <bruno@clisp.org>
14373
14374         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14375         value.
14376         * lib/stdint.in.h: Likewise.
14377         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14378
14379 2009-02-27  Eric Blake  <ebb9@byu.net>
14380
14381         doc: mention more functions added in cygwin 1.7.0
14382         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14383         addition.
14384         * doc/posix-functions/open_wmemstream.texi: Likewise.
14385         * doc/posix-functions/wcsnlen.texi: Likewise.
14386         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14387         * doc/posix-functions/wcstod.texi: Likewise.
14388         * doc/posix-functions/wcstof.texi: Likewise.
14389         * doc/posix-functions/wcstoimax.texi: Likewise.
14390         * doc/posix-functions/wcstok.texi: Likewise.
14391         * doc/posix-functions/wcstoumax.texi: Likewise.
14392
14393         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14394         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14395         * doc/posix-functions/fprintf.texi: Update.
14396         * doc/posix-functions/printf.texi: Update.
14397         * doc/posix-functions/snprintf.texi: Update.
14398         * doc/posix-functions/sprintf.texi: Update.
14399         * doc/posix-functions/vfprintf.texi: Update.
14400         * doc/posix-functions/vprintf.texi: Update.
14401         * doc/posix-functions/vsnprintf.texi: Update.
14402         * doc/posix-functions/vsprintf.texi: Update.
14403         * doc/glibc-functions/obstack_printf.texi: Update.
14404         * doc/glibc-functions/obstack_vprintf.texi: Update.
14405
14406 2009-02-26  Eric Blake  <ebb9@byu.net>
14407
14408         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14409         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14410         compilation bug by using runtime conversion.
14411         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14412         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14413         * modules/ceill-tests (Files): Use nan.h.
14414         * modules/floorl-tests (Files): Likewise.
14415         * modules/frexpl-tests (Files): Likewise.
14416         * modules/isnanl-tests (Files): Likewise.
14417         * modules/ldexpl-tests (Files): Likewise.
14418         * modules/roundl-tests (Files): Likewise.
14419         * modules/truncl-tests (Files): Likewise.
14420         * tests/test-ceill.c (main): Use a working NaN.
14421         * tests/test-floorl.c (main): Likewise.
14422         * tests/test-frexpl.c (main): Likewise.
14423         * tests/test-isnan.c (test_long_double): Likewise.
14424         * tests/test-isnanl.h (main): Likewise.
14425         * tests/test-ldexpl.h (main): Likewise.
14426         * tests/test-roundl.h (main): Likewise.
14427         * tests/test-truncl.h (main): Likewise.
14428         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14429
14430 2009-02-26  Eric Blake  <ebb9@byu.net>
14431             Bruno Haible  <bruno@clisp.org>
14432
14433         Work around a *printf bug with %ls on Solaris.
14434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14435         precision is specified, sprintf stops converting the wide string
14436         argument when the number of bytes that have been produced by this
14437         conversion equals or exceeds the precision.
14438         * doc/posix-functions/fprintf.texi: Update.
14439         * doc/posix-functions/printf.texi: Update.
14440         * doc/posix-functions/snprintf.texi: Update.
14441         * doc/posix-functions/sprintf.texi: Update.
14442         * doc/posix-functions/vfprintf.texi: Update.
14443         * doc/posix-functions/vprintf.texi: Update.
14444         * doc/posix-functions/vsnprintf.texi: Update.
14445         * doc/posix-functions/vsprintf.texi: Update.
14446         * doc/glibc-functions/obstack_printf.texi: Update.
14447         * doc/glibc-functions/obstack_vprintf.texi: Update.
14448
14449 2009-02-26  Eric Blake  <ebb9@byu.net>
14450
14451         stdlib: favor compiler check of random.h
14452         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14453         to avoid an ObjC random.h installed by Swarm.
14454
14455 2009-02-26  Bruno Haible  <bruno@clisp.org>
14456
14457         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14458         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14459         Reported by Gary V. Vaughan <gary@gnu.org>.
14460
14461 2009-02-26  Bruno Haible  <bruno@clisp.org>
14462
14463         Fix *printf behaviour regarding the %ls directive.
14464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14465         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14466         NEED_PRINTF_DIRECTIVE_LS.
14467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14468         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14469         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14470         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14471         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14472         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14478         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14482         * doc/posix-functions/fprintf.texi: Update.
14483         * doc/posix-functions/printf.texi: Update.
14484         * doc/posix-functions/snprintf.texi: Update.
14485         * doc/posix-functions/sprintf.texi: Update.
14486         * doc/posix-functions/vfprintf.texi: Update.
14487         * doc/posix-functions/vprintf.texi: Update.
14488         * doc/posix-functions/vsnprintf.texi: Update.
14489         * doc/posix-functions/vsprintf.texi: Update.
14490         * doc/glibc-functions/obstack_printf.texi: Update.
14491         * doc/glibc-functions/obstack_vprintf.texi: Update.
14492         Reported by Eric Blake.
14493
14494 2009-02-25  Bruno Haible  <bruno@clisp.org>
14495
14496         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14497         with known value.
14498         Reported by Gary V. Vaughan <gary@gnu.org>.
14499
14500 2009-02-25  Bruno Haible  <bruno@clisp.org>
14501
14502         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14503         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14504         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14505         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14506         Reported by Gary V. Vaughan <gary@gnu.org>.
14507
14508 2009-02-25  Bruno Haible  <bruno@clisp.org>
14509
14510         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14511         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14512         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14513         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14514         Reported by Gary V. Vaughan <gary@gnu.org>.
14515
14516 2009-02-25  Eric Blake  <ebb9@byu.net>
14517
14518         tests: skip fseek/ftell tests if ungetc is broken
14519         * m4/ungetc.m4: New file.
14520         * modules/fseek-tests: Split test, so ungetc dependency is
14521         separate from rest of test.
14522         * modules/fseeko-tests: Likewise.
14523         * modules/ftell-tests: Likewise.
14524         * modules/ftello-tests: Likewise.
14525         * tests/test-fseek.c (main): Isolate ungetc dependency.
14526         * tests/test-fseeko.c (main): Likewise.
14527         * tests/test-ftell.c (main): Likewise.
14528         * tests/test-ftello.c (main): Likewise.
14529         * tests/test-fseek2.sh: New file.
14530         * tests/test-fseeko2.sh: Likewise.
14531         * tests/test-ftell2.sh: Likewise.
14532         * tests/test-ftello2.sh: Likewise.
14533
14534 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14535
14536         test-getaddrinfo: fix usage of skip return code 77
14537         * tests/test-gettaddrinfo.c: Return skip code 77 only
14538         for first occurance of skip (4x77 is not 77)
14539
14540 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14541
14542         strtod: avoid C99 decl-after-statement
14543         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14544
14545 2009-02-24  Eric Blake  <ebb9@byu.net>
14546
14547         strtod: detect HP-UX 11.31 bug
14548         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14549         Reported by Gary V. Vaughan.
14550
14551 2009-02-23  Bruno Haible  <bruno@clisp.org>
14552
14553         Fix invalid read past end of memory block.
14554         * lib/vasnprintf.c (DCHAR_SET): Define.
14555         (local_wcslen): Define only when needed.
14556         (local_strnlen, local_wcsnlen): New functions.
14557         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14558         directives that involve a conversion ourselves.
14559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14560         wcsnlen, mbrtowc, wcrtomb.
14561         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14562         * tests/test-vasprintf-posix.c (test_function): Likewise.
14563         * tests/test-snprintf-posix.h (test_function): Likewise.
14564         * tests/test-sprintf-posix.h (test_function): Likewise.
14565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14566
14567 2009-02-22  Bruno Haible  <bruno@clisp.org>
14568
14569         Implement new clarified decomposition of Hangul syllables.
14570         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14571         of type LTV, return only a pairwise decomposition.
14572         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14573         Likewise.
14574         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14575         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14576         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14577
14578 2009-02-22  Bruno Haible  <bruno@clisp.org>
14579
14580         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14581         zero-length results and shrink excess allocated memory.
14582         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14583         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14584         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14585         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14586         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14587         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14588         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14589         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14590         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14591         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14592         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14593         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14594
14595 2009-02-21  Bruno Haible  <bruno@clisp.org>
14596
14597         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14598         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14599         spaces after a period. Put a space between a macro name and its
14600         argument list. Trivial rewordings.
14601         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14602         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14603         (main): Return 0 explicitly.
14604
14605 2009-02-21  Bruno Haible  <bruno@clisp.org>
14606
14607         Tests for module 'uninorm/filter'.
14608         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14609         * modules/uninorm/filter-tests: New file.
14610
14611         New module 'uninorm/filter'.
14612         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14613         uninorm_filter_flush, uninorm_filter_free): New declarations.
14614         * lib/uninorm/uninorm-filter.c: New file.
14615         * modules/uninorm/filter: New file.
14616
14617 2009-02-21  Bruno Haible  <bruno@clisp.org>
14618
14619         Tests for module 'uninorm/nfkc'.
14620         * tests/uninorm/test-nfkc.c: New file.
14621         * tests/uninorm/test-u8-nfkc.c: New file.
14622         * tests/uninorm/test-u16-nfkc.c: New file.
14623         * tests/uninorm/test-u32-nfkc.c: New file.
14624         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14625         * tests/uninorm/test-u32-nfkc-big.c: New file.
14626         * modules/uninorm/nfkc-tests: New file.
14627
14628         New module 'uninorm/nfkc'.
14629         * lib/uninorm/nfkc.c: New file.
14630         * modules/uninorm/nfkc: New file.
14631
14632         Tests for module 'uninorm/nfkd'.
14633         * tests/uninorm/test-nfkd.c: New file.
14634         * tests/uninorm/test-u8-nfkd.c: New file.
14635         * tests/uninorm/test-u16-nfkd.c: New file.
14636         * tests/uninorm/test-u32-nfkd.c: New file.
14637         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14638         * tests/uninorm/test-u32-nfkd-big.c: New file.
14639         * modules/uninorm/nfkd-tests: New file.
14640
14641         New module 'uninorm/nfkd'.
14642         * lib/uninorm/nfkd.c: New file.
14643         * modules/uninorm/nfkd: New file.
14644
14645         Tests for module 'uninorm/nfc'.
14646         * tests/uninorm/test-nfc.c: New file.
14647         * tests/uninorm/test-u8-nfc.c: New file.
14648         * tests/uninorm/test-u16-nfc.c: New file.
14649         * tests/uninorm/test-u32-nfc.c: New file.
14650         * tests/uninorm/test-u32-nfc-big.sh: New file.
14651         * tests/uninorm/test-u32-nfc-big.c: New file.
14652         * modules/uninorm/nfc-tests: New file.
14653
14654         New module 'uninorm/nfc'.
14655         * lib/uninorm/nfc.c: New file.
14656         * modules/uninorm/nfc: New file.
14657
14658         Tests for module 'uninorm/nfd'.
14659         * tests/uninorm/test-nfd.c: New file.
14660         * tests/uninorm/test-u8-nfd.c: New file.
14661         * tests/uninorm/test-u16-nfd.c: New file.
14662         * tests/uninorm/test-u32-nfd.c: New file.
14663         * tests/uninorm/test-u32-nfd-big.sh: New file.
14664         * tests/uninorm/test-u32-nfd-big.c: New file.
14665         * tests/uninorm/test-u32-normalize-big.h: New file.
14666         * tests/uninorm/test-u32-normalize-big.c: New file.
14667         * tests/uninorm/NormalizationTest.txt: New file, created from
14668         Unicode 5.1.0 NormalizationTest.txt.
14669         * modules/uninorm/nfd-tests: New file.
14670
14671         New module 'uninorm/nfd'.
14672         * lib/uninorm/nfd.c: New file.
14673         * modules/uninorm/nfd: New file.
14674
14675         New module 'uninorm/u32-normalize'.
14676         * lib/uninorm/u32-normalize.c: New file.
14677         * modules/uninorm/u32-normalize: New file.
14678
14679         New module 'uninorm/u16-normalize'.
14680         * lib/uninorm/u16-normalize.c: New file.
14681         * modules/uninorm/u16-normalize: New file.
14682
14683         New module 'uninorm/u8-normalize'.
14684         * lib/uninorm/u8-normalize.c: New file.
14685         * lib/uninorm/normalize-internal.h: New file.
14686         * lib/uninorm/u-normalize-internal.h: New file.
14687         * modules/uninorm/u8-normalize: New file.
14688
14689         New module 'uninorm/decompose-internal'.
14690         * lib/uninorm/decompose-internal.c: New file.
14691         * modules/uninorm/decompose-internal: New file.
14692
14693         Tests for module 'uninorm/composition'.
14694         * tests/uninorm/test-composition.c: New file.
14695         * modules/uninorm/composition-tests: New file.
14696
14697         New module 'uninorm/composition'.
14698         * lib/uninorm/composition.c: New file.
14699         * lib/uninorm/composition-table.gperf: New file, generated by
14700         gen-uni-tables.
14701         * modules/uninorm/composition: New file.
14702
14703         Tests for module 'uninorm/compat-decomposition'.
14704         * tests/uninorm/test-compat-decomposition.c: New file.
14705         * modules/uninorm/compat-decomposition-tests: New file.
14706
14707         New module 'uninorm/compat-decomposition'.
14708         * lib/uninorm/decompose-internal.h: New file.
14709         * lib/uninorm/compat-decomposition.c: New file.
14710         * modules/uninorm/compat-decomposition: New file.
14711
14712         Tests for module 'uninorm/canonical-decomposition'.
14713         * tests/uninorm/test-canonical-decomposition.c: New file.
14714         * modules/uninorm/canonical-decomposition-tests: New file.
14715
14716         New module 'uninorm/canonical-decomposition'.
14717         * lib/uninorm/canonical-decomposition.c: New file.
14718         * modules/uninorm/canonical-decomposition: New file.
14719
14720         Tests for module 'uninorm/decomposition'.
14721         * tests/uninorm/test-decomposition.c: New file.
14722         * modules/uninorm/decomposition-tests: New file.
14723
14724         New module 'uninorm/decomposition'.
14725         * lib/uninorm/decomposition.c: New file.
14726         * modules/uninorm/decomposition: New file.
14727
14728         New module 'uninorm/decomposition-table'.
14729         * lib/uninorm/decomposition-table.h: New file.
14730         * lib/uninorm/decomposition-table.c: New file.
14731         * lib/uninorm/decomposition-table1.h: New file, generated by
14732         gen-uni-tables.
14733         * lib/uninorm/decomposition-table2.h: New file, generated by
14734         gen-uni-tables.
14735         * modules/uninorm/decomposition-table: New file.
14736
14737         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14738         (UC_DECOMP_*): New enumeration items.
14739         (get_decomposition): New function.
14740         (struct decomp_table): New type.
14741         (output_decomposition, output_decomposition_tables): New functions.
14742         (unicode_composition_exclusions): New variable.
14743         (fill_composition_exclusions, debug_output_composition_tables): New
14744         functions.
14745         (main): Accept one more argument. Invoke fill_composition_exclusions.
14746         Output decomposition and composition tables.
14747
14748         New module 'uninorm/base'.
14749         * lib/uninorm.h: New file.
14750         * lib/unictype.h: Update comment.
14751         * modules/uninorm/base: New file.
14752
14753 2009-02-21  David Lutterkort  <lutter@redhat.com>
14754
14755         Tests for module 'safe-alloc'.
14756         * tests/test-safe-alloc.c: New file.
14757         * modules/safe-alloc-tests: New file.
14758
14759         New module 'safe-alloc'.
14760         * lib/safe-alloc.h: New file.
14761         * lib/safe-alloc.c: New file.
14762         * m4/safe-alloc.m4: New file.
14763         * modules/safe-alloc: New file.
14764         * doc/safe-alloc.texi: New file.
14765         * doc/gnulib.texi: Include it.
14766         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14767         safe-alloc.
14768
14769 2009-02-18  Bruno Haible  <bruno@clisp.org>
14770
14771         Fix link error on non-glibc systems.
14772         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14773         variable.
14774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14775
14776 2009-02-18  Jim Meyering  <meyering@redhat.com>
14777
14778         fts: avoid used-uninitialized error due to recent change
14779         * lib/fts.c (fts_read): Guard uses of the new member,
14780         parent->fts_n_dirs_remaining, since it's not relevant for
14781         the parent of a directory specified on the command-line.
14782
14783 2009-02-17  James Youngman  <jay@gnu.org>
14784             Bruno Haible  <bruno@clisp.org>
14785
14786         * m4/include_next.m4: Reformulate comment.
14787
14788 2009-02-16  Jim Meyering  <meyering@redhat.com>
14789
14790         fts: add #if guards so that the fts_lgpl module still builds
14791         * lib/fts.c: Guard just-added hash-table-using parts with
14792         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14793         Reported by Simon Josefsson.
14794
14795 2009-02-15  Bruno Haible  <bruno@clisp.org>
14796
14797         * modules/array-mergesort-tests: New file.
14798         * tests/test-array-mergesort.c: New file.
14799
14800         New module 'array-mergesort'.
14801         * modules/array-mergesort: New file.
14802         * lib/array-mergesort.h: New file.
14803
14804 2009-02-15  Bruno Haible  <bruno@clisp.org>
14805
14806         Fix 2009-02-07 commit.
14807         * lib/gen-uni-tables.c (output_predicate, output_category,
14808         output_combclass, output_bidi_category, output_decimal_digit,
14809         output_digit, output_numeric, output_mirror, output_scripts,
14810         output_ident_category, output_simple_mapping): Fix format directives.
14811         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14812
14813 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14814
14815         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14816         fixes are available from IBM.
14817
14818 2009-02-13  Jim Meyering  <meyering@redhat.com>
14819
14820         fts: arrange not to stat non-directories in more cases
14821         This makes GNU find (when it doesn't need to stat each file)
14822         *much* more efficient at traversing reiserfs file systems.
14823         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14824         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14825         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14826         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14827         (leaf_optimization_applies): New function.
14828         (LCO_hash, LCO_compare): New helper functions.
14829         (link_count_optimize_ok): New function.
14830         (fts_stat): Initialize new member (if dir).
14831         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14832         we've just stat'ed a directory.  Skip the stat call when possible.
14833         ---
14834         Note this AFS-related exchange:
14835         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14836         and note find's pioctl call in find/fstype.c.
14837         But that is necessary only if you want to enable the
14838         optimization for AFS, and for now, I don't.
14839
14840         fts: move a function definition "up" (no semantic change)
14841         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14842         "up" to precede upcoming use of a related function.
14843
14844 2009-02-11  Jim Meyering  <meyering@redhat.com>
14845
14846         fts: correct internal computation of nlinks (optimization-related)
14847         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14848         whether the current entry is a directory, so don't test it.
14849
14850 2009-02-10  Bruno Haible  <bruno@clisp.org>
14851
14852         Tests for module 'uniwbrk/ulc-wordbreaks'.
14853         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14854         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14855         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14856
14857         Tests for module 'uniwbrk/u32-wordbreaks'.
14858         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14859         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14860
14861         Tests for module 'uniwbrk/u16-wordbreaks'.
14862         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14863         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14864
14865         Tests for module 'uniwbrk/u8-wordbreaks'.
14866         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14867         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14868
14869 2009-02-10  Bruno Haible  <bruno@clisp.org>
14870
14871         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14872         property.
14873         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14874         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14875         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14876
14877 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14878
14879         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14880         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14881
14882 2009-02-10  Bruno Haible  <bruno@clisp.org>
14883
14884         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14885         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14886         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14887         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14888         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14889         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14890
14891 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14892
14893         * lib/sockets.h (gl_fd_to_handle): New function.
14894
14895         * tests/test-sockets.c: Call gl_fd_to_handle.
14896
14897 2009-02-09  Bruno Haible  <bruno@clisp.org>
14898
14899         * doc/havelib.texi: Document the conventions on bi-arch systems.
14900
14901 2009-02-08  Bruno Haible  <bruno@clisp.org>
14902
14903         Document the AC_LIB_LINKFLAGS macro.
14904         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14905         * doc/gnulib.texi: Include it.
14906
14907 2009-02-08  Bruno Haible  <bruno@clisp.org>
14908
14909         Fix wrong order of sections, compared to TOC.
14910         * doc/gnulib.texi: Include relocatable-maint.texi after the
14911         "Regular expressions" node, not before.
14912
14913 2009-02-08  Bruno Haible  <bruno@clisp.org>
14914
14915         Tests for module 'unicase/totitle'.
14916         * modules/unicase/totitle-tests: New file.
14917
14918         Tests for module 'unicase/tolower'.
14919         * modules/unicase/tolower-tests: New file.
14920
14921         Tests for module 'unicase/toupper'.
14922         * modules/unicase/toupper-tests: New file.
14923         * tests/unicase/test-mapping-part1.h: New file.
14924         * tests/unicase/test-mapping-part2.h: New file.
14925
14926         New module 'unicase/totitle'.
14927         * modules/unicase/totitle: New file.
14928         * lib/unicase/totitle.c: New file.
14929
14930         New module 'unicase/tolower'.
14931         * modules/unicase/tolower: New file.
14932         * lib/unicase/tolower.c: New file.
14933
14934         New module 'unicase/toupper'.
14935         * modules/unicase/toupper: New file.
14936         * lib/unicase/toupper.c: New file.
14937         * lib/unicase/simple-mapping.h: New file.
14938
14939         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14940         (mapping_table): New structure.
14941         (output_simple_mapping): New function.
14942         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14943         * modules/gen-uni-tables (Description): Update.
14944         * lib/unicase/toupper.h: New file, automatically generated by
14945         gen-uni-tables.
14946         * lib/unicase/tolower.h: New file, automatically generated by
14947         gen-uni-tables.
14948         * lib/unicase/totitle.h: New file, automatically generated by
14949         gen-uni-tables.
14950         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14951         gen-uni-tables.
14952         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14953         gen-uni-tables.
14954         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14955         gen-uni-tables.
14956
14957         New module 'unicase/base'.
14958         * modules/unicase/base: New file.
14959         * lib/unicase.h: New file.
14960
14961 2009-02-08  Bruno Haible  <bruno@clisp.org>
14962
14963         New module 'uniwbrk/ulc-wordbreaks'.
14964         * modules/uniwbrk/ulc-wordbreaks: New file.
14965         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14966
14967         New module 'uniwbrk/u32-wordbreaks'.
14968         * modules/uniwbrk/u32-wordbreaks: New file.
14969         * lib/uniwbrk/u32-wordbreaks.c: New file.
14970
14971         New module 'uniwbrk/u16-wordbreaks'.
14972         * modules/uniwbrk/u16-wordbreaks: New file.
14973         * lib/uniwbrk/u16-wordbreaks.c: New file.
14974
14975         New module 'uniwbrk/u8-wordbreaks'.
14976         * modules/uniwbrk/u8-wordbreaks: New file.
14977         * lib/uniwbrk/u8-wordbreaks.c: New file.
14978         * lib/uniwbrk/u-wordbreaks.h: New file.
14979
14980         New module 'uniwbrk/table'.
14981         * modules/uniwbrk/table: New file.
14982         * lib/uniwbrk/wbrktable.h: New file.
14983         * lib/uniwbrk/wbrktable.c: New file.
14984
14985         New module 'uniwbrk/wordbreak-property'.
14986         * modules/uniwbrk/wordbreak-property: New file.
14987         * lib/uniwbrk/wordbreak-property.c: New file.
14988
14989         * lib/gen-uni-tables.c (WBP_*): New enum items.
14990         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14991         (unicode_org_wbp): New variable.
14992         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14993         New functions.
14994         (wbp_table): New structure.
14995         (output_wbp, output_wbrk_tables): New functions.
14996         (main): Accept additional argument. Invoke fill_org_wbp,
14997         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14998         output_wbrk_tables.
14999         * modules/gen-uni-tables (Description): Update.
15000         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15001         gen-uni-tables.
15002
15003         New module 'uniwbrk/base'.
15004         * modules/uniwbrk/base: New file.
15005         * lib/uniwbrk.h: New file.
15006
15007 2009-02-08  Bruno Haible  <bruno@clisp.org>
15008
15009         Update to Unicode 5.1.0.
15010         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15011         U+2185..U+2188.
15012         (is_property_default_ignorable_code_point): Don't include characters
15013         of category Cc or Cs and not-a-characters.
15014         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15015         U+0D79, U+109E, U+109F, U+A60C.
15016         * lib/unictype/bidi_of.h: Regenerated.
15017         * lib/unictype/blocks.h: Regenerated.
15018         * lib/unictype/categ_C.h: Regenerated.
15019         * lib/unictype/categ_Cf.h: Regenerated.
15020         * lib/unictype/categ_Cn.h: Regenerated.
15021         * lib/unictype/categ_L.h: Regenerated.
15022         * lib/unictype/categ_Ll.h: Regenerated.
15023         * lib/unictype/categ_Lm.h: Regenerated.
15024         * lib/unictype/categ_Lo.h: Regenerated.
15025         * lib/unictype/categ_Lu.h: Regenerated.
15026         * lib/unictype/categ_M.h: Regenerated.
15027         * lib/unictype/categ_Mc.h: Regenerated.
15028         * lib/unictype/categ_Me.h: Regenerated.
15029         * lib/unictype/categ_Mn.h: Regenerated.
15030         * lib/unictype/categ_N.h: Regenerated.
15031         * lib/unictype/categ_Nd.h: Regenerated.
15032         * lib/unictype/categ_Nl.h: Regenerated.
15033         * lib/unictype/categ_No.h: Regenerated.
15034         * lib/unictype/categ_P.h: Regenerated.
15035         * lib/unictype/categ_Pd.h: Regenerated.
15036         * lib/unictype/categ_Pe.h: Regenerated.
15037         * lib/unictype/categ_Pf.h: Regenerated.
15038         * lib/unictype/categ_Pi.h: Regenerated.
15039         * lib/unictype/categ_Po.h: Regenerated.
15040         * lib/unictype/categ_Ps.h: Regenerated.
15041         * lib/unictype/categ_S.h: Regenerated.
15042         * lib/unictype/categ_Sk.h: Regenerated.
15043         * lib/unictype/categ_Sm.h: Regenerated.
15044         * lib/unictype/categ_So.h: Regenerated.
15045         * lib/unictype/categ_of.h: Regenerated.
15046         * lib/unictype/combining.h: Regenerated.
15047         * lib/unictype/ctype_alnum.h: Regenerated.
15048         * lib/unictype/ctype_alpha.h: Regenerated.
15049         * lib/unictype/ctype_graph.h: Regenerated.
15050         * lib/unictype/ctype_lower.h: Regenerated.
15051         * lib/unictype/ctype_print.h: Regenerated.
15052         * lib/unictype/ctype_punct.h: Regenerated.
15053         * lib/unictype/ctype_upper.h: Regenerated.
15054         * lib/unictype/decdigit.h: Regenerated.
15055         * lib/unictype/digit.h: Regenerated.
15056         * lib/unictype/mirror.h: Regenerated.
15057         * lib/unictype/numeric.h: Regenerated.
15058         * lib/unictype/pr_alphabetic.h: Regenerated.
15059         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15061         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15062         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15063         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15064         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15065         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15066         * lib/unictype/pr_combining.h: Regenerated.
15067         * lib/unictype/pr_dash.h: Regenerated.
15068         * lib/unictype/pr_decimal_digit.h: Regenerated.
15069         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15070         * lib/unictype/pr_deprecated.h: Regenerated.
15071         * lib/unictype/pr_diacritic.h: Regenerated.
15072         * lib/unictype/pr_extender.h: Regenerated.
15073         * lib/unictype/pr_format_control.h: Regenerated.
15074         * lib/unictype/pr_grapheme_base.h: Regenerated.
15075         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15076         * lib/unictype/pr_grapheme_link.h: Regenerated.
15077         * lib/unictype/pr_id_continue.h: Regenerated.
15078         * lib/unictype/pr_id_start.h: Regenerated.
15079         * lib/unictype/pr_ideographic.h: Regenerated.
15080         * lib/unictype/pr_ignorable_control.h: Regenerated.
15081         * lib/unictype/pr_lowercase.h: Regenerated.
15082         * lib/unictype/pr_math.h: Regenerated.
15083         * lib/unictype/pr_numeric.h: Regenerated.
15084         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15085         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15086         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15087         * lib/unictype/pr_other_id_continue.h: Regenerated.
15088         * lib/unictype/pr_other_lowercase.h: Regenerated.
15089         * lib/unictype/pr_other_math.h: Regenerated.
15090         * lib/unictype/pr_punctuation.h: Regenerated.
15091         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15092         * lib/unictype/pr_soft_dotted.h: Regenerated.
15093         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15094         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15095         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15096         * lib/unictype/pr_uppercase.h: Regenerated.
15097         * lib/unictype/pr_xid_continue.h: Regenerated.
15098         * lib/unictype/pr_xid_start.h: Regenerated.
15099         * lib/unictype/pr_zero_width.h: Regenerated.
15100         * lib/unictype/scripts.h: Regenerated.
15101         * lib/unictype/scripts_byname.gperf: Regenerated.
15102         * lib/unictype/sy_java_ident.h: Regenerated.
15103         * lib/unilbrk/lbrkprop1.h: Regenerated.
15104         * lib/unilbrk/lbrkprop2.h: Regenerated.
15105         * tests/unictype/test-categ_C.c: Regenerated.
15106         * tests/unictype/test-categ_Cf.c: Regenerated.
15107         * tests/unictype/test-categ_Cn.c: Regenerated.
15108         * tests/unictype/test-categ_L.c: Regenerated.
15109         * tests/unictype/test-categ_Ll.c: Regenerated.
15110         * tests/unictype/test-categ_Lm.c: Regenerated.
15111         * tests/unictype/test-categ_Lo.c: Regenerated.
15112         * tests/unictype/test-categ_Lu.c: Regenerated.
15113         * tests/unictype/test-categ_M.c: Regenerated.
15114         * tests/unictype/test-categ_Mc.c: Regenerated.
15115         * tests/unictype/test-categ_Me.c: Regenerated.
15116         * tests/unictype/test-categ_Mn.c: Regenerated.
15117         * tests/unictype/test-categ_N.c: Regenerated.
15118         * tests/unictype/test-categ_Nd.c: Regenerated.
15119         * tests/unictype/test-categ_Nl.c: Regenerated.
15120         * tests/unictype/test-categ_No.c: Regenerated.
15121         * tests/unictype/test-categ_P.c: Regenerated.
15122         * tests/unictype/test-categ_Pd.c: Regenerated.
15123         * tests/unictype/test-categ_Pe.c: Regenerated.
15124         * tests/unictype/test-categ_Pf.c: Regenerated.
15125         * tests/unictype/test-categ_Pi.c: Regenerated.
15126         * tests/unictype/test-categ_Po.c: Regenerated.
15127         * tests/unictype/test-categ_Ps.c: Regenerated.
15128         * tests/unictype/test-categ_S.c: Regenerated.
15129         * tests/unictype/test-categ_Sk.c: Regenerated.
15130         * tests/unictype/test-categ_Sm.c: Regenerated.
15131         * tests/unictype/test-categ_So.c: Regenerated.
15132         * tests/unictype/test-ctype_alnum.c: Regenerated.
15133         * tests/unictype/test-ctype_alpha.c: Regenerated.
15134         * tests/unictype/test-ctype_graph.c: Regenerated.
15135         * tests/unictype/test-ctype_lower.c: Regenerated.
15136         * tests/unictype/test-ctype_print.c: Regenerated.
15137         * tests/unictype/test-ctype_punct.c: Regenerated.
15138         * tests/unictype/test-ctype_upper.c: Regenerated.
15139         * tests/unictype/test-decdigit.h: Regenerated.
15140         * tests/unictype/test-digit.h: Regenerated.
15141         * tests/unictype/test-numeric.h: Regenerated.
15142         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15143         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15144         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15145         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15146         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15147         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15148         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15149         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15150         * tests/unictype/test-pr_combining.c: Regenerated.
15151         * tests/unictype/test-pr_dash.c: Regenerated.
15152         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15153         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15154         * tests/unictype/test-pr_deprecated.c: Regenerated.
15155         * tests/unictype/test-pr_diacritic.c: Regenerated.
15156         * tests/unictype/test-pr_extender.c: Regenerated.
15157         * tests/unictype/test-pr_format_control.c: Regenerated.
15158         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15159         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15160         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15161         * tests/unictype/test-pr_id_continue.c: Regenerated.
15162         * tests/unictype/test-pr_id_start.c: Regenerated.
15163         * tests/unictype/test-pr_ideographic.c: Regenerated.
15164         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15165         * tests/unictype/test-pr_lowercase.c: Regenerated.
15166         * tests/unictype/test-pr_math.c: Regenerated.
15167         * tests/unictype/test-pr_numeric.c: Regenerated.
15168         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15169         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15170         Regenerated.
15171         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15172         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15173         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15174         * tests/unictype/test-pr_other_math.c: Regenerated.
15175         * tests/unictype/test-pr_punctuation.c: Regenerated.
15176         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15177         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15178         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15179         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15180         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15181         * tests/unictype/test-pr_uppercase.c: Regenerated.
15182         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15183         * tests/unictype/test-pr_xid_start.c: Regenerated.
15184         * tests/unictype/test-pr_zero_width.c: Regenerated.
15185
15186         Update to Unicode 5.1.0.
15187         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15188         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15189         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15190         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15191         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15192         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15193         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15194         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15195         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15196         (nonspacing_table_ind): Update.
15197         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15198
15199         Update to Unicode 5.1.0.
15200         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15201         code transform.
15202         * lib/uniname/uniname.c (unicode_character_name,
15203         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15204         * lib/uniname/uninames.h: Regenerated.
15205         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15206
15207 2009-02-07  Bruno Haible  <bruno@clisp.org>
15208
15209         Merge gen-ctype and gen-lbrk into a single program.
15210         * lib/gen-uni-tables.c: New file, incorporating
15211         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15212         Add directory prefixes to the names of the generated files.
15213         * lib/unictype/gen-ctype.c: Remove file.
15214         * lib/unilbrk/gen-lbrk.c: Remove file.
15215         * modules/gen-uni-tables: New file.
15216         * modules/unictype/gen-ctype: Remove file.
15217         * modules/unilbrk/gen-lbrk: Remove file.
15218
15219 2009-02-07  Bruno Haible  <bruno@clisp.org>
15220
15221         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15222
15223         New module 'unistr/u32-strcoll'.
15224         * modules/unistr/u32-strcoll: New file.
15225         * lib/unistr/u32-strcoll.c: New file.
15226
15227         New module 'unistr/u16-strcoll'.
15228         * modules/unistr/u16-strcoll: New file.
15229         * lib/unistr/u16-strcoll.c: New file.
15230
15231         New module 'unistr/u8-strcoll'.
15232         * modules/unistr/u8-strcoll: New file.
15233         * lib/unistr/u8-strcoll.c: New file.
15234         * lib/unistr/u-strcoll.h: New file.
15235
15236 2009-02-07  Bruno Haible  <bruno@clisp.org>
15237
15238         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15239         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15240         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15241         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15242         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15243         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15244
15245 2009-02-07  Bruno Haible  <bruno@clisp.org>
15246
15247         Make 64-bit clean.
15248         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15249         output_combclass, output_bidi_category, output_decimal_digit,
15250         output_digit, output_numeric, output_mirror, output_scripts,
15251         output_ident_category): Use proper width specifier in format strings.
15252
15253 2009-02-07  Bruno Haible  <bruno@clisp.org>
15254
15255         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15256         failure behaviour.
15257
15258 2009-02-07  Jim Meyering  <meyering@redhat.com>
15259
15260         regex: avoid compilation failure with upcoming gcc-4.4
15261         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15262         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15263         "... error: integer overflow in preprocessor expression".
15264
15265 2009-02-05  Ben Pfaff  <blp@gnu.org>
15266
15267         Fix link errors on Windows when close module is used.
15268         * modules/close: Add $(LIB_CLOSE) to Link section.
15269         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15270         $(LIB_CLOSE) on Windows.
15271
15272 2009-02-05  Jim Meyering  <meyering@redhat.com>
15273
15274         still avoid unused-parameter warnings, but do it cleanly
15275         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15276         (get_fs_usage): Cast to void instead.
15277         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15278         (dev_from_mount_options, read_file_system_list): Cast to void.
15279         Prompted by Bruno Haible.
15280
15281 2009-02-04  Jim Meyering  <meyering@redhat.com>
15282
15283         fsusage.c: correct copyright year
15284         * lib/fsusage.c: Reflect year in which the change is pushed into
15285
15286         avoid misc. warnings
15287         * lib/fsusage.c (UNUSED_PARAM): Define.
15288         (get_fs_usage): Mark parameter "disk" as unused.
15289         * lib/getugroups.c (getgrent): Use "void" in prototype.
15290         * lib/mountlist.c: Mark unused parameters.
15291         (read_file_system_list): Declare a local with "const".
15292         * lib/nanosleep.c (getnow): Declare static.
15293         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15294
15295         dirfd: set errno upon failure
15296         * lib/dirfd.c: Include <errno.h>.
15297         Set errno to ENOTSUP when returning -1.
15298         * modules/dirfd (Depends-on): Add errno.
15299         Suggested by John Kodis <kodis@comcast.net>.
15300
15301 2009-02-01  Bruno Haible  <bruno@clisp.org>
15302
15303         Don't assume sizeof (long) >= sizeof (void *).
15304         * lib/memcmp.c: Include stdint.h.
15305         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15306         srcp2 to 'const byte *'.
15307         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15308         types to uintptr_t.
15309         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15310         * modules/memcmp (Depends-on): Add stdint.
15311         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15312
15313 2009-01-30  Eric Blake  <ebb9@byu.net>
15314
15315         fix more require-before-expand issues
15316         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15317         expand, AC_PROG_AWK.
15318         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15319
15320 2009-01-28  Eric Blake  <ebb9@byu.net>
15321
15322         version-etc: use consistent URL formatting
15323         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15324         Improve formatting.  Use fputs for string without %.
15325
15326 2009-01-28  Jim Meyering  <meyering@redhat.com>
15327
15328         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15329         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15330         "underquoted definition of NAME" from autoconf-2.59.
15331
15332 2009-01-28  Bruno Haible  <bruno@clisp.org>
15333
15334         * doc/gnulib.texi: Add "Obsolete modules" to index.
15335
15336 2009-01-28  Jim Meyering  <meyering@redhat.com>
15337
15338         useless-if-before-free: recognize more variants
15339         * build-aux/useless-if-before-free: Also recognize e.g.,
15340         if (NULL != p) free (p);
15341
15342 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15343
15344         test-getaddrinfo: skip (don't fail) this test when there's no network
15345         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15346         on the presumption that it means you lack network access.
15347
15348 2009-01-26  Jim Meyering  <meyering@redhat.com>
15349
15350         fflush: avoid warnings on modern systems
15351         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15352         pos and result, into scopes where they're used.
15353
15354 2009-01-26  Eric Blake  <ebb9@byu.net>
15355
15356         Silence warning reintroduced by recent extensions patch.
15357         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15358         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15359         autoconf.
15360
15361         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15362         * m4/00gnulib.m4: New file.
15363         * gnulib-tool (func_get_filelist): Always use it.
15364         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15365         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15366
15367 2009-01-25  Bruno Haible  <bruno@clisp.org>
15368
15369         Make test-quotearg work on MacOS X and AIX.
15370         * tests/test-quotearg.sh: New file.
15371         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15372         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15373         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15374         include <libintl.h>.
15375         (fake_locale): Remove variable.
15376         (gettext, dgettext, dcgettext): Remove functions.
15377         (main): Instead of setting a fake locale, set a real locale. Call
15378         textdomain and bindtextdomain.
15379         * modules/quotearg-tests (Files): Add the new files.
15380         (Depends-on): Add gettext, setenv, unsetenv.
15381         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15382         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15383         Augment TESTS_ENVIRONMENT.
15384
15385 2009-01-25  Bruno Haible  <bruno@clisp.org>
15386
15387         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15388         fr_FR.ISO8859-1 locale on MacOS X.
15389         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15390         ja_JP.eucJP locale on MacOS X.
15391         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15392         zh_CN.GB18030 locale on MacOS X.
15393
15394 2009-01-25  Bruno Haible  <bruno@clisp.org>
15395
15396         Avoid link errors on MacOS X 10.3.
15397         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15398         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15399
15400 2009-01-25  Bruno Haible  <bruno@clisp.org>
15401
15402         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15403         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15404         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15405         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15406         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15407         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15408         posix_spawnattr_init, posix_spawnattr_setsigmask,
15409         posix_spawnattr_setflags, posix_spawnattr_destroy.
15410
15411         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15412         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15413         * modules/execute (Files): Remove m4/posix_spawn.m4.
15414         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15415         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15416         posix_spawnattr_init, posix_spawnattr_setsigmask,
15417         posix_spawnattr_setflags, posix_spawnattr_destroy.
15418
15419 2009-01-25  Bruno Haible  <bruno@clisp.org>
15420
15421         * lib/glthread/threadlib.c: Include <stdlib.h>.
15422
15423 2009-01-25  Bruno Haible  <bruno@clisp.org>
15424
15425         * lib/glthread/threadlib.c (dummy): New declaration.
15426
15427 2009-01-25  Bruno Haible  <bruno@clisp.org>
15428
15429         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15430         multibyte characters also for the GB18030 encoding. Don't crash when
15431         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15432
15433 2009-01-25  Bruno Haible  <bruno@clisp.org>
15434
15435         Avoid redefining 'struct random_data' on OSF/1 5.1.
15436         * lib/stdlib.in.h: Include <random.h> if it exists.
15437         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15438         HAVE_RANDOM_H. Include <random.h> when testing whether
15439         'struct random_data' exists.
15440         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15441
15442 2009-01-25  Bruno Haible  <bruno@clisp.org>
15443
15444         Don't install charset.alias on MacOS X >= 10.3.
15445         * lib/localcharset.c (DARWIN7): New macro.
15446         (get_charset_aliases): Hardcode the result for Darwin7.
15447         * modules/localcharset (install-exec-local): Don't install
15448         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15449
15450 2009-01-25  Bruno Haible  <bruno@clisp.org>
15451
15452         Don't install charset.alias on mingw and Cygwin.
15453         * modules/localcharset (install-exec-local): Don't install
15454         charset.alias on mingw and Cygwin, if the file does not yet exist.
15455         The result for these platforms is hardcoded in localcharset.c.
15456
15457 2009-01-25  Bruno Haible  <bruno@clisp.org>
15458
15459         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15461         before requiring AC_USE_SYSTEM_EXTENSIONS.
15462
15463 2009-01-25  Jim Meyering  <meyering@redhat.com>
15464
15465         c-strtod: avoid warnings
15466         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15467         "assignment discards qualifiers from pointer target type" warnings.
15468
15469 2009-01-24  Bruno Haible  <bruno@clisp.org>
15470
15471         Add support for non-UTF-8 locales on MacOS X.
15472         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15473         canonical encodings. For Darwin 7 and newer, don't map traditional
15474         encodings to UTF-8.
15475         Reported by Vincent Lefevre <vincent@vinc17.org>
15476         at <http://savannah.gnu.org/bugs/?25235>.
15477
15478 2009-01-24  Bruno Haible  <bruno@clisp.org>
15479
15480         * doc/gnulib.texi (Obsolete modules): New section.
15481         Reported by Mike Frysinger <vapier@gentoo.org>.
15482
15483 2009-01-24  Bruno Haible  <bruno@clisp.org>
15484
15485         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15486         (%.dvi): New rule.
15487
15488 2009-01-24  Bruno Haible  <bruno@clisp.org>
15489
15490         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15491         Reported by Eric Blake.
15492
15493 2009-01-24  Bruno Haible  <bruno@clisp.org>
15494
15495         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15496         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15497         Reported by Gary V. Vaughan <gary@gnu.org>.
15498
15499 2009-01-24  Bruno Haible  <bruno@clisp.org>
15500
15501         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15502
15503 2009-01-23  Bruno Haible  <bruno@clisp.org>
15504
15505         Make c-strtod, c-strtold usable in libraries.
15506         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15507         (C_STRTOD): Call strdup instead of xstrdup.
15508         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15509         * modules/c-strtold (Depends-on): Likewise.
15510         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15511         * NEWS: Mention the change.
15512         Reported by Michael Gold <mgold@ncf.ca>.
15513
15514 2009-01-23  Jim Meyering  <meyering@redhat.com>
15515
15516         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15517         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15518         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15519
15520 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15521
15522         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15523         GNU CoreUtils.
15524         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15525         * modules/version-etc (Description): Update.
15526
15527 2009-01-22  Bruno Haible  <bruno@clisp.org>
15528
15529         Cache the C locale object.
15530         * lib/c-strtod.c (c_locale_cache): New variable.
15531         (c_locale): New function.
15532         (C_STRTOD): Use it, and don't call freelocale.
15533         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15534         Suggested by Paolo Bonzini.
15535
15536 2009-01-21  Bruno Haible  <bruno@clisp.org>
15537
15538         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15539         conditions other than overflow.
15540
15541 2009-01-21  Bruno Haible  <bruno@clisp.org>
15542
15543         * lib/c-strtod.c: Include errno.h.
15544         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15545         value from STRTOD_L and STRTOD.
15546
15547 2009-01-21  Bruno Haible  <bruno@clisp.org>
15548         and Jim Meyering  <meyering@redhat.com>
15549
15550         nanosleep: skip configure test (fail it) for apple universal builds
15551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15552         universal builds, assume that nanosleep does not work.
15553         * modules/nanosleep (Depends-on): Add multiarch.
15554
15555         mktime: skip configure test (fail it) for apple universal builds
15556         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15557         universal builds, assume that mktime does not work.
15558         * modules/mktime (Depends-on): Add multiarch.
15559
15560 2009-01-21  Eric Blake  <ebb9@byu.net>
15561
15562         multiarch: avoid expand-before-require warning
15563         * modules/multiarch (configure.ac): Require, rather than expand,
15564         gl_MULTIARCH.
15565         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15566         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15567         enforce that all clients require it.  Partial reversion of
15568         2008-12-29 patch.
15569
15570         error: avoid expand-before-require warning
15571         * modules/errno (configure.ac): Require, rather than expand,
15572         gl_HEADER_ERRNO_H.
15573         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15574         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15575         enforce that all clients require it.
15576
15577         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15578         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15579         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15580         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15581
15582 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15583
15584         Revert:
15585         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15586
15587         regex: do not depend on obsolete modules.
15588         * modules/regex: Remove memcmp and memmove.
15589
15590 2009-01-20  Bruno Haible  <bruno@clisp.org>
15591
15592         Make the 'link' module link on Windows NT 4.
15593         * lib/link.c (_WIN32_WINNT): Don't define.
15594         (CreateHardLinkFuncType): New type.
15595         (CreateHardLinkFunc, initialized): New variables.
15596         (initialize): New function.
15597         (link): Invoke CreateHardLink indirectly through the function pointer.
15598
15599 2009-01-20  Bruno Haible  <bruno@clisp.org>
15600
15601         Fix compilation failure on mingw.
15602         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15603
15604 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15605
15606         * doc/c-strtod.texi: Mention a couple of restrictions.
15607
15608 2009-01-20  Jim Meyering  <meyering@redhat.com>
15609
15610         gettimeofday: move more declarations out of functions
15611         * lib/gettimeofday.c: Move extern declarations of tzset and
15612         gmtime out of containing functions.  Prompted by Bruno Haible.
15613
15614 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15615
15616         regex: do not depend on obsolete modules.
15617         * modules/regex: Remove memcmp and memmove.
15618
15619 2009-01-19  Bruno Haible  <bruno@clisp.org>
15620
15621         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15622         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15623         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15624         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15625         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15626
15627 2009-01-19  Bruno Haible  <bruno@clisp.org>
15628
15629         * tests/test-link.c: Include <errno.h>.
15630         (main): Exit with code 77 when a hard link cannot be created due to
15631         the file system.
15632         * tests/test-link.sh: Skip test when a hard link cannot be created due
15633         to the file system.
15634         Suggested by Eric Blake.
15635
15636 2009-01-19  Martin Lambers  <marlam@marlam.de>
15637
15638         * modules/link-tests: New file.
15639         * tests/test-link.sh: New file.
15640         * tests/test-link.c: New file.
15641
15642 2009-01-19  Eric Blake  <ebb9@byu.net>
15643
15644         doc: mention another function added in cygwin 1.7.0
15645         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15646         Another new function in cygwin 1.7.
15647
15648 2009-01-19  Bruno Haible  <bruno@clisp.org>
15649
15650         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15651         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15652         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15653         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15654         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15655         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15656         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15657         * m4/md4.m4 (gl_MD4): Likewise.
15658         * m4/md5.m4 (gl_MD5): Likewise.
15659         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15660         * m4/sha1.m4 (gl_SHA1): Likewise.
15661         * m4/sha256.m4 (gl_SHA256): Likewise.
15662         * m4/sha512.m4 (gl_SHA512): Likewise.
15663
15664 2009-01-19  Bruno Haible  <bruno@clisp.org>
15665
15666         * modules/uniname/uniname-tests (Depends-on): Add progname.
15667         * tests/uniname/test-uninames.c: Include progname.h.
15668         (main): Call set_program_name.
15669
15670         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15671         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15672         (main): Call set_program_name.
15673
15674         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15675         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15676         (main): Call set_program_name.
15677
15678         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15679         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15680         (main): Call set_program_name.
15681
15682         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15683         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15684         (main): Call set_program_name.
15685
15686         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15687         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15688         (main): Call set_program_name.
15689
15690         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15691         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15692         (main): Call set_program_name.
15693
15694         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15695         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15696         (main): Call set_program_name.
15697
15698         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15699         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15700         (main): Call set_program_name.
15701
15702 2009-01-19  Eric Blake  <ebb9@byu.net>
15703
15704         test-unistd: test previous patch
15705         * tests/test-unistd.c: Test *_FILENO macros.
15706
15707         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15708         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15709         Guarantee a definition.
15710         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15711         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15712         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15713         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15714         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15715         Likewise.
15716         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15717         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15718         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15719         Likewise.
15720         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15721         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15722         (STDERR_FILENO): Likewise.
15723         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15724         (STDERR_FILENO): Likewise.
15725         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15726         (STDERR_FILENO): Likewise.
15727         Reported by Elbert Pol.
15728
15729 2009-01-19  Eric Blake  <ebb9@byu.net>
15730
15731         doc: mention more functions added in cygwin 1.7.0
15732         * doc/posix-functions/abort.texi (abort): Update wording related
15733         to cygwin.
15734         * doc/posix-functions/daylight.texi (daylight): Likewise.
15735         * doc/posix-functions/optarg.texi (optarg): Likewise.
15736         * doc/posix-functions/optarg.texi (opterr): Likewise.
15737         * doc/posix-functions/optarg.texi (optind): Likewise.
15738         * doc/posix-functions/optarg.texi (optopt): Likewise.
15739         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15740         worked in 1.5.x, and was withdrawn in 1.7.
15741         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15742         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15743         cygwin versions.
15744         * doc/posix-functions/perror.texi (perror): Likewise.
15745         * doc/posix-functions/printf.texi (printf): Likewise.
15746         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15747         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15748         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15749         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15750         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15751         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15752         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15753         Likewise.
15754         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15755         Likewise.
15756         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15757         this function.
15758         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15759         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15760         Likewise.
15761         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15762         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15763         * doc/posix-functions/confstr.texi (confstr): Likewise.
15764         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15765         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15766         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15767         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15768         * doc/posix-functions/fputws.texi (fputws): Likewise.
15769         * doc/posix-functions/fwide.texi (fwide): Likewise.
15770         * doc/posix-functions/getwc.texi (getwc): Likewise.
15771         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15772         * doc/posix-functions/putwc.texi (putwc): Likewise.
15773         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15774         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15775         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15776         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15777         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15778         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15779         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15780         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15781         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15782         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15783         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15784
15785 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15786
15787         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15788         * lib/ioctl.c: Include <sys/ioctl.h>.
15789
15790 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15791
15792         * modules/getdate-tests (Depends-on): Add progname.
15793         * tests/test-getdate.c: Use progname module, to avoid link errors
15794         on non-glibc systems.
15795
15796 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15797
15798         * modules/filenamecat-tests (Depends-on): Add progname.
15799         * modules/fstrcmp-tests (Depends-on): Likewise.
15800
15801         * tests/test-filenamecat.c: Use progname module, to avoid link
15802         errors on non-glibc systems.
15803         * tests/test-fstrcmp.c: Likewise.
15804
15805 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15806
15807         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15808         * lib/gettimeofday.c: Move extern declaration out of function.
15809
15810 2009-01-18  Bruno Haible  <bruno@clisp.org>
15811
15812         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15813         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15814         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15815
15816 2009-01-18  Bruno Haible  <bruno@clisp.org>
15817
15818         * lib/strftime.c (MEMPCPY): Remove unused macro.
15819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15820
15821 2009-01-18  Martin Lambers  <marlam@marlam.de>
15822
15823         New module 'link'.
15824         * lib/unistd.in.h (link): New declaration.
15825         * lib/link.c: New file.
15826         * m4/link.m4: New file.
15827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15828         HAVE_LINK.
15829         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15830         * modules/link: New file.
15831         * doc/posix-functions/link.texi: Mention the new module.
15832
15833 2009-01-18  Bruno Haible  <bruno@clisp.org>
15834
15835         * tests/test-avltree_list.c (main): Call set_program_name.
15836         * tests/test-avltree_oset.c (main): Likewise.
15837         * tests/test-obstack-printf.c: Include progname.h.
15838         (main): Call set_program_name.
15839         * tests/test-quotearg.c: Include progname.h.
15840         (main): Call set_program_name.
15841         * tests/test-xmemdup0.c: Include progname.h.
15842         (main): Call set_program_name.
15843
15844 2009-01-18  Bruno Haible  <bruno@clisp.org>
15845
15846         New module 'alphasort'.
15847         * lib/dirent.in.h (alphasort): New declaration.
15848         * lib/alphasort.c: New file, from glibc with modifications.
15849         * m4/alphasort.m4: New file.
15850         * modules/alphasort: New file.
15851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15852         HAVE_ALPHASORT.
15853         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15854         HAVE_ALPHASORT.
15855         * doc/posix-functions/alphasort.texi: Mention the new module and the
15856         portability problems.
15857
15858 2009-01-18  Bruno Haible  <bruno@clisp.org>
15859
15860         New module 'scandir'.
15861         * lib/dirent.in.h (scandir): New declaration.
15862         * lib/scandir.c: New file, from glibc with modifications.
15863         * m4/scandir.m4: New file.
15864         * modules/scandir: New file.
15865         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15866         HAVE_SCANDIR.
15867         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15868         HAVE_SCANDIR.
15869         * doc/posix-functions/scandir.texi: Mention the new module and the
15870         portability problems.
15871
15872 2009-01-17  Bruno Haible  <bruno@clisp.org>
15873
15874         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15875         Update documentation.
15876         (func_remove_suffix): Escape all dots in the suffix. Update
15877         documentation.
15878         (func_filter_filelist): Update documentation.
15879         Reported by Ralf Wildenhues.
15880
15881 2009-01-17  Bruno Haible  <bruno@clisp.org>
15882
15883         * modules/dprintf-posix-tests: New file.
15884         * tests/test-dprintf-posix.sh: New file.
15885         * tests/test-dprintf-posix.c: New file.
15886
15887         New modules 'dprintf', 'dprintf-posix'.
15888         * lib/stdio.in.h (dprintf): New declaration.
15889         * lib/dprintf.c: New file.
15890         * m4/dprintf.m4: New file.
15891         * m4/dprintf-posix.m4: New file.
15892         * modules/dprintf: New file.
15893         * modules/dprintf-posix: New file.
15894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15895         HAVE_DPRINTF, REPLACE_DPRINTF.
15896         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15897         HAVE_DPRINTF, REPLACE_DPRINTF.
15898         * doc/posix-functions/dprintf.texi: Mention the new modules.
15899
15900 2009-01-17  Bruno Haible  <bruno@clisp.org>
15901
15902         * modules/vdprintf-posix-tests: New file.
15903         * tests/test-vdprintf-posix.sh: New file.
15904         * tests/test-vdprintf-posix.c: New file.
15905
15906         New modules 'vdprintf', 'vdprintf-posix'.
15907         * lib/stdio.in.h (vdprintf): New declaration.
15908         * lib/vdprintf.c: New file.
15909         * m4/vdprintf.m4: New file.
15910         * m4/vdprintf-posix.m4: New file.
15911         * modules/vdprintf: New file.
15912         * modules/vdprintf-posix: New file.
15913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15914         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15915         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15916         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15917         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15918
15919 2009-01-17  Bruno Haible  <bruno@clisp.org>
15920
15921         Fix replacement of fopen on mingw.
15922         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15923         mingw.
15924
15925 2009-01-17  Bruno Haible  <bruno@clisp.org>
15926
15927         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15928         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15929
15930 2009-01-17  Bruno Haible  <bruno@clisp.org>
15931
15932         Avoid test-fflush2.sh failure on mingw.
15933         * tests/test-fflush2.c: Include binary-io.h.
15934         (main): Put standard input into binary mode.
15935         * modules/fflush-tests (Depends-on): Add binary-io.
15936
15937 2009-01-17  Bruno Haible  <bruno@clisp.org>
15938
15939         * lib/wchar.in.h: In another particular situation, include only the
15940         system's <wchar.h> file.
15941         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15942         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15943         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15944
15945 2009-01-17  Bruno Haible  <bruno@clisp.org>
15946
15947         Support for stripping executables in --enable-relocatable.
15948         * build-aux/install-reloc: Expect one more argument, or an environment
15949         variable RELOC_STRIP_PROG. If set, strip the destination program and
15950         its wrapper.
15951         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15952         RELOC_STRIP_PROG.
15953         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15954         to set RELOCATABLE_STRIP.
15955         * NEWS: Mention the new Makefile requirement.
15956
15957 2009-01-17  Bruno Haible  <bruno@clisp.org>
15958
15959         * build-aux/install-reloc: Remove debugging information left over by
15960         C compiler on MacOS X.
15961
15962 2009-01-17  Bruno Haible  <bruno@clisp.org>
15963
15964         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15965         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15966         _NSGetExecutablePath.
15967
15968 2009-01-16  Jim Meyering  <meyering@redhat.com>
15969
15970         strerror: avoid warnings about discarding "const"
15971         * lib/strerror.c (rpl_strerror): Instead of returning a const
15972         string from each and every "case", use a variable, and add a single
15973         cast after the switch.
15974
15975 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15976
15977         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15978
15979 2009-01-16  Bruno Haible  <bruno@clisp.org>
15980
15981         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15982         array initializer syntax that also works in C++ mode.
15983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15984
15985 2009-01-16  Jim Meyering  <meyering@redhat.com>
15986
15987         poll: suppress a warning
15988         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15989         to ignore "...unsigned expression < 0 is always false" warnings.
15990
15991 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15992
15993         poll: remove declarations of unused variables
15994         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15995         sockbuf and optlen.
15996
15997 2009-01-15  Bruno Haible  <bruno@clisp.org>
15998
15999         Make fflush-after-ungetc POSIX compliant on BSD systems.
16000         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16001         (clear_ungetc_buffer): Implement also for other systems.
16002         (rpl_fflush): On glibc systems, invoke
16003         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16004         clear_ungetc_buffer after fetching the stream's position, not before.
16005
16006 2009-01-15  Bruno Haible  <bruno@clisp.org>
16007
16008         Make fflush-after-ungetc POSIX compliant on glibc systems.
16009         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16010         after ungetc.
16011         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16012         (rpl_fflush): On glibc systems, simply call the system's fflush
16013         function after clearing the ungetc buffer.
16014         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16015         Instead, lseek only to the end of file, then use the system's fseeko
16016         for the rest. On glibc systems, reset the EOF indicator bit.
16017
16018 2009-01-15  Jim Meyering  <meyering@redhat.com>
16019
16020         openmp.m4: revert quote-adding change, for portability to older autoconf
16021         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16022         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16023         Simon Josefsson noticed the problem when using autoconf-2.61.
16024
16025 2009-01-15  Bruno Haible  <bruno@clisp.org>
16026
16027         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16028         * tests/test-fflush2.c (ASSERT): Always fail.
16029         (main): Add two tests for fflush() after ungetc(), taking into account
16030         the Austin Group's clarification.
16031         Suggested by Eric Blake.
16032
16033 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16034
16035         mktime.m4: remove K&R-style function prototypes
16036         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16037         for the Sun C++ compiler.
16038
16039 2009-01-14  Bruno Haible  <bruno@clisp.org>
16040
16041         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16042         while including <wchar.h>.
16043         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16044         the system's <wchar.h> file.
16045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16046
16047 2009-01-14  Bruno Haible  <bruno@clisp.org>
16048
16049         * m4/csharp.m4: Don't mention gettext on the serial number line.
16050         * m4/csharpexec.m4: Likewise.
16051         * m4/eaccess.m4: Likewise.
16052         * m4/javaexec.m4: Likewise.
16053         * m4/sig_atomic_t.m4: Likewise.
16054         * m4/tmpdir.m4: Likewise.
16055         * m4/intldir.m4: Bump gettext version.
16056         * m4/lib-ld.m4: Likewise.
16057
16058 2009-01-14  Bruno Haible  <bruno@clisp.org>
16059
16060         * lib/progname.c (set_program_name): Add more comments.
16061         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16062
16063 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16064
16065         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16066         were sys/stat.h does not define it.
16067
16068 2009-01-14  Jim Meyering  <meyering@redhat.com>
16069
16070         many *.m4 files: improve m4 quoting
16071         99% of this change was performed by running the following commands:
16072         git ls-files | grep '\.m4$' | xargs perl -pi \
16073           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16074           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16075           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16076           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16077         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16078         The remainder were to add Copyright dates, increment serial numbers,
16079         undo some changes in comments, exclude m4/intl.m4, and add quotes
16080         around the "1" in ",1" where the unusual spacing prohibited the
16081         above regexps from doing the job.  For more details, see
16082         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16083         * m4/acl.m4: Modified.
16084         * m4/afs.m4: Likewise.
16085         * m4/alloca.m4: Likewise.
16086         * m4/argp.m4: Likewise.
16087         * m4/argz.m4: Likewise.
16088         * m4/atexit.m4: Likewise.
16089         * m4/bison-i18n.m4: Likewise.
16090         * m4/bison.m4: Likewise.
16091         * m4/byteswap.m4: Likewise.
16092         * m4/c-stack.m4: Likewise.
16093         * m4/c-strtod.m4: Likewise.
16094         * m4/calloc.m4: Likewise.
16095         * m4/canonicalize-lgpl.m4: Likewise.
16096         * m4/chown.m4: Likewise.
16097         * m4/clock_time.m4: Likewise.
16098         * m4/codeset.m4: Likewise.
16099         * m4/copy-file.m4: Likewise.
16100         * m4/csharp.m4: Likewise.
16101         * m4/csharpcomp.m4: Likewise.
16102         * m4/csharpexec.m4: Likewise.
16103         * m4/d-ino.m4: Likewise.
16104         * m4/d-type.m4: Likewise.
16105         * m4/dirfd.m4: Likewise.
16106         * m4/double-slash-root.m4: Likewise.
16107         * m4/eaccess.m4: Likewise.
16108         * m4/eealloc.m4: Likewise.
16109         * m4/environ.m4: Likewise.
16110         * m4/errno_h.m4: Likewise.
16111         * m4/euidaccess.m4: Likewise.
16112         * m4/execute.m4: Likewise.
16113         * m4/fatal-signal.m4: Likewise.
16114         * m4/fchdir.m4: Likewise.
16115         * m4/fcntl_h.m4: Likewise.
16116         * m4/fileblocks.m4: Likewise.
16117         * m4/filenamecat.m4: Likewise.
16118         * m4/findprog.m4: Likewise.
16119         * m4/flexmember.m4: Likewise.
16120         * m4/fnmatch.m4: Likewise.
16121         * m4/fopen.m4: Likewise.
16122         * m4/fpending.m4: Likewise.
16123         * m4/fprintf-posix.m4: Likewise.
16124         * m4/free.m4: Likewise.
16125         * m4/frexp.m4: Likewise.
16126         * m4/frexpl.m4: Likewise.
16127         * m4/fsusage.m4: Likewise.
16128         * m4/ftruncate.m4: Likewise.
16129         * m4/gc-camellia.m4: Likewise.
16130         * m4/gc-random.m4: Likewise.
16131         * m4/gc.m4: Likewise.
16132         * m4/getaddrinfo.m4: Likewise.
16133         * m4/getcwd-abort-bug.m4: Likewise.
16134         * m4/getcwd-path-max.m4: Likewise.
16135         * m4/getdate.m4: Likewise.
16136         * m4/getdomainname.m4: Likewise.
16137         * m4/getgroups.m4: Likewise.
16138         * m4/gethostname.m4: Likewise.
16139         * m4/gethrxtime.m4: Likewise.
16140         * m4/getline.m4: Likewise.
16141         * m4/getloadavg.m4: Likewise.
16142         * m4/getndelim2.m4: Likewise.
16143         * m4/getpass.m4: Likewise.
16144         * m4/gettext.m4: Likewise.
16145         * m4/gettime.m4: Likewise.
16146         * m4/gettimeofday.m4: Likewise.
16147         * m4/gnulib-common.m4: Likewise.
16148         * m4/group-member.m4: Likewise.
16149         * m4/host-os.m4: Likewise.
16150         * m4/iconv.m4: Likewise.
16151         * m4/iconv_open.m4: Likewise.
16152         * m4/inet_ntop.m4: Likewise.
16153         * m4/inet_pton.m4: Likewise.
16154         * m4/inline.m4: Likewise.
16155         * m4/intldir.m4: Likewise.
16156         * m4/intlmacosx.m4: Likewise.
16157         * m4/intmax.m4: Likewise.
16158         * m4/intmax_t.m4: Likewise.
16159         * m4/inttypes.m4: Likewise.
16160         * m4/inttypes_h.m4: Likewise.
16161         * m4/inttypes-pri.m4: Likewise.
16162         * m4/isapipe.m4: Likewise.
16163         * m4/isnand.m4: Likewise.
16164         * m4/isnanf.m4: Likewise.
16165         * m4/isnanl.m4: Likewise.
16166         * m4/javacomp.m4: Likewise.
16167         * m4/javaexec.m4: Likewise.
16168         * m4/jm-winsz1.m4: Likewise.
16169         * m4/jm-winsz2.m4: Likewise.
16170         * m4/lchown.m4: Likewise.
16171         * m4/lcmessage.m4: Likewise.
16172         * m4/ldexpl.m4: Likewise.
16173         * m4/lib-ld.m4: Likewise.
16174         * m4/lib-link.m4: Likewise.
16175         * m4/libsigsegv.m4: Likewise.
16176         * m4/link-follow.m4: Likewise.
16177         * m4/localcharset.m4: Likewise.
16178         * m4/locale-fr.m4: Likewise.
16179         * m4/locale-ja.m4: Likewise.
16180         * m4/locale-tr.m4: Likewise.
16181         * m4/locale-zh.m4: Likewise.
16182         * m4/lock.m4: Likewise.
16183         * m4/longlong.m4: Likewise.
16184         * m4/ls-mntd-fs.m4: Likewise.
16185         * m4/lstat.m4: Likewise.
16186         * m4/malloc.m4: Likewise.
16187         * m4/mathl.m4: Likewise.
16188         * m4/mbrtowc.m4: Likewise.
16189         * m4/mbstate_t.m4: Likewise.
16190         * m4/mbswidth.m4: Likewise.
16191         * m4/memchr.m4: Likewise.
16192         * m4/memcmp.m4: Likewise.
16193         * m4/memcpy.m4: Likewise.
16194         * m4/memmem.m4: Likewise.
16195         * m4/memmove.m4: Likewise.
16196         * m4/mempcpy.m4: Likewise.
16197         * m4/memrchr.m4: Likewise.
16198         * m4/memset.m4: Likewise.
16199         * m4/minmax.m4: Likewise.
16200         * m4/mkdir-slash.m4: Likewise.
16201         * m4/mkdtemp.m4: Likewise.
16202         * m4/mktime.m4: Likewise.
16203         * m4/mmap-anon.m4: Likewise.
16204         * m4/mountlist.m4: Likewise.
16205         * m4/nanosleep.m4: Likewise.
16206         * m4/nls.m4: Likewise.
16207         * m4/nocrash.m4: Likewise.
16208         * m4/open.m4: Likewise.
16209         * m4/openat.m4: Likewise.
16210         * m4/openmp.m4: Likewise.
16211         * m4/pathmax.m4: Likewise.
16212         * m4/perl.m4: Likewise.
16213         * m4/physmem.m4: Likewise.
16214         * m4/pipe.m4: Likewise.
16215         * m4/po.m4: Likewise.
16216         * m4/poll.m4: Likewise.
16217         * m4/posixtm.m4: Likewise.
16218         * m4/posixver.m4: Likewise.
16219         * m4/printf-frexp.m4: Likewise.
16220         * m4/printf-frexpl.m4: Likewise.
16221         * m4/printf-posix.m4: Likewise.
16222         * m4/printf-posix-rpl.m4: Likewise.
16223         * m4/printf.m4: Likewise.
16224         * m4/progtest.m4: Likewise.
16225         * m4/putenv.m4: Likewise.
16226         * m4/readline.m4: Likewise.
16227         * m4/readlink.m4: Likewise.
16228         * m4/readutmp.m4: Likewise.
16229         * m4/realloc.m4: Likewise.
16230         * m4/regex.m4: Likewise.
16231         * m4/relocatable.m4: Likewise.
16232         * m4/relocatable-lib.m4: Likewise.
16233         * m4/rename-dest-slash.m4: Likewise.
16234         * m4/rename.m4: Likewise.
16235         * m4/rmdir-errno.m4: Likewise.
16236         * m4/rmdir.m4: Likewise.
16237         * m4/roundf.m4: Likewise.
16238         * m4/roundl.m4: Likewise.
16239         * m4/rpmatch.m4: Likewise.
16240         * m4/save-cwd.m4: Likewise.
16241         * m4/selinux-selinux-h.m4: Likewise.
16242         * m4/setenv.m4: Likewise.
16243         * m4/settime.m4: Likewise.
16244         * m4/sig2str.m4: Likewise.
16245         * m4/sig_atomic_t.m4: Likewise.
16246         * m4/signalblocking.m4: Likewise.
16247         * m4/signbit.m4: Likewise.
16248         * m4/sigpipe.m4: Likewise.
16249         * m4/sockets.m4: Likewise.
16250         * m4/sockpfaf.m4: Likewise.
16251         * m4/st_dm_mode.m4: Likewise.
16252         * m4/stat-time.m4: Likewise.
16253         * m4/stdbool.m4: Likewise.
16254         * m4/stdint.m4: Likewise.
16255         * m4/stdint_h.m4: Likewise.
16256         * m4/stpcpy.m4: Likewise.
16257         * m4/stpncpy.m4: Likewise.
16258         * m4/strcase.m4: Likewise.
16259         * m4/strchrnul.m4: Likewise.
16260         * m4/strcspn.m4: Likewise.
16261         * m4/strdup.m4: Likewise.
16262         * m4/strftime.m4: Likewise.
16263         * m4/strndup.m4: Likewise.
16264         * m4/strnlen.m4: Likewise.
16265         * m4/strpbrk.m4: Likewise.
16266         * m4/strptime.m4: Likewise.
16267         * m4/strsep.m4: Likewise.
16268         * m4/strtod.m4: Likewise.
16269         * m4/strtoimax.m4: Likewise.
16270         * m4/strtok_r.m4: Likewise.
16271         * m4/strtol.m4: Likewise.
16272         * m4/strtoll.m4: Likewise.
16273         * m4/strtoul.m4: Likewise.
16274         * m4/strtoull.m4: Likewise.
16275         * m4/strtoumax.m4: Likewise.
16276         * m4/strverscmp.m4: Likewise.
16277         * m4/threadlib.m4: Likewise.
16278         * m4/timegm.m4: Likewise.
16279         * m4/tm_gmtoff.m4: Likewise.
16280         * m4/tmpdir.m4: Likewise.
16281         * m4/tmpfile.m4: Likewise.
16282         * m4/tzset.m4: Likewise.
16283         * m4/uintmax_t.m4: Likewise.
16284         * m4/unlinkdir.m4: Likewise.
16285         * m4/unlocked-io.m4: Likewise.
16286         * m4/uptime.m4: Likewise.
16287         * m4/userspec.m4: Likewise.
16288         * m4/utimbuf.m4: Likewise.
16289         * m4/utime.m4: Likewise.
16290         * m4/utimes-null.m4: Likewise.
16291         * m4/utimes.m4: Likewise.
16292         * m4/vararrays.m4: Likewise.
16293         * m4/vasnprintf.m4: Likewise.
16294         * m4/vfprintf-posix.m4: Likewise.
16295         * m4/vprintf-posix.m4: Likewise.
16296         * m4/wait-process.m4: Likewise.
16297         * m4/wchar_t.m4: Likewise.
16298         * m4/wint_t.m4: Likewise.
16299         * m4/write-any-file.m4: Likewise.
16300         * m4/yield.m4: Likewise.
16301
16302 2009-01-13  Bruno Haible  <bruno@clisp.org>
16303
16304         Avoid test-copy-file.sh failures when ACL support insufficient.
16305         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16306         TESTS_ENVIRONMENT.
16307         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16308         Reported by Jim Meyering.
16309
16310 2009-01-13  Bruno Haible  <bruno@clisp.org>
16311
16312         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16313         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16314         * modules/unistdio/u8-printf-parse (Files): Likewise.
16315         * modules/unistdio/u32-printf-parse (Files): Likewise.
16316         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16317
16318 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16319
16320         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16321         and m4/inttypes_h.m4 too.
16322
16323 2009-01-12  Eric Blake  <ebb9@byu.net>
16324
16325         tests: IRIX 6.2 cc can't compile -0.0 into .data
16326         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16327         rather than at compile-time.
16328         * tests/test-floorl.c (minus_zero): Likewise.
16329         * tests/test-frexpl.c (minus_zero): Likewise.
16330         * tests/test-isnan.c (minus_zerol): Likewise.
16331         * tests/test-isnanl.h (minus_zero): Likewise.
16332         * tests/test-ldexpl.c (minus_zero): Likewise.
16333         * tests/test-roundl.c (minus_zero): Likewise.
16334         * tests/test-signbit.c (minus_zerol): Likewise.
16335         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16336         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16337         * tests/test-truncl.c (minus_zero): Likewise.
16338         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16339         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16340         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16341
16342 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16343
16344         regex: fix glibc bug 9697
16345         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16346         handling.
16347
16348 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16349
16350         regex: fix glibc bug 697
16351         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16352         being NULL also if there are no backreferences.
16353
16354 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16355
16356         regex: merge glibc changes
16357         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16358         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16359         re_string_skip_chars, re_string_reconstruct): Likewise.
16360         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16361
16362 2009-01-07  Jim Meyering  <meyering@redhat.com>
16363
16364         poll: filter through cppi
16365         * lib/poll.c: Indent cpp directives to reflect nesting.
16366
16367 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16368
16369         poll: don't return uninitialized
16370         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16371
16372 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16373
16374         avoid compile failure on AIX 6.1
16375         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16376         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16377
16378 2009-01-04  Jim Meyering  <meyering@redhat.com>
16379
16380         remove duplicate inclusion of <stdio.h>
16381         * tests/test-fprintf-posix.c: Likewise.
16382         * tests/test-printf-posix.c: Likewise.
16383         * tests/test-snprintf-posix.c: Likewise.
16384         * tests/test-sprintf-posix.c: Likewise.
16385         * tests/test-vasprintf-posix.c: Likewise.
16386         * tests/test-vfprintf-posix.c: Likewise.
16387         * tests/test-vprintf-posix.c: Likewise.
16388         * tests/test-vsnprintf-posix.c: Likewise.
16389         * tests/test-vsprintf-posix.c: Likewise.
16390
16391 2009-01-03  Jim Meyering  <meyering@redhat.com>
16392
16393         gnulib-tool: fix sed-based filtering
16394         * gnulib-tool (func_filter_filelist): Remove extra backslash
16395         in sed_fff_filter definition.
16396
16397 2009-01-02  Jim Meyering  <meyering@redhat.com>
16398
16399         strftime: avoid compilation failure on Solaris 2.6
16400         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16401         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16402         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16403         be available.  Reported by Tom G. Christensen.  Details in
16404         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16405
16406 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16407             Bruno Haible  <bruno@clisp.org>
16408
16409         Speed up gnulib-tool by doing more string processing through shell
16410         built-ins.
16411         * gnulib-tool (fast_func_append): New variable.
16412         (func_remove_prefix, func_remove_suffix): New functions.
16413         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16414         (func_filter_filelist): New function.
16415         (func_get_dependencies): Use func_remove_suffix instead of sed.
16416         (func_get_automake_snippet): Use func_filter_filelist instead of a
16417         subshell and sed invocation.
16418
16419 2009-01-01  Bruno Haible  <bruno@clisp.org>
16420
16421         Fix a security bug.
16422         * gnulib-tool (func_import, import, update): Don't allow the characters
16423         '"', '$', '`', '\' in macro arguments that become part of commands that
16424         are evaluated.
16425
16426 2009-01-01  Bruno Haible  <bruno@clisp.org>
16427
16428         * gnulib-tool (func_reset_sigpipe): Add more comments.
16429
16430 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16431
16432         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16433         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16434         already know the answer.
16435
16436 2009-01-01  Jim Meyering  <meyering@redhat.com>
16437
16438         * lib/version-etc.c (version_etc_va): Update copyright year.
16439
16440 2008-12-30  Bruno Haible  <bruno@clisp.org>
16441
16442         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16443         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16444         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16445
16446 2008-12-29  Eric Blake  <ebb9@byu.net>
16447
16448         multiarch: avoid autoconf AC_REQUIRE bug
16449         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16450         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16451         2.63 and older.
16452         Reported by Bruno Haible, and analyzed in
16453         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16454
16455 2008-12-29  Bruno Haible  <bruno@clisp.org>
16456
16457         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16458         files in subdirectories correctly.
16459         Reported by Ralf Wildenhues.
16460
16461 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16462
16463         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16464         rather than 'join FILE -', for Solaris join.
16465
16466 2008-12-29  Bruno Haible  <bruno@clisp.org>
16467
16468         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16469         quoting.
16470         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16471         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16472         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16473         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16474         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16475         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16476         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16477         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16478         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16479         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16480         * m4/nls.m4 (AM_NLS): Likewise.
16481         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16482         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16483         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16484         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16485         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16486         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16487         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16488         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16489         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16490         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16491         * m4/xsize.m4 (gl_XSIZE): Likewise.
16492         Suggested by Jim Meyering.
16493
16494 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16495
16496         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16497         * lib/parse-duration.c: use a switch instead of cascading if's.
16498
16499 2008-12-29  Eric Blake  <ebb9@byu.net>
16500
16501         wchar.h: supply WEOF on Irix 5.3
16502         * lib/wchar.in.h (wint_t): Also supply WEOF.
16503         * lib/wctype.in.h (wint_t): Likewise.
16504         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16505         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16506         Reported by Tom G. Christensen.
16507
16508 2008-12-26  Bruno Haible  <bruno@clisp.org>
16509
16510         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16511         i486, i586, i686.
16512
16513 2008-12-26  Bruno Haible  <bruno@clisp.org>
16514
16515         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16516
16517 2008-12-26  Bruno Haible  <bruno@clisp.org>
16518
16519         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16520         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16521         not __STDC_CONSTANT_MACROS.
16522         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16523
16524 2008-12-25  Bruno Haible  <bruno@clisp.org>
16525
16526         Add support for universal builds to vasnprintf.
16527         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16528         universal builds, guess no.
16529         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16530         * modules/vasprintf-posix (Depends-on): Likewise.
16531         * modules/fprintf-posix (Depends-on): Likewise.
16532         * modules/vfprintf-posix (Depends-on): Likewise.
16533         * modules/snprintf-posix (Depends-on): Likewise.
16534         * modules/vsnprintf-posix (Depends-on): Likewise.
16535         * modules/sprintf-posix (Depends-on): Likewise.
16536         * modules/vsprintf-posix (Depends-on): Likewise.
16537         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16539         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16541         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16542         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16543         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16544
16545         Add support for universal builds to <inttypes.h>.
16546         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16547         _SCNu64_PREFIX): In Apple
16548         universal builds, define directly, using _LP64.
16549         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16550         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16551         * modules/inttypes (Depends-on): Add multiarch.
16552         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16553
16554         Add support for universal builds to <stdint.h>.
16555         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16556         universal builds, define directly, using _LP64.
16557         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16558         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16559         and size_t.
16560         * modules/stdint (Depends-on): Add multiarch.
16561         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16562
16563         New module 'multiarch'.
16564         * modules/multiarch: New file.
16565         * m4/multiarch.m4: New file.
16566
16567 2008-12-25  Bruno Haible  <bruno@clisp.org>
16568
16569         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16570
16571 2008-12-25  Bruno Haible  <bruno@clisp.org>
16572
16573         * modules/btowc (License): Relicense under LGPLv2+.
16574         * modules/mbsinit (License): Likewise.
16575         * modules/mbrtowc (License): Likewise.
16576         * modules/wcrtomb (License): Likewise.
16577         * modules/streq (License): Likewise.
16578         Reported by David Lutterkort <lutter@redhat.com>.
16579
16580 2008-12-23  Bruno Haible  <bruno@clisp.org>
16581
16582         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16583
16584 2008-12-23  Bruno Haible  <bruno@clisp.org>
16585
16586         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16588         GETADDRINFO_LIB, not in LIBS.
16589         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16590         * modules/canon-host (Link): Likewise.
16591         * NEWS: Mention the change.
16592         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16593         GETADDRINFO_LIB.
16594
16595 2008-12-22  Bruno Haible  <bruno@clisp.org>
16596
16597         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16598         * doc/posix-functions/iswalpha_l.texi: Likewise.
16599         * doc/posix-functions/iswblank_l.texi: Likewise.
16600         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16601         * doc/posix-functions/iswctype_l.texi: Likewise.
16602         * doc/posix-functions/iswdigit_l.texi: Likewise.
16603         * doc/posix-functions/iswgraph_l.texi: Likewise.
16604         * doc/posix-functions/iswlower_l.texi: Likewise.
16605         * doc/posix-functions/iswprint_l.texi: Likewise.
16606         * doc/posix-functions/iswpunct_l.texi: Likewise.
16607         * doc/posix-functions/iswspace_l.texi: Likewise.
16608         * doc/posix-functions/iswupper_l.texi: Likewise.
16609         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16610         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16611         * doc/posix-functions/open_wmemstream.texi: Likewise.
16612         * doc/posix-functions/swscanf.texi: Likewise.
16613         * doc/posix-functions/towctrans_l.texi: Likewise.
16614         * doc/posix-functions/towlower.texi: Likewise.
16615         * doc/posix-functions/towlower_l.texi: Likewise.
16616         * doc/posix-functions/towupper.texi: Likewise.
16617         * doc/posix-functions/towupper_l.texi: Likewise.
16618         * doc/posix-functions/vfwprintf.texi: Likewise.
16619         * doc/posix-functions/vfwscanf.texi: Likewise.
16620         * doc/posix-functions/vswscanf.texi: Likewise.
16621         * doc/posix-functions/vwprintf.texi: Likewise.
16622         * doc/posix-functions/vwscanf.texi: Likewise.
16623         * doc/posix-functions/wcpcpy.texi: Likewise.
16624         * doc/posix-functions/wcpncpy.texi: Likewise.
16625         * doc/posix-functions/wcscasecmp.texi: Likewise.
16626         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16627         * doc/posix-functions/wcscoll_l.texi: Likewise.
16628         * doc/posix-functions/wcsdup.texi: Likewise.
16629         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16630         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16631         * doc/posix-functions/wcsnlen.texi: Likewise.
16632         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16633         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16634         * doc/posix-functions/wctrans_l.texi: Likewise.
16635         * doc/posix-functions/wctype_l.texi: Likewise.
16636         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16637         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16638         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16639         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16640         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16641         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16642         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16643         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16644         * doc/glibc-functions/wcschrnul.texi: Likewise.
16645         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16646         * doc/glibc-functions/wcstod_l.texi: Likewise.
16647         * doc/glibc-functions/wcstof_l.texi: Likewise.
16648         * doc/glibc-functions/wcstol_l.texi: Likewise.
16649         * doc/glibc-functions/wcstold_l.texi: Likewise.
16650         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16651         * doc/glibc-functions/wcstoq.texi: Likewise.
16652         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16653         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16654         * doc/glibc-functions/wcstouq.texi: Likewise.
16655         * doc/glibc-functions/wmempcpy.texi: Likewise.
16656
16657 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16658             Eric Blake  <ebb9@byu.net>
16659             Paolo Bonzini  <bonzini@gnu.org>
16660             Bruno Haible  <bruno@clisp.org>
16661
16662         Make c-stack work on Haiku.
16663         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16664         (c_stack_action): Use SA_ONSTACK flag.
16665
16666 2008-12-22  Bruno Haible  <bruno@clisp.org>
16667
16668         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16669
16670 2008-12-22  Bruno Haible  <bruno@clisp.org>
16671
16672         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16673         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16674         being overridden.
16675         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16676         New macros.
16677         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16679         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16680         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16681
16682 2008-12-22  Bruno Haible  <bruno@clisp.org>
16683
16684         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16685         from test code.
16686
16687 2008-12-22  Eric Blake  <ebb9@byu.net>
16688
16689         Avoid gcc warnings on cygwin.
16690         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16691         Avoid unused variable.
16692         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16693         Likewise.
16694
16695 2008-12-22  Bruno Haible  <bruno@clisp.org>
16696
16697         Remove HAVE_MBRTOWC conditionals.
16698         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16699         (mbscasecmp): Assume mbrtowc function.
16700         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16701         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16702         * lib/mbschr.c: Include mbuiter.h unconditionally.
16703         (mbschr): Assume mbrtowc function.
16704         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16705         (mbscspn): Assume mbrtowc function.
16706         * lib/mbslen.c: Include mbuiter.h unconditionally.
16707         (mbslen): Assume mbrtowc function.
16708         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16709         (mbsncasecmp): Assume mbrtowc function.
16710         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16711         (mbsnlen): Assume mbrtowc function.
16712         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16713         (mbspbrk): Assume mbrtowc function.
16714         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16715         (mbspcasecmp): Assume mbrtowc function.
16716         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16717         (mbsrchr): Assume mbrtowc function.
16718         * lib/mbssep.c: Include mbuiter.h unconditionally.
16719         (mbssep): Assume mbrtowc function.
16720         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16721         (mbsspn): Assume mbrtowc function.
16722         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16723         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16724         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16725         (mbstok_r): Assume mbrtowc function.
16726         * lib/propername.c: Include mbuiter.h unconditionally.
16727         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16728         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16729         (trim2): Assume mbrtowc function.
16730         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16731         (mbsnwidth): Assume mbrtowc function.
16732         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16733         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16734         fallback definitions.
16735         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16736
16737 2008-12-22  Bruno Haible  <bruno@clisp.org>
16738
16739         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16740
16741 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16742
16743         * modules/regex: Request emulations for the mb*/wc* functions we need.
16744         * m4/regex.m4: Don't look for those functions here.
16745         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16746
16747 2008-12-22  Bruno Haible  <bruno@clisp.org>
16748
16749         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16750
16751 2008-12-21  Bruno Haible  <bruno@clisp.org>
16752
16753         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16754         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16755         (Include): Remove conditionalization.
16756         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16757         (Include): Remove conditionalization.
16758         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16759         (Include): Remove conditionalization.
16760         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16761         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16762         * NEWS: Mention the change.
16763         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16764         via Sergey Poznyakoff <gray@gnu.org.ua>.
16765
16766 2008-12-21  Bruno Haible  <bruno@clisp.org>
16767
16768         * MODULES.html.sh (Extended multibyte and wide character utilities
16769         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16770         wcrtomb, wcsrtombs.
16771         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16772         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16773         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16774         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16775
16776 2008-12-21  Bruno Haible  <bruno@clisp.org>
16777
16778         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16779
16780 2008-12-21  Bruno Haible  <bruno@clisp.org>
16781
16782         * modules/wcsnrtombs-tests: New file.
16783         * tests/test-wcsnrtombs1.sh: New file.
16784         * tests/test-wcsnrtombs2.sh: New file.
16785         * tests/test-wcsnrtombs3.sh: New file.
16786         * tests/test-wcsnrtombs4.sh: New file.
16787         * tests/test-wcsnrtombs.c: New file.
16788
16789         New module 'wcsnrtombs'.
16790         * lib/wchar.in.h (wcsnrtombs): New declaration.
16791         * lib/wcsnrtombs.c: New file.
16792         * lib/wcsrtombs-state.c: New file.
16793         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16794         (internal_state): Remove variable.
16795         * m4/wcsnrtombs.m4: New file.
16796         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16797         compilation units.
16798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16799         HAVE_WCSNRTOMBS.
16800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16801         HAVE_WCSNRTOMBS.
16802         * modules/wcsnrtombs: New file.
16803         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16804         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16805
16806 2008-12-21  Bruno Haible  <bruno@clisp.org>
16807
16808         * modules/wcsrtombs-tests: New file.
16809         * tests/test-wcsrtombs1.sh: New file.
16810         * tests/test-wcsrtombs2.sh: New file.
16811         * tests/test-wcsrtombs3.sh: New file.
16812         * tests/test-wcsrtombs4.sh: New file.
16813         * tests/test-wcsrtombs.c: New file.
16814
16815         New module 'wcsrtombs'.
16816         * lib/wchar.in.h (wcsrtombs): New declaration.
16817         * lib/wcsrtombs.c: New file.
16818         * m4/wcsrtombs.m4: New file.
16819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16820         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16822         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16823         * modules/wcsrtombs: New file.
16824         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16825         bugs.
16826
16827 2008-12-21  Bruno Haible  <bruno@clisp.org>
16828
16829         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16830         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16831         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16832         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16833         if not correct.
16834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16835         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16836         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16837         m4/locale-zh.m4, m4/codeset.m4.
16838         * doc/posix-functions/wcrtomb.texi: Document the bug.
16839
16840 2008-12-21  Bruno Haible  <bruno@clisp.org>
16841
16842         Work around a btowc() bug on IRIX 6.5.
16843         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16844         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16845         REPLACE_WTOBC if not.
16846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16847         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16848         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16849
16850 2008-12-21  Bruno Haible  <bruno@clisp.org>
16851
16852         * modules/wcrtomb-tests: New file.
16853         * tests/test-wcrtomb.sh: New file.
16854         * tests/test-wcrtomb.c: New file.
16855
16856         New module 'wcrtomb'.
16857         * lib/wchar.in.h (wcrtomb): New declaration.
16858         * lib/wcrtomb.c: New file.
16859         * m4/wcrtomb.m4: New file.
16860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16861         HAVE_WCRTOMB.
16862         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16863         HAVE_WCRTOMB.
16864         * modules/wcrtomb: New file.
16865         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16866
16867 2008-12-21  Bruno Haible  <bruno@clisp.org>
16868
16869         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16870         * modules/mbsrtowcs (Files): Likewise.
16871         * modules/wctob (Files): Likewise.
16872         * modules/c-strcase-tests (Files): Likewise.
16873         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16874         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16875         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16876         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16877         * modules/vasnprintf-posix-tests (Files): Likewise.
16878
16879 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16880
16881         gitlog-to-changelog: pass all command-line arguments to git-log
16882         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16883         it is sometimes convenient to filter the commits in various ways.
16884         gitlog-to-changelog only allows --since to specify a start date,
16885         but git-log itself supports many other filtering mechanisms.
16886         At the moment, I want to filter by branch name.  Rather than
16887         adding a --branch option to gitlog-to-changelog, it seems more
16888         flexible to simply pass all options directly to git-log and let
16889         git do the work.  Notice that this effectively makes --since a
16890         redundant option for gitlog-to-changelog, but removing it would
16891         require current usage to change since calls would then require
16892         an additional '--'.
16893
16894 2008-12-21  Bruno Haible  <bruno@clisp.org>
16895
16896         * modules/mbsnrtowcs-tests: New file.
16897         * tests/test-mbsnrtowcs1.sh: New file.
16898         * tests/test-mbsnrtowcs2.sh: New file.
16899         * tests/test-mbsnrtowcs3.sh: New file.
16900         * tests/test-mbsnrtowcs4.sh: New file.
16901         * tests/test-mbsnrtowcs.c: New file.
16902
16903         New module 'mbsnrtowcs'.
16904         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16905         * lib/mbsnrtowcs.c: New file.
16906         * lib/mbsrtowcs-state.c: New file.
16907         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16908         (internal_state): Remove variable.
16909         * m4/mbsnrtowcs.m4: New file.
16910         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16911         compilation units.
16912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16913         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16914         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16915         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16916         * modules/mbsnrtowcs: New file.
16917         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16918         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16919         portability problem.
16920
16921 2008-12-21  Bruno Haible  <bruno@clisp.org>
16922
16923         Work around mbsrtowcs bug.
16924         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16925         (gl_FUNC_MBSRTOWCS): Invoke it.
16926         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16927         m4/locale-zh.m4.
16928         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16929
16930 2008-12-21  Bruno Haible  <bruno@clisp.org>
16931
16932         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16933
16934 2008-12-21  Bruno Haible  <bruno@clisp.org>
16935
16936         Update doc for AIX.
16937         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16938         16-bit wchar_t type.
16939         * doc/posix-functions/btowc.texi: Likewise.
16940         * doc/posix-functions/fgetwc.texi: Likewise.
16941         * doc/posix-functions/fgetws.texi: Likewise.
16942         * doc/posix-functions/fputwc.texi: Likewise.
16943         * doc/posix-functions/fputws.texi: Likewise.
16944         * doc/posix-functions/fwide.texi: Likewise.
16945         * doc/posix-functions/fwprintf.texi: Likewise.
16946         * doc/posix-functions/fwscanf.texi: Likewise.
16947         * doc/posix-functions/getwchar.texi: Likewise.
16948         * doc/posix-functions/getwc.texi: Likewise.
16949         * doc/posix-functions/iswalnum.texi: Likewise.
16950         * doc/posix-functions/iswalpha.texi: Likewise.
16951         * doc/posix-functions/iswblank.texi: Likewise.
16952         * doc/posix-functions/iswcntrl.texi: Likewise.
16953         * doc/posix-functions/iswctype.texi: Likewise.
16954         * doc/posix-functions/iswdigit.texi: Likewise.
16955         * doc/posix-functions/iswgraph.texi: Likewise.
16956         * doc/posix-functions/iswlower.texi: Likewise.
16957         * doc/posix-functions/iswprint.texi: Likewise.
16958         * doc/posix-functions/iswpunct.texi: Likewise.
16959         * doc/posix-functions/iswspace.texi: Likewise.
16960         * doc/posix-functions/iswupper.texi: Likewise.
16961         * doc/posix-functions/iswxdigit.texi: Likewise.
16962         * doc/posix-functions/mbrtowc.texi: Likewise.
16963         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16964         * doc/posix-functions/mbstowcs.texi: Likewise.
16965         * doc/posix-functions/mbtowc.texi: Likewise.
16966         * doc/posix-functions/putwchar.texi: Likewise.
16967         * doc/posix-functions/putwc.texi: Likewise.
16968         * doc/posix-functions/swprintf.texi: Likewise.
16969         * doc/posix-functions/tolower.texi: Likewise.
16970         * doc/posix-functions/toupper.texi: Likewise.
16971         * doc/posix-functions/towctrans.texi: Likewise.
16972         * doc/posix-functions/ungetwc.texi: Likewise.
16973         * doc/posix-functions/vswprintf.texi: Likewise.
16974         * doc/posix-functions/wcrtomb.texi: Likewise.
16975         * doc/posix-functions/wcscat.texi: Likewise.
16976         * doc/posix-functions/wcschr.texi: Likewise.
16977         * doc/posix-functions/wcscmp.texi: Likewise.
16978         * doc/posix-functions/wcscoll.texi: Likewise.
16979         * doc/posix-functions/wcscpy.texi: Likewise.
16980         * doc/posix-functions/wcscspn.texi: Likewise.
16981         * doc/posix-functions/wcsftime.texi: Likewise.
16982         * doc/posix-functions/wcslen.texi: Likewise.
16983         * doc/posix-functions/wcsncat.texi: Likewise.
16984         * doc/posix-functions/wcsncmp.texi: Likewise.
16985         * doc/posix-functions/wcsncpy.texi: Likewise.
16986         * doc/posix-functions/wcspbrk.texi: Likewise.
16987         * doc/posix-functions/wcsrchr.texi: Likewise.
16988         * doc/posix-functions/wcsrtombs.texi: Likewise.
16989         * doc/posix-functions/wcsspn.texi: Likewise.
16990         * doc/posix-functions/wcsstr.texi: Likewise.
16991         * doc/posix-functions/wcstod.texi: Likewise.
16992         * doc/posix-functions/wcstof.texi: Likewise.
16993         * doc/posix-functions/wcstoimax.texi: Likewise.
16994         * doc/posix-functions/wcstok.texi: Likewise.
16995         * doc/posix-functions/wcstold.texi: Likewise.
16996         * doc/posix-functions/wcstoll.texi: Likewise.
16997         * doc/posix-functions/wcstol.texi: Likewise.
16998         * doc/posix-functions/wcstombs.texi: Likewise.
16999         * doc/posix-functions/wcstoull.texi: Likewise.
17000         * doc/posix-functions/wcstoul.texi: Likewise.
17001         * doc/posix-functions/wcstoumax.texi: Likewise.
17002         * doc/posix-functions/wcswidth.texi: Likewise.
17003         * doc/posix-functions/wcsxfrm.texi: Likewise.
17004         * doc/posix-functions/wctob.texi: Likewise.
17005         * doc/posix-functions/wctomb.texi: Likewise.
17006         * doc/posix-functions/wctrans.texi: Likewise.
17007         * doc/posix-functions/wctype.texi: Likewise.
17008         * doc/posix-functions/wcwidth.texi: Likewise.
17009         * doc/posix-functions/wmemchr.texi: Likewise.
17010         * doc/posix-functions/wmemcmp.texi: Likewise.
17011         * doc/posix-functions/wmemcpy.texi: Likewise.
17012         * doc/posix-functions/wmemmove.texi: Likewise.
17013         * doc/posix-functions/wmemset.texi: Likewise.
17014         * doc/posix-functions/wprintf.texi: Likewise.
17015         * doc/posix-functions/wscanf.texi: Likewise.
17016
17017 2008-12-21  Bruno Haible  <bruno@clisp.org>
17018
17019         Update doc for HP-UX 11.11.
17020         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17021         in HP-UX version 11.00, not in all versions of HP-UX 11.
17022         * doc/posix-functions/fwide.texi: Likewise.
17023         * doc/posix-functions/fwprintf.texi: Likewise.
17024         * doc/posix-functions/fwscanf.texi: Likewise.
17025         * doc/posix-functions/inet_ntop.texi: Likewise.
17026         * doc/posix-functions/inet_pton.texi: Likewise.
17027         * doc/posix-functions/mbrlen.texi: Likewise.
17028         * doc/posix-functions/mbrtowc.texi: Likewise.
17029         * doc/posix-functions/mbsinit.texi: Likewise.
17030         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17031         * doc/posix-functions/swprintf.texi: Likewise.
17032         * doc/posix-functions/swscanf.texi: Likewise.
17033         * doc/posix-functions/towctrans.texi: Likewise.
17034         * doc/posix-functions/vfwprintf.texi: Likewise.
17035         * doc/posix-functions/vswprintf.texi: Likewise.
17036         * doc/posix-functions/vwprintf.texi: Likewise.
17037         * doc/posix-functions/wcrtomb.texi: Likewise.
17038         * doc/posix-functions/wcsrtombs.texi: Likewise.
17039         * doc/posix-functions/wcsstr.texi: Likewise.
17040         * doc/posix-functions/wctob.texi: Likewise.
17041         * doc/posix-functions/wctrans.texi: Likewise.
17042         * doc/posix-functions/wmemchr.texi: Likewise.
17043         * doc/posix-functions/wmemcmp.texi: Likewise.
17044         * doc/posix-functions/wmemcpy.texi: Likewise.
17045         * doc/posix-functions/wmemmove.texi: Likewise.
17046         * doc/posix-functions/wmemset.texi: Likewise.
17047         * doc/posix-functions/wprintf.texi: Likewise.
17048         * doc/posix-functions/wscanf.texi: Likewise.
17049
17050 2008-12-21  Bruno Haible  <bruno@clisp.org>
17051
17052         Work around a portability problem.
17053         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17054         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17055
17056 2008-12-20  Bruno Haible  <bruno@clisp.org>
17057
17058         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17060         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17062         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17063
17064         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17065         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17066         set.
17067         (GNULIB_defined_mbstate_t): New macro.
17068         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17069         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17070         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17071         reuses the system's mbrtowc function but works around the bugs.
17072         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17073         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17074         macros.
17075         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17076         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17077         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17079         REPLACE_MBSINIT if mbsinit needs to be overridden.
17080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17081         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17082         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17083         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17084         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17085         m4/locale-zh.m4.
17086         (Depends): Add mbsinit.
17087         * modules/mbsinit (Depends): Add mbrtowc.
17088         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17089
17090 2008-12-20  Bruno Haible  <bruno@clisp.org>
17091
17092         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17093         so that there are no conversion errors on AIX.
17094         * tests/test-mbsrtowcs.c (main): LIkewise.
17095
17096 2008-12-20  Bruno Haible  <bruno@clisp.org>
17097
17098         Work around wctob bug on Solaris <= 9.
17099         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17100         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17102         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17103         * modules/wctob (Files): Add m4/locale-fr.m4.
17104         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17105
17106 2008-12-20  Bruno Haible  <bruno@clisp.org>
17107
17108         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17109         /dev/null.
17110         * tests/test-select-in.sh: Likewise.
17111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17112
17113 2008-12-20  Bruno Haible  <bruno@clisp.org>
17114
17115         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17116         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17117         Cygwin 1.5.x.
17118
17119 2008-12-20  Bruno Haible  <bruno@clisp.org>
17120
17121         Ensure mbstate_t is defined on HP-UX 11.11.
17122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17123         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17124         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17125         AC_USE_SYSTEM_EXTENSIONS.
17126         * modules/fnmatch (Depends-on): Add extensions.
17127         * modules/mbrlen (Depends-on): Likewise.
17128         * modules/mbrtowc (Depends-on): Likewise.
17129         * modules/mbsinit (Depends-on): Likewise.
17130         * modules/mbsrtowcs (Depends-on): Likewise.
17131         * modules/mbswidth (Depends-on): Likewise.
17132         * modules/quotearg (Depends-on): Likewise.
17133         * modules/strftime (Depends-on): Likewise.
17134
17135 2008-12-20  Bruno Haible  <bruno@clisp.org>
17136
17137         Ensure wctob is declared on IRIX 6.5.
17138         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17139         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17140         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17142         of HAVE_WCTOB.
17143         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17144         HAVE_WCTOB.
17145         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17146
17147 2008-12-19  Bruno Haible  <bruno@clisp.org>
17148
17149         * modules/mbsrtowcs-tests: New file.
17150         * tests/test-mbsrtowcs1.sh: New file.
17151         * tests/test-mbsrtowcs2.sh: New file.
17152         * tests/test-mbsrtowcs3.sh: New file.
17153         * tests/test-mbsrtowcs4.sh: New file.
17154         * tests/test-mbsrtowcs.c: New file.
17155
17156         New module 'mbsrtowcs'.
17157         * lib/wchar.in.h (mbsrtowcs): New declaration.
17158         * lib/mbsrtowcs.c: New file.
17159         * m4/mbsrtowcs.m4: New file.
17160         * modules/mbsrtowcs: New file.
17161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17162         HAVE_MBSRTOWCS.
17163         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17164         HAVE_MBSRTOWCS.
17165         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17166
17167 2008-12-19  Bruno Haible  <bruno@clisp.org>
17168
17169         New module 'mbrlen'.
17170         * lib/wchar.in.h (mbrlen): New declaration.
17171         * lib/mbrlen.c: New file.
17172         * m4/mbrlen.m4: New file.
17173         * modules/mbrlen: New file.
17174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17175         HAVE_MBRLEN.
17176         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17177         HAVE_MBRLEN.
17178         * doc/posix-functions/mbrlen.texi: Document the new module.
17179
17180 2008-12-19  Bruno Haible  <bruno@clisp.org>
17181
17182         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17183         * modules/mbrtowc (Depends-on): Add verify.
17184         Suggested by Paul Eggert.
17185
17186 2008-12-18  Bruno Haible  <bruno@clisp.org>
17187
17188         * modules/mbsinit-tests: New file.
17189         * tests/test-mbsinit.sh: New file.
17190         * tests/test-mbsinit.c: New file.
17191
17192 2008-12-18  Bruno Haible  <bruno@clisp.org>
17193
17194         * modules/mbrtowc-tests: New file.
17195         * tests/test-mbrtowc1.sh: New file.
17196         * tests/test-mbrtowc2.sh: New file.
17197         * tests/test-mbrtowc3.sh: New file.
17198         * tests/test-mbrtowc4.sh: New file.
17199         * tests/test-mbrtowc.c: New file.
17200
17201         New module 'mbrtowc'.
17202         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17203         mbsinit and mbrtowc.
17204         (mbrtowc): New declaration.
17205         * lib/mbrtowc.c: New file.
17206         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17207         * modules/mbrtowc: New file.
17208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17209         HAVE_MBRTOWC.
17210         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17211         HAVE_MBRTOWC.
17212         * doc/posix-functions/mbrtowc.texi: Document the new module.
17213
17214 2008-12-18  Bruno Haible  <bruno@clisp.org>
17215
17216         New module 'wctob'.
17217         * lib/wchar.in.h (wctob): New declaration.
17218         * lib/wctob.c: New file.
17219         * m4/wctob.m4: New file.
17220         * modules/wctob: New file.
17221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17222         HAVE_WCTOB.
17223         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17224         * doc/posix-functions/wctob.texi: Document the new module.
17225
17226 2008-12-18  Bruno Haible  <bruno@clisp.org>
17227
17228         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17229         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17230
17231 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17232
17233         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17234         G. Christensen" <tgc@jupiterrise.com>.
17235
17236         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17237         G. Christensen" <tgc@jupiterrise.com>.
17238
17239         * lib/flock.c: Need to include string.h.  Reported by "Tom
17240         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17241         <ebb9@byu.net>.
17242
17243 2008-12-18  Bruno Haible  <bruno@clisp.org>
17244
17245         * m4/locale-ja.m4: New file, from GNU gettext.
17246
17247 2008-12-17  Bruno Haible  <bruno@clisp.org>
17248
17249         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17250         Suggested by Eric Blake.
17251
17252 2008-12-17  Bruno Haible  <bruno@clisp.org>
17253
17254         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17255
17256 2008-12-17  Bruno Haible  <bruno@clisp.org>
17257
17258         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17259         * modules/mbsinit (Depends-on): Add verify.
17260         Suggested by Paul Eggert.
17261
17262 2008-12-17  Bruno Haible  <bruno@clisp.org>
17263
17264         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17265         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17266         gl_FUNC_MBRTOWC.
17267         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17268         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17269         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17270         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17271         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17272         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17273         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17274         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17275         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17276         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17277         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17278         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17279         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17280         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17281         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17282         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17283         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17284         * modules/trim (configure.ac): Likewise.
17285
17286 2008-12-17  Bruno Haible  <bruno@clisp.org>
17287
17288         * modules/btowc-tests: New file.
17289         * tests/test-btowc1.sh: New file.
17290         * tests/test-btowc2.sh: New file.
17291         * tests/test-btowc.c: New file.
17292
17293         New module 'btowc'.
17294         * lib/wchar.in.h (btowc): New declaration.
17295         * lib/btowc.c: New file.
17296         * m4/btowc.m4: New file.
17297         * modules/btowc: New file.
17298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17299         HAVE_BTOWC.
17300         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17301         * doc/posix-functions/btowc.texi: Document the new module.
17302
17303 2008-12-17  Bruno Haible  <bruno@clisp.org>
17304
17305         New module 'mbsinit'.
17306         * lib/wchar.in.h (mbsinit): New declaration.
17307         * lib/mbsinit.c: New file.
17308         * m4/mbsinit.m4: New file.
17309         * modules/mbsinit: New file.
17310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17311         HAVE_MBSINIT.
17312         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17313         HAVE_MBSINIT.
17314         * doc/posix-functions/mbsinit.texi: Document the new module.
17315
17316 2008-12-16  Bruno Haible  <bruno@clisp.org>
17317
17318         * lib/unistd.in.h: Add comment.
17319         * tests/test-environ.c: Don't include <stdlib.h>.
17320
17321 2008-12-16  Bruno Haible  <bruno@clisp.org>
17322
17323         * lib/parse-duration.h (parse_duration): Document return value
17324         convention.
17325         * lib/parse-duration.c: Include specification header first. Add
17326         comments.
17327         (_): Remove macro.
17328         (parse_year_month_day, parse_hour_minute_second): Move side effects
17329         outside of strchr call.
17330         (parse_non_iso8601): Move side effects outside of isspace call.
17331         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17332         call.
17333
17334 2008-12-16  Bruno Haible  <bruno@clisp.org>
17335
17336         * tests/test-parse-duration.sh: Produce no output when the test
17337         succeeds.
17338
17339 2008-12-16  Bruno Haible  <bruno@clisp.org>
17340
17341         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17342         expressions.
17343
17344 2008-12-15  Bruno Haible  <bruno@clisp.org>
17345
17346         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17347         * doc/glibc-functions/flistxattr.texi: Likewise.
17348         * doc/glibc-functions/fopencookie.texi: Likewise.
17349         * doc/glibc-functions/fremovexattr.texi: Likewise.
17350         * doc/glibc-functions/fsetxattr.texi: Likewise.
17351         * doc/glibc-functions/getxattr.texi: Likewise.
17352         * doc/glibc-functions/lgetxattr.texi: Likewise.
17353         * doc/glibc-functions/listxattr.texi: Likewise.
17354         * doc/glibc-functions/llistxattr.texi: Likewise.
17355         * doc/glibc-functions/lremovexattr.texi: Likewise.
17356         * doc/glibc-functions/lsetxattr.texi: Likewise.
17357         * doc/glibc-functions/removexattr.texi: Likewise.
17358         * doc/glibc-functions/setxattr.texi: Likewise.
17359         * doc/posix-functions/open_memstream.texi: Likewise.
17360
17361 2008-12-15  Eric Blake  <ebb9@byu.net>
17362
17363         Update doc for cygwin 1.7.
17364         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17365         functions.
17366         * doc/posix-functions/fchmodat.texi: Likewise.
17367         * doc/posix-functions/fchownat.texi: Likewise.
17368         * doc/posix-functions/fdopendir.texi: Likewise.
17369         * doc/posix-functions/fmemopen.texi: Likewise.
17370         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17371         * doc/posix-functions/fstatat.texi: Likewise.
17372         * doc/posix-functions/futimens.texi: Likewise.
17373         * doc/posix-functions/gai_strerror.texi: Likewise.
17374         * doc/posix-functions/getaddrinfo.texi: Likewise.
17375         * doc/posix-functions/getnameinfo.texi: Likewise.
17376         * doc/posix-functions/if_freenameindex.texi: Likewise.
17377         * doc/posix-functions/if_indextoname.texi: Likewise.
17378         * doc/posix-functions/if_nameindex.texi: Likewise.
17379         * doc/posix-functions/if_nametoindex.texi: Likewise.
17380         * doc/posix-functions/insque.texi: Likewise.
17381         * doc/posix-functions/linkat.texi: Likewise.
17382         * doc/posix-functions/llrint.texi: Likewise.
17383         * doc/posix-functions/llrintf.texi: Likewise.
17384         * doc/posix-functions/llrintl.texi: Likewise.
17385         * doc/posix-functions/lockf.texi: Likewise.
17386         * doc/posix-functions/lrintl.texi: Likewise.
17387         * doc/posix-functions/mkdirat.texi: Likewise.
17388         * doc/posix-functions/mkfifoat.texi: Likewise.
17389         * doc/posix-functions/mknodat.texi: Likewise.
17390         * doc/posix-functions/mq_close.texi: Likewise.
17391         * doc/posix-functions/mq_getattr.texi: Likewise.
17392         * doc/posix-functions/mq_notify.texi: Likewise.
17393         * doc/posix-functions/mq_open.texi: Likewise.
17394         * doc/posix-functions/mq_receive.texi: Likewise.
17395         * doc/posix-functions/mq_send.texi: Likewise.
17396         * doc/posix-functions/mq_setattr.texi: Likewise.
17397         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17398         * doc/posix-functions/mq_timedsend.texi: Likewise.
17399         * doc/posix-functions/mq_unlink.texi: Likewise.
17400         * doc/posix-functions/open_memstream.texi: Likewise.
17401         * doc/posix-functions/openat.texi: Likewise.
17402         * doc/posix-functions/posix_fadvise.texi: Likewise.
17403         * doc/posix-functions/posix_fallocate.texi: Likewise.
17404         * doc/posix-functions/posix_madvise.texi: Likewise.
17405         * doc/posix-functions/posix_memalign.texi: Likewise.
17406         * doc/posix-functions/posix_openpt.texi: Likewise.
17407         * doc/posix-functions/readlinkat.texi: Likewise.
17408         * doc/posix-functions/remque.texi: Likewise.
17409         * doc/posix-functions/renameat.texi: Likewise.
17410         * doc/posix-functions/rintl.texi: Likewise.
17411         * doc/posix-functions/sem_unlink.texi: Likewise.
17412         * doc/posix-functions/shm_open.texi: Likewise.
17413         * doc/posix-functions/shm_unlink.texi: Likewise.
17414         * doc/posix-functions/signgam.texi: Likewise.
17415         * doc/posix-functions/sigset.texi: Likewise.
17416         * doc/posix-functions/stpcpy.texi: Likewise.
17417         * doc/posix-functions/stpncpy.texi: Likewise.
17418         * doc/posix-functions/strerror.texi: Likewise.
17419         * doc/posix-functions/strtod.texi: Likewise.
17420         * doc/posix-functions/symlinkat.texi: Likewise.
17421         * doc/posix-functions/unlinkat.texi: Likewise.
17422         * doc/posix-functions/utimensat.texi: Likewise.
17423         * doc/glibc-functions/bindresvport.texi: Likewise.
17424         * doc/glibc-functions/dn_expand.texi: Likewise.
17425         * doc/glibc-functions/exp10.texi: Likewise.
17426         * doc/glibc-functions/exp10f.texi: Likewise.
17427         * doc/glibc-functions/fgetxattr.texi: Likewise.
17428         * doc/glibc-functions/flistxattr.texi: Likewise.
17429         * doc/glibc-functions/fopencookie.texi: Likewise.
17430         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17431         * doc/glibc-functions/fremovexattr.texi: Likewise.
17432         * doc/glibc-functions/fsetxattr.texi: Likewise.
17433         * doc/glibc-functions/getifaddrs.texi: Likewise.
17434         * doc/glibc-functions/getxattr.texi: Likewise.
17435         * doc/glibc-functions/lgetxattr.texi: Likewise.
17436         * doc/glibc-functions/listxattr.texi: Likewise.
17437         * doc/glibc-functions/llistxattr.texi: Likewise.
17438         * doc/glibc-functions/lremovexattr.texi: Likewise.
17439         * doc/glibc-functions/lsetxattr.texi: Likewise.
17440         * doc/glibc-functions/pow10.texi: Likewise.
17441         * doc/glibc-functions/pow10f.texi: Likewise.
17442         * doc/glibc-functions/rcmd_af.texi: Likewise.
17443         * doc/glibc-functions/removexattr.texi: Likewise.
17444         * doc/glibc-functions/res_init.texi: Likewise.
17445         * doc/glibc-functions/res_mkquery.texi: Likewise.
17446         * doc/glibc-functions/res_query.texi: Likewise.
17447         * doc/glibc-functions/res_querydomain.texi: Likewise.
17448         * doc/glibc-functions/res_send.texi: Likewise.
17449         * doc/glibc-functions/rresvport_af.texi: Likewise.
17450         * doc/glibc-functions/setxattr.texi: Likewise.
17451         * doc/glibc-functions/strcasestr.texi: Likewise.
17452
17453 2008-12-15  Bruno Haible  <bruno@clisp.org>
17454
17455         Fix compilation error on OSF/1 4.0.
17456         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17457         <sys/time.h>, simply delegate to the system header.
17458         Reported by Daniel Richard G. <oss@teragram.com>.
17459
17460 2008-12-15  Bruno Haible  <bruno@clisp.org>
17461
17462         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17463         * doc/posix-functions/fchmodat.texi: Likewise.
17464         * doc/posix-functions/fchownat.texi: Likewise.
17465         * doc/posix-functions/fdopendir.texi: Likewise.
17466         * doc/posix-functions/fstatat.texi: Likewise.
17467         * doc/posix-functions/mkdirat.texi: Likewise.
17468         * doc/posix-functions/unlinkat.texi: Likewise.
17469
17470 2008-12-14  Bruno Haible  <bruno@clisp.org>
17471
17472         Update doc for POSIX:2008.
17473         * doc/posix-functions/faccessat.texi: New file.
17474         * doc/posix-functions/fchmodat.texi: New file.
17475         * doc/posix-functions/fchownat.texi: New file.
17476         * doc/posix-functions/fdopendir.texi: New file.
17477         * doc/posix-functions/fstatat.texi: New file.
17478         * doc/posix-functions/futimens.texi: New file.
17479         * doc/posix-functions/linkat.texi: New file.
17480         * doc/posix-functions/mkdirat.texi: New file.
17481         * doc/posix-functions/mkfifoat.texi: New file.
17482         * doc/posix-functions/mknodat.texi: New file.
17483         * doc/posix-functions/open_wmemstream.texi: New file.
17484         * doc/posix-functions/openat.texi: New file.
17485         * doc/posix-functions/psiginfo.texi: New file.
17486         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17487         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17488         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17489         * doc/posix-functions/readlinkat.texi: New file.
17490         * doc/posix-functions/renameat.texi: New file.
17491         * doc/posix-functions/strerror_l.texi: New file.
17492         * doc/posix-functions/symlinkat.texi: New file.
17493         * doc/posix-functions/unlinkat.texi: New file.
17494         * doc/posix-functions/utimensat.texi: New file.
17495         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17496
17497 2008-12-14  Bruno Haible  <bruno@clisp.org>
17498
17499         Update doc for POSIX:2008.
17500         * doc/posix-functions/alphasort.texi: Renamed from
17501         doc/glibc-functions/alphasort.texi.
17502         * doc/posix-functions/dirfd.texi: Renamed from
17503         doc/glibc-functions/dirfd.texi.
17504         * doc/posix-functions/dprintf.texi: Renamed from
17505         doc/glibc-functions/dprintf.texi.
17506         * doc/posix-functions/duplocale.texi: Renamed from
17507         doc/glibc-functions/duplocale.texi.
17508         * doc/posix-functions/fexecve.texi: Renamed from
17509         doc/glibc-functions/fexecve.texi.
17510         * doc/posix-functions/fmemopen.texi: Renamed from
17511         doc/glibc-functions/fmemopen.texi.
17512         * doc/posix-functions/freelocale.texi: Renamed from
17513         doc/glibc-functions/freelocale.texi.
17514         * doc/posix-functions/getdate_err.texi: Renamed from
17515         doc/glibc-functions/getdate_err.texi.
17516         * doc/posix-functions/isalnum_l.texi: Renamed from
17517         doc/glibc-functions/isalnum_l.texi.
17518         * doc/posix-functions/isalpha_l.texi: Renamed from
17519         doc/glibc-functions/isalpha_l.texi.
17520         * doc/posix-functions/isblank_l.texi: Renamed from
17521         doc/glibc-functions/isblank_l.texi.
17522         * doc/posix-functions/iscntrl_l.texi: Renamed from
17523         doc/glibc-functions/iscntrl_l.texi.
17524         * doc/posix-functions/isdigit_l.texi: Renamed from
17525         doc/glibc-functions/isdigit_l.texi.
17526         * doc/posix-functions/isgraph_l.texi: Renamed from
17527         doc/glibc-functions/isgraph_l.texi.
17528         * doc/posix-functions/islower_l.texi: Renamed from
17529         doc/glibc-functions/islower_l.texi.
17530         * doc/posix-functions/isprint_l.texi: Renamed from
17531         doc/glibc-functions/isprint_l.texi.
17532         * doc/posix-functions/ispunct_l.texi: Renamed from
17533         doc/glibc-functions/ispunct_l.texi.
17534         * doc/posix-functions/isspace_l.texi: Renamed from
17535         doc/glibc-functions/isspace_l.texi.
17536         * doc/posix-functions/isupper_l.texi: Renamed from
17537         doc/glibc-functions/isupper_l.texi.
17538         * doc/posix-functions/iswalnum_l.texi: Renamed from
17539         doc/glibc-functions/iswalnum_l.texi.
17540         * doc/posix-functions/iswalpha_l.texi: Renamed from
17541         doc/glibc-functions/iswalpha_l.texi.
17542         * doc/posix-functions/iswblank_l.texi: Renamed from
17543         doc/glibc-functions/iswblank_l.texi.
17544         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17545         doc/glibc-functions/iswcntrl_l.texi.
17546         * doc/posix-functions/iswctype_l.texi: Renamed from
17547         doc/glibc-functions/iswctype_l.texi.
17548         * doc/posix-functions/iswdigit_l.texi: Renamed from
17549         doc/glibc-functions/iswdigit_l.texi.
17550         * doc/posix-functions/iswgraph_l.texi: Renamed from
17551         doc/glibc-functions/iswgraph_l.texi.
17552         * doc/posix-functions/iswlower_l.texi: Renamed from
17553         doc/glibc-functions/iswlower_l.texi.
17554         * doc/posix-functions/iswprint_l.texi: Renamed from
17555         doc/glibc-functions/iswprint_l.texi.
17556         * doc/posix-functions/iswpunct_l.texi: Renamed from
17557         doc/glibc-functions/iswpunct_l.texi.
17558         * doc/posix-functions/iswspace_l.texi: Renamed from
17559         doc/glibc-functions/iswspace_l.texi.
17560         * doc/posix-functions/iswupper_l.texi: Renamed from
17561         doc/glibc-functions/iswupper_l.texi.
17562         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17563         doc/glibc-functions/iswxdigit_l.texi.
17564         * doc/posix-functions/isxdigit_l.texi: Renamed from
17565         doc/glibc-functions/isxdigit_l.texi.
17566         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17567         doc/glibc-functions/mbsnrtowcs.texi.
17568         * doc/posix-functions/mkdtemp.texi: Renamed from
17569         doc/glibc-functions/mkdtemp.texi.
17570         * doc/posix-functions/newlocale.texi: Renamed from
17571         doc/glibc-functions/newlocale.texi.
17572         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17573         doc/glibc-functions/nl_langinfo_l.texi.
17574         * doc/posix-functions/open_memstream.texi: Renamed from
17575         doc/glibc-functions/open_memstream.texi.
17576         * doc/posix-functions/opterr.texi: Renamed from
17577         doc/glibc-functions/opterr.texi.
17578         * doc/posix-functions/optind.texi: Renamed from
17579         doc/glibc-functions/optind.texi.
17580         * doc/posix-functions/optopt.texi: Renamed from
17581         doc/glibc-functions/optopt.texi.
17582         * doc/posix-functions/psignal.texi: Renamed from
17583         doc/glibc-functions/psignal.texi.
17584         * doc/posix-functions/scandir.texi: Renamed from
17585         doc/glibc-functions/scandir.texi.
17586         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17587         doc/glibc-functions/sched_get_priority_min.texi.
17588         * doc/posix-functions/signgam.texi: Renamed from
17589         doc/glibc-functions/signgam.texi.
17590         * doc/posix-functions/stpcpy.texi: Renamed from
17591         doc/glibc-functions/stpcpy.texi.
17592         * doc/posix-functions/stpncpy.texi: Renamed from
17593         doc/glibc-functions/stpncpy.texi.
17594         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17595         doc/glibc-functions/strcasecmp_l.texi.
17596         * doc/posix-functions/strcoll_l.texi: Renamed from
17597         doc/glibc-functions/strcoll_l.texi.
17598         * doc/posix-functions/strfmon_l.texi: Renamed from
17599         doc/glibc-functions/strfmon_l.texi.
17600         * doc/posix-functions/strftime_l.texi: Renamed from
17601         doc/glibc-functions/strftime_l.texi.
17602         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17603         doc/glibc-functions/strncasecmp_l.texi.
17604         * doc/posix-functions/strndup.texi: Renamed from
17605         doc/glibc-functions/strndup.texi.
17606         * doc/posix-functions/strnlen.texi: Renamed from
17607         doc/glibc-functions/strnlen.texi.
17608         * doc/posix-functions/strsignal.texi: Renamed from
17609         doc/glibc-functions/strsignal.texi.
17610         * doc/posix-functions/strxfrm_l.texi: Renamed from
17611         doc/glibc-functions/strxfrm_l.texi.
17612         * doc/posix-functions/timer_gettime.texi: Renamed from
17613         doc/glibc-functions/timer_gettime.texi.
17614         * doc/posix-functions/tolower_l.texi: Renamed from
17615         doc/glibc-functions/tolower_l.texi.
17616         * doc/posix-functions/toupper_l.texi: Renamed from
17617         doc/glibc-functions/toupper_l.texi.
17618         * doc/posix-functions/towctrans_l.texi: Renamed from
17619         doc/glibc-functions/towctrans_l.texi.
17620         * doc/posix-functions/towlower_l.texi: Renamed from
17621         doc/glibc-functions/towlower_l.texi.
17622         * doc/posix-functions/towupper_l.texi: Renamed from
17623         doc/glibc-functions/towupper_l.texi.
17624         * doc/posix-functions/uselocale.texi: Renamed from
17625         doc/glibc-functions/uselocale.texi.
17626         * doc/posix-functions/vdprintf.texi: Renamed from
17627         doc/glibc-functions/vdprintf.texi.
17628         * doc/posix-functions/wcpcpy.texi:
17629         Renamed from doc/glibc-functions/wcpcpy.texi.
17630         * doc/posix-functions/wcpncpy.texi: Renamed from
17631         doc/glibc-functions/wcpncpy.texi.
17632         * doc/posix-functions/wcscasecmp.texi: Renamed from
17633         doc/glibc-functions/wcscasecmp.texi.
17634         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17635         doc/glibc-functions/wcscasecmp_l.texi.
17636         * doc/posix-functions/wcscoll_l.texi: Renamed from
17637         doc/glibc-functions/wcscoll_l.texi.
17638         * doc/posix-functions/wcsdup.texi: Renamed from
17639         doc/glibc-functions/wcsdup.texi.
17640         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17641         doc/glibc-functions/wcsncasecmp.texi.
17642         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17643         doc/glibc-functions/wcsncasecmp_l.texi.
17644         * doc/posix-functions/wcsnlen.texi: Renamed from
17645         doc/glibc-functions/wcsnlen.texi.
17646         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17647         doc/glibc-functions/wcsnrtombs.texi.
17648         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17649         doc/glibc-functions/wcsxfrm_l.texi.
17650         * doc/posix-functions/wctrans_l.texi: Renamed from
17651         doc/glibc-functions/wctrans_l.texi.
17652         * doc/posix-functions/wctype_l.texi: Renamed from
17653         doc/glibc-functions/wctype_l.texi.
17654         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17655         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17656         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17657         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17658         these subsections.
17659         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17660         Remove sections.
17661
17662 2008-12-14  Bruno Haible  <bruno@clisp.org>
17663
17664         Update doc for POSIX:2008.
17665         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17666
17667 2008-12-14  Bruno Haible  <bruno@clisp.org>
17668
17669         Update doc for POSIX:2008.
17670         * doc/pastposix-functions/bcmp.texi: Renamed from
17671         doc/posix-functions/bcmp.texi.
17672         * doc/pastposix-functions/bcopy.texi: Renamed from
17673         doc/posix-functions/bcopy.texi.
17674         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17675         doc/posix-functions/bsd_signal.texi.
17676         * doc/pastposix-functions/bzero.texi: Renamed from
17677         doc/posix-functions/bzero.texi.
17678         * doc/pastposix-functions/ecvt.texi: Renamed from
17679         doc/posix-functions/ecvt.texi.
17680         * doc/pastposix-functions/fcvt.texi: Renamed from
17681         doc/posix-functions/fcvt.texi.
17682         * doc/pastposix-functions/ftime.texi: Renamed from
17683         doc/posix-functions/ftime.texi.
17684         * doc/pastposix-functions/gcvt.texi: Renamed from
17685         doc/posix-functions/gcvt.texi.
17686         * doc/pastposix-functions/getcontext.texi: Renamed from
17687         doc/posix-functions/getcontext.texi.
17688         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17689         doc/posix-functions/gethostbyaddr.texi.
17690         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17691         doc/posix-functions/gethostbyname.texi.
17692         * doc/pastposix-functions/getwd.texi: Renamed from
17693         doc/posix-functions/getwd.texi.
17694         * doc/pastposix-functions/h_errno.texi: Renamed from
17695         doc/posix-functions/h_errno.texi.
17696         * doc/pastposix-functions/index.texi: Renamed from
17697         doc/posix-functions/index.texi.
17698         * doc/pastposix-functions/makecontext.texi: Renamed from
17699         doc/posix-functions/makecontext.texi.
17700         * doc/pastposix-functions/mktemp.texi: Renamed from
17701         doc/posix-functions/mktemp.texi.
17702         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17703         doc/posix-functions/pthread_attr_getstackaddr.texi.
17704         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17705         doc/posix-functions/pthread_attr_setstackaddr.texi.
17706         * doc/pastposix-functions/rindex.texi: Renamed from
17707         doc/posix-functions/rindex.texi.
17708         * doc/pastposix-functions/scalb.texi: Renamed from
17709         doc/posix-functions/scalb.texi.
17710         * doc/pastposix-functions/setcontext.texi: Renamed from
17711         doc/posix-functions/setcontext.texi.
17712         * doc/pastposix-functions/swapcontext.texi: Renamed from
17713         doc/posix-functions/swapcontext.texi.
17714         * doc/pastposix-functions/ualarm.texi: Renamed from
17715         doc/posix-functions/ualarm.texi.
17716         * doc/pastposix-functions/usleep.texi: Renamed from
17717         doc/posix-functions/usleep.texi.
17718         * doc/pastposix-functions/vfork.texi: Renamed from
17719         doc/posix-functions/vfork.texi.
17720         * doc/pastposix-functions/wcswcs.texi: Renamed from
17721         doc/posix-functions/wcswcs.texi.
17722         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17723         (Function Substitutes): Update.
17724
17725 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17726
17727         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17728         m4/strerror.m4.
17729
17730 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17731             Bruno Haible  <bruno@clisp.org>
17732
17733         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17734
17735 2008-12-13  Bruno Haible  <bruno@clisp.org>
17736
17737         * modules/strtoull (Depends-on): Remove unistd.
17738
17739 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17740
17741         * modules/strtoull (Depends-on): Add stdlib.
17742
17743 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17744
17745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17746
17747 2008-12-10  Jim Meyering  <meyering@redhat.com>
17748
17749         gl_ASSERT: don't say assertions are disabled when they're not
17750         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17751         "checking whether to enable assertions... no", when they are in
17752         fact enabled.  This is solely a bug in the output of configure.
17753         In spite of saying "no", NDEBUG was not defined in that case.
17754         Also, as noted by Eric Blake, leave assertions enabled upon
17755         --enable-assert=INVALID.
17756
17757 2008-12-10  Bruno Haible  <bruno@clisp.org>
17758
17759         Change MODULES.html to refer to POSIX:2008 where possible.
17760         * MODULES.html.sh (POSIX2008_URL): New variable.
17761         (posix_headers): Remove sys/timeb, ucontext.
17762         (posix2001_headers): New variable.
17763         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17764         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17765         index, makecontext, mktemp, pthread_attr_getstackaddr,
17766         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17767         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17768         (posix2001_functions): New variable.
17769         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17770         otherwise.
17771
17772 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17773
17774         add missing include to parse-duration.c
17775         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17776         * modules/parse-duration (Depends-on): Add xalloc.
17777
17778         fix sed script reading maint.mk
17779         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17780         (syntax-check-rules): Use it.
17781
17782 2008-12-09  Bruno Haible  <bruno@clisp.org>
17783
17784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17785         MacOS X 10.4/PowerPC.
17786         Reported by Simon Josefsson.
17787
17788 2008-12-08  Jim Meyering  <meyering@redhat.com>
17789
17790         work around mingw's lack of some S_IF definitions
17791         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17792         Reported by Simon Josefsson.
17793
17794 2008-12-08  Bruno Haible  <bruno@clisp.org>
17795
17796         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17797         applied to variables. Needed on MacOS X 10.4/PowerPC.
17798         Reported by Simon Josefsson.
17799
17800 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17801         and Eric Blake  <ebb9@byu.net>
17802
17803         assert: honor --enable-assert
17804         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17805         order to honor --enable-assert, rather than treating it as a
17806         synonym for --disable-assert.
17807
17808 2008-12-08  Jim Meyering  <meyering@redhat.com>
17809
17810         * lib/posixtm.c: Remove now-useless declaration of mktime.
17811
17812         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17813
17814 2008-12-07  Bruno Haible  <bruno@clisp.org>
17815
17816         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17817         test_once): Mark functions as static.
17818         * tests/test-tls.c (test_tls): Likewise.
17819
17820 2008-12-07  Bruno Haible  <bruno@clisp.org>
17821
17822         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17823         iconv_register_autodetect.
17824
17825 2008-12-07  Jim Meyering  <meyering@redhat.com>
17826
17827         posixtm.c: avoid a warning
17828         * lib/posixtm.c (posixtime): Don't initialize tm0.
17829         It's no longer needed to placate gcc4's -Wuninitialized,
17830         and the attempt to placate would elicit a new warning.
17831
17832         unicodeio.c: mark unused parameters
17833         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17834         (fallback_failure_callback): Likewise.
17835
17836 2008-12-07  Bruno Haible  <bruno@clisp.org>
17837
17838         * gnulib-tool (func_create_testdir): When building the tests
17839         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17840         Reported by Simon Josefsson.
17841
17842 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17843
17844         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17845
17846 2008-12-06  Bruno Haible  <bruno@clisp.org>
17847
17848         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17849         Suggested by Eric Blake.
17850
17851 2008-12-06  Bruno Haible  <bruno@clisp.org>
17852
17853         Fix a c-stack test failure on MacOS X.
17854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17855         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17856         handler for SIGBUS as well.
17857         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17858         install a signal handler for SIGBUS as well.
17859         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17860
17861 2008-12-06  Bruno Haible  <bruno@clisp.org>
17862
17863         Advocacy documentation.
17864         * doc/gnulib-intro.texi (Benefits): New section.
17865         * doc/gnulib.texi: Update.
17866
17867 2008-12-06  Bruno Haible  <bruno@clisp.org>
17868
17869         Document the 'manywarnings' module.
17870         * doc/manywarnings.texi: New file.
17871         * doc/gnulib.texi: Include it.
17872
17873 2008-12-05  Eric Blake  <ebb9@byu.net>
17874
17875         tests: silence some gcc warnings
17876         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17877         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17878         type mismatches.
17879
17880 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17881             Bruno Haible  <bruno@clisp.org>
17882
17883         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17884
17885 2008-11-29  Jim Meyering  <meyering@redhat.com>
17886
17887         unicodeio.c: mark unused parameters
17888         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17889         (fallback_failure_callback): Likewise.
17890
17891         fts: fix a thinko
17892         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17893         (set_stat_type): Return S_IF*-valued "type" directly.
17894         Prompted by James Youngman's spotting a related bug.
17895         Confirmed by further testing through find.
17896
17897         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17898         * lib/fts.c (D_TYPE): Define.
17899         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17900         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17901         (s_ifmt_shift_bits): New function.
17902         (set_stat_type): New function.
17903         (fts_build): When not calling fts_stat, call set_stat_type
17904         to propagate dirent.d_type info to fts_read caller.
17905         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17906         fts_statp->st_mode type information may be valid.
17907
17908 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17909
17910         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17911         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17912         <sds@gnu.org>.
17913
17914 2008-11-20  Bruno Haible  <bruno@clisp.org>
17915
17916         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17917         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17918         INCLUDE_NEXT.
17919         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17920         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17921         * modules/math (Makefile.am): Substitute
17922         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17923         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17924
17925 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17926             Bruno Haible  <bruno@clisp.org>
17927
17928         * lib/stdint.in.h: Define all type macros so that their expansion is
17929         a single typedef'ed token. Fixes a compilation failure in Boost which
17930         does "using ::int8_t;".
17931
17932 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17933
17934         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17935         gl_MANYWARN_ALL_GCC.
17936         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17937         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17938         * modules/manywarnings: New file.
17939         * MODULES.html.sh: Mention manywarnings module.
17940
17941 2008-11-18  Bruno Haible  <bruno@clisp.org>
17942
17943         * doc/gnulib-tool.texi (Unit tests): New section.
17944
17945 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17946
17947         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17948         paths like 'lib/po/foo.po'.
17949
17950 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17951
17952         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17953         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17954
17955 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17956
17957         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17958         parameter works.
17959
17960 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17961
17962         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17963
17964 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17965
17966         * modules/parse-duration-tests: New file.
17967         * tests/test-parse-duration.sh: New file.
17968         * tests/test-parse-duration.c: New file.
17969
17970         New module 'parse-duration'.
17971         * lib/parse-duration.h: New file.
17972         * lib/parse-duration.c: New file.
17973         * modules/parse-duration: New file.
17974
17975 2008-11-17  Bruno Haible  <bruno@clisp.org>
17976
17977         * tests/test-select-out.sh: Comment out the first pipe test.
17978         Reported by Simon Josefsson.
17979
17980 2008-11-17  Bruno Haible  <bruno@clisp.org>
17981
17982         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17984         gl_HOSTENT.
17985
17986 2008-11-17  Bruno Haible  <bruno@clisp.org>
17987
17988         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17989         -lnetwork and -lnet. Needed for Haiku and BeOS.
17990
17991 2008-11-16  Bruno Haible  <bruno@clisp.org>
17992
17993         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17994
17995 2008-11-16  Bruno Haible  <bruno@clisp.org>
17996
17997         Avoid test failure on Haiku.
17998         * tests/test-fsync.c: Include <errno.h>.
17999         (main): Don't require that fsync (0) fails.
18000
18001 2008-11-15  Bruno Haible  <bruno@clisp.org>
18002
18003         New module 'hostent'.
18004         * modules/hostent: New file.
18005         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18006
18007 2008-11-15  Bruno Haible  <bruno@clisp.org>
18008
18009         New module 'servent'.
18010         * modules/servent: New file.
18011         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18012
18013 2008-11-15  Bruno Haible  <bruno@clisp.org>
18014
18015         Avoid generating same test program with two different rules.
18016         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18017         test-frexp to test-frexp-nolibm.
18018         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18019         test-frexpl to test-frexpl-nolibm.
18020
18021 2008-11-15  Bruno Haible  <bruno@clisp.org>
18022
18023         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18024         $(FREXPL_LIBM).
18025
18026 2008-11-15  Bruno Haible  <bruno@clisp.org>
18027
18028         * lib/netdb.in.h: Activate the definitions also when the system's
18029         <netdb.h> has 'struct addrinfo'.
18030         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18031         EAI_OVERFLOW or AI_NUMERICSERV.
18032         * doc/posix-headers/netdb.texi: Document the problem.
18033
18034 2008-11-15  Bruno Haible  <bruno@clisp.org>
18035
18036         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18037
18038         Make the 'sched' module work on platforms where <sched.h> exists but
18039         is incomplete (such as Haiku).
18040         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18041         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18042         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18043         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18044         HAVE_STRUCT_SCHED_PARAM.
18045         * modules/sched (Depends-on): Add include_next.
18046         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18047         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18048         * doc/posix-headers/sched.texi: Document the issue.
18049
18050 2008-11-13  Jim Meyering  <meyering@redhat.com>
18051
18052         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18053         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18054         test would fail due to the difference in the Report bugs to ...
18055         line.  The expected address is empty, "<>", while the actual
18056         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18057
18058 2008-11-12  Bruno Haible  <bruno@clisp.org>
18059
18060         lstat: don't compile lstat.c on systems lacking lstat
18061         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18062         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18063         Reported by Daniel P. Berrange via Jim Meyering.
18064
18065 2008-11-12  Jim Meyering  <meyering@redhat.com>
18066
18067         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18068
18069 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18070
18071         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18072         instead.
18073
18074 2008-11-12  Bruno Haible  <bruno@clisp.org>
18075
18076         * lib/unicodeio.c: Include unistr.h.
18077         (utf8_wctomb): Remove function.
18078         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18079
18080 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18081
18082         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18083         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18084         <bruno@clisp.org>.
18085         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18086
18087 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18088
18089         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18090         * doc/gnulib.texi: Add section for warnings.
18091
18092 2008-11-11  Bruno Haible  <bruno@clisp.org>
18093
18094         * lib/sockets.h: Add a comment.
18095
18096 2008-11-11  Karl Berry  <karl@gnu.org>
18097
18098         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18099
18100 2008-11-11  Eric Blake  <ebb9@byu.net>
18101
18102         fdl.texi: avoid git symlinks
18103         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18104
18105 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18106
18107         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18108
18109 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18110
18111         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18112         (gl_WARN_ADD): Substitute $2 if literal.
18113
18114 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18115
18116         * m4/warning.m4: Remove.
18117
18118 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18119
18120         * m4/warnings.m4: Almost complete rewrite. :-)
18121
18122 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18123
18124         * modules/warnings: New module.
18125         * m4/warnings.m4: New file.
18126         * MODULES.html.sh: Mention warnings module.
18127         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18128         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18129
18130 2008-11-10  Eric Blake  <ebb9@byu.net>
18131
18132         fdl.texi: make a symlink to the latest version
18133         * doc/standards.texi: Revert today's earlier change.
18134         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18135         * doc/fdl.texi: ...and replace this with a symlink to the newer
18136         fdl-1.3.texi.
18137
18138 2008-11-10  Bruno Haible  <bruno@clisp.org>
18139
18140         * tests/test-select-fd.c (main): Accept the result file name as fourth
18141         argument.
18142         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18143         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18144
18145 2008-11-10  Bruno Haible  <bruno@clisp.org>
18146
18147         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18148         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18149         as autoconf-substituted macros.
18150         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18151         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18152         gl_NETDB_H_DEFAULTS. Set these variables.
18153         * modules/netdb (Makefile.am): Substitute these variables.
18154
18155 2008-11-10  Eric Blake  <ebb9@byu.net>
18156
18157         standards.texi: include correct file for FDL 1.3
18158         * doc/standards.texi (GNU Free Documentation License): Change
18159         include file to pull in FDL 1.3, not 1.2.
18160
18161         fdl.texi: revert accidental change to license
18162         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18163
18164 2008-11-10  Bruno Haible  <bruno@clisp.org>
18165
18166         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18167         cross-compiling guesses also when the native compile gives no result.
18168
18169 2008-11-10  Bruno Haible  <bruno@clisp.org>
18170
18171         * lib/spawni.c (__spawni): Force variable into the stack.
18172
18173 2008-11-10  Bruno Haible  <bruno@clisp.org>
18174
18175         Add support for Haiku.
18176         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18177         glibc and BeOS, but also on Haiku.
18178         * lib/fpurge.c (fpurge): Likewise.
18179         * lib/freadable.c (freadable): Likewise.
18180         * lib/freadahead.c (freadahead): Likewise.
18181         * lib/freading.c (freading): Likewise.
18182         * lib/freadptr.c (freadptr): Likewise.
18183         * lib/freadseek.c (freadptrinc): Likewise.
18184         * lib/fseeko.c (rpl_fseeko): Likewise.
18185         * lib/fseterr.c (fseterr): Likewise.
18186         * lib/fwritable.c (fwritable): Likewise.
18187         * lib/fwriting.c (fwriting): Likewise.
18188         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18189
18190 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18191
18192         * lib/config.charset: Treat Haiku like BeOS.
18193
18194 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18195
18196         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18197         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18198
18199 2008-11-08  Bruno Haible  <bruno@clisp.org>
18200
18201         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18202         AC_CACHE_CHECK.
18203
18204 2008-11-08  Bruno Haible  <bruno@clisp.org>
18205
18206         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18207
18208 2008-11-08  Bruno Haible  <bruno@clisp.org>
18209
18210         * tests/test-select-fd.c: New file.
18211         * tests/test-select-in.sh: New file.
18212         * tests/test-select-out.sh: New file.
18213         * tests/test-select-stdin.c: New file.
18214         * modules/select-tests (Files): Add the new files.
18215         (Depends-on): Add gettimeofday.
18216         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18217         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18218         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18219
18220 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18221             Bruno Haible  <bruno@clisp.org>
18222
18223         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18224
18225 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18226
18227         * build-aux/pmccabe2html: Added support for C++ source files.
18228
18229 2008-11-05  Ben Pfaff  <blp@gnu.org>
18230
18231         Fix lib/close.c build on Windows.
18232         * modules/close (Files): Add lib/w32sock.h.
18233
18234 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18235
18236         Accept Bison's NEWS format.
18237         * build-aux/announce-gen (print_news_deltas): Tweak
18238         $re_prefix.
18239
18240 2008-11-04  Bruno Haible  <bruno@clisp.org>
18241
18242         * modules/random_r (Maintainer): Add glibc.
18243
18244 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18245
18246         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18247         by karl@freefriends.org (Karl Berry).
18248         * doc/alloca.texi: Likewise.
18249         * doc/c-ctype.texi: Likewise.
18250         * doc/c-strcase.texi: Likewise.
18251         * doc/c-strcaseeq.texi: Likewise.
18252         * doc/c-strcasestr.texi: Likewise.
18253         * doc/c-strstr.texi: Likewise.
18254         * doc/c-strtod.texi: Likewise.
18255         * doc/c-strtold.texi: Likewise.
18256         * doc/ctime.texi: Likewise.
18257         * doc/error.texi: Likewise.
18258         * doc/fdl.texi: Likewise.
18259         * doc/gcd.texi: Likewise.
18260         * doc/getdate.texi: Likewise.
18261         * doc/gnulib-intro.texi: Likewise.
18262         * doc/gnulib-tool.texi: Likewise.
18263         * doc/gnulib.texi: Likewise.
18264         * doc/inet_ntoa.texi: Likewise.
18265         * doc/maintain.texi: Likewise.
18266         * doc/make-stds.texi: Likewise.
18267         * doc/quote.texi: Likewise.
18268         * doc/regexprops-generic.texi: Likewise.
18269         * doc/standards.texi: Likewise.
18270         * doc/verify.texi: Likewise.
18271         * doc/visibility.texi: Likewise.
18272         * doc/gnulib.texi (GNU Free Documentation License): Include
18273         fdl-1.3.texi instead of fdl.texi.
18274
18275 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18276
18277         * doc/fdl-1.3.texi: New file, from
18278         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18279         * modules/fdl-1.3: Add.
18280         * MODULES.html.sh: Add fdl-1.3.
18281
18282 2008-11-03  Bruno Haible  <bruno@clisp.org>
18283
18284         Make determination of absolute name of header file work with AIX xlc.
18285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18286         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18287         preprocessing.
18288         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18289         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18290
18291 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18292
18293         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18294         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18295         <ludo@gnu.org>.
18296
18297 2008-11-02  Bruno Haible  <bruno@clisp.org>
18298
18299         Mark 'strpbrk' obsolete.
18300         * modules/strpbrk (Status, Notice): New sections.
18301         * modules/strtok_r (Depends-on): Add strpbrk.
18302
18303 2008-11-02  Bruno Haible  <bruno@clisp.org>
18304
18305         Mark 'strdup' obsolete.
18306         * modules/strdup (Status, Notice): New sections.
18307         * modules/findprog (Depends-on): Add strdup.
18308         * modules/getaddrinfo (Depends-on): Likewise.
18309         * modules/localename (Depends-on): Likewise.
18310         * modules/relocatable-lib (Depends-on): Likewise.
18311         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18312         * modules/relocatable-prog (Depends-on): Likewise.
18313         * modules/trim (Depends-on): Likewise.
18314         * modules/unictype/gen-ctype (Depends-on): Likewise.
18315         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18316
18317 2008-11-02  Bruno Haible  <bruno@clisp.org>
18318
18319         Mark 'strcspn' obsolete.
18320         * modules/strcspn (Status, Notice): New sections.
18321
18322 2008-11-02  Bruno Haible  <bruno@clisp.org>
18323
18324         Mark 'rmdir' obsolete.
18325         * modules/rmdir (Status, Notice): New sections.
18326         * modules/clean-temp (Depends-on): Add rmdir.
18327         * modules/openat (Depends-on): Likewise.
18328
18329 2008-11-02  Bruno Haible  <bruno@clisp.org>
18330
18331         Mark 'raise' obsolete.
18332         * modules/raise (Status, Notice): New sections.
18333         (Include): Specify <signal.h>.
18334         * modules/stdio (Depends-on): Add raise.
18335         * modules/write (Depends-on): Likewise.
18336
18337 2008-11-02  Bruno Haible  <bruno@clisp.org>
18338
18339         Mark 'memset' obsolete.
18340         * modules/memset (Status, Notice): New sections.
18341
18342 2008-11-02  Bruno Haible  <bruno@clisp.org>
18343
18344         Mark 'memmove' obsolete.
18345         * modules/memmove (Status, Notice): New sections.
18346         * modules/argp (Depends-on): Add memmove.
18347         * modules/argz (Depends-on): Likewise.
18348         * modules/canonicalize (Depends-on): Likewise.
18349         * modules/canonicalize-lgpl (Depends-on): Likewise.
18350         * modules/fts (Depends-on): Likewise.
18351         * modules/getcwd (Depends-on): Likewise.
18352         * modules/human (Depends-on): Likewise.
18353         * modules/regex (Depends-on): Likewise.
18354         * modules/striconveh (Depends-on): Likewise.
18355         * modules/trim (Depends-on): Likewise.
18356         * modules/unistr/u8-move (Depends-on): Likewise.
18357         * modules/unistr/u16-move (Depends-on): Likewise.
18358         * modules/unistr/u32-move (Depends-on): Likewise.
18359
18360 2008-11-02  Bruno Haible  <bruno@clisp.org>
18361
18362         Mark 'memcpy' obsolete.
18363         * modules/memcpy (Status, Notice): New sections.
18364
18365 2008-11-02  Bruno Haible  <bruno@clisp.org>
18366
18367         Mark 'memcmp' obsolete.
18368         * modules/memcmp (Status, Notice): New sections.
18369         * modules/argmatch (Depends-on): Add memchr.
18370         * modules/backupfile (Depends-on): Likewise.
18371         * modules/c-strcasestr (Depends-on): Likewise.
18372         * modules/crypto/des (Depends-on): Likewise.
18373         * modules/csharpcomp (Depends-on): Likewise.
18374         * modules/fnmatch (Depends-on): Likewise.
18375         * modules/git-merge-changelog (Depends-on): Likewise.
18376         * modules/isnand (Depends-on): Likewise.
18377         * modules/isnand-nolibm (Depends-on): Likewise.
18378         * modules/isnanf (Depends-on): Likewise.
18379         * modules/isnanf-nolibm (Depends-on): Likewise.
18380         * modules/isnanl (Depends-on): Likewise.
18381         * modules/isnanl-nolibm (Depends-on): Likewise.
18382         * modules/mbchar (Depends-on): Likewise.
18383         * modules/memcoll (Depends-on): Likewise.
18384         * modules/quotearg (Depends-on): Likewise.
18385         * modules/regex (Depends-on): Likewise.
18386         * modules/relocatable-prog (Depends-on): Likewise.
18387         * modules/same (Depends-on): Likewise.
18388         * modules/signbit (Depends-on): Likewise.
18389         * modules/strcasestr-simple (Depends-on): Likewise.
18390         * modules/unictype/gen-ctype (Depends-on): Likewise.
18391         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18392         * modules/uniname/uniname (Depends-on): Likewise.
18393         * modules/unistr/u8-cmp (Depends-on): Likewise.
18394
18395 2008-11-02  Bruno Haible  <bruno@clisp.org>
18396
18397         Mark 'memchr' obsolete.
18398         * modules/memchr (Status, Notice): New sections.
18399         * modules/argp (Depends-on): Add memchr.
18400         * modules/base64 (Depends-on): Likewise.
18401         * modules/c-strcasestr (Depends-on): Likewise.
18402         * modules/chdir-long (Depends-on): Likewise.
18403         * modules/fnmatch (Depends-on): Likewise.
18404         * modules/getsubopt (Depends-on): Likewise.
18405         * modules/git-merge-changelog (Depends-on): Likewise.
18406         * modules/glob (Depends-on): Likewise.
18407         * modules/strcasestr-simple (Depends-on): Likewise.
18408         * modules/strnlen (Depends-on): Likewise.
18409
18410 2008-11-02  Bruno Haible  <bruno@clisp.org>
18411
18412         Mark 'atexit' obsolete.
18413         * modules/atexit (Status, Notice): New sections.
18414         * modules/chdir-long (Depends-on): Add atexit.
18415         * modules/wait-process (Depends-on): Likewise.
18416
18417 2008-11-02  Bruno Haible  <bruno@clisp.org>
18418
18419         * gnulib-tool: New option --with-obsolete.
18420         (func_usage): Document it.
18421         (func_modules_transitive_closure): Drop obsolete dependencies if
18422         incobsolete is not true.
18423         (func_import): Read and save the incobsolete variable to the cache.
18424
18425 2008-11-02  Bruno Haible  <bruno@clisp.org>
18426
18427         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18428         * gnulib-tool: New option --extract-status.
18429         (func_usage): Document it.
18430         (sed_extract_prog): Recognize it.
18431         (func_get_status): New function.
18432
18433 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18434
18435         * modules/sockets (License): Change from LGPL to LGPLv2+.
18436
18437 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18438
18439         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18440
18441 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18442
18443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18444         Mention times and sys_times.
18445         * modules/sys_times, modules/sys_times-tests: New modules.
18446         * modules/times, modules/times-tests: Likewise
18447         * m4/sys_times_h.m4: New file.
18448         * lib/sys_times.in.h: Likewise
18449         * lib/times.c: Likewise.
18450         * tests/test-sys_times.c: Likewise.
18451         * tests/test-times.c: Likewise.
18452         * doc/posix-headers/sys_times.texi: Update.
18453         * doc/posix-functions/times.texi: Update.
18454
18455 2008-10-28  Jim Meyering  <meyering@redhat.com>
18456
18457         * modules/tempname (Depends-on): Add lstat.
18458
18459         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18460
18461 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18462
18463         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18464         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18465         using idiom used elsewhere in gnulib.
18466
18467 2008-10-27  Jim Meyering  <meyering@redhat.com>
18468
18469         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18470
18471 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18472
18473         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18474         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18475         programs.
18476         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18477
18478 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18479
18480         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18481
18482 2008-10-27  Bruno Haible  <bruno@clisp.org>
18483
18484         * tests/test-lstat.c: Include <stdio.h>.
18485
18486 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18487
18488         * modules/lstat-tests: New module.
18489         * tests/test-lstat.c: New file.
18490
18491 2008-10-26  Jim Meyering  <meyering@redhat.com>
18492
18493         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18494
18495 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18496             Bruno Haible  <bruno@clisp.org>
18497
18498         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18499         * modules/configmake (Include): Add a note that the include must come
18500         after all system headers.
18501         * lib/javaversion.c: Include configmake.h after all other includes.
18502
18503 2008-10-26  Bruno Haible  <bruno@clisp.org>
18504
18505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18506         HAVE_STRUCT_RANDOM_DATA to 1.
18507         (gl_STDLIB_H): Simplify.
18508
18509 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18510
18511         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18512         substitute HAVE_STRUCT_RANDOM_DATA.
18513         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18514         random_data.
18515         * modules/stdlib (Makefile.am): Substitute
18516         HAVE_STRUCT_RANDOM_DATA.
18517
18518 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18519
18520         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18521         * doc/gnulib-intro.texi (Copyright): Likewise.
18522
18523 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18524
18525         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18526         findings.
18527
18528 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18529             Bruno Haible  <bruno@clisp.org>
18530
18531         * lib/unistd.in.h: Include <winsock2.h>.
18532         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18533         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18534         Provide dummy declarations.
18535         (gethostname): Override.
18536         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18537         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18538         gl_PREREQ_SYS_H_WINSOCK2.
18539         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18540         * doc/posix-functions/gethostname.texi: More details.
18541
18542 2008-10-25  Bruno Haible  <bruno@clisp.org>
18543
18544         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18545         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18546         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18547
18548         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18549         here ...
18550         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18551         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18552         gl_UNISTD_H_DEFAULTS.
18553
18554 2008-10-25  Eric Blake  <ebb9@byu.net>
18555
18556         signbit: avoid spurious compiler failure
18557         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18558         declarations inside function.
18559
18560 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18561             Bruno Haible  <bruno@clisp.org>
18562
18563         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18564         * modules/random_r (Depends-on): Add stdint.
18565
18566 2008-10-24  Bruno Haible  <bruno@clisp.org>
18567
18568         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18569         Eggert.
18570         * modules/strerror (License): Likewise.
18571
18572 2008-10-24  Jim Meyering  <meyering@redhat.com>
18573
18574         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18575         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18576
18577 2008-10-24  Eric Blake  <ebb9@byu.net>
18578
18579         getgroups: fix compilation when getgroups is available
18580         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18581         but with <config.h> override of getgroups disabled.
18582
18583 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18584
18585         * doc/gnulib.texi (Header files): Add note about C++ problems.
18586         Explained by Bruno Haible <bruno@clisp.org>.
18587
18588 2008-10-23  Bruno Haible  <bruno@clisp.org>
18589
18590         Define a dummy SA_NODEFER macro on Interix.
18591         * lib/signal.in.h (SA_NODEFER): Define fallback.
18592         Reported by Aleksey Cheusov <cheusov@tut.by> via
18593         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18594
18595 2008-10-23  Bruno Haible  <bruno@clisp.org>
18596
18597         * modules/freadahead (License): Change to LGPLv2+.
18598         Suggested by Simon Josefsson.
18599
18600 2008-10-23  Jim Meyering  <meyering@redhat.com>
18601
18602         random_r: new module
18603         * modules/random_r: New file.
18604         * m4/random_r.m4: New file.
18605         * lib/random_r.c: New file, from glibc.
18606         * modules/random_r-tests: New file.
18607         * tests/test-random_r.c: New file.
18608         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18609          Declare.
18610         (RAND_MAX): Define.
18611         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18612         * modules/stdlib: Substitute them, too.
18613         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18614         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18615         * doc/glibc-functions/random_r.texi: Likewise.
18616         * doc/glibc-functions/setstate_r.texi: Likewise.
18617         * doc/glibc-functions/srandom_r.texi: Likewise.
18618         * config/srclist.txt: Mention it.
18619
18620 2008-10-23  David Lutterkort  <lutter@redhat.com>
18621
18622         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18623         link requirement
18624
18625 2008-10-23  Jim Meyering  <meyering@redhat.com>
18626
18627         selinux-h: mark parameters of stub functions as intentionally unused
18628         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18629         * lib/se-context.in.h: Likewise.
18630
18631 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18632
18633         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18634
18635 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18636
18637         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18638
18639 2008-10-22  Eric Blake  <ebb9@byu.net>
18640
18641         glthread/thread: avoid compiler warning
18642         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18643         Add unreachable abort to silence compiler.
18644
18645 2008-10-22  Eric Blake  <ebb9@byu.net>
18646
18647         netdb: also supply struct addrinfo for cygwin 1.5.x
18648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18649         older cygwin.
18650         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18651         cygwin.
18652         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18653
18654 2008-10-22  Bruno Haible  <bruno@clisp.org>
18655
18656         * users.txt: Update entry about pspp.
18657
18658 2008-10-21  Bruno Haible  <bruno@clisp.org>
18659
18660         Simplification.
18661         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18662         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18663
18664         Simplification.
18665         * lib/ioctl.c (ioctl): Don't undefine.
18666         * lib/socket.c (socket): Don't undefine.
18667
18668         Remove unused module indicator macros.
18669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18670         GNULIB_$1 as a C macro.
18671
18672         * doc/posix-functions/close.texi: Undo last change.
18673         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18674         Windows platforms.
18675
18676 2008-10-21  Bruno Haible  <bruno@clisp.org>
18677
18678         Add gethostname() declaration to <unistd.h>.
18679         * lib/unistd.in.h (gethostname): New declaration.
18680         * lib/gethostname.c: Include <unistd.h>.
18681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18682         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18684         and HAVE_GETHOSTNAME.
18685         * modules/gethostname (Depends-on): Add unistd.
18686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18687         (Include): Specify <unistd.h>.
18688         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18689         HAVE_GETHOSTNAME.
18690         * tests/test-gethostname.c: Include <unistd.h> first.
18691
18692 2008-10-21  Bruno Haible  <bruno@clisp.org>
18693
18694         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18695         * modules/select-tests (Depends-on): Likewise.
18696         Reported by Simon Josefsson.
18697
18698 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18699
18700         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18701         * lib/accept.c: New file, based on winsock.c.
18702         * lib/bind.c: New file, based on winsock.c.
18703         * lib/connect.c: New file, based on winsock.c.
18704         * lib/getpeername.c: New file, based on winsock.c.
18705         * lib/getsockname.c: New file, based on winsock.c.
18706         * lib/getsockopt.c: New file, based on winsock.c.
18707         * lib/ioctl.c: New file, based on winsock.c.
18708         * lib/listen.c: New file, based on winsock.c.
18709         * lib/recv.c: New file, based on winsock.c.
18710         * lib/recvfrom.c: New file, based on winsock.c.
18711         * lib/send.c: New file, based on winsock.c.
18712         * lib/sendto.c: New file, based on winsock.c.
18713         * lib/setsockopt.c: New file, based on winsock.c.
18714         * lib/shutdown.c: New file, based on winsock.c.
18715         * lib/socket.c: New file, based on winsock.c.
18716         * lib/w32sock.h: New file, based on winsock.c.
18717         * lib/winsock.c: Remove file.
18718         * modules/accept: Likewise.
18719         * modules/bind: Likewise.
18720         * modules/connect: Likewise.
18721         * modules/getpeername: Likewise.
18722         * modules/getsockname: Likewise.
18723         * modules/getsockopt: Likewise.
18724         * modules/ioctl: Likewise.
18725         * modules/listen: Likewise.
18726         * modules/recv: Likewise.
18727         * modules/recvfrom: Likewise.
18728         * modules/send: Likewise.
18729         * modules/sendto: Likewise.
18730         * modules/setsockopt: Likewise.
18731         * modules/shutdown: Likewise.
18732         * modules/socket: Use socket.c instead of winsock.c.
18733         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18734         * doc/posix-functions/accept.texi: Doc fix.
18735         * doc/posix-functions/bind.texi: Doc fix.
18736         * doc/posix-functions/close.texi: Doc fix.
18737         * doc/posix-functions/connect.texi: Doc fix.
18738         * doc/posix-functions/getpeername.texi: Doc fix.
18739         * doc/posix-functions/getsockname.texi: Doc fix.
18740         * doc/posix-functions/getsockopt.texi: Doc fix.
18741         * doc/posix-functions/ioctl.texi: Doc fix.
18742         * doc/posix-functions/listen.texi: Doc fix.
18743         * doc/posix-functions/recv.texi: Doc fix.
18744         * doc/posix-functions/recvfrom.texi: Doc fix.
18745         * doc/posix-functions/send.texi: Doc fix.
18746         * doc/posix-functions/sendto.texi: Doc fix.
18747         * doc/posix-functions/setsockopt.texi: Doc fix.
18748         * doc/posix-functions/shutdown.texi: Doc fix.
18749         * doc/posix-functions/socket.texi: Doc fix.
18750
18751 2008-10-20  Bruno Haible  <bruno@clisp.org>
18752
18753         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18754         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18755         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18756         as an alias for SIGABRT.
18757         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18758         (sigaction): Map it to SIGABRT.
18759         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18760
18761 2008-10-20  Bruno Haible  <bruno@clisp.org>
18762
18763         * lib/fts.c: Don't include lstat.h.
18764         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18765
18766         Move the lstat() declaration to <sys/stat.h>.
18767         * lib/lstat.h: Remove file.
18768         * lib/sys_stat.in.h: Add special invocation convention.
18769         (lstat): New declaration.
18770         * lib/lstat.c (orig_lstat): New function.
18771         (rpl_lstat): Use orig_lstat instead of lstat.
18772         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18773         AC_C_INLINE. Set REPLACE_LSTAT.
18774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18775         and REPLACE_LSTAT.
18776         * modules/lstat (Files): Remove lib/lstat.h.
18777         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18778         (Include): Specify <sys/stat.h> instead of lstat.h.
18779         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18780         REPLACE_LSTAT.
18781         * NEWS: Mention the change.
18782
18783 2008-10-20  Bruno Haible  <bruno@clisp.org>
18784
18785         * modules/posix_spawn-tests: New file.
18786         * tests/test-posix_spawn3.c: New file.
18787
18788 2008-10-20  Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18791         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18792         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18793         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18794         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18795
18796 2008-10-20  Bruno Haible  <bruno@clisp.org>
18797
18798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18799         of posix_spawn on AIX 5.3.
18800
18801 2008-10-20  Bruno Haible  <bruno@clisp.org>
18802
18803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18804
18805 2008-10-20  Bruno Haible  <bruno@clisp.org>
18806
18807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18808         of AC_LANG_PROGRAM.
18809
18810 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18811
18812         * lib/netdb.in.h: Don't define GNU specific constants until they
18813         are supported or needed.  Reported by Bruno Haible
18814         <bruno@clisp.org>.
18815
18816 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18817
18818         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18819
18820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18821
18822         * lib/getaddrinfo.h: Remove file.
18823         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18824         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18825         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18826         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18827         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18828         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18829         * tests/test-getaddrinfo.c: Likewise.
18830         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18831         * NEWS: Mention change.
18832
18833 2008-10-19  Bruno Haible  <bruno@clisp.org>
18834
18835         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18836
18837 2008-10-19  Bruno Haible  <bruno@clisp.org>
18838
18839         * lib/wait-process.c: Include simply <sys/wait.h>.
18840         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18841         WIFSTOPPED): Remove fallback definitions.
18842         * modules/wait-process (Depends-on): Add sys_wait.
18843
18844         New module 'sys_wait'.
18845         * modules/sys_wait: New file.
18846         * lib/sys_wait.in.h: New file, partially copied from
18847         lib/wait-process.c.
18848         * m4/sys_wait_h.m4: New file.
18849         * doc/posix-headers/sys_wait.texi: Mention the new module.
18850
18851 2008-10-19  Bruno Haible  <bruno@clisp.org>
18852
18853         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18854
18855 2008-10-19  Bruno Haible  <bruno@clisp.org>
18856
18857         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18858         * lib/wait-process.c (WAIT_T): Remove type.
18859         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18860         (wait_subprocess): Update.
18861
18862 2008-10-19  Bruno Haible  <bruno@clisp.org>
18863
18864         New module 'atoll'.
18865         * modules/atoll: New file.
18866         * lib/stdlib.in.h (atoll): New declaration.
18867         * lib/atoll.c: New file, from glibc with modifications.
18868         * m4/atoll.m4: New file.
18869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18870         HAVE_ATOLL.
18871         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18872         * doc/posix-functions/atoll.texi: Mention the new module.
18873
18874 2008-10-19  Bruno Haible  <bruno@clisp.org>
18875
18876         Add strtoull() declaration to <stdlib.h>.
18877         * lib/stdlib.in.h (strtoull): New declaration.
18878         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18879         Set HAVE_STRTOULL.
18880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18881         HAVE_STRTOULL.
18882         * modules/strtoull (Depends-on): Add stdlib.
18883         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18884         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18885         HAVE_STRTOULL.
18886
18887 2008-10-19  Bruno Haible  <bruno@clisp.org>
18888
18889         Add strtoll() declaration to <stdlib.h>.
18890         * lib/stdlib.in.h (strtoll): New declaration.
18891         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18892         Set HAVE_STRTOLL.
18893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18894         HAVE_STRTOLL.
18895         * modules/strtoll (Depends-on): Add stdlib.
18896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18897         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18898
18899 2008-10-19  Bruno Haible  <bruno@clisp.org>
18900
18901         * modules/bcopy (Depends-on): Add strings.
18902         (Include): Specify <strings.h>.
18903
18904 2008-10-19  Bruno Haible  <bruno@clisp.org>
18905
18906         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18907
18908 2008-10-19  Bruno Haible  <bruno@clisp.org>
18909
18910         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18911         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18912         mingw.
18913
18914 2008-10-19  Bruno Haible  <bruno@clisp.org>
18915
18916         * lib/atanl.c: Don't include isnanl.h.
18917         * lib/cosl.c: Likewise.
18918         * lib/ldexpl.c: Likewise.
18919         * lib/logl.c: Likewise.
18920         * lib/sinl.c: Likewise.
18921         * lib/sqrtl.c: Likewise.
18922         * lib/tanl.c: Likewise.
18923
18924         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18925         * lib/isnanf.h: Remove file.
18926         * lib/isnand.h: Remove file.
18927         * lib/isnanl.h: Remove file.
18928         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18929         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18930         macros.
18931         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18932         HAVE_ISNANF, don't define it as a C macro.
18933         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18934         HAVE_ISNAND, don't define it as a C macro.
18935         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18936         HAVE_ISNANL, don't define it as a C macro.
18937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18938         HAVE_ISNAN[FDL].
18939         * modules/isnanf (Files): Remove lib/isnanf.h.
18940         (Depends-on): Add math.
18941         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18942         (Include): Specify <math.h> instead of isnanf.h.
18943         * modules/isnand (Files): Remove lib/isnand.h.
18944         (Depends-on): Add math.
18945         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18946         (Include): Specify <math.h> instead of isnand.h.
18947         * modules/isnanl (Files): Remove lib/isnanl.h.
18948         (Depends-on): Add math.
18949         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18950         (Include): Specify <math.h> instead of isnanl.h.
18951         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18952         HAVE_ISNAN[FDL].
18953         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18954         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18955         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18956         * NEWS: Mention the change.
18957
18958 2008-10-18  Bruno Haible  <bruno@clisp.org>
18959
18960         Add getusershell(), setusershell(), endusershell() declarations to
18961         <unistd.h>.
18962         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18963         declarations.
18964         * lib/getusershell.c: Include unistd.h.
18965         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18966         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18967         HAVE_GETUSERSHELL.
18968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18969         and HAVE_GETUSERSHELL.
18970         * modules/getusershell (Depends-on): Add unistd, extensions.
18971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18972         (Include): Specify <unistd.h>.
18973         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18974         HAVE_GETUSERSHELL.
18975
18976 2008-10-18  Bruno Haible  <bruno@clisp.org>
18977
18978         Add a getloadavg() declaration to <stdlib.h>.
18979         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18980         getloadavg declaration.
18981         (getloadavg): New declaration.
18982         * lib/getloadavg.c: Include <stdlib.h> first.
18983         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18984         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18985         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18987         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18988         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18989         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18990         (Include): Specify <stdlib.h>.
18991         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18992         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18993
18994 2008-10-18  Bruno Haible  <bruno@clisp.org>
18995
18996         * lib/dirchownmod.c: Don't include lchmod.h.
18997
18998         Move the lchmod() declaration to <sys/stat.h>.
18999         * lib/lchmod.h: Remove file.
19000         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19001         (lchmod): New declaration, moved here from lib/lchown.h.
19002         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19003         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19005         and HAVE_LCHMOD.
19006         * modules/lchmod (Files): Remove lib/lchmod.h.
19007         (Depends-on): Add sys_stat, extensions.
19008         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19009         (Include): Specify <sys/stat.h> instead of lchmod.h.
19010         * modules/sys_stat (Depends-on): Add link-warning.
19011         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19012         definition of GL_LINK_WARNING.
19013         * NEWS: Mention the change.
19014
19015 2008-10-18  Bruno Haible  <bruno@clisp.org>
19016
19017         * lib/fchdir.c: Don't include dirfd.h.
19018         * lib/fts.c: Likewise.
19019         * lib/getcwd.c: Likewise.
19020         * lib/glob.c: Likewise.
19021
19022         Move the dirfd() declaration to <dirent.h>.
19023         * lib/dirfd.h: Remove file.
19024         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19025         (dirfd): New declaration.
19026         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19027         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19028         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19029         HAVE_DECL_DIRFD.
19030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19031         HAVE_DECL_DIRFD.
19032         * modules/dirfd (Files): Remove lib/dirfd.h.
19033         (Depends-on): Add dirent, extensions.
19034         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19035         (Include): Specify <dirent.h> instead of dirfd.h.
19036         * modules/dirent (Depends-on): Add link-warning.
19037         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19038         definition of GL_LINK_WARNING.
19039         * NEWS: Mention the change.
19040
19041 2008-10-18  Bruno Haible  <bruno@clisp.org>
19042
19043         Move the euidaccess() declaration to <unistd.h>.
19044         * lib/euidaccess.h: Remove file.
19045         * lib/unistd.in.h (euidaccess): New declaration.
19046         * lib/euidaccess.c: Don't include euidaccess.h.
19047         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19048         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19050         and HAVE_EUIDACCESS.
19051         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19052         (Depends-on): Add unistd.
19053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19054         (Include): Specify <unistd.h> instead of euidaccess.h.
19055         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19056         HAVE_EUIDACCESS.
19057         * NEWS: Mention the change.
19058
19059 2008-10-18  Bruno Haible  <bruno@clisp.org>
19060
19061         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19062
19063         Move the getdomainname() declaration to <unistd.h>.
19064         * lib/getdomainname.h: Remove file.
19065         * lib/unistd.in.h (getdomainname): New declaration.
19066         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19067         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19068         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19069         HAVE_GETDOMAINNAME.
19070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19071         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19072         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19073         (Depends-on): Add unistd, extensions.
19074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19075         (Includes): Specify <unistd.h> instead of getdomainname.h.
19076         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19077         HAVE_GETDOMAINNAME.
19078         * NEWS: Mention the change.
19079
19080 2008-10-18  Bruno Haible  <bruno@clisp.org>
19081
19082         * modules/dirent: New file.
19083         * m4/dirent_h.m4: New file.
19084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19085         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19086         * modules/fchdir (Files): Remove lib/dirent.in.h.
19087         (Depends-on): Add dirent.
19088         (Makefile.am): Move rules to modules/dirent.
19089         * doc/posix-headers/dirent.texi: Mention the new module.
19090
19091 2008-10-18  Bruno Haible  <bruno@clisp.org>
19092
19093         Avoid -Wunused-parameter warnings in public gnulib header files.
19094         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19095         macro.
19096         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19097
19098 2008-10-18  Bruno Haible  <bruno@clisp.org>
19099
19100         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19101         * doc/glibc-functions/error.texi: Mention the module 'error'.
19102         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19103         * doc/glibc-functions/getdomainname.texi: Mention the module
19104         'getdomainname'.
19105         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19106         * doc/glibc-functions/getpagesize.texi: Mention the module
19107         'getpagesize'.
19108         * doc/glibc-functions/getusershell.texi: Mention the module
19109         'getusershell'.
19110         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19111         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19112         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19113         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19114         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19115         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19116         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19117         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19118         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19119         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19120         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19121         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19122         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19123         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19124
19125 2008-10-17  Bruno Haible  <bruno@clisp.org>
19126
19127         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19128         HP-UX and IRIX, use -0.0L.
19129         * tests/test-ceill.c (minus_zero): Likewise.
19130         * tests/test-floorl.c (minus_zero): Likewise.
19131         * tests/test-frexpl.c (minus_zero): Likewise.
19132         * tests/test-isnan.c (minus_zerol): Likewise.
19133         * tests/test-isnanl.h (minus_zero): Likewise.
19134         * tests/test-ldexpl.c (minus_zero): Likewise.
19135         * tests/test-roundl.c (minus_zero): Likewise.
19136         * tests/test-signbit.c (minus_zerol): Likewise.
19137         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19138         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19139         * tests/test-truncl.c (minus_zero): Likewise.
19140         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19141         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19142         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19143         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19144
19145 2008-10-17  Bruno Haible  <bruno@clisp.org>
19146
19147         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19148         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19149         that it gets activated only for gcc >= 3.0.
19150         * lib/dirent.in.h: Likewise.
19151         * lib/errno.in.h: Likewise.
19152         * lib/fcntl.in.h: Likewise.
19153         * lib/float.in.h: Likewise.
19154         * lib/iconv.in.h: Likewise.
19155         * lib/inttypes.in.h: Likewise.
19156         * lib/locale.in.h: Likewise.
19157         * lib/math.in.h: Likewise.
19158         * lib/netdb.in.h: Likewise.
19159         * lib/netinet_in.in.h: Likewise.
19160         * lib/search.in.h: Likewise.
19161         * lib/signal.in.h: Likewise.
19162         * lib/spawn.in.h: Likewise.
19163         * lib/stdarg.in.h: Likewise.
19164         * lib/stdint.in.h: Likewise.
19165         * lib/stdio.in.h: Likewise.
19166         * lib/stdlib.in.h: Likewise.
19167         * lib/string.in.h: Likewise.
19168         * lib/strings.in.h: Likewise.
19169         * lib/sys_file.in.h: Likewise.
19170         * lib/sys_ioctl.in.h: Likewise.
19171         * lib/sys_select.in.h: Likewise.
19172         * lib/sys_socket.in.h: Likewise.
19173         * lib/sys_stat.in.h: Likewise.
19174         * lib/sys_time.in.h: Likewise.
19175         * lib/sysexits.in.h: Likewise.
19176         * lib/time.in.h: Likewise.
19177         * lib/unistd.in.h: Likewise.
19178         * lib/wchar.in.h: Likewise.
19179         * lib/wctype.in.h: Likewise.
19180         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19181
19182 2008-10-17  Jim Meyering  <meyering@redhat.com>
19183
19184         ignore-value: don't depend on inline module
19185         * modules/ignore-value (Depends-on): Remove 'inline'.
19186         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19187         Suggestion from Bruno Haible.
19188
19189 2008-10-17  Bruno Haible  <bruno@clisp.org>
19190
19191         New implementation of condition variables for Win32.
19192         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19193         (gl_linked_waitqueue_t): New type.
19194         (gl_cond_t): Use it.
19195         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19196         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19197         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19198         (glthread_cond_init_func, glthread_cond_wait_func,
19199         glthread_cond_timedwait_func, glthread_cond_signal_func,
19200         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19201         Reimplemented on the basis of gl_linked_waitqueue_t.
19202         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19203         gl_waitqueue_t.
19204         (gl_rwlock_t): Update.
19205         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19206
19207 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19208
19209         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19210         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19211
19212 2008-10-17  Jim Meyering  <meyering@redhat.com>
19213
19214         ignore-value: new module
19215         * modules/ignore-value: New file.
19216         * lib/ignore-value.h: New file.
19217         * MODULES.html.sh (Compiler warning management): New section,
19218         just for this module.  More to come.
19219
19220 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19221
19222         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19223         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19224         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19225
19226 2008-10-16  Jim Meyering  <meyering@redhat.com>
19227
19228         openat-die.c: avoid 'no previous prototype' warning
19229         * lib/openat-die.c: Include "openat.h".
19230         Reported by Reuben Thomas <rrt@sc3d.org>.
19231
19232 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19233
19234         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19235         * lib/netdb.in.h: Fix typo.
19236         Reported by Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/netdb.in.h: Include sys/socket.h for platforms without
19239         netdb.h, to get structures like hostent on MinGW.
19240         * modules/netdb (Depends-on): Add sys_socket.
19241
19242 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19243
19244         * modules/netdb, modules/netdb-tests: New file.
19245         * m4/netdb_h.m4: New file.
19246         * lib/netdb.in.h: Add, currently just an empty file pending
19247         definitions.
19248         * tests/test-netdb.c: New file.
19249         * doc/posix-headers/netdb.texi: Mention that we replace it if
19250         needed.
19251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19252         netdb.
19253
19254 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19255
19256         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19257         with code.
19258
19259 2008-10-13  Bruno Haible  <bruno@clisp.org>
19260
19261         * lib/glthread/cond.c (glthread_cond_wait_func,
19262         glthread_cond_timedwait_func): Add a comment.
19263
19264 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19265
19266         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19267         * tests/test-select.c: Likewise,
19268
19269 2008-10-13  Bruno Haible  <bruno@clisp.org>
19270
19271         * lib/glthread/cond.c (glthread_cond_wait_func,
19272         glthread_cond_timedwait_func): Fix variable name.
19273         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19274
19275 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19276
19277         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19279         struct sockaddr.sa_len.
19280         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19281
19282 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19283
19284         * build-aux/pmccabe2html: Add css and css_url parameters.
19285
19286 2008-10-12  Bruno Haible  <bruno@clisp.org>
19287
19288         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19289         calling aclx_get.
19290         Reported by Rainer Tammer <tammer@tammer.net>.
19291
19292 2008-10-12  Bruno Haible  <bruno@clisp.org>
19293
19294         Use msvcrt aware primitives for creation/termination of Win32 threads.
19295         * lib/glthread/thread.c: Include <process.h>.
19296         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19297         (wrapper_func): Update signature.
19298         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19299
19300 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19301             Bruno Haible  <bruno@clisp.org>
19302
19303         Provide a Win32 implementation of the 'cond' module.
19304         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19305         * lib/glthread/cond.c (glthread_cond_init_func,
19306         glthread_cond_wait_func, glthread_cond_timedwait_func,
19307         glthread_cond_signal_func, glthread_cond_broadcast_func,
19308         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19309         * modules/cond (Dependencies): Add gettimeofday.
19310
19311 2008-10-11  Bruno Haible  <bruno@clisp.org>
19312
19313         Make sleep work on older versions of mingw.
19314         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19315         only whether it exists.
19316         * doc/posix-functions/sleep.texi: Mention the problem with older
19317         versions of mingw.
19318
19319 2008-10-11  Bruno Haible  <bruno@clisp.org>
19320
19321         New module 'shutdown'.
19322         * modules/shutdown: New file.
19323         * lib/sys_socket.in.h (shutdown): New declaration.
19324         * lib/winsock.c (shutdown): New function.
19325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19326         GNULIB_SHUTDOWN.
19327         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19328         * doc/posix-functions/shutdown.texi: Document the new module.
19329
19330 2008-10-11  Jim Meyering  <meyering@redhat.com>
19331
19332         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19333
19334 2008-10-11  Bruno Haible  <bruno@clisp.org>
19335
19336         New module 'fclose'.
19337         * modules/fclose: New file.
19338         * lib/stdio.in.h (fclose): New declaration.
19339         * lib/fclose.c: New file.
19340         * m4/fclose.m4: New file.
19341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19342         REPLACE_FCLOSE.
19343         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19344         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19345         REPLACE_FCLOSE.
19346         * modules/close (Depends-on): fclose.
19347         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19348
19349 2008-10-11  Bruno Haible  <bruno@clisp.org>
19350
19351         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19352         set errno and don't call _close.
19353
19354 2008-10-10  Bruno Haible  <bruno@clisp.org>
19355
19356         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19357         ACL, not afterwards. Fixes test failure on Cygwin.
19358
19359 2008-10-09  Ben Pfaff  <blp@gnu.org>
19360
19361         * build-aux/announce-gen: Fix gnulib version related part of usage
19362         message.  Die with a useful error message if no tarballs are
19363         found.
19364
19365 2008-10-10  Jim Meyering  <meyering@redhat.com>
19366
19367         bootstrap: use git's --depth=N option only if it's supported
19368         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19369         recognize the --depth option.  Reported by Pádraig Brady.
19370
19371 2008-10-09  Bruno Haible  <bruno@clisp.org>
19372
19373         New module 'ioctl'.
19374         * modules/ioctl: New file.
19375         * lib/sys_socket.in.h (ioctl): Remove declaration.
19376         * lib/winsock.c: Include <sys/ioctl.h>.
19377         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19378         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19379         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19380         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19381         * doc/posix-functions/ioctl.texi: Mention the new module.
19382
19383 2008-10-09  Bruno Haible  <bruno@clisp.org>
19384
19385         New module 'sys_ioctl'.
19386         * lib/sys_ioctl.in.h: New file.
19387         * m4/sys_ioctl_h.m4: New file.
19388         * modules/sys_ioctl: New file.
19389         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19390
19391 2008-10-09  Bruno Haible  <bruno@clisp.org>
19392
19393         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19394         * lib/winsock.c: Include <stdarg.h>.
19395         (rpl_ioctl): Change to second argument 'int' and then varargs.
19396
19397 2008-10-09  Bruno Haible  <bruno@clisp.org>
19398
19399         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19400         when the sys_socket module is present and the system has <winsock2.h>.
19401
19402 2008-10-09  Bruno Haible  <bruno@clisp.org>
19403
19404         * doc/posix-functions/close.texi: Mention module 'close' instead of
19405         module 'sys_socket'.
19406
19407 2008-10-09  Bruno Haible  <bruno@clisp.org>
19408
19409         * doc/glibc-headers/sys_ioctl.texi: New file.
19410         * doc/gnulib.texi: Include it.
19411
19412 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19413             Bruno Haible  <bruno@clisp.org>
19414
19415         Combine the two replacements of 'close'.
19416         * lib/sys_socket.in.h (close): Define to a reminder to include
19417         <unistd.h>.
19418         (_gl_close_fd_maybe_socket): New declaration.
19419         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19420         * lib/winsock.c (close): Remove undefinition.
19421         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19422         needed for the gnulib module 'close'.
19423         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19424         define to an error symbol or to a warning, if suitable.
19425         * lib/close.c: Include <sys/socket.h>.
19426         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19427         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19428         UNISTD_H_HAVE_WINSOCK2_H.
19429         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19431         UNISTD_H_HAVE_WINSOCK2_H.
19432         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19433         (configure.ac): Set a module indicator.
19434         (Makefile.am): Substitute GNULIB_CLOSE.
19435         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19436         * modules/poll-tests (Depends-on): Add close.
19437         * modules/select-tests (Depends-on): Likewise.
19438
19439 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19440             Bruno Haible  <bruno@clisp.org>
19441
19442         New module 'close'.
19443         * modules/close: New file.
19444         * lib/unistd.in.h (close): Move declaration out of the
19445         FCHDIR_REPLACEMENT scope.
19446         (_gl_unregister_fd): New declaration.
19447         * lib/close.c: New file.
19448         * lib/fchdir.c (rpl_close): Remove function.
19449         * m4/close.m4: New file.
19450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19451         close.
19452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19453         REPLACE_CLOSE.
19454         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19455         REPLACE_CLOSE.
19456         * modules/fchdir (Depends-on): Add close.
19457
19458 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19459             Bruno Haible  <bruno@clisp.org>
19460
19461         * lib/fcntl.in.h (open): Simplify conditionals.
19462         (_gl_register_fd): New declaration.
19463         * lib/fchdir.c (rpl_open): Remove function.
19464         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19465         also.
19466         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19468         open.
19469
19470 2008-10-09  Jim Meyering  <meyering@redhat.com>
19471
19472         GNUmakefile: use the more name-space-friendly "_version"
19473         * top/GNUmakefile (_dummy): Update.
19474         (_version): Rename from "version".
19475
19476 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19477             Bruno Haible  <bruno@clisp.org>
19478
19479         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19480         rpl_close.
19481         (_gl_register_fd): New function, extracted from rpl_open.
19482         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19483         (rpl_open, rpl_opendir): Use _gl_register_fd.
19484
19485 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19486
19487         Fix organization of 'open' replacement.
19488         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19489         (gl_FUNC_OPEN): Use it.
19490         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19491
19492 2008-10-08  Bruno Haible  <bruno@clisp.org>
19493
19494         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19495
19496 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19497
19498         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19499         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19500         listen).
19501
19502 2008-10-08  Eric Blake  <ebb9@byu.net>
19503
19504         GNUmakefile: add 'make version' target
19505         * top/GNUmakefile (_curr-ver): Split version update rules...
19506         (version): ...into a target.
19507
19508 2008-10-07  Bruno Haible  <bruno@clisp.org>
19509
19510         Use a more portable replacement expression for -0.0L.
19511         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19512         instead of -0.0L. Fix m4 quotation.
19513
19514         * tests/test-signbit.c: Include <float.h>.
19515         (minus_zero): New variable.
19516         (test_signbitl): Use minus_zero instead of -zero.
19517         * modules/signbit-tests (Depends-on): Add float.
19518
19519         * tests/test-ceill.c: Include <float.h>.
19520         (zero): Remove variable.
19521         (minus_zero): New variable.
19522         (main): Use minus_zero instead of -zero.
19523         * modules/ceill-tests (Depends-on): Add float.
19524
19525         * tests/test-floorl.c: Include <float.h>.
19526         (zero): Remove variable.
19527         (minus_zero): New variable.
19528         (main): Use minus_zero instead of -zero.
19529         * modules/floorl-tests (Depends-on): Add float.
19530
19531         * tests/test-roundl.c: Include <float.h>.
19532         (zero): Remove variable.
19533         (minus_zero): New variable.
19534         (main): Use minus_zero instead of -zero.
19535         * modules/roundl-tests (Depends-on): Add float.
19536
19537         * tests/test-truncl.c: Include <float.h>.
19538         (zero): Remove variable.
19539         (minus_zero): New variable.
19540         (main): Use minus_zero instead of -zero.
19541         * modules/truncl-tests (Depends-on): Add float.
19542
19543         * tests/test-frexpl.c (zero): Remove variable.
19544         (minus_zero): New variable.
19545         (main): Use minus_zero instead of -zero.
19546         * modules/frexpl-tests (Depends-on): Add float.
19547
19548         * tests/test-isnan.c (zerol): Remove variable.
19549         (minus_zerol): New variable.
19550         (test_long_double): Use minus_zerol instead of -zerol.
19551         * modules/isnan-tests (Depends-on): Add float.
19552
19553         * tests/test-isnanl.h (zero): Remove variable.
19554         (minus_zero): New variable.
19555         (main): Use minus_zero instead of -zero.
19556         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19557         * modules/isnanl-tests (Depends-on): Add float.
19558
19559         * tests/test-ldexpl.c (zero): Remove variable.
19560         (minus_zero): New variable.
19561         (main): Use minus_zero instead of -zero.
19562         * modules/ldexpl-tests (Depends-on): Add float.
19563
19564         * tests/test-snprintf-posix.h (zerol): Remove variable.
19565         (minus_zerol): New variable.
19566         (test_function): Use minus_zerol instead of -zerol.
19567         * modules/snprintf-posix-tests (Depends-on): Add float.
19568         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19569
19570         * tests/test-sprintf-posix.h (zerol): Remove variable.
19571         (minus_zerol): New variable.
19572         (test_function): Use minus_zerol instead of -zerol.
19573         * modules/sprintf-posix-tests (Depends-on): Add float.
19574         * modules/vsprintf-posix-tests (Depends-on): Add float.
19575
19576         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19577         (minus_zerol): New variable.
19578         (test_function): Use minus_zerol instead of -zerol.
19579         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19580
19581         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19582         (minus_zerol): New variable.
19583         (test_function): Use minus_zerol instead of -zerol.
19584         * modules/vasprintf-posix-tests (Depends-on): Add float.
19585
19586 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19587
19588         * MODULES.html.sh (Support for building documentation): Mention
19589         pmccabe2html.  Sort entries.
19590
19591         Add pmccabe2html module, from gnupdf.
19592         * build-aux/pmccabe.css: New file.
19593         * build-aux/pmccabe2html: New file.
19594         * m4/pmccabe2html.m4: New file.
19595         * modules/pmccabe2html: New file.
19596
19597 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19598
19599         flock: new module
19600         * MODULES.html.sh: Add to list of modules.
19601         * lib/flock.c: flock implementation for Windows and Unix systems
19602         which have fcntl.
19603         * doc/glibc-functions/flock.texi: Update documentation.
19604         * lib/sys_file.in.h: <sys/file.h> header file.
19605         * m4/flock.m4: M4 macros.
19606         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19607         * modules/flock: flock module.
19608         * modules/flock-tests: flock tests module.
19609         * modules/sys_file: sys/file.h module.
19610         * tests/test-flock.c: test suite for flock.
19611
19612 2008-10-06  Jim Meyering  <meyering@redhat.com>
19613
19614         bootstrap: check for LT_INIT more portably still ;-)
19615         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19616         Spotted by Bruno Haible.
19617
19618 2008-10-06  Eric Blake  <ebb9@byu.net>
19619
19620         test-signbit: avoid tripping Irix cc bug on -0.0L
19621         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19622         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19623         entire testsuite consistent and avoids an Irix 6.2 bug.
19624
19625 2008-10-05  Bruno Haible  <bruno@clisp.org>
19626             Jim Meyering  <jim@meyering.net>
19627
19628         Add an option for ignoring EPIPE during close_stdout.
19629         * lib/closeout.h: Include <stdbool.h>.
19630         (close_stdout_set_ignore_EPIPE): New declaration.
19631         * lib/closeout.c: Include <stdbool.h>.
19632         (ignore_EPIPE): New variable.
19633         (close_stdout_set_ignore_EPIPE): New function.
19634         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19635         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19636         failure.
19637         * modules/closeout (Depends-on): Add stdbool.
19638
19639 2008-10-05  Bruno Haible  <bruno@clisp.org>
19640
19641         * modules/accept: New file.
19642         * modules/bind: New file.
19643         * modules/connect: New file.
19644         * modules/getpeername: New file.
19645         * modules/getsockname: New file.
19646         * modules/getsockopt: New file.
19647         * modules/listen: New file.
19648         * modules/recv: New file.
19649         * modules/recvfrom: New file.
19650         * modules/send: New file.
19651         * modules/sendto: New file.
19652         * modules/setsockopt: New file.
19653         * modules/socket: New file.
19654         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19655         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19656         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19657         the particular module is requested. Add a link warning when the
19658         particular module is not requested.
19659         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19660         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19661         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19662         the particular module is requested.
19663         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19664         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19665         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19666         * modules/sys_socket (Depends-on): Add link-warning.
19667         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19668         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19669         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19670         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19671         GL_LINK_WARNING.
19672         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19673         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19674         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19675         * doc/posix-functions/getpeername.texi: Mention the new module
19676         'getpeername'.
19677         * doc/posix-functions/getsockname.texi: Mention the new module
19678         'getsockname'.
19679         * doc/posix-functions/getsockopt.texi: Mention the new module
19680         'getsockopt'.
19681         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19682         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19683         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19684         * doc/posix-functions/send.texi: Mention the new module 'send'.
19685         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19686         * doc/posix-functions/setsockopt.texi: Mention the new module
19687         'setsockopt'.
19688         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19689         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19690         listen, connect, accept.
19691         * modules/select-tests (Depends-on): Likewise.
19692
19693 2008-10-05  Bruno Haible  <bruno@clisp.org>
19694
19695         * lib/winsock.c (strerror): Remove unused #undef.
19696         (rpl_close): Remove unused local variable.
19697
19698         * modules/sys_socket (Depends-on); Add errno.
19699
19700 2008-10-05  Bruno Haible  <bruno@clisp.org>
19701
19702         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19703         (select): Add a link warning when the 'select' module is not used.
19704         * modules/sys_select (Depends-on): Add link-warning.
19705         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19706         Suggested by Paolo Bonzini.
19707
19708 2008-10-05  Jim Meyering  <meyering@redhat.com>
19709
19710         bootstrap: check for LT_INIT more portably
19711         * build-aux/bootstrap: Avoid using grep -E, since it's not
19712         portable enough.  Suggestion from Bruno Haible.
19713
19714 2008-10-05  Bruno Haible  <bruno@clisp.org>
19715
19716         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19717         as being fixed by gnulib.
19718
19719 2008-10-05  Bruno Haible  <bruno@clisp.org>
19720
19721         * modules/select-tests: New file, mostly copied from
19722         modules/sys_select-tests.
19723         * tests/test-select.c: New file, mostly copied from
19724         tests/test-sys_select.c.
19725         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19726         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19727         (Makefile.am): Remove test_sys_select_LDADD.
19728
19729         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19730         to an undefined symbol, for an error message.
19731         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19732         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19733         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19734         winsock-select.c here.
19735         * modules/sys_select (Files): Remove lib/winsock-select.c.
19736         (Depends-on): Remove alloca.
19737         (Makefile.am): Substitute GNULIB_SELECT.
19738         * modules/select: New file.
19739         * doc/posix-functions/select.texi: Update.
19740
19741 2008-10-05  Bruno Haible  <bruno@clisp.org>
19742
19743         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19744         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19745         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19746         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19747         getdtablesize.
19748         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19749         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19750
19751 2008-10-05  Bruno Haible  <bruno@clisp.org>
19752
19753         * modules/getdtablesize-tests: New file.
19754         * tests/test-getdtablesize.c: New file.
19755
19756         New module 'getdtablesize'.
19757         * lib/unistd.in.h (getdtablesize): New declaration.
19758         * lib/getdtablesize.c: New file.
19759         * m4/getdtablesize.m4: New file.
19760         * modules/getdtablesize: New file.
19761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19762         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19763         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19764         HAVE_GETDTABLESIZE.
19765         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19766
19767 2008-10-05  Bruno Haible  <bruno@clisp.org>
19768
19769         * modules/sched (Makefile.am): Fix typo.
19770         Reported by Simon Josefsson.
19771
19772 2008-10-05  Jim Meyering  <meyering@redhat.com>
19773
19774         bootstrap: check for LT_INIT, too
19775         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19776         are deprecated.  Suggestion from Ralf Wildenhues.
19777
19778 2008-10-05  Bruno Haible  <bruno@clisp.org>
19779
19780         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19781         overriding them by ours.
19782         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19783
19784 2008-10-05  Jim Meyering  <meyering@redhat.com>
19785
19786         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19787         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19788         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19789
19790 2008-10-04  Bruno Haible  <bruno@clisp.org>
19791
19792         * modules/dup2 (License): Change to LGPLv2+.
19793         * modules/sleep (License): Likewise.
19794         * modules/perror (License): Likewise.
19795         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19796         Blake.
19797         * modules/signal (License): Likewise.
19798         * modules/sigprocmask (License): Likewise.
19799         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19800         Meyering.
19801
19802 2008-10-04  Bruno Haible  <bruno@clisp.org>
19803
19804         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19805         Reported by Rainer Tammer <tammer@tammer.net>.
19806
19807 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19808             Bruno Haible  <bruno@clisp.org>
19809
19810         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19811         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19812         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19813
19814 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19815
19816         filevercmp: new module
19817         * lib/filevercmp.h: New function filevercmp comparing version strings.
19818         * lib/filevercmp.c: Implementation of filevercmp function.
19819         * modules/filevercmp: Module metadata.
19820         * tests/test-filevercmp.c: Unit test for new module.
19821         * modules/filevercmp-tests: Unit test metadata.
19822         * MODULES.html.sh: Add filevercmp module.
19823
19824 2008-10-03  Bruno Haible  <bruno@clisp.org>
19825
19826         * lib/c-ctype.h: Add comment.
19827         Reported by Jim Meyering.
19828
19829 2008-10-02  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19832
19833 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19834
19835         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19836         name of bootstrap.conf accordingly.
19837
19838 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19839
19840         * build-aux/bootstrap: Install git-merge-changelog configuration
19841         items into .gitconfig if needed.
19842
19843 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19844
19845         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19846         git repository, and initialize/update it accordingly.
19847
19848 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19849
19850         * modules/fsync-tests: New file.
19851         * tests/test-fsync.c: New file.
19852
19853         New module 'fsync'.
19854         * lib/fsync.c: New file.
19855         * m4/fsync.m4: New file.
19856         * modules/fsync: New file.
19857         * lib/unistd.in.h (fsync): New declaration.
19858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19859         GNULIB_FSYNC and HAVE_FSYNC.
19860         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19861         * MODULES.html.sh (posix_functions): Add fsync.
19862         * doc/posix-functions/fsync.texi: Mention the new module.
19863
19864 2008-10-02  Jim Meyering  <meyering@redhat.com>
19865
19866         fts.c: sync with similar code from coreutils' remove.c
19867         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19868         Guard also with "#if defined __linux__", since for now at least,
19869         this code is Linux-kernel-specific.
19870
19871 2008-10-02  Jim Meyering  <meyering@redhat.com>
19872
19873         fts: bug fixes
19874         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19875         Include <sys/vfs.h>, not <sys/statfs.h>.
19876
19877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19878         Include <sys/vfs.h>, not <sys/statfs.h>.
19879
19880 2008-10-01  Bruno Haible  <bruno@clisp.org>
19881
19882         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19884         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19885         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19886         * doc/posix-functions/posix_spawnp.texi: Likewise.
19887         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19888         whether posix_spawn actually works.
19889         * m4/pipe.m4 (gl_PIPE): Likewise.
19890         * modules/execute (Files): Add m4/posix_spawn.m4.
19891         * modules/pipe (Files): Add m4/posix_spawn.m4.
19892         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19893
19894 2008-10-01  Jim Meyering  <meyering@redhat.com>
19895
19896         remove trailing spaces
19897         * NEWS: Likewise.
19898         * lib/poll.c (poll): Likewise.
19899         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19900         * lib/winsock.c (rpl_close): Likewise.
19901         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19902         * modules/yield: Likewise.
19903         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19904         * tests/test-sys_select.c (connect_to_socket): Likewise.
19905
19906         fts.c: adjust a new interface to be more generally useful
19907         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19908         (fts_build): Adjust caller.
19909
19910 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19911
19912         * modules/cond-tests: New file.
19913         * tests/test-cond.c: New file.
19914
19915 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19916             Bruno Haible  <bruno@clisp.org>
19917
19918         * modules/cond (Dependencies): Add errno, time.
19919         * lib/glthread/cond.h: Include <time.h>.
19920         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19921         across platforms.
19922
19923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19924             Bruno Haible  <bruno@clisp.org>
19925
19926         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19927
19928 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19929             Bruno Haible  <bruno@clisp.org>
19930
19931         * modules/tls-tests (Depends-on): Add thread, yield.
19932         (configure.ac): Remove all checks.
19933         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19934         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19935         gl_thread_self): Remove definitions. Include glthread/thread.h and
19936         glthread/yield.h instead.
19937         (test_tls): Pass an additional NULL argument to gl_thread_join.
19938
19939 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19940             Bruno Haible  <bruno@clisp.org>
19941
19942         * modules/lock-tests (Depends-on): Add thread, yield.
19943         (configure.ac): Remove all checks.
19944         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19945         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19946         gl_thread_self): Remove definitions. Include glthread/thread.h and
19947         glthread/yield.h instead.
19948         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19949         additional NULL argument to gl_thread_join.
19950
19951 2008-09-30  Bruno Haible  <bruno@clisp.org>
19952
19953         Fix the Win32 implementation of the 'thread' module.
19954         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19955         pointer type.
19956         (gl_thread_self): Invoke gl_thread_self_func.
19957         (gl_thread_self_func): New declaration.
19958         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19959         (do_init_self_key, init_self_key): New functions.
19960         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19961         Remove some fields.
19962         (running_threads, running_lock): Remove variables.
19963         (get_current_thread_handle): New function.
19964         (gl_thread_self_func, wrapper_func, glthread_create_func,
19965         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19966         simplified.
19967
19968 2008-09-30  Bruno Haible  <bruno@clisp.org>
19969
19970         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19971         files.
19972
19973 2008-09-30  Jim Meyering  <meyering@redhat.com>
19974
19975         fts.m4: correct the test for statfs.f_type
19976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19977         when checking for statfs.f_type.
19978
19979 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19980
19981         tests: avoid some compiler warnings
19982         * tests/test-memchr.c (main): Pass NULL indirectly.
19983         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19984
19985 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19986
19987         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19988         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19989         exactly specified dayshifts.
19990         (dayshift): New rule.
19991         (rel): Add dayshift.
19992         (relative_time_table) [tomorrow, yesterday, today, now]:
19993         Use tDAY_SHIFT in place of tDAY_UNIT.
19994         * tests/test-getdate.c: Add tests for now-disallowed countable
19995         dayshifts, e.g., "4 yesterday ago".
19996
19997 2008-09-29  Bruno Haible  <bruno@clisp.org>
19998
19999         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20000         * tests/test-posix_spawn1.in.sh: Renamed from
20001         tests/test-posix_spawn.in.sh.
20002         * tests/test-posix_spawn2.c: New file.
20003         * tests/test-posix_spawn2.in.sh: New file.
20004         * modules/posix_spawnp-tests (Files): Update.
20005         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20006
20007 2008-09-29  Bruno Haible  <bruno@clisp.org>
20008
20009         Propagate effects of putenv/setenv/unsetenv to child processes.
20010         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20011         * lib/pipe.c (create_pipe): Likewise.
20012
20013 2008-09-29  Bruno Haible  <bruno@clisp.org>
20014
20015         Enable use of shell scripts as executables in mingw.
20016         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20017         run the program as a shell script.
20018         * lib/pipe.c (create_pipe): Likewise.
20019         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20020         resulting array.
20021
20022 2008-09-29  Eric Blake  <ebb9@byu.net>
20023
20024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20025
20026 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20027
20028         * doc/posix-functions/accept.texi: Update mingw problems.
20029         * doc/posix-functions/bind.texi: Update mingw problems.
20030         * doc/posix-functions/close.texi: Update mingw problems.
20031         * doc/posix-functions/connect.texi: Update mingw problems.
20032         * doc/posix-functions/getpeername.texi: Update mingw problems.
20033         * doc/posix-functions/getsockname.texi: Update mingw problems.
20034         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20035         * doc/posix-functions/ioctl.texi: Update mingw problems.
20036         * doc/posix-functions/listen.texi: Update mingw problems.
20037         * doc/posix-functions/recv.texi: Update mingw problems.
20038         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20039         * doc/posix-functions/select.texi: Update mingw problems.
20040         * doc/posix-functions/send.texi: Update mingw problems.
20041         * doc/posix-functions/sendto.texi: Update mingw problems.
20042         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20043         * doc/posix-functions/socket.texi: Update mingw problems.
20044
20045 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20046             Bruno Haible  <bruno@clisp.org>
20047
20048         * lib/sys_select.in.h: Include sys/time.h.
20049         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20050         * modules/sys_select: Depend on sys_time.
20051         * tests/test-sys_select.c: Test that sys/select.h defines struct
20052         timeval fully.
20053
20054 2008-09-29  Bruno Haible  <bruno@clisp.org>
20055
20056         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20057         * lib/sys_select.in.h: Likewise.
20058
20059 2008-09-29  Bruno Haible  <bruno@clisp.org>
20060
20061         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20062
20063 2008-09-29  Bruno Haible  <bruno@clisp.org>
20064
20065         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20066         Set LIBSOCKET instead of augmenting LIBS.
20067         * modules/sockets (Link): New section.
20068         * modules/sockets-tests (test_sockets_LDADD): New variable.
20069         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20070         * modules/poll-tests (test_poll_LDADD): New variable.
20071         * NEWS: Document the change.
20072
20073 2008-09-29  Bruno Haible  <bruno@clisp.org>
20074
20075         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20076         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20077         ARPA_INET_H directly.
20078         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20079
20080 2008-09-28  Bruno Haible  <bruno@clisp.org>
20081
20082         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20083         from gl_HEADER_SYS_SOCKET.
20084         (gl_HEADER_SYS_SOCKET): Invoke it.
20085         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20086
20087 2008-09-28  Bruno Haible  <bruno@clisp.org>
20088
20089         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20090         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20091         Needed on OSF/1 4.0.
20092
20093 2008-09-28  Bruno Haible  <bruno@clisp.org>
20094
20095         Override open more carefully.
20096         * lib/open.c (orig_open): New function.
20097         (rpl_open): Use orig_open instead of open.
20098         * lib/fcntl.in.h: Add special invocation convention.
20099         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20100         (gl_FUNC_OPEN): Invoke it.
20101
20102         Override freopen more carefully.
20103         * lib/freopen.c (orig_freopen): New function.
20104         (rpl_freopen): Use orig_freopen instead of freopen.
20105         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20106         (gl_FUNC_FREOPEN): Invoke it.
20107
20108         Override fopen more carefully.
20109         * lib/fopen.c (orig_fopen): New function.
20110         (rpl_fopen): Use orig_fopen instead of fopen.
20111         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20112         (gl_FUNC_FOPEN): Invoke it.
20113         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20114
20115 2008-09-28  Bruno Haible  <bruno@clisp.org>
20116
20117         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20118         SIGPIPE.
20119
20120 2008-09-28  Bruno Haible  <bruno@clisp.org>
20121
20122         * tests/test-sigaction.c (handler, main): Disable the check whether
20123         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20124         glibc systems with LinuxThreads.
20125
20126 2008-09-28  Bruno Haible  <bruno@clisp.org>
20127
20128         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20129
20130         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20131         with AIX xlc.
20132         * lib/fcntl.in.h (open): Likewise.
20133         Reported by Rainer Tammer <tammer@tammer.net>.
20134
20135 2008-09-28  Bruno Haible  <bruno@clisp.org>
20136
20137         * modules/posix_spawnp-tests: New file.
20138         * tests/test-posix_spawn.c: New file.
20139         * tests/test-posix_spawn.in.sh: New file.
20140
20141         New module 'posix_spawnp'.
20142         * modules/posix_spawnp: New file.
20143         * lib/spawnp.c: New file, from GNU libc with modifications.
20144         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20145
20146         New module 'posix_spawn'.
20147         * modules/posix_spawn: New file.
20148         * lib/spawn.c: New file, from GNU libc with modifications.
20149         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20150
20151         New module 'posix_spawnattr_destroy'.
20152         * modules/posix_spawnattr_destroy: New file.
20153         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20154         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20155         module.
20156
20157         New module 'posix_spawnattr_setsigmask'.
20158         * modules/posix_spawnattr_setsigmask: New file.
20159         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20160         modifications.
20161         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20162         new module.
20163
20164         New module 'posix_spawnattr_getsigmask'.
20165         * modules/posix_spawnattr_getsigmask: New file.
20166         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20167         modifications.
20168         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20169         new module.
20170
20171         New module 'posix_spawnattr_setsigdefault'.
20172         * modules/posix_spawnattr_setsigdefault: New file.
20173         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20174         modifications.
20175         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20176         new module.
20177
20178         New module 'posix_spawnattr_getsigdefault'.
20179         * modules/posix_spawnattr_getsigdefault: New file.
20180         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20181         modifications.
20182         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20183         new module.
20184
20185         New module 'posix_spawnattr_setschedpolicy'.
20186         * modules/posix_spawnattr_setschedpolicy: New file.
20187         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20188         modifications.
20189         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20190         new module.
20191
20192         New module 'posix_spawnattr_getschedpolicy'.
20193         * modules/posix_spawnattr_getschedpolicy: New file.
20194         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20195         modifications.
20196         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20197         new module.
20198
20199         New module 'posix_spawnattr_setschedparam'.
20200         * modules/posix_spawnattr_setschedparam: New file.
20201         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20202         modifications.
20203         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20204         new module.
20205
20206         New module 'posix_spawnattr_getschedparam'.
20207         * modules/posix_spawnattr_getschedparam: New file.
20208         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20209         modifications.
20210         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20211         new module.
20212
20213         New module 'posix_spawnattr_setpgroup'.
20214         * modules/posix_spawnattr_setpgroup: New file.
20215         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20216         modifications.
20217         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20218         module.
20219
20220         New module 'posix_spawnattr_getpgroup'.
20221         * modules/posix_spawnattr_getpgroup: New file.
20222         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20223         modifications.
20224         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20225         module.
20226
20227         New module 'posix_spawnattr_setflags'.
20228         * modules/posix_spawnattr_setflags: New file.
20229         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20230         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20231         module.
20232
20233         New module 'posix_spawnattr_getflags'.
20234         * modules/posix_spawnattr_getflags: New file.
20235         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20236         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20237         module.
20238
20239         New module 'posix_spawnattr_init'.
20240         * modules/posix_spawnattr_init: New file.
20241         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20242         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20243         module.
20244
20245         New module 'posix_spawn_file_actions_destroy'.
20246         * modules/posix_spawn_file_actions_destroy: New file.
20247         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20248         modifications.
20249         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20250         the new module.
20251
20252         New module 'posix_spawn_file_actions_addopen'.
20253         * modules/posix_spawn_file_actions_addopen: New file.
20254         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20255         modifications.
20256         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20257         the new module.
20258
20259         New module 'posix_spawn_file_actions_adddup2'.
20260         * modules/posix_spawn_file_actions_adddup2: New file.
20261         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20262         modifications.
20263         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20264         the new module.
20265
20266         New module 'posix_spawn_file_actions_addclose'.
20267         * modules/posix_spawn_file_actions_addclose: New file.
20268         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20269         modifications.
20270         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20271         the new module.
20272
20273         New module 'posix_spawn_file_actions_init'.
20274         * modules/posix_spawn_file_actions_init: New file.
20275         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20276         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20277         new module.
20278
20279         New module 'posix_spawn-internal'.
20280         * modules/posix_spawn-internal: New file.
20281         * lib/spawn_int.h: New file, from GNU libc with modifications.
20282         * lib/spawni.c: New file, from GNU libc with modifications.
20283         * m4/posix_spawn.m4: New file.
20284
20285         New module 'spawn'.
20286         * modules/spawn: New file.
20287         * lib/spawn.in.h: New file, from GNU libc with modifications.
20288         * m4/spawn_h.m4: New file.
20289         * doc/posix-headers/spawn.texi: Mention the new module.
20290
20291 2008-09-28  Bruno Haible  <bruno@clisp.org>
20292
20293         * modules/sched-tests: New file.
20294         * tests/test-sched.c: New file.
20295
20296         New module 'sched'.
20297         * modules/sched: New file.
20298         * lib/sched.in.h: New file.
20299         * m4/sched_h.m4: New file.
20300         * doc/posix-headers/sched.texi: Mention the new module.
20301
20302 2008-09-27  Eric Blake  <ebb9@byu.net>
20303
20304         Fix previous patch, and tweak references to $0.
20305         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20306         (func_version, func_gnulib_dir): Don't call this program
20307         gnulib-tool.
20308         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20309         with using $0 in function.
20310         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20311         (func_fatal_error): Reuse the name the user invoked us with.
20312
20313 2008-09-27  Bruno Haible  <bruno@clisp.org>
20314
20315         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20316         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20317         (gl_ICONV_H): Not here.
20318         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20319         instead of assigning ICONV_H directly.
20320
20321         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20323         WCHAR_H directly.
20324
20325 2008-09-27  Bruno Haible  <bruno@clisp.org>
20326
20327         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20328         * modules/arpa_inet (Depends-on): Add link-warning.
20329         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20330         * modules/unistd (Makefile.am): Likewise.
20331
20332 2008-09-26  Bruno Haible  <bruno@clisp.org>
20333
20334         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20335         variables.
20336         (func_version): Essentially copied from gnulib-tool.
20337         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20338         func_readlink): Copied from gnulib-tool.
20339
20340 2008-09-26  Bruno Haible  <bruno@clisp.org>
20341
20342         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20343         invoking git-version-gen.
20344
20345 2008-09-26  Bruno Haible  <bruno@clisp.org>
20346
20347         * posix-modules: Update to directory names changed on 2008-01-19.
20348         Remove commas in output before splitting into words. No more need to
20349         avoid 'ftruncate' since 2007-02-19.
20350
20351 2008-09-26  Bruno Haible  <bruno@clisp.org>
20352
20353         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20354
20355 2008-09-26  Bruno Haible  <bruno@clisp.org>
20356
20357         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20358         * modules/fwriteerror (Depends-on): Add errno.
20359
20360 2008-09-26  Bruno Haible  <bruno@clisp.org>
20361
20362         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20363         * tests/test-vc-list-files-cvs.sh: Likewise.
20364
20365 2008-09-26  Bruno Haible  <bruno@clisp.org>
20366
20367         * doc/posix-headers/sys_resource.texi: Reorder items.
20368
20369 2008-09-26  Jim Meyering  <meyering@redhat.com>
20370
20371         fts: tweak inode comparison function
20372         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20373         inode numbers, as documented.
20374
20375         fts: sort dirent entries on inode number before traversing
20376         This avoids a quadratic, seek-related performance penalty when
20377         operating on a directory containing many entries (measurable at 10k;
20378         3.5 hours at 2 million entries with a cold cache) on certain types
20379         of file systems, including ext3 and ext4, but not tmpfs.
20380         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20381         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20382         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20383         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20384         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20385         (fts_build): Set the stat.st_ino member from D_INO.
20386         If it is likely to be useful, sort dirent entries on inode number.
20387
20388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20389         and the struct statfs.f_type member.
20390         * modules/fts (Depends-on): Add d-ino.
20391
20392 2008-09-26  Bruno Haible  <bruno@clisp.org>
20393
20394         * modules/sigpipe-die (Depends-on): Add sigpipe.
20395
20396         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20397         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20398         and GNULIB_STDIO_H_SIGPIPE are set.
20399         * lib/stdio-write.c: New file.
20400         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20401         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20402         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20403         REPLACE_STDIO_WRITE_FUNCS.
20404         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20405         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20406         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20407         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20408         * modules/stdio (Files): Add lib/stdio-write.c.
20409         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20410         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20411         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20412         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20413         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20414         REPLACE_FPRINTF_POSIX.
20415         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20416         REPLACE_PRINTF_POSIX.
20417         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20418         REPLACE_VFPRINTF_POSIX.
20419         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20420         REPLACE_VPRINTF_POSIX.
20421         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20422         SIGPIPE issue.
20423         * doc/posix-functions/fputc.texi: Likewise.
20424         * doc/posix-functions/fputs.texi: Likewise.
20425         * doc/posix-functions/fwrite.texi: Likewise.
20426         * doc/posix-functions/printf.texi: Likewise.
20427         * doc/posix-functions/putc.texi: Likewise.
20428         * doc/posix-functions/putchar.texi: Likewise.
20429         * doc/posix-functions/puts.texi: Likewise.
20430         * doc/posix-functions/vfprintf.texi: Likewise.
20431         * doc/posix-functions/vprintf.texi: Likewise.
20432
20433         * modules/safe-write (Depends-on): Add write.
20434
20435         * modules/sigpipe-tests: New file.
20436         * tests/test-sigpipe.c: New file.
20437         * tests/test-sigpipe.sh: New file.
20438
20439         * modules/write: New file.
20440         * lib/unistd.in.h: Include <sys/types.h>.
20441         (write): New declaration.
20442         * lib/write.c: New file.
20443         * m4/write.m4: New file.
20444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20445         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20446         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20447         GNULIB_WRITE, REPLACE_WRITE.
20448         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20449         and the SIGPIPE issue.
20450
20451         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20452         (raise): New declaration.
20453         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20454         (ext_signal): New function.
20455         (rpl_raise): New function.
20456         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20457         GNULIB_SIGNAL_H_SIGPIPE.
20458         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20459         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20460
20461         * modules/sigpipe: New file.
20462         * m4/sigpipe.m4: New file.
20463
20464 2008-09-25  Derek Price  <derek@ximbiot.com>
20465             Bruno Haible  <bruno@clisp.org>
20466
20467         * gnulib-tool (func_import): Report all license incompatibilities, not
20468         just the first one.
20469
20470 2008-09-25  Bruno Haible  <bruno@clisp.org>
20471
20472         * gnulib-tool (func_import): When computing the edits, consider not
20473         only the Makefile.ams that exist but also those that will be generated.
20474
20475 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20476
20477         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20478         fixes gnulib-tool --test warning about duplicate dependency.
20479
20480 2008-09-25  Bruno Haible  <bruno@clisp.org>
20481
20482         * gnulib-tool: Don't ask the user to perform edits in the generated
20483         Makefile.ams.
20484         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20485         apply to the Makefile.am being generated.
20486         (func_emit_tests_Makefile_am): Execute edits that apply to the
20487         Makefile.am being generated.
20488         (func_import): Setup list of Makefile.am edits before emitting the
20489         Makefile.ams, not at the end.
20490         (func_create_testdir): Update.
20491         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20492
20493 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20494
20495         * gnulib-tool (func_import): Store the --tests-base option in the
20496         comment in gnulib-cache.m4.
20497
20498 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20499
20500         * NEWS: Document increased portability that sys_select now provides.
20501
20502         * lib/sys_select.in.h: Install select wrapper.
20503         * lib/sys_socket.in.h: Use more descriptive name when there is no
20504         select wrapper.
20505         * lib/winsock-select.c: New.
20506         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20507         Require gl_HEADER_SYS_SOCKET.
20508         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20509         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20510         * tests/test-sys_select.c: Add functional tests.
20511
20512 2008-09-24  Eric Blake  <ebb9@byu.net>
20513
20514         open, fopen: close fd leak in last patch
20515         * lib/open.c (rpl_open): Close fd before returning error.
20516         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20517         * doc/posix-functions/open.texi (open): Document that Irix also
20518         has the bug.
20519         * doc/posix-functions/fopen.texi (fopen): Likewise.
20520         Reported by Paolo Bonzini.
20521
20522 2008-09-24  Bruno Haible  <bruno@clisp.org>
20523
20524         Ensure that a filename ending in a slash cannot be used to access a
20525         non-directory.
20526         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20527         to check whether it's really a directory.
20528         * lib/fopen.c: Include fcntl.h, unistd.h.
20529         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20530         and fdopen().
20531         * modules/fopen (Depends-on): Add unistd.
20532         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20533         * tests/test-fopen.c (main): Likewise.
20534         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20535         * doc/posix-functions/fopen.texi: Likewise.
20536         Reported by Eric Blake.
20537
20538 2008-09-23  Eric Blake  <ebb9@byu.net>
20539
20540         c-stack: avoid compiler optimizations when provoking overflow
20541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20542         recursion harder to optimize, to ensure a stack overflow occurs.
20543         * tests/test-c-stack.c (recurse): Likewise.
20544         Borrowed from libsigsegv.
20545
20546         c-stack: work around Irix sigaltstack bug
20547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20548         whether sigaltstack uses wrong end of stack_t (copied in part from
20549         libsigsegv).
20550         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20551         Irix bug, without requiring an over-allocation.
20552         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20553         bug.
20554
20555         fopen: document mingw bug on directories
20556         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20557         not allowing a stream visiting a directory, even though reading
20558         from such a stream is not portable.
20559
20560 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20561
20562         * lib/poll.c: Rewrite.
20563         * modules/poll: Depend on alloca.
20564
20565 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20566
20567         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20568         instead define prototypes for a full set of wrappers.  Ensure
20569         that Cygwin does not use the compatibility code, which is only
20570         for MinGW.
20571         * lib/winsock.c: New.
20572         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20573         * modules/sys_socket: Add lib/winsock.c.
20574
20575         * modules/poll-tests: Add errno and perror.
20576         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20577
20578 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20579
20580         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20581
20582 2008-09-23  Bruno Haible  <bruno@clisp.org>
20583
20584         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20585         * doc/glibc-functions/*: Likewise.
20586
20587 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20588
20589         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20590         success.
20591
20592 2008-09-22  Eric Blake  <ebb9@byu.net>
20593             Bruno Haible  <bruno@clisp.org>
20594
20595         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20596         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20597         supply %A but mishandle pseudo-NaN.
20598         Reported by Simon Josefsson.
20599
20600 2008-09-21  Bruno Haible  <bruno@clisp.org>
20601
20602         * tests/test-lock.c (main): Tweak skip message.
20603         * tests/test-tls.c (main): Likewise.
20604
20605 2008-09-21  Bruno Haible  <bruno@clisp.org>
20606
20607         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20608         whether 'struct sigaction' has sa_sigaction here...
20609         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20610         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20611
20612 2008-09-21  Bruno Haible  <bruno@clisp.org>
20613
20614         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20615         section.
20616         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20617         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20618         the new section.
20619         (Support for obsolete systems lacking POSIX:2001): New section.
20620         (String handling <string.h>): Move strdup to the new section.
20621         Suggested by Simon Josefsson and Paolo Bonzini.
20622
20623 2008-09-21  Bruno Haible  <bruno@clisp.org>
20624
20625         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20626         exponents in %e and %g results on 'long double'. Needed for mingw's
20627         improved *printf functions.
20628         * tests/test-vasprintf-posix.c (test_function): Likewise.
20629         * tests/test-snprintf-posix.h (test_function): Likewise.
20630         * tests/test-sprintf-posix.h (test_function): Likewise.
20631         Reported by Eric Blake.
20632
20633 2008-09-21  Bruno Haible  <bruno@clisp.org>
20634
20635         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20636         * tests/test-sprintf-posix.h (test_function): Likewise.
20637
20638 2008-09-21  Bruno Haible  <bruno@clisp.org>
20639
20640         * modules/getpass (Depends-on): Add strdup-posix.
20641
20642         New module 'strdup-posix'.
20643         * modules/strdup-posix: New file.
20644         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20645         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20647         REPLACE_STRDUP.
20648         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20649         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20651         strdup-posix.
20652
20653         * modules/strdup (Depends-on): Remove malloc-posix.
20654
20655 2008-09-20  Bruno Haible  <bruno@clisp.org>
20656
20657         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20658         Wildenhues.
20659
20660 2008-09-20  Bruno Haible  <bruno@clisp.org>
20661
20662         Ensure that wint_t gets defined on IRIX 5.3.
20663         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20664         * lib/wctype.in.h (wint_t): Likewise.
20665         (__wctype_wint_t): Remove type.
20666         (isw*): Use wint_t instead of __wctype_wint_t.
20667         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20668         * modules/wchar (Files): Add m4/wint_t.m4.
20669         (Makefile.am): Substitute HAVE_WINT_T.
20670         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20671         * tests/test-wctype.c: Check that wint_t is defined.
20672         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20673         * doc/posix-headers/wctype.texi: Likewise.
20674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20675
20676 2008-09-18  Bruno Haible  <bruno@clisp.org>
20677
20678         * gnulib-tool (func_exit): Update comment.
20679
20680 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20681
20682         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20683         assumes strdup exists and does not depend on strdup to return
20684         ENOMEM on out of memory conditions.
20685
20686 2008-09-18  Bruno Haible  <bruno@clisp.org>
20687
20688         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
20689         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20690         digits for the exponent.
20691
20692 2008-09-18  Jim Meyering  <meyering@redhat.com>
20693             Bruno Haible  <bruno@clisp.org>
20694
20695         * lib/vasnprintf.c (decimal_point_char): Define also if
20696         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20697
20698 2008-09-16  Bruno Haible  <bruno@clisp.org>
20699         and Eric Blake  <ebb9@byu.net>
20700
20701         vasnprintf: support Irix 5.3
20702         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20703         that mishandle long double infinity.
20704         Reported by Tom G. Christensen.
20705
20706 2008-09-16  Bruno Haible  <bruno@clisp.org>
20707
20708         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20709         Solaris 9.
20710         * doc/glibc-functions/alphasort.texi: Likewise.
20711         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20712
20713 2008-09-16  Jim Meyering  <meyering@redhat.com>
20714
20715         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20716         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20717         a umask modification leak out of a subshell.  Otherwise, the
20718         opensolaris /bin/sh would be accepted and thus cause unwarranted
20719         failures in the coreutils test suite.
20720
20721 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20722
20723         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20724         to succeed.
20725
20726 2008-09-16  Jim Meyering  <meyering@redhat.com>
20727
20728         avoid spurious test failure when library is built without ACL support
20729         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20730         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20731         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20732         * tests/test-copy-acl.sh: Likewise.
20733
20734 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20735
20736         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20737         based on character occurrence counts.
20738
20739 2008-09-15  Eric Blake  <ebb9@byu.net>
20740
20741         tests: avoid some compiler warnings
20742         * tests/test-memchr.c (main): Pass NULL indirectly.
20743         * tests/test-closein.c (main): Avoid unused variable.
20744
20745 2008-09-15  Bruno Haible  <bruno@clisp.org>
20746
20747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20748         are missing on OpenBSD 4.0 individually.
20749         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20750
20751 2008-09-15  Bruno Haible  <bruno@clisp.org>
20752
20753         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20754         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20755         * doc/posix-functions/perror.texi: Likewise.
20756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20757         is missing.
20758         Reported by Eric Blake.
20759
20760         * lib/errno.in.h: Use replacement values >= 2000.
20761         Reported by Eric Blake.
20762
20763 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20764
20765         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20766         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20767         limit.
20768         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20769         compareseq was aborted.
20770
20771 2008-09-14  Bruno Haible  <bruno@clisp.org>
20772
20773         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20774         yvec_edit_count.
20775         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20776         (fstrcmp_bounded): Simplify result computation accordingly.
20777
20778 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20779
20780         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20781         (fstrcmp): Define in terms of fstrcmp_bounded.
20782         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20783         lower_bound argument.
20784         Return quickly if the result is certainly < lower_bound.
20785         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20786
20787 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20788
20789         * lib/diffseq.h (EARLY_ABORT): New macro.
20790         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20791         evaluates to true.
20792
20793 2008-09-14  Bruno Haible  <bruno@clisp.org>
20794
20795         * modules/perror-tests: New file.
20796         * tests/test-perror.sh: New file.
20797         * tests/test-perror.c: New file.
20798
20799         New module 'perror'.
20800         * lib/stdio.in.h (perror): New declaration.
20801         * lib/perror.c: New file.
20802         * m4/perror.m4: New file.
20803         * modules/perror: New file.
20804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20805         * doc/posix-functions/perror.texi: Mention the perror module.
20806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20807         REPLACE_PERROR.
20808         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20809         REPLACE_PERROR.
20810
20811 2008-09-14  Bruno Haible  <bruno@clisp.org>
20812
20813         * modules/stdio (Makefile.am): Reorder to match the order in
20814         lib/stdio.in.h.
20815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20816
20817 2008-09-13  Bruno Haible  <bruno@clisp.org>
20818
20819         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20820
20821 2008-09-13  Bruno Haible  <bruno@clisp.org>
20822
20823         Extend strerror to cover the added errno values.
20824         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20825         (rpl_strerror): Provide error messages for the added errno values and
20826         for the WSA* values.
20827         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20828         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20829         strerror.
20830         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20831         * modules/strerror (Depends-on): Add errno.
20832         * doc/posix-functions/strerror.texi: Document the change.
20833         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20834         and EOVERFLOW.
20835
20836 2008-09-13  Bruno Haible  <bruno@clisp.org>
20837
20838         * modules/EOVERFLOW: Remove file.
20839         * m4/eoverflow.m4: Remove file.
20840         * modules/EOVERFLOW-tests: Remove file.
20841         * tests/test-EOVERFLOW.c: Remove file.
20842         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20843         * modules/ftell (Depends-on): Likewise.
20844         * modules/getdelim (Depends-on): Likewise.
20845         * modules/getugroups (Depends-on): Likewise.
20846         * modules/poll (Depends-on): Likewise.
20847         * modules/snprintf (Depends-on): Likewise.
20848         * modules/sprintf-posix (Depends-on): Likewise.
20849         * modules/vasnprintf (Depends-on): Likewise.
20850         * modules/vasprintf (Depends-on): Likewise.
20851         * modules/vfprintf-posix (Depends-on): Likewise.
20852         * modules/vsnprintf (Depends-on): Likewise.
20853         * modules/vsprintf-posix (Depends-on): Likewise.
20854         * modules/xvasprintf (Depends-on): Likewise.
20855         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20856         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20857         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20858         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20859         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20860         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20861         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20862         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20863         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20864         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20865         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20866         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20868         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20869         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20870         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20872         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20873         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20874         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20875         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20876         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20877         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20878         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20879         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20880         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20881         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20882         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20883         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20884         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20885         * MODULES.html.sh: Remove EOVERFLOW.
20886         * NEWS: Mention the change.
20887
20888 2008-09-13  Bruno Haible  <bruno@clisp.org>
20889
20890         * modules/errno-tests: New file.
20891         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20892
20893         * lib/errno.in.h: New file.
20894         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20895         * modules/errno: New file.
20896         * doc/posix-headers/errno.texi: Update documentation.
20897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20898
20899 2008-09-13  Bruno Haible  <bruno@clisp.org>
20900
20901         * tests/test-poll.c: Use #if for native Windows, rather than testing
20902         __MSVCRT__.
20903
20904 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20905             Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/glob.c: Don't include <pwd.h> on native Windows.
20908         (WINDOWS32): New macro.
20909         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20910
20911 2008-09-13  Bruno Haible  <bruno@clisp.org>
20912
20913         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20914         (ETIMEDOUT): Remove macro.
20915         (glthread_cond_timedwait_multithreaded): New declaration.
20916         (glthread_cond_timedwait): Use it.
20917         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20918         (glthread_cond_timedwait_multithreaded): New function.
20919
20920 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20921
20922         * modules/poll-tests: Do not check for io.h.
20923         * tests/test-poll.c: Check for __MSVCRT__ instead.
20924
20925 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20926
20927         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20928         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20929         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20930
20931 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20932
20933         * modules/poll-tests: New.
20934         * tests/test-poll.c: New.
20935
20936 2008-09-12  Eric Blake  <ebb9@byu.net>
20937
20938         frexp: test for NetBSD failure on -0.0
20939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20940         not all, bugs from NetBSD 3.0 have been fixed.
20941         * doc/posix-functions/frexp.texi (frexp): Document bug.
20942         Reported by Thomas Klausner.
20943
20944         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20945         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20946         literal -0.0.
20947         Reported by Jonathan C. Patschke <jp@centtech.com>.
20948
20949 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20950
20951         * lib/glthread/cond.h: Use dummy implementation also if
20952         USE_WIN32_THREADS.
20953
20954 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20955
20956         * modules/fnmatch-posix (License): Change to LGPLv2+.
20957         * modules/fnmatch-gnu (License): Likewise.
20958
20959 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20960
20961         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20962
20963 2008-09-11  Jim Meyering  <meyering@redhat.com>
20964
20965         * users.txt: Add gtk-vnc.
20966
20967 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20968
20969         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20970         rotate amounts.
20971
20972         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20973         required for 16-bit and 8-bit rotates.
20974         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20975         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20976         UINT8_MAX instead of hard-coded constants.
20977         Suggested by Paul Eggert.
20978
20979 2008-09-07  Bruno Haible  <bruno@clisp.org>
20980
20981         * tests/test-striconveh.c (main): Check behaviour when converting from
20982         UTF-7.
20983
20984         Make striconveh work better with stateful encodings.
20985         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20986         that iconv does not increment the inptr when returning -1/EINVAL.
20987
20988 2008-09-07  Bruno Haible  <bruno@clisp.org>
20989
20990         * build-aux/config.rpath: Update according to libtool-2.2.6.
20991         * build-aux/config.libpath: Likewise.
20992
20993 2008-09-06  Bruno Haible  <bruno@clisp.org>
20994
20995         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20996         * lib/freadptr.c (freadptr): Likewise.
20997         * lib/freadseek.c (freadptrinc): Likewise.
20998         Reported by Simon Josefsson.
20999
21000 2008-09-06  Bruno Haible  <bruno@clisp.org>
21001
21002         * modules/freadptr (License): Change to LGPLv2+.
21003         * modules/freadseek (License): Likewise.
21004         Suggested by Eric Blake.
21005
21006         * modules/memchr2 (License): Change to LGPLv2+.
21007         Approved by Eric Blake.
21008
21009 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21010             Bruno Haible  <bruno@clisp.org>
21011
21012         Make gnulib-tool work with native 'sed' on AIX.
21013         * gnulib-tool (sed_noop): New variable.
21014         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21015         func_add_or_update, func_create_testdir): Use it to initialize sed
21016         script variables.
21017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21018
21019 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21020             Bruno Haible  <bruno@clisp.org>
21021
21022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21023         also works after #include directives.
21024
21025 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
21026
21027         getdate.y: reject an out-of-range timezone value
21028         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21029         the range [-24...+24].  When specified with only one or two digits,
21030         * tests/test-getdate.c: Tests for the fix.
21031         * doc/getdate.texi: Document this change.
21032
21033 2008-09-03  Bruno Haible  <bruno@clisp.org>
21034
21035         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21036
21037 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21038
21039         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21040         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21041         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21042         Blake <ebb9@byu.net>.
21043
21044         * tests/test-bitrotate.c: Add more test vectors.
21045
21046 2008-09-02  Eric Blake  <ebb9@byu.net>
21047
21048         vasnprintf-posix: handle large precision via %.*d
21049         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21050         when handling it ourselves.
21051         * tests/test-vasnprintf-posix.c (test_function): Add test.
21052         * tests/test-snprintf-posix.h (test_function): Likewise.
21053         * tests/test-sprintf-posix.h (test_function): Likewise.
21054         * tests/test-vasprintf-posix.c (test_function): Likewise.
21055         Reported by Alain Guibert.
21056
21057 2008-09-01  Eric Blake  <ebb9@byu.net>
21058
21059         c-stack: make configure-time check more robust
21060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21061         successful sigaction call.
21062         Reported by Tom G. Christensen.
21063
21064 2008-09-01  Bruno Haible  <bruno@clisp.org>
21065
21066         New module 'findprog-lgpl'.
21067         * modules/findprog-lgpl: New file.
21068         * lib/findprog-lgpl.c: New file.
21069         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21070         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21071         to decide whether to use strdup or xstrdup, concatenated_filename or
21072         xconcatenated_filename.
21073
21074 2008-09-01  Bruno Haible  <bruno@clisp.org>
21075
21076         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21077         'xconcat-filename' (GPL).
21078         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21079         (License): Change to LGPLv2+.
21080         * modules/xconcat-filename: New file.
21081         * lib/concat-filename.h (concatenated_filename): Change specification.
21082         (xconcatenated_filename): New declaration.
21083         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21084         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21085         memory situations.
21086         * lib/xconcat-filename.c: New file.
21087         * NEWS: Mention the change.
21088         * lib/findprog.c: Include concat-filename.h, not filename.h.
21089         (find_in_path): Use xconcatenated_filename instead of
21090         concatenated_filename.
21091         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21092         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21093         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21094         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21095         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21096         instead of concatenated_filename.
21097         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21098         (execute_java_class): Use xconcatenated_filename instead of
21099         concatenated_filename.
21100         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21101         * modules/javacomp (Depends-on): Likewise.
21102         * modules/javaexec (Depends-on): Likewise.
21103
21104 2008-09-01  Bruno Haible  <bruno@clisp.org>
21105
21106         Split module 'filename' into 'filename' and 'concat-filename'.
21107         * modules/filename: Keep only lib/filename.h.
21108         (License): Change to LGPLv2+.
21109         * modules/concat-filename: New file, extracted from modules/filename.
21110         * lib/filename.h (concatenated_filename): Remove declaration.
21111         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21112         * lib/concat-filename.c: Include concat-filename.h.
21113         * NEWS: Mention the change.
21114
21115 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21116
21117         * lib/bitrotate.h (rotl8, rotr8): Add.
21118
21119         * modules/bitrotate (configure.ac): Need
21120         AC_REQUIRE([AC_C_INLINE]).
21121         (Description): Mention stdint.h.  Reported by Bruno Haible
21122         <bruno@clisp.org>.
21123
21124         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21125         Paolo Bonzini <bonzini@gnu.org>.
21126
21127 2008-08-31  Bruno Haible  <bruno@clisp.org>
21128
21129         Assume Solaris specific bi-arch conventions on Solaris systems.
21130         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21131         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21133         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21134         like acl_libdirstem.
21135         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21136         acl_libdirstem.
21137         * NEWS: Mention the change.
21138         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21139
21140 2008-08-31  Jim Meyering  <meyering@redhat.com>
21141
21142         * lib/strftime.h: Add comments describing the two added arguments.
21143
21144         remove duplicate #include directives
21145         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21146         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21147
21148 2008-08-31  Bruno Haible  <bruno@clisp.org>
21149
21150         New module 'sigpipe-die'.
21151         * modules/sigpipe-die: New file.
21152         * lib/sigpipe-die.h: New file.
21153         * lib/sigpipe-die.c: New file.
21154         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21155
21156 2008-08-31  Bruno Haible  <bruno@clisp.org>
21157
21158         Don't override previously installed signal handlers.
21159         * lib/fatal-signal.c (saved_sigactions): New variable.
21160         (uninstall_handlers): Reset the signal to the saved handler, not
21161         to SIG_DFL (except when ignored).
21162         (install_handlers): Save the previous handlers.
21163
21164 2008-08-30  Bruno Haible  <bruno@clisp.org>
21165
21166         * gnulib-tool (func_reset_sigpipe): New function.
21167         (func_get_automake_snippet, func_modules_transitive_closure,
21168         func_import): Invoke it before a join command that reads from stdin,
21169         to avoid "echo: write error: Broken pipe" error messages on stderr.
21170         Reported by Sam Steingold <sds@gnu.org>.
21171
21172 2008-08-30  Bruno Haible  <bruno@clisp.org>
21173
21174         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21175         Code copied from m4/open.m4.
21176         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21177         access and the filename ends in a slash. Code copied from lib/open.c.
21178         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21179         * tests/test-fopen.c (main): Check against bug with trailing slash.
21180
21181 2008-08-29  Bruno Haible  <bruno@clisp.org>
21182
21183         Avoid some "gcc -pedantic" warnings.
21184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21185         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21186         * lib/dirent.in.h: Likewise.
21187         * lib/fcntl.in.h: Likewise.
21188         * lib/float.in.h: Likewise.
21189         * lib/iconv.in.h: Likewise.
21190         * lib/inttypes.in.h: Likewise.
21191         * lib/locale.in.h: Likewise.
21192         * lib/math.in.h: Likewise.
21193         * lib/netinet_in.in.h: Likewise.
21194         * lib/search.in.h: Likewise.
21195         * lib/signal.in.h: Likewise.
21196         * lib/stdarg.in.h: Likewise.
21197         * lib/stdint.in.h: Likewise.
21198         * lib/stdio.in.h: Likewise.
21199         * lib/stdlib.in.h: Likewise.
21200         * lib/string.in.h: Likewise.
21201         * lib/strings.in.h: Likewise.
21202         * lib/sys_select.in.h: Likewise.
21203         * lib/sys_socket.in.h: Likewise.
21204         * lib/sys_stat.in.h: Likewise.
21205         * lib/sys_time.in.h: Likewise.
21206         * lib/sysexits.in.h: Likewise.
21207         * lib/time.in.h: Likewise.
21208         * lib/unistd.in.h: Likewise.
21209         * lib/wchar.in.h: Likewise.
21210         * lib/wctype.in.h: Likewise.
21211         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21212         * modules/fchdir (Makefile.am): Likewise.
21213         * modules/fcntl (Makefile.am): Likewise.
21214         * modules/float (Makefile.am): Likewise.
21215         * modules/iconv_open (Makefile.am): Likewise.
21216         * modules/inttypes (Makefile.am): Likewise.
21217         * modules/locale (Makefile.am): Likewise.
21218         * modules/math (Makefile.am): Likewise.
21219         * modules/netinet_in (Makefile.am): Likewise.
21220         * modules/search (Makefile.am): Likewise.
21221         * modules/signal (Makefile.am): Likewise.
21222         * modules/stdarg (Makefile.am): Likewise.
21223         * modules/stdint (Makefile.am): Likewise.
21224         * modules/stdio (Makefile.am): Likewise.
21225         * modules/stdlib (Makefile.am): Likewise.
21226         * modules/string (Makefile.am): Likewise.
21227         * modules/strings (Makefile.am): Likewise.
21228         * modules/sys_select (Makefile.am): Likewise.
21229         * modules/sys_socket (Makefile.am): Likewise.
21230         * modules/sys_stat (Makefile.am): Likewise.
21231         * modules/sys_time (Makefile.am): Likewise.
21232         * modules/sysexits (Makefile.am): Likewise.
21233         * modules/time (Makefile.am): Likewise.
21234         * modules/unistd (Makefile.am): Likewise.
21235         * modules/wchar (Makefile.am): Likewise.
21236         * modules/wctype (Makefile.am): Likewise.
21237         Reported by Reuben Thomas <rrt@sc3d.org>.
21238
21239 2008-08-29  Bruno Haible  <bruno@clisp.org>
21240
21241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21242         any more.
21243
21244 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21245
21246         * MODULES.html.sh (Misc): Add bitrotate.
21247
21248         * modules/bitrotate: New file.
21249
21250         * lib/bitrotate.h: New file.
21251
21252         * modules/bitrotate-tests: New file.
21253
21254         * tests/test-bitrotate.c: New file.
21255
21256         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21257         on the bitrotate module.
21258
21259         * lib/arctwo.c: Use new bitrotate module.
21260
21261 2008-08-29  Jim Meyering  <meyering@redhat.com>
21262
21263         bootstrap: merge changes from coreutils
21264         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21265         of copied files.  Remove a kludge, now that this is fixed.
21266         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21267         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21268         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21269
21270 2008-08-29  Bruno Haible  <bruno@clisp.org>
21271
21272         * MODULES.html.sh: Remove --cvs-urls option.
21273
21274 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21275
21276         maint.mk: adjust to file name change
21277         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21278
21279 2008-08-28  Jim Meyering  <meyering@redhat.com>
21280
21281         * modules/getndelim2 (License): Relicense to LGPLv2+.
21282         Approved by Richard Stallman for the version of 1995, and by
21283         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21284
21285 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21286
21287         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21288         dummy if one is not available.  Do not touch them if
21289         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21290         (getc_maybe_unlocked): New.
21291         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21292
21293 2008-08-26  Eric Blake  <ebb9@byu.net>
21294
21295         doc/INSTALL: resync from autoconf
21296         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21297         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21298         moving...
21299         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21300         * INSTALL: Regenerate.
21301         * INSTALL.ISO: New file.
21302         * INSTALL.UTF-8: Likewise.
21303
21304 2008-08-26  Jim Meyering  <meyering@redhat.com>
21305
21306         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21307         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21308         these definitions conditional, so that they may be overridden, too.
21309
21310 2008-08-26  Bruno Haible  <bruno@clisp.org>
21311
21312         Generate INSTALL file variants with prettier quotes.
21313         * doc/Makefile (INSTALL_PRELUDE): New macro.
21314         (INSTALL): Use it.
21315         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21316
21317 2008-08-26  Bruno Haible  <bruno@clisp.org>
21318
21319         Run makeinfo in an English locale.
21320         * doc/Makefile (MAKEINFO): New variable.
21321
21322 2008-08-26  Bruno Haible  <bruno@clisp.org>
21323
21324         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21325         Suggested by Eric Blake.
21326
21327 2008-08-25  Bruno Haible  <bruno@clisp.org>
21328
21329         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21330
21331 2008-08-25  Eric Blake  <ebb9@byu.net>
21332
21333         c-stack: test that stack overflow can be caught
21334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21335         that platform allows handling stack overflow; at least OS/2 EMX
21336         has sigaltstack, but crashes before transferring control to
21337         handler on stack overflow.
21338         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21339         check for HAVE_STACK_OVERFLOW_HANDLING.
21340         Reported by Elbert Pol.
21341
21342 2008-08-25  Bruno Haible  <bruno@clisp.org>
21343
21344         * doc/posix-functions/strftime.texi: Fix description of strftime
21345         module.
21346
21347 2008-08-24  Bruno Haible  <bruno@clisp.org>
21348
21349         * tests/uniwidth/test-uc_width2.c: New file.
21350         * tests/uniwidth/test-uc_width2.sh: New file.
21351         * modules/uniwidth/width-tests (Files): Add the new files.
21352         (TESTS): Add uniwidth/test-uc_width2.sh.
21353         (TESTS_ENVIRONMENT): New variable.
21354         (check_PROGRAMS): Add test-uc_width2.
21355         (test_uc_width2_SOURCES): New variable.
21356
21357         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21358         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21359         not 0x00AB.
21360         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21361
21362 2008-08-22  Eric Blake  <ebb9@byu.net>
21363
21364         test-lock, test-tls: mention why a test is skipped
21365         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21366         skipped.
21367         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21368
21369         count-one-bits: relax license
21370         * modules/count-one-bits (License): Relicense to LGPLv2+.
21371         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21372
21373 2008-08-22  Andreas Schwab  <schwab@suse.de>
21374
21375         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21376         Remove spurious space in assignment.
21377
21378 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21379
21380         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21381         Paul Eggert <eggert@CS.UCLA.EDU>.
21382
21383 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21384
21385         * modules/gettext: Add m4/threadlib.m4.
21386
21387 2008-08-19  Eric Blake  <ebb9@byu.net>
21388
21389         test-c-stack: fix compilation failure on FreeBSD 5.0
21390         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21391         headers before <sys/resource.h>.
21392         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21393         the bug.
21394         Reported by Nelson H. F. Beebe.
21395
21396         strverscmp: migrate from "strverscmp.h" to <string.h>
21397         * modules/string (Makefile.am): Add new hooks.
21398         * modules/strverscmp (Files): Remove strverscmp.h.
21399         (Depends-on): Add string.
21400         (configure.ac): Add indicator.
21401         (Include): Mention new header.
21402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21403         defaults.
21404         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21405         results.
21406         * lib/strverscmp.h: Delete.
21407         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21408         * tests/test-strverscmp.c (includes): Adjust client.
21409         * lib/check-version.c (includes): Likewise.
21410         * NEWS: Document the change.
21411
21412         strverscmp: add unit test
21413         * modules/strverscmp-tests: New file.
21414         * tests/test-strverscmp.c: Likewise.
21415
21416 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21417
21418         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21419         regarding Windows crypto stuff, from Mono.
21420
21421 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21422
21423         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21424         if present, for intel RND.  Return error on failures.
21425
21426 2008-08-18  Ben Pfaff  <blp@gnu.org>
21427
21428         gitlog-to-changelog: give better diagnostic for failed pipe-open
21429         * build-aux/gitlog-to-changelog: Improve error message: suggest
21430         that the version of Git may be too old.
21431
21432 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21433
21434         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21435         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21436
21437 2008-08-18  Bruno Haible  <bruno@clisp.org>
21438
21439         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21440         pthread_in_use().
21441
21442 2008-08-18  Bruno Haible  <bruno@clisp.org>
21443
21444         * lib/glthread/threadlib.c: Include <pthread.h>.
21445
21446 2008-08-18  Bruno Haible  <bruno@clisp.org>
21447
21448         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21449         glthread_recursive_lock_* macros.
21450         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21451         Fix syntax error.
21452
21453 2008-08-18  Bruno Haible  <bruno@clisp.org>
21454
21455         * lib/glthread/thread.c: Avoid forcing a context switch right after
21456         thread creation.
21457
21458 2008-08-17  Bruno Haible  <bruno@clisp.org>
21459
21460         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21461         * lib/glthread/thread.h: Provide Win32 specific implementation.
21462         * modules/thread (Files): Add lib/glthread/thread.c.
21463         (Depends-on): Add lock.
21464         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21465
21466 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21467
21468         New module 'yield'.
21469         * modules/yield: New file.
21470         * lib/glthread/yield.h: New file.
21471         * m4/yield.m4: New file.
21472         * MODULES.html.sh (Multithreading): Add yield.
21473
21474 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21475
21476         New module 'thread'.
21477         * modules/thread: New file.
21478         * lib/glthread/thread.h: New file.
21479         * m4/thread.m4: New file.
21480         * MODULES.html.sh (Multithreading): Add thread.
21481
21482 2008-08-17  Bruno Haible  <bruno@clisp.org>
21483
21484         * lib/glthread/lock.h: Include <stdlib.h> always.
21485         * lib/glthread/tls.h: Likewise.
21486         * lib/glthread/cond.h: Likewise.
21487
21488 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21489
21490         New module 'cond'.
21491         * modules/cond: New file.
21492         * lib/glthread/cond.h: New file.
21493         * lib/glthread/cond.c: New file.
21494         * m4/cond.m4: New file.
21495         * MODULES.html.sh (Multithreading): Add cond.
21496
21497 2008-08-16  Eric Blake  <ebb9@byu.net>
21498
21499         c-stack: fix regression on Irix 5.3 from 2008-06-21
21500         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21501         sa_sigaction...
21502         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21503         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21504         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21505         * modules/signal (Makefile.am): Use the value.
21506         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21507         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21508         * doc/posix-headers/signal.texi (signal.h): Document this
21509         portability issue.
21510         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21511         Reported by Tom G. Christensen.
21512
21513 2008-08-17  Bruno Haible  <bruno@clisp.org>
21514
21515         New module 'threadlib'.
21516         * modules/threadlib: New file.
21517         * lib/glthread/threadlib.c: New file, extracted from
21518         lib/glthread/lock.c.
21519         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21520         functions.
21521         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21522         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21523         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21524         macros.
21525         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21526         (gl_DISABLE_THREADS): Remove macro.
21527         * modules/lock (Files): Remove build-aux/config.rpath.
21528         (Depends-on): Remove havelib. Add threadlib.
21529         (configure.ac-early): Remove section.
21530         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21531         * modules/tls (Depends-on): Remove lock. Add threadlib.
21532         (Link): New section, copied from threadlib.
21533         * MODULES.html.sh (Multithreading): Add threadlib.
21534
21535 2008-08-14  Bruno Haible  <bruno@clisp.org>
21536
21537         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21538         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21539         glthread_rwlock_unlock, glthread_rwlock_destroy,
21540         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21541         glthread_recursive_lock_destroy): Define as macros always.
21542         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21543         glthread_lock_lock.
21544         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21545         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21546         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21547         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21548         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21549         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21550         (glthread_recursive_lock_lock_func): Renamed from
21551         glthread_recursive_lock_lock.
21552         (glthread_recursive_lock_unlock_func): Renamed from
21553         glthread_recursive_lock_unlock.
21554         (glthread_recursive_lock_destroy_func): Renamed from
21555         glthread_recursive_lock_destroy.
21556
21557 2008-08-14  Bruno Haible  <bruno@clisp.org>
21558
21559         * lib/glthread/lock.h: Renamed from lib/lock.h.
21560         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21561         * lib/glthread/tls.h: Renamed from lib/tls.h.
21562         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21563         * lib/fstrcmp.c: Update includes.
21564         * lib/strsignal.c: Update includes.
21565         * modules/lock (Files, Makefile.am): Update.
21566         (Include): Change to "glthread/lock.h".
21567         * modules/tls (Files, Makefile.am): Update.
21568         (Include): Change to "glthread/tls.h".
21569         * tests/test-lock.c: Update includes.
21570         * tests/test-tls.c: Update includes.
21571         * NEWS: Mention the renamed header files.
21572
21573 2008-08-11  Jim Meyering  <meyering@redhat.com>
21574
21575         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21576
21577 2008-08-11  Eric Blake  <ebb9@byu.net>
21578
21579         test-c-stack: avoid C99-ism
21580         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21581         before statement.
21582         Reported by Alain Guibert.
21583
21584 2008-08-10  Jim Meyering  <meyering@redhat.com>
21585
21586         ensure that return value of uinttostr et al are not ignored
21587         * lib/inttostr.h (__GNUC_PREREQ): Define.
21588         (__attribute_warn_unused_result__): Define.
21589         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21590
21591 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21592
21593         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21594         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21595
21596 2008-08-07  Jim Meyering  <meyering@redhat.com>
21597
21598         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21599
21600         * modules/mkstemp (License): Relicense under LGPLv2+.
21601         * modules/tempname (License): Likewise.
21602
21603 2008-08-06  Bruno Haible  <bruno@clisp.org>
21604
21605         * lib/poll.c (poll): Further micro-optimization.
21606
21607 2008-08-06  Jim Meyering  <meyering@redhat.com>
21608
21609         inet_pton.c: use locale-independent tolower
21610         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21611         (inet_pton6): Use c_tolower rather than tolower.
21612         * modules/inet_pton (Depends-on): Add c-ctype.
21613
21614 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21615
21616         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21617         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21618
21619 2008-08-06  Jim Meyering  <meyering@redhat.com>
21620
21621         * modules/inet_pton (License): Relicense under LGPLv2+.
21622
21623 2008-08-03  Bruno Haible  <bruno@clisp.org>
21624
21625         Additional non-aborting API for lock and tls.
21626         * lib/lock.h: Include <errno.h>.
21627         (glthread_lock_init): New macro/function.
21628         (gl_lock_init): Define as wrapper around glthread_lock_init.
21629         (glthread_lock_lock): New macro/function.
21630         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21631         (glthread_lock_unlock): New macro/function.
21632         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21633         (glthread_lock_destroy): New macro/function.
21634         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21635         (glthread_rwlock_init): New macro/function.
21636         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21637         (glthread_rwlock_rdlock): New macro/function.
21638         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21639         (glthread_rwlock_wrlock): New macro/function.
21640         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21641         (glthread_rwlock_unlock): New macro/function.
21642         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21643         (glthread_rwlock_destroy): New macro/function.
21644         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21645         (glthread_recursive_lock_init): New macro/function.
21646         (gl_recursive_lock_init): Define as wrapper around
21647         glthread_recursive_lock_init.
21648         (glthread_recursive_lock_lock): New macro/function.
21649         (gl_recursive_lock_lock): Define as wrapper around
21650         glthread_recursive_lock_lock.
21651         (glthread_recursive_lock_unlock): New macro/function.
21652         (gl_recursive_lock_unlock): Define as wrapper around
21653         glthread_recursive_lock_unlock.
21654         (glthread_recursive_lock_destroy): New macro/function.
21655         (gl_recursive_lock_destroy): Define as wrapper around
21656         glthread_recursive_lock_destroy.
21657         (glthread_once): New macro/function.
21658         (gl_once): Define as wrapper around glthread_once.
21659         Update function declarations.
21660         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21661         glthread_rwlock_init. Return error code.
21662         (glthread_rwlock_rdlock_multithreaded): Renamed from
21663         glthread_rwlock_rdlock. Return error code.
21664         (glthread_rwlock_wrlock_multithreaded): Renamed from
21665         glthread_rwlock_wrlock. Return error code.
21666         (glthread_rwlock_unlock_multithreaded): Renamed from
21667         glthread_rwlock_unlock. Return error code.
21668         (glthread_rwlock_destroy_multithreaded): Renamed from
21669         glthread_rwlock_destroy. Return error code.
21670         (glthread_recursive_lock_init_multithreaded): Renamed from
21671         glthread_recursive_lock_init. Return error code.
21672         (glthread_recursive_lock_lock_multithreaded): Renamed from
21673         glthread_recursive_lock_lock. Return error code.
21674         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21675         glthread_recursive_lock_unlock. Return error code.
21676         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21677         glthread_recursive_lock_destroy. Return error code.
21678         (glthread_once_call): Make static.
21679         (glthread_once_multithreaded): Renamed from glthread_once.
21680         * lib/tls.h: Include <errno.h>.
21681         (glthread_tls_key_init): New macro/function.
21682         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21683         (glthread_tls_set): New macro/function.
21684         (gl_tls_set): Define as wrapper around glthread_tls_set.
21685         (glthread_tls_key_destroy): New macro/function.
21686         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21687         Update function declarations.
21688         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21689         glthread_tls_get.
21690         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21691
21692 2008-08-04  Eric Blake  <ebb9@byu.net>
21693
21694         gnumakefile: use space, not TAB, outside of targets
21695         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21696
21697 2008-08-02  Jim Meyering  <meyering@redhat.com>
21698
21699         getdate.y: avoid locale-dependent date parsing failure
21700         In Turkish locales, getdate would fail to recognize keywords
21701         containing a lowercase "i".  The solution is not to rely on
21702         locale-sensitive case-conversion.
21703         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21704         (lookup_word): Use c_toupper in place of toupper.
21705         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21706         Reported by Vefa Bicakci <bicave@superonline.com> in
21707         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21708         * modules/getdate (Depends-on): Add c-ctype.
21709
21710 2008-08-02  Bruno Haible  <bruno@clisp.org>
21711
21712         * gnulib-tool (func_import): When updating or creating a .gitignore
21713         file, prepend each added line with a slash, and ignore leading slashes
21714         from the existing lines.
21715         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21716
21717 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21718
21719         Portability fix for GNU make 3.79.1.
21720         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21721         versions do not understand.
21722
21723 2008-08-01  Bruno Haible  <bruno@clisp.org>
21724
21725         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21726         * tests/test-isnanf.h (zero): New variable.
21727         (main): Avoid literal -0.0f.
21728         * tests/test-isnand.h (zero): New variable.
21729         (main): Avoid literal -0.0.
21730         * tests/test-isnanl.h (zero): New variable.
21731         (main): Avoid literal -0.0L.
21732         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21733         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21734         -0.0, -0.0L.
21735         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21736         (test_signbitd): Avoid literal -0.0.
21737         (test_signbitl): Avoid literal -0.0L.
21738         * tests/test-ceilf1.c (zero): New variable.
21739         (main): Avoid literal -0.0f.
21740         * tests/test-ceill.c (zero): New variable.
21741         (main): Avoid literal -0.0L.
21742         * tests/test-floorf1.c (zero): New variable.
21743         (main): Avoid literal -0.0f.
21744         * tests/test-floorl.c (zero): New variable.
21745         (main): Avoid literal -0.0L.
21746         * tests/test-roundf1.c (zero): New variable.
21747         (main): Avoid literal -0.0f.
21748         * tests/test-round1.c (zero): New variable.
21749         (main): Avoid literal -0.0.
21750         * tests/test-roundl.c (zero): New variable.
21751         (main): Avoid literal -0.0L.
21752         * tests/test-truncf1.c (zero): New variable.
21753         (main): Avoid literal -0.0f.
21754         * tests/test-trunc1.c (zero): New variable.
21755         (main): Avoid literal -0.0.
21756         * tests/test-truncl.c (zero): New variable.
21757         (main): Avoid literal -0.0L.
21758         * tests/test-frexp.c (zero): New variable.
21759         (main): Avoid literal -0.0.
21760         * tests/test-frexpl.c (zero): New variable.
21761         (main): Avoid literal -0.0L.
21762         * tests/test-ldexpl.c (zero): New variable.
21763         (main): Avoid literal -0.0L.
21764         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21765         (zerod, zerol): New variables.
21766         (test_function): Avoid literals -0.0, -0.0L.
21767         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21768         (zerod, zerol): New variables.
21769         (test_function): Avoid literals -0.0, -0.0L.
21770         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21771         (zerod, zerol): New variables.
21772         (test_function): Avoid literals -0.0, -0.0L.
21773         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21774         (zerod, zerol): New variables.
21775         (test_function): Avoid literals -0.0, -0.0L.
21776         * tests/test-strtod.c (zero): New variable.
21777         (main): Avoid literal -0.0.
21778         Reported by Jonathan C. Patschke <jp@centtech.com>.
21779
21780 2008-07-31  Jim Meyering  <meyering@redhat.com>
21781
21782         sha256.h: correct definition of SHA224_DIGEST_SIZE
21783         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21784         Reported by Paulie Pena IV <paulie4@gmail.com>.
21785         Define as 224 / 8, rather than as a literal.
21786         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21787         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21788         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21789
21790 2008-07-31  Bruno Haible  <bruno@clisp.org>
21791
21792         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21793         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21794         Reported by Jonathan Patschke <jp@centtech.com>.
21795
21796 2008-07-31  Bruno Haible  <bruno@clisp.org>
21797
21798         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21799         Reported by Paolo Bonzini <bonzini@gnu.org>.
21800
21801 2008-07-30  Eric Blake  <ebb9@byu.net>
21802
21803         test-strtod: allow compilation without -lm
21804         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21805         Reported by Dennis Clarke <blastwave@gmail.com>.
21806
21807 2008-07-28  Jim Meyering  <meyering@redhat.com>
21808
21809         bootstrap: work also when there are no .po files in po/
21810         * build-aux/bootstrap (update_po_files): Complete the change
21811         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21812
21813 2008-07-27  Jim Meyering  <meyering@redhat.com>
21814
21815         * users.txt: Add zile.
21816
21817 2008-07-26  Ben Pfaff  <blp@gnu.org>
21818
21819         Add missing dependencies on new m4/exponent[fdl].m4 files.
21820         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21821         * modules/isnand-nolibm: Add m4/exponentd.m4.
21822         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21823         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21824         m4/isnan[fdl].m4, because the macros actually used moved.
21825         Reported by Jim Meyering.
21826
21827 2008-07-14  Ben Pfaff  <blp@gnu.org>
21828
21829         Add isinf module.
21830         * lib/isinf.c: New file.
21831         * lib/math.in.h: Define isinf macro if we have decided to replace
21832         it.
21833         * m4/isinf.m4: New file.
21834         * m4/math_h.m4: Initialize and substitute variables for isinf
21835         module.
21836         * modules/isinf: New file.
21837         * modules/isinf-tests: New file.
21838         * modules/math: Add substitutions for new module.
21839         * tests/test-isinf.c: New file.
21840         * doc/posix-functions/isinf.texi: Mention new module.
21841         * MODULES.html.sh: Mention new module.
21842
21843 2008-07-14  Ben Pfaff  <blp@gnu.org>
21844
21845         Factor out some macros for use by additional modules.
21846         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21847         exponentf.m4.
21848         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21849         exponentd.m4.
21850         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21851         file exponentl.m4.
21852         * m4/exponentf.m4: New file.
21853         * m4/exponentd.m4: New file.
21854         * m4/exponentl.m4: New file.
21855         * modules/isnanf: Use new file m4/exponentf.m4.
21856         * modules/isnand: Use new file m4/exponentd.m4.
21857         * modules/isnanl: Use new file m4/exponentl.m4.
21858
21859 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21860
21861         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21862         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21863         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21864         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21865
21866         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21867         readlink on platforms without PATH_MAX.
21868
21869 2008-07-21  Eric Blake  <ebb9@byu.net>
21870
21871         Warn, not fail, on stale version.
21872         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21873
21874         Don't allow installation with stale devel version number.
21875         * top/GNUmakefile (_is-install-target): New macro.
21876         (_curr-ver): Forbid installation with stale version number.
21877
21878 2008-07-20  Bruno Haible  <bruno@clisp.org>
21879
21880         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21881         TESTS_ENVIRONMENT.
21882         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21883
21884 2008-07-20  Bruno Haible  <bruno@clisp.org>
21885
21886         * lib/c-stack.h (c_stack_action): Add documentation.
21887         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21888
21889 2008-07-20  Bruno Haible  <bruno@clisp.org>
21890
21891         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21892         * modules/readlink (License): Likewise.
21893
21894 2008-07-17  Eric Blake  <ebb9@byu.net>
21895
21896         * modules/c-stack (Link): Fix typo.
21897
21898         Make c-stack use libsigsegv, when available.
21899         * modules/c-stack (Depends-on): Add libsigsegv.
21900         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21901         needed.
21902         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21903         (segv_handler, overflow_handler, c_stack_action)
21904         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21905         implementation when libsigsegv is available, but only when using
21906         the library is necessary.
21907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21908         comment, explaining why XSI check fails on Linux.
21909         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21910         * tests/test-c-stack2.sh: Tweak skip message.
21911         * NEWS: Document new link-time requirements.
21912
21913 2008-07-16  Eric Blake  <ebb9@byu.net>
21914
21915         c-stack: Expose false positives when not using libsigsegv.
21916         * modules/c-stack-tests (Files): Expand test.
21917         * tests/test-c-stack.c (main): Add means to conditionally trigger
21918         non-overflow SIGSEGV.
21919         * tests/test-c-stack2.sh: New file.
21920
21921 2008-07-14  Bruno Haible  <bruno@clisp.org>
21922
21923         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21924         Reported by Eric Blake.
21925
21926 2008-07-14  Sam Steingold  <sds@gnu.org>
21927             Bruno Haible  <bruno@clisp.org>
21928
21929         New module libsigsegv.
21930         * modules/libsigsegv: New file.
21931         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21932         modifications.
21933         * MODULES.html.sh (Signal handling): New section.
21934
21935 2008-07-14  Bruno Haible  <bruno@clisp.org>
21936
21937         * modules/unictype/ctype-* (Description): Add the word "function".
21938         Improves the resulting doc in MODULES.html.
21939
21940 2008-07-12  Ben Pfaff  <blp@gnu.org>
21941
21942         Add longlong module.
21943         * modules/longlong: New file.
21944
21945 2008-07-12  Bruno Haible  <bruno@clisp.org>
21946
21947         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21948         to empty.
21949
21950 2008-07-10  Ben Pfaff  <blp@gnu.org>
21951
21952         Add isnan module.
21953         * doc/posix-functions/isnan.texi: Mention new module.
21954         * lib/math.in.h: Define isnan macro if we have decided to replace
21955         it.
21956         * m4/isnan.m4: New file.
21957         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21958         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21959         also.
21960         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21961         redundancy.
21962         * m4/math_h.m4: Initialize and substitute variables for isnan
21963         module.
21964         * modules/isnan: New file.
21965         * modules/isnan-tests: New file.
21966         * modules/math: Add substitutions for new module.
21967         * tests/test-isnan.c: New file.
21968         * MODULES.html.sh: Mention new module.
21969
21970 2008-07-10  Ben Pfaff  <blp@gnu.org>
21971
21972         Add isnanf module.
21973         * lib/isnanf.m4: New file.
21974         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21975         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21976         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21977         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21978         * modules/isnanf: New file.
21979         * modules/isnanf-tests: New file.
21980         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21981         files.
21982         * tests/test-isnanf-nolibm.c: factored most of its contents into
21983         new file tests/test-isnanf.h.
21984         * tests/test-isnanf.h: New file.
21985         * tests/test-isnanf.c: New file.
21986         * MODULES.html.sh: Mention new module.
21987         * doc/glibc-functions/isnanf.texi: Mention new module.
21988
21989 2008-07-10  Ben Pfaff  <blp@gnu.org>
21990
21991         Add isnand module.
21992         * lib/isnand.h: New file.
21993         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21994         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21995         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21996         functionality also.
21997         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21998         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21999         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22000         * modules/isnand: New file.
22001         * modules/isnand-tests: New file.
22002         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22003         files.
22004         * tests/test-isnand-nolibm.c: factored most of its contents into
22005         new file tests/test-isnand.h.
22006         * tests/test-isnand.h: New file.
22007         * tests/test-isnand.c: New file.
22008         * MODULES.html.sh: Mention new module.
22009
22010 2008-07-10  Ben Pfaff  <blp@gnu.org>
22011
22012         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22013         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22014         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22015         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22016         * modules/isnanf-nolibm: Update references to renamed files.
22017         * modules/isnand-nolibm: Likewise.
22018         * modules/isnanf-nolibm-tests: Likewise.
22019         * modules/isnand-nolibm-tests: Likewise.
22020         * lib/frexp.c: Likewise.
22021         * lib/isfinite.c: Likewise.
22022         * lib/signbitd.c: Likewise.
22023         * lib/signbitf.c: Likewise.
22024         * lib/vasnprintf.c: Likewise.
22025         * tests/test-ceilf1.c: Likewise.
22026         * tests/test-ceilf2.c: Likewise.
22027         * tests/test-floorf1.c: Likewise.
22028         * tests/test-floorf2.c: Likewise.
22029         * tests/test-frexp.c: Likewise.
22030         * tests/test-round1.c: Likewise.
22031         * tests/test-round2.c: Likewise.
22032         * tests/test-roundf1.c: Likewise.
22033         * tests/test-strtod.c: Likewise.
22034         * tests/test-trunc1.c: Likewise.
22035         * tests/test-trunc2.c: Likewise.
22036         * tests/test-truncf1.c: Likewise.
22037         * tests/test-truncf2.c: Likewise.
22038         * NEWS: Mention the renamed header files.
22039
22040 2008-07-11  Jim Meyering  <meyering@redhat.com>
22041
22042         vc-list-files: make the last-resort awk code more portable
22043         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22044         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22045         does not support it.
22046
22047 2008-07-10  Eric Blake  <ebb9@byu.net>
22048
22049         Work with tar's bootstrap.
22050         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22051         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22052         an m4 comment.
22053
22054 2008-07-09  Jim Meyering  <meyering@redhat.com>
22055
22056         posix-shell.m4: fix typo that made this test malfunction
22057         * m4/posix-shell.m4: Remove capitalization in variable name.
22058
22059 2008-07-08  Bruno Haible  <bruno@clisp.org>
22060
22061         * m4/onceonly.m4: Update comments.
22062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22063
22064 2008-07-04  Jim Meyering  <meyering@redhat.com>
22065
22066         * users.txt: Add vc-dwim.
22067         (bison, coreutils): Use the gitweb URL.
22068
22069 2008-07-03  Jim Meyering  <meyering@redhat.com>
22070
22071         * users.txt: Add libffcall.  From Sam Steingold.
22072
22073 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
22074
22075         getdate.y: do not ignore TZ with relative day, month or year offset
22076         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22077         relative-date-handling, since otherwise, the latter would clobber the
22078         sole output (an updated Start value) of the tz-handling block.
22079         * tests/test-getdate.c: Tests for the fix
22080
22081 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22082
22083         Recognize 'foo_LIBRARIES += libgnu.a'.
22084         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22085         makefile snippet has already specified an installation location,
22086         also using '+='.
22087
22088 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
22089
22090         getdate.y: factor out common actions
22091         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22092         Use them in place of open-coded actions.
22093
22094 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22095
22096         Add self-test for getdate module.
22097         * modules/getdate-tests: New file.
22098         * tests/test-getdate.c: New file.
22099
22100 2008-06-29  Bruno Haible  <bruno@clisp.org>
22101
22102         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22103         .gitignore.
22104         Reported by Sylvain Beucler <beuc@beuc.net>.
22105
22106 2008-06-29  Bruno Haible  <bruno@clisp.org>
22107
22108         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22109         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22110
22111 2008-06-29  Bruno Haible  <bruno@clisp.org>
22112
22113         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22114         EXTRA_DIST.
22115         Reported by Sylvain Beucler <beuc@beuc.net>.
22116
22117 2008-06-26  Jim Meyering  <meyering@redhat.com>
22118
22119         make several modules depend on the "open" module
22120         This provides slightly increased consistency when opening-for-write
22121         the name of a non-directory spelled with a trailing slash.
22122         * modules/chdir-safer: Likewise.
22123         * modules/chown: Likewise.
22124         * modules/clean-temp: Likewise.
22125         * modules/copy-file: Likewise.
22126         * modules/fchdir: Likewise.
22127         * modules/fcntl-safer: Likewise.
22128         * modules/pipe: Likewise.
22129         * modules/utime: Likewise.
22130         Prompted by Eric Blake and Bruno Haible.
22131
22132 2008-06-24  Andreas Schwab  <schwab@suse.de>
22133
22134         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22135         literals can be used as initializers for global variables.
22136
22137 2008-06-23  Eric Blake  <ebb9@byu.net>
22138
22139         Make gnulib-cache.m4 easier to diff.
22140         * gnulib-tool (func_import): Allow newlines when reading cached
22141         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22142
22143 2008-06-23  Bruno Haible  <bruno@clisp.org>
22144
22145         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22146         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22147         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22148         m4/signalblocking.m4.
22149         (gl_PREREQ_SIGACTION): Don't invoke it.
22150         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22151         gl_PREREQ_SIG_HANDLER_H.
22152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22153         Don't check for sigaction here.
22154
22155 2008-06-23  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22158         (install_handlers): Don't set the SA_RESETHAND flag.
22159
22160 2008-06-23  Bruno Haible  <bruno@clisp.org>
22161
22162         * m4/sigaction.m4: Comment fixes.
22163         * lib/signal.in.h: Likewise.
22164
22165 2008-06-23  Eric Blake  <ebb9@byu.net>
22166
22167         Fix typo.
22168         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22169
22170         Avoid SA_ namespace.
22171         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22172         Reported by Ralf Wildenhues.
22173
22174         Avoid test failure due to SA_RESTORER.
22175         * tests/test-sigaction.c (SA_MASK): New macro.
22176         (main): Avoid failing due to extension flags being set.
22177         Reported by Jim Meyering.
22178
22179         Revert use of sig-handler.h in sigprocmask.c.
22180         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22181         it requires the existence of struct sigaction.
22182         * lib/sigprocmask.c (handler_t): Restore typedef.
22183         (rpl_signal, old_handlers): Use local type.
22184
22185 2008-06-22  Bruno Haible  <bruno@clisp.org>
22186
22187         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22188         conditionally.
22189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22190
22191 2008-06-22  Bruno Haible  <bruno@clisp.org>
22192
22193         * doc/posix-functions/siginterrupt.texi: Move note.
22194
22195         * lib/signal.in.h (SA_RESTART): New macro.
22196         * lib/sigaction.c: Update comment.
22197
22198         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22199
22200         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22201         (gl_PREREQ_SIGPROCMASK): Invoke it.
22202         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22203
22204         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22205
22206         * lib/sigprocmask.c: Update a comment.
22207
22208 2008-06-21  Eric Blake  <ebb9@byu.net>
22209
22210         Use sigaction module rather than signal().
22211         * modules/c-stack (Depends-on): Add sigaction.
22212         * modules/fatal-signal (Depends-on): Likewise.
22213         * modules/nanosleep (Depends-on): Likewise.
22214         * modules/sigprocmask (Files): Add sig-handler.h.
22215         * modules/sigaction (Files): Likewise.
22216         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22217         Eggert.
22218         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22219         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22220         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22221         (init_fatal_signals): Likewise.
22222         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22223         (siginterrupt): Delete fallback.
22224         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22225         instead.
22226         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22227         siginterrupt.
22228
22229         New module sigaction, for mingw.
22230         * modules/sigaction: New module...
22231         * modules/sigaction-tests: ...and its test.
22232         * m4/sigaction.m4: New file.
22233         * lib/sigaction.c: Likewise.
22234         * tests/test-sigaction.c: Likewise.
22235         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22236         * modules/signal (Makefile.am): Likewise.
22237         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22238         needed.
22239         * doc/posix-headers/signal.texi (signal.h): Mention provided
22240         types.
22241         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22242         that sigaction is preferable.
22243         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22244         module.
22245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22246         sigaction.
22247
22248         Improve robustness of sigprocmask by overriding signal.
22249         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22250         is in use.
22251         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22252         (SIGKILL, SIGSTOP): Provide fallbacks.
22253         (rpl_signal): Implement.
22254         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22255         signal can be called inside handlers.
22256
22257         Fix nanosleep module on mingw.
22258         * modules/nanosleep (Depends-on): Add sys_select.
22259         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22260
22261         Fix licensing of sigprocmask.
22262         * modules/raise (License): Relicense as LGPL.
22263
22264 2008-06-21  Bruno Haible  <bruno@clisp.org>
22265
22266         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22267         result if it contains question marks.
22268         Reported by Michael Geng <linux@michaelgeng.de>.
22269
22270 2008-06-19  Bruno Haible  <bruno@clisp.org>
22271
22272         Fix CVS-ism.
22273         * doc/gnulib.texi: Include updated-stamp.texi.
22274         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22275         (updated-stamp.texi): New rule.
22276         (gnulib.info): Depend on it.
22277         * doc/.gitignore: Add updated-stamp.texi.
22278         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22279
22280 2008-06-19  Bruno Haible  <bruno@clisp.org>
22281
22282         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22283         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22284
22285 2008-06-19  Eric Blake  <ebb9@byu.net>
22286
22287         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22288         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22289         Reported by Stepan Kasal.
22290
22291 2008-06-18  Bruno Haible  <bruno@clisp.org>
22292
22293         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22294         Reported by Eric Blake.
22295
22296 2008-06-18  Eric Blake  <ebb9@byu.net>
22297
22298         Work around cygwin 1.5.25 strsignal bug.
22299         * tests/test-strsignal.c: Allow for const char *.
22300         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22301
22302 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22303
22304         * users.txt: Update URL to article and add author/date
22305         information.
22306
22307 2008-06-17  Bruno Haible  <bruno@clisp.org>
22308
22309         New macro gl_DISABLE_THREADS.
22310         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22311         if the user did not pass --enable-threads or --disable-threads option.
22312         (gl_DISABLE_THREADS): New macro.
22313         Reported by Eric Blake <ebb9@byu.net>.
22314
22315 2008-06-17  Bruno Haible  <bruno@clisp.org>
22316
22317         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22318         when the macro ignores it.
22319         Based on a patch by Eric Blake <ebb9@byu.net>.
22320
22321 2008-06-17  Bruno Haible  <bruno@clisp.org>
22322
22323         * modules/tls (License): Change to LGPLv2+.
22324         Reported by Eric Blake.
22325
22326 2008-06-17  Eric Blake  <ebb9@byu.net>
22327
22328         Simplify c-stack prerequisites.
22329         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22331         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22332         check.
22333         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22334         <sys/resource.h>.
22335
22336         Move c-stack test into testsuite.
22337         * modules/c-stack-tests: New file.
22338         * lib/c-stack.c [DEBUG]: Move test program...
22339         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22340         fail test if sigaltstack is lacking.
22341         * tests/test-c-stack.sh: New driver file.
22342
22343 2008-06-16  Eric Blake  <ebb9@byu.net>
22344
22345         Use raise module consistently.
22346         * modules/fatal-signal (Depends-on): Add raise.
22347         * modules/sigprocmask (Depends-on): Likewise.
22348         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22349         * lib/sigprocmask.c (sigprocmask): Likewise.
22350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22351         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22352
22353         Fix compliance bug in sigpending.
22354         * lib/sigprocmask.c (sigpending): Return pending array via
22355         parameter, not return value.
22356
22357 2008-06-14  Eric Blake  <ebb9@byu.net>
22358
22359         Improve obstack-printf test code.
22360         * tests/test-obstack-printf.c (test_function): Fix comment, and
22361         simplify usage of obstack_* in macros.  Add a test for coverage.
22362         Reported by Bruno Haible.
22363
22364 2008-06-14  Bruno Haible  <bruno@clisp.org>
22365
22366         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22367         array size as a constant, not as a const variable.
22368         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22369         AC_USE_SYSTEM_EXTENSIONS.
22370         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22371         Test whether the obstack_printf function actually exists.
22372         * modules/obstack-printf (Depends-on): Add extensions.
22373         (Include): Remove obstack.h.
22374         * modules/obstack-printf-posix (Depends-on): Add extensions.
22375         (Include): Remove obstack.h.
22376
22377 2008-06-13  Eric Blake  <ebb9@byu.net>
22378
22379         Add obstack-printf and obstack-printf-posix modules.
22380         * modules/obstack-printf: New file.
22381         * modules/obstack-printf-posix: Likewise.
22382         * MODULES.html.sh (Misc): Mention them.
22383         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22384         Likewise.
22385         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22386         Likewise.
22387         * modules/stdio (Makefile.am): Accomodate new modules.
22388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22389         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22390         Declare.
22391         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22392         functions.
22393         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22394         (gl_REPLACE_OBSTACK_PRINTF): New macros
22395         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22396         * tests/test-obstack-printf.c: New file.
22397         * modules/obstack-printf-tests: Likewise.
22398         * modules/obstack-printf-posix-tests: Likewise.
22399
22400 2008-06-11  Bruno Haible  <bruno@clisp.org>
22401
22402         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22403         * lib/open.c: Include errno.h.
22404         (open): Fail when attempting to write to a file that has a trailing
22405         slash.
22406         * tests/test-open.c (main): Test against trailing slash bug.
22407         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22408
22409 2008-06-10  Bruno Haible  <bruno@clisp.org>
22410
22411         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22412         for $? to work inside the trap command, with various /bin/sh-s.
22413         * tests/test-vc-list-files-cvs.sh: Likewise.
22414
22415 2008-06-10  Bruno Haible  <bruno@clisp.org>
22416
22417         * lib/acl-internal.h: Don't include gettext.h here.
22418         * lib/set-mode-acl.c: Include gettext.h here.
22419         * lib/copy-acl.c: Likewise.
22420
22421 2008-06-10  Bruno Haible  <bruno@clisp.org>
22422
22423         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22424         * lib/wait-process.c (wait_subprocess): Likewise.
22425         * lib/execute.h (execute): Add termsigp argument.
22426         * lib/execute.c (execute): Likewise.
22427         * lib/csharpcomp.c (compile_csharp_using_pnet,
22428         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22429         * lib/csharpexec.c (execute_csharp_using_pnet,
22430         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22431         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22432         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22433         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22434         is_jikes_present): Update.
22435         * lib/javaexec.c (execute_java_class): Update.
22436         * lib/javaversion.c (execute_and_read_line): Update.
22437         * NEWS: Document the changes.
22438         Reported by Eric Blake.
22439
22440 2008-06-10  Eric Blake  <ebb9@byu.net>
22441
22442         Add missing include.
22443         * tests/test-strstr.c (includes): Add <signal.h>.
22444         * tests/test-strcasestr.c (includes): Likewise.
22445         * tests/test-memmem.c (includes): Likewise.
22446
22447 2008-06-10  Bruno Haible  <bruno@clisp.org>
22448
22449         * lib/wait-process.c (wait_subprocess): Add an assertion.
22450
22451 2008-06-10  Bruno Haible  <bruno@clisp.org>
22452
22453         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22454
22455 2008-06-10  Bruno Haible  <bruno@clisp.org>
22456
22457         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22458         using alarm().
22459         * tests/test-strcasestr.c (main): Likewise.
22460         * tests/test-strstr.c (main): Likewise.
22461
22462 2008-06-09  Bruno Haible  <bruno@clisp.org>
22463
22464         Work around the Solaris 10 ACE ACLs ABI change.
22465         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22466         declare if ACL_NO_TRIVIAL is present.
22467         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22468         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22469         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22470         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22471         define if ACL_NO_TRIVIAL is present.
22472         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22473         and use the current ABI.
22474         (file_has_acl): Use same #if condition as elsewhere.
22475         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22476         in use, and use the current ABI.
22477         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22478         Reported by Jim Meyering.
22479
22480 2008-06-09  Eric Blake  <ebb9@byu.net>
22481
22482         Work around environments that (stupidly) ignore SIGALRM.
22483         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22484         before using alarm().
22485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22486         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22487         Reported by Ian Beckwith <ianb@erislabs.net>.
22488
22489         Produce autobuild blurb earlier in log.
22490         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22491
22492 2008-06-09  Jim Meyering  <meyering@redhat.com>
22493         and OndÅ™ej Vašík  <ovasik@redhat.com>
22494
22495         utimens.c: correct kernel bug work-around
22496         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22497         failure, not success, and the kernel bug we're trying to work
22498         around affects not just the utimensat call, but also the fallback
22499         futimens call.
22500         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22501         not success.
22502         [HAVE_FUTIMENS]: Use the same work-around, here.
22503
22504 2008-06-09  Jim Meyering  <meyering@redhat.com>
22505
22506         add more guards around definition of ACE_-related code
22507         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22508         ALLOW and ACE_OWNER are also defined.
22509
22510 2008-06-08  Bruno Haible  <bruno@clisp.org>
22511
22512         * lib/acl-internal.h: Add me as co-author.
22513         * lib/file-has-acl.c: Likewise.
22514         * lib/set-mode-acl.c: Likewise.
22515         * lib/copy-acl.c: Likewise.
22516
22517 2008-06-08  Bruno Haible  <bruno@clisp.org>
22518
22519         Add support for AIX ACLs.
22520         * lib/acl-internal.h (acl_nontrivial): New declaration.
22521         * lib/file-has-acl.c (acl_nontrivial): New function.
22522         (file_has_acl): Add implementation using AIX 4 ACL API.
22523         * lib/set-mode-acl.c (qset_acl): Likewise.
22524         * lib/copy-acl.c (qcopy_acl): Likewise.
22525
22526 2008-06-08  Bruno Haible  <bruno@clisp.org>
22527
22528         Add support for HP-UX ACLs.
22529         * lib/acl-internal.h (acl_nontrivial): New declaration.
22530         * lib/file-has-acl.c (acl_nontrivial): New function.
22531         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22532         * lib/set-mode-acl.c (qset_acl): Likewise.
22533         * lib/copy-acl.c (qcopy_acl): Likewise.
22534
22535 2008-06-08  Bruno Haible  <bruno@clisp.org>
22536
22537         Add support for Cygwin ACLs.
22538         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22539         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22540         the chmod_or_fchmod call.
22541         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22542
22543 2008-06-08  Bruno Haible  <bruno@clisp.org>
22544
22545         Fix bug with setuid modes in Solaris 10+ code.
22546         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22547         succeeded, when the mode contains some special bits.
22548
22549 2008-06-08  Bruno Haible  <bruno@clisp.org>
22550
22551         Add support for Solaris 7..10 ACLs.
22552         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22553         declarations.
22554         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22555         functions.
22556         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22557         * lib/set-mode-acl.c (qset_acl): Likewise.
22558         * lib/copy-acl.c (qcopy_acl): Likewise.
22559
22560 2008-06-08  Bruno Haible  <bruno@clisp.org>
22561
22562         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22563         declaration.
22564         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22565         (acl_access_nontrivial): Remove MacOS X case.
22566         (file_has_acl): Use acl_extended_nontrivial.
22567         * lib/copy-acl.c (qcopy_acl): Likewise.
22568
22569 2008-06-08  Bruno Haible  <bruno@clisp.org>
22570
22571         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22572
22573 2008-06-08  Jim Meyering  <meyering@redhat.com>
22574
22575         * modules/acl (Maintainer): Add Bruno Haible.
22576
22577 2008-06-07  Bruno Haible  <bruno@clisp.org>
22578
22579         Improve support for Tru64 ACLs.
22580         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22581         ACL on OSF/1.
22582
22583 2008-06-07  Bruno Haible  <bruno@clisp.org>
22584
22585         Add support for MacOS X ACLs.
22586         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22587         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22588         * lib/set-mode-acl.c (qset_acl): Likewise.
22589         * lib/copy-acl.c (qcopy_acl): Likewise.
22590
22591 2008-06-07  Bruno Haible  <bruno@clisp.org>
22592
22593         Fix memory leak introduced on 2008-05-22.
22594         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22595         use.
22596
22597 2008-06-07  Bruno Haible  <bruno@clisp.org>
22598
22599         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22600         to construct an empty ACL.
22601
22602 2008-06-07  Bruno Haible  <bruno@clisp.org>
22603
22604         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22605         precisely.
22606         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22607
22608 2008-06-07  Bruno Haible  <bruno@clisp.org>
22609
22610         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22611         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22612
22613 2008-06-07  Bruno Haible  <bruno@clisp.org>
22614
22615         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22616         regardless of POSIX.
22617         * doc/posix-functions/_longjmp.texi: Likewise.
22618         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22619         SystemV platform in this case.
22620
22621 2008-06-06  Eric Blake  <ebb9@byu.net>
22622
22623         Document abort() bugs.
22624         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22625
22626         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22627         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22628         sigsetjmp.
22629         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22630         siglongjmp, but only as a macro.
22631         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22632         is obsolete.
22633         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22634
22635         Tweak documentation to cover cygwin argz bugs.
22636         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22637         argz bug fix; no code change needed since no cygwin releases
22638         occurred between the last fix and the bug being tested.
22639         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22640         module and recently fixed cygwin bugs.
22641         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22642         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22643         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22644         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22645         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22646         Likewise.
22647         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22648         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22649         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22650         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22651         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22652         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22653         Likewise.
22654
22655         Avoid gcc warning on cygwin.
22656         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22657         !ACL_NO_TRIVIAL]: Avoid unused variable.
22658
22659 2008-06-05  Eric Blake  <ebb9@byu.net>
22660
22661         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22662         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22663         git-version-gen fails to come up with a version.
22664         Reported by Simon Josefsson.
22665
22666 2008-06-05  Jim Meyering  <meyering@redhat.com>
22667             Paul Eggert  <eggert@cs.ucla.edu>
22668
22669         utimens.c: work around a probable Linux kernel bug
22670         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22671         appears to be a kernel bug that causes utimensat to return 280
22672         instead of 0, indicating success.
22673
22674 2008-06-04  Bruno Haible  <bruno@clisp.org>
22675
22676         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22677         2008-06-01 commit.
22678
22679 2008-06-04  Bruno Haible  <bruno@clisp.org>
22680
22681         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22682         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22683         (file_has_acl): Use it. Save errno afterwards.
22684         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22685
22686 2008-06-03  Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22689         draft code. Simplify #ifs.
22690         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22691         Put Solaris code after POSIX-draft code. Fix comments regarding
22692         Solaris 10, HP-UX. Mention Cygwin.
22693         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22694
22695 2008-06-03  Eric Blake  <ebb9@byu.net>
22696
22697         Provide fallback for older kernels.
22698         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22699         Provide runtime fallback if kernel lacks support.
22700         Reported by Mike Frysinger.
22701
22702 2008-06-02  Bruno Haible  <bruno@clisp.org>
22703
22704         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22705         it exists.
22706
22707 2008-06-02  Bruno Haible  <bruno@clisp.org>
22708
22709         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22710         * lib/copy-acl.c (qcopy_acl): Update comment.
22711
22712 2008-06-02  Bruno Haible  <bruno@clisp.org>
22713
22714         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22715         like ACL APIs.
22716
22717 2008-06-02  Bruno Haible  <bruno@clisp.org>
22718
22719         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22720         * tests/test-set-mode-acl.sh: Likewise.
22721         * tests/test-copy-acl.sh: Likewise.
22722         * tests/test-copy-file.sh: Likewise.
22723
22724 2008-06-02  Bruno Haible  <bruno@clisp.org>
22725
22726         * tests/test-file-has-acl.sh: Remove unused code.
22727
22728 2008-06-01  Bruno Haible  <bruno@clisp.org>
22729
22730         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22731         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22732         messages.
22733         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22734
22735 2008-06-01  Bruno Haible  <bruno@clisp.org>
22736
22737         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22738         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22739         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22740         APIs.
22741         * modules/acl-tests (configure.ac): Remove tests now contained in
22742         m4/acl.m4.
22743
22744 2008-06-02  Jim Meyering  <meyering@redhat.com>
22745
22746         announce-gen: use a better key-server host name
22747         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22748         it may be more consistently reliable.  Suggested by Werner Koch
22749         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22750
22751 2008-06-01  Bruno Haible  <bruno@clisp.org>
22752
22753         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22754         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22755
22756 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22757
22758         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22759
22760 2008-06-01  Bruno Haible  <bruno@clisp.org>
22761
22762         New ACL tests.
22763         * tests/test-file-has-acl.sh: New file.
22764         * tests/test-file-has-acl.c: New file.
22765         * tests/test-set-mode-acl.sh: New file.
22766         * tests/test-set-mode-acl.c: New file.
22767         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22768         * tests/test-copy-acl.c: New file.
22769         * modules/acl-tests: New file, based on modules/copy-file-tests.
22770         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22771         (Depends-on): Add acl-tests.
22772         (configure.ac): Remove checks.
22773         (Makefile.am): Don't create test-sameacls program here any more.
22774
22775 2008-06-01  Bruno Haible  <bruno@clisp.org>
22776
22777         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22778         * tests/test-sameacls.c: Include progname.h.
22779         (main): Invoke set_program_name. Portability fixes for MacOS X,
22780         Solaris, HP-UX.
22781
22782 2008-06-01  Bruno Haible  <bruno@clisp.org>
22783
22784         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22785         function.
22786         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22787
22788 2008-06-01  Bruno Haible  <bruno@clisp.org>
22789
22790         * modules/rpmatch (Depends-on): Add strdup.
22791
22792 2008-06-01  Bruno Haible  <bruno@clisp.org>
22793
22794         * lib/pipe.c: Include unistd-safer.h.
22795         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22796         * modules/pipe (Depends-on): Add unistd-safer.
22797
22798 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22799
22800         * modules/autobuild (configure.ac): Call AB_INIT.
22801
22802 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22803
22804         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22805         Suggested by Bruno Haible <bruno@clisp.org>.
22806
22807 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22808
22809         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22810         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22811         <bruno@clisp.org>.
22812
22813 2008-05-29  Eric Blake  <ebb9@byu.net>
22814
22815         Prefer new POSIX 200x interfaces over futimesat.
22816         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22817         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22818         when available.
22819         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22820
22821 2008-05-28  Bruno Haible  <bruno@clisp.org>
22822
22823         * modules/stpcpy (License): Change to LGPLv2+.
22824         Requested by David Lutterkort <dlutter@redhat.com>.
22825
22826 2008-05-27  Bruno Haible  <bruno@clisp.org>
22827
22828         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22829         current mingw.
22830         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22831
22832 2008-05-27  Bruno Haible  <bruno@clisp.org>
22833
22834         * modules/iconv_open (Link): New section, from module 'iconv'.
22835         * modules/striconv (Link): Likewise.
22836         * modules/striconveh (Link): Likewise.
22837         * modules/xstriconv (Link): Likewise.
22838         * modules/unicodeio (Link): Likewise.
22839         * modules/propername (Link): Likewise.
22840         Reported by Jim Meyering.
22841
22842 2008-05-26  Jim Meyering  <meyering@redhat.com>
22843
22844         sha256: do not artificially restrict buffer length to be < 2^32
22845         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22846         uint32_t to size_t.
22847         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22848         to match.
22849
22850         avoid unaligned access errors, e.g., on sparc
22851         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22852         direct access through a possibly-unaligned uint64* pointer.
22853         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22854         direct access through a possibly-unaligned uint32* pointer.
22855         Prompted by this patch from Tom "spot" Callaway:
22856         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22857
22858         sha512.c: fix typo in comment
22859         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22860
22861 2008-05-25  Bruno Haible  <bruno@clisp.org>
22862
22863         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22864         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22865         (Makefile.am): Update lib_SOURCES.
22866
22867 2008-05-25  Bruno Haible  <bruno@clisp.org>
22868
22869         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22870
22871 2008-05-25  Jim Meyering  <meyering@redhat.com>
22872
22873         useless-if-before-free: freed expr may have white-space differences
22874         * build-aux/useless-if-before-free: Recognize cases in which the
22875         freed expression differs from the tested one in embedded white
22876         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22877         $1 was used, so we can't make any regexp shy.  Improved tests now
22878         detect this.
22879
22880         useless-if-before-free: accept white space in the expression.
22881         * build-aux/useless-if-before-free: For now, any white space
22882         in the expression must be identical in the free argument.
22883
22884         useless-if-before-free: efficiency tweak
22885         * build-aux/useless-if-before-free: Make the expression-matching
22886         regexp "shy".
22887         Make the *outer* regexp shy, not the expr-matching one.
22888
22889         update code-in-comment to accept cast of free arg
22890         * build-aux/useless-if-before-free: Update regexp.
22891
22892 2008-05-25  Bruno Haible  <bruno@clisp.org>
22893
22894         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22895         * modules/copy-file-tests (Files, Makefile.am): Update.
22896         * tests/test-copy-file.c (func_test_copy): Update.
22897
22898 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22899
22900         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22901
22902 2008-05-23  Bruno Haible  <bruno@clisp.org>
22903
22904         Improve support for ACLs on OSF/1.
22905         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22906         Remove fallback for unknown flavors of ACLs.
22907
22908 2008-05-22  Bruno Haible  <bruno@clisp.org>
22909
22910         Add support for ACLs on OSF/1.
22911         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22912         replacements.
22913         (acl_free_text): New macro fallback.
22914         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22915         acl_free.
22916         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22917         acl_free_text function. Require AC_C_INLINE.
22918
22919 2008-05-22  Bruno Haible  <bruno@clisp.org>
22920
22921         Make copy_acl work on MacOS X 10.5.
22922         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22923         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22924         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22925         If MODE_INSIDE_ACL, don't assume that every system has the same text
22926         representation for ACLs as FreeBSD.
22927         * lib/copy-acl.c (copy_acl): Add support for platforms with
22928         !MODE_INSIDE_ACL.
22929         * lib/file-has-acl.c (file_has_acl): Likewise.
22930         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22931         FreeBSD, MacOS X, or IRIX, respectively.
22932
22933 2008-05-22  Bruno Haible  <bruno@clisp.org>
22934
22935         * lib/acl.h: Don't include <sys/acl.h>.
22936         (GETACLCNT): Move fallback to lib/acl-internal.h.
22937         * lib/acl-internal.h: Include <sys/acl.h> here.
22938         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22939
22940 2008-05-22  Bruno Haible  <bruno@clisp.org>
22941
22942         Split off copy_acl function to separate file.
22943         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22944         * lib/acl.c (copy_acl): Moved function to separate file.
22945         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22946         * modules/acl (Files): Add lib/copy-acl.c.
22947         (Makefiles.am): Augment lib_SOURCES.
22948
22949 2008-05-22  Bruno Haible  <bruno@clisp.org>
22950
22951         * modules/copy-file-tests: New file.
22952         * tests/test-copy-file.sh: New file.
22953         * tests/test-copy-file.c: New file.
22954         * tests/test-copy-file-sameacls.c: New file.
22955
22956 2008-05-22  Eric Blake  <ebb9@byu.net>
22957
22958         Avoid gcc warning.
22959         * tests/test-memcmp.c (main): Pass NULL indirectly.
22960
22961 2008-05-21  Bruno Haible  <bruno@clisp.org>
22962
22963         Add reference doc about ACLs.
22964         * doc/acl-resources.txt: New file.
22965         * doc/acl-cygwin.txt: New file.
22966
22967 2008-05-21  Bruno Haible  <bruno@clisp.org>
22968
22969         Avoid one more warning from gcc.
22970         * lib/vasnprintf.c (IF_LINT): Update comments.
22971         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22972
22973 2008-05-21  Jim Meyering  <meyering@redhat.com>
22974
22975         avoid a warning from gcc
22976         * lib/vasnprintf.c (IF_LINT): Define.
22977         (scale10_round_decimal_long_double):
22978         Use it to avoid a "may be used uninitialized" warning.
22979         (scale10_round_decimal_double): Likewise.
22980
22981 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22982
22983         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22984         declared.
22985
22986 2008-05-20  Bruno Haible  <bruno@clisp.org>
22987
22988         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22989         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22990
22991 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22992
22993         * modules/memcmp-tests: New file.
22994         * tests/test-memcmp.c: New file.
22995
22996 2008-05-19  Bruno Haible  <bruno@clisp.org>
22997
22998         * modules/propername (Notice, configure.ac): Put quoted "..." into
22999         --keyword option.
23000         * lib/propername.h: Update comments accordingly.
23001         Reported by Eric Blake.
23002
23003 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23004
23005         * modules/getpass-gnu (Depends-on): Add fseeko.
23006
23007 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23008
23009         * modules/base64-tests: New file.
23010
23011 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23012
23013         * lib/base64.c (base64_decode_ctx): If a decode context structure
23014         was passed in use it to ignore newlines.  If a context structure
23015         was _not_ passed in, continue to treat newlines as garbage (this
23016         is the historical behavior).  Formerly base64_decode.
23017         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23018         takes a decode context structure.
23019         * lib/base64.h (base64_decode): Macro for four-argument calls.
23020         (base64_decode_alloc): Likewise.
23021         * lib/base64.c (base64_decode_ctx): If a decode context structure
23022         was passed in use it to ignore newlines.  If a context structure
23023         was _not_ passed in, continue to treat newlines as garbage (this
23024         is the historical behavior).  Formerly base64_decode.
23025         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23026         takes a decode context structure.
23027         * lib/base64.h (base64_decode): Macro for four-argument calls.
23028         (base64_decode_alloc): Likewise.
23029
23030 2008-05-19  Jim Meyering  <meyering@redhat.com>
23031
23032         avoid a warning from gcc
23033         * lib/trim.c (IF_LINT): Define.
23034         (trim2): Use it to avoid a "may be used uninitialized" warning.
23035
23036         Fix doc typo.
23037         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23038
23039 2008-05-19  Bruno Haible  <bruno@clisp.org>
23040
23041         * doc/glibc-functions/getpass.texi: Document limits of other
23042         implementations.
23043
23044 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23045             Bruno Haible <bruno@clisp.org>
23046
23047         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23048
23049 2008-05-18  Bruno Haible  <bruno@clisp.org>
23050
23051         * modules/propername: New file, from GNU gettext.
23052         * lib/propername.h: New file, from GNU gettext.
23053         * lib/propername.c: New file, from GNU gettext.
23054         * MODULES.html.sh (Internationalization functions): Add propername.
23055
23056 2008-05-16  Jim Meyering  <meyering@redhat.com>
23057             Bruno Haible  <bruno@clisp.org>
23058
23059         Avoid some warnings from "gcc -Wshadow".
23060         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23061
23062 2008-05-15  Eric Blake  <ebb9@byu.net>
23063
23064         Extend previous patch to cygwin 1.7.0.
23065         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23066         fast implementation in cygwin >= 1.7.0.
23067         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23069
23070 2008-05-15  Bruno Haible  <bruno@clisp.org>
23071
23072         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23073         implementation in glibc >= 2.9.
23074         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23076
23077 2008-05-15  Bruno Haible  <bruno@clisp.org>
23078
23079         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23080         (Unicode string functions): Add unilbrk/*.
23081         Reported by Karl Berry.
23082
23083 2008-05-15  Eric Blake  <ebb9@byu.net>
23084
23085         Fix violation of <stdbool.h> replacement in regex.
23086         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23087         * lib/regexec.c (re_search_internal): Likewise.
23088         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23089
23090 2008-05-15  Jim Meyering  <meyering@redhat.com>
23091
23092         avoid distracting test output when git or cvs is not found
23093         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23094         * tests/test-vc-list-files-git.sh: Likewise.
23095
23096 2008-05-15  Eric Blake  <ebb9@byu.net>
23097
23098         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23099         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23100         glibc version.
23101         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23102         * doc/posix-functions/strstr.texi (strstr): Likewise.
23103         * lib/str-two-way.h (MAX): Sychronize with glibc.
23104
23105 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23106
23107         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23108         opr.ctx_type.
23109         (calc_first): Initialize constraint field.
23110         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23111         Fix grammar.
23112         (duplicate_node): Merge constraint field for all node types.
23113         (calc_eclosure_iter): Look at constraint field for all node types.
23114         * lib/regex_internal.c (create_cd_newstate): Don't look at
23115         opr.ctx_type.
23116
23117 2008-05-14  Bruno Haible  <bruno@clisp.org>
23118
23119         Help GCC to do better code generation.
23120         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23121         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23122         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23123         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23124         Declare with attribute 'malloc' if supported.
23125
23126 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23127
23128         use "echo STR|wc -c" rather than unportable "expr length STR"
23129         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23130         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23131
23132 2008-05-14  Jim Meyering  <meyering@redhat.com>
23133
23134         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23135         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23136         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23137         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23138         via Collin Lasse.
23139
23140 2008-05-14  Eric Blake  <ebb9@byu.net>
23141
23142         Avoid quadratic growth in gl_LIBSOURCES.
23143         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23144         Suggested by Bruno Haible.
23145
23146         Test xmemdup0.
23147         * modules/xmemdup0-tests: New file.
23148         * tests/test-xmemdup0.c: Likewise.
23149
23150 2008-05-13  Eric Blake  <ebb9@byu.net>
23151
23152         Split xmemdup0 into its own module.
23153         * modules/xmemdup0: New file.
23154         * lib/xmemdup0.h: Likewise.
23155         * lib/xmemdup0.c: Likewise.
23156         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23157         * lib/xalloc.h (xmemdup0): Remove.
23158         * lib/xmalloc.c (xmemdup0): Likewise.
23159
23160 2008-05-13  Eric Blake  <ebb9@byu.net>
23161             Bruno Haible  <bruno@clisp.org>
23162
23163         Reduce number of forks required during autoconf.
23164         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23165         and gl_LIBSOURCES_DIR.
23166         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23167         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23168         m4_syscmd per file.
23169         <m4_foreach_w>: Move...
23170         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23171
23172 2008-05-13  Eric Blake  <ebb9@byu.net>
23173
23174         * gnulib-tool: Fix various comment typos.
23175
23176 2008-05-12  Bruno Haible  <bruno@clisp.org>
23177
23178         Tailor the linebreaking algorithm.
23179         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23180
23181 2008-05-12  Bruno Haible  <bruno@clisp.org>
23182
23183         Update to Unicode 5.0.0.
23184         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23185         LBP_JV, LBP_JT. Redistribute values.
23186         (unilbrk_table): Change size.
23187         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23188         Unicode TR#14 rev. 22.
23189         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23190         LBP_JV, LBP_JT. Redistribute values.
23191         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23192         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23193         Update.
23194         * lib/unilbrk/lbrkprop1.h: Regenerated.
23195         * lib/unilbrk/lbrkprop2.h: Regenerated.
23196         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23197         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23198         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23199         Likewise.
23200         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23201         Likewise.
23202         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23203         result.
23204         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23205         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23206         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23207         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23208         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23209         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23210
23211 2008-05-11  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23214
23215 2008-05-11  Bruno Haible  <bruno@clisp.org>
23216
23217         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23218         * modules/unilbrk/gen-lbrk: New file.
23219
23220 2008-05-11  Bruno Haible  <bruno@clisp.org>
23221
23222         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23223         * m4/sha512.m4 (gl_SHA512): Likewise.
23224
23225 2008-05-11  Jim Meyering  <meyering@redhat.com>
23226
23227         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23228         * modules/crypto/sha256: New file.
23229         * modules/crypto/sha512: Likewise.
23230         * lib/sha256.c: Likewise.
23231         * lib/sha256.h: Likewise.
23232         * lib/sha512.c: Likewise.
23233         * lib/sha512.h: Likewise.
23234         * lib/u64.h: Likewise.
23235         * m4/sha256.m4: Likewise.
23236         * m4/sha512.m4: Likewise.
23237         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23238
23239 2008-05-10  Bruno Haible  <bruno@clisp.org>
23240
23241         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23242         (Input/Output <stdio.h>): Add xprintf.
23243         (Signal handling <signal.h>): Add strsignal.
23244         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23245         (Core language properties): Add func.
23246         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23247         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23248         strings.
23249         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23250         (Input/output): New section.
23251         (File system functions): Add openat-die, stat-macros.
23252         (Networking functions): Add sockets.
23253         (Unicode string functions): Add unictype/*.
23254         (Support for building libraries and executables): Add gperf.
23255         (Support for building documentation): Add agpl-3.0.
23256         (Misc): Add nocrash.
23257
23258 2008-05-10  Bruno Haible  <bruno@clisp.org>
23259
23260         * modules/unictype/gen-ctype: New file.
23261
23262 2008-05-10  Jim Meyering  <meyering@redhat.com>
23263
23264         Make chdir-safer.c more efficient on a system with no symlinks.
23265         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23266         also if ELOOP is zero.  Suggested by Bruno Haible.
23267
23268         Make chdir-safer.c slightly safer.
23269         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23270         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23271
23272         Avoid compile failure on systems without ELOOP (like mingw).
23273         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23274         Reported by Bruno Haible.
23275
23276 2008-05-10  Bruno Haible  <bruno@clisp.org>
23277
23278         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23279         (is_utf8_encoding): Use a case-insensitive comparison.
23280         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23281         streq.
23282
23283 2008-05-10  Bruno Haible  <bruno@clisp.org>
23284
23285         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23286         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23287         * lib/unilbrk/ulc-common.h (iconv_string_length,
23288         iconv_string_keeping_offsets): Remove declarations.
23289         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23290         Don't include <iconv.h>, streq.h, xsize.h.
23291         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23292         conversion.
23293         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23294         <iconv.h>, streq.h, xsize.h.
23295         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23296         conversion.
23297         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23298         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23299         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23300         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23301
23302 2008-05-10  Bruno Haible  <bruno@clisp.org>
23303
23304         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23305         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23306
23307         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23308         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23309
23310         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23311         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23312
23313         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23314         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23315
23316         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23317         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23318
23319         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23320         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23321
23322         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23323         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23324
23325         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23326         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23327
23328 2008-05-10  Bruno Haible  <bruno@clisp.org>
23329
23330         Split up 'linebreak' module.
23331         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23332         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23333         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23334         modifications.
23335         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23336         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23337         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23338         lib/linebreak.c.
23339         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23340         lib/linebreak.c.
23341         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23342         lib/linebreak.c.
23343         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23344         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23345         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23346         lib/linebreak.c.
23347         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23348         lib/linebreak.c.
23349         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23350         lib/linebreak.c.
23351         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23352         lib/linebreak.c.
23353         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23354         lib/linebreak.c.
23355         * modules/unilbrk/base: New file.
23356         * modules/unilbrk/tables: New file.
23357         * modules/unilbrk/u8-possible-linebreaks: New file.
23358         * modules/unilbrk/u16-possible-linebreaks: New file.
23359         * modules/unilbrk/u32-possible-linebreaks: New file.
23360         * modules/unilbrk/ulc-common: New file.
23361         * modules/unilbrk/ulc-possible-linebreaks: New file.
23362         * modules/unilbrk/u8-width-linebreaks: New file.
23363         * modules/unilbrk/u16-width-linebreaks: New file.
23364         * modules/unilbrk/u32-width-linebreaks: New file.
23365         * modules/unilbrk/ulc-width-linebreaks: New file.
23366         * lib/linebreak.h: Remove file.
23367         * lib/linebreak.c: Remove file.
23368         * m4/linebreak.m4: Remove file.
23369         * modules/linebreak: Remove file.
23370         * NEWS: Mention the changes.
23371
23372 2008-05-09  Eric Blake  <ebb9@byu.net>
23373
23374         Add xmemdup0.
23375         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23376         implementation.
23377         * lib/xmalloc.c (xmemdup0): New C implementation.
23378
23379 2008-05-08  Bruno Haible  <bruno@clisp.org>
23380
23381         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23382
23383 2008-05-07  Eric Blake  <ebb9@byu.net>
23384
23385         Support cross-compilation of <wctype.h>.
23386         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23387         AC_CACHE_CHECK.
23388
23389 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23390
23391         * build-aux/vc-list-files: Add support for bzr.
23392
23393 2008-05-03  Jim Meyering  <meyering@redhat.com>
23394
23395         avoid failed assertion with tight malloc
23396         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23397
23398 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23399
23400         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23401         are needed from arpa/inet.h.
23402         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23403         Reported by Bruno Haible.
23404
23405 2008-05-02  Jim Meyering  <meyering@redhat.com>
23406
23407         avoid compilation error on FreeBSD 6
23408         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23409
23410 2008-05-01  Jim Meyering  <meyering@redhat.com>
23411
23412         useless-if-before-free: correct --help's exit status description
23413         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23414         for one or more matches, etc.  Reported by Bruno Haible.
23415
23416         vc-list-files: make the stand-alone gnulib test work
23417         * modules/vc-list-files-tests (configure.ac):
23418         Define and AC_SUBST abs_aux_dir.
23419         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23420         $(abs_top_srcdir) to each script and having each of them
23421         duplicate the work of setting PATH, set PATH here, using
23422         the new variable, abs_aux_dir instead.
23423         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23424         * tests/test-vc-list-files-git.sh: Likewise.
23425         Reported by Bruno Haible.
23426
23427 2008-05-01  Bruno Haible  <bruno@clisp.org>
23428
23429         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23430         reallocation. Rename 'done' to 'found_delimiter'.
23431
23432 2008-05-01  Jim Meyering  <meyering@redhat.com>
23433
23434         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23435         * build-aux/vc-list-files: Use `...`, not $(...).
23436
23437 2008-04-30  Jim Meyering  <meyering@redhat.com>
23438
23439         add tests for vc-list-files
23440         * modules/vc-list-files-tests: New module.
23441         * tests/test-vc-list-files-cvs.sh: New file.
23442         * tests/test-vc-list-files-git.sh: New file.
23443
23444         avoid a warning from gcc
23445         * lib/getndelim2.c (IF_LINT): Define.
23446         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23447
23448         vc-list-files: work properly with build-aux/cvsu, too
23449         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23450         to all cvs-based clauses.
23451
23452         vc-list-files: work properly in the CVS+awk case, too
23453         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23454
23455         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23456         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23457         take more than one file argument, so .  Add quotes, just in case $dir
23458         ever contains a shell meta-character.  Prompted by Soren Hansen in
23459         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23460
23461 2008-04-29  Eric Blake  <ebb9@byu.net>
23462
23463         Optimize getndelim2 to use block operations when possible.
23464         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23465         freadseek, and memchr2.
23466         * lib/getndelim2.c (getndelim2): Use them for block reads.
23467
23468 2008-04-29  Bruno Haible  <bruno@clisp.org>
23469
23470         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23471         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23472         * modules/inet_ntop (Depends-on): Add extensions.
23473         * modules/inet_pton (Depends-on): Likewise.
23474         Reported by Simon Josefsson.
23475
23476 2008-04-29  Jim Meyering  <meyering@redhat.com>
23477
23478         When the is more than one match in a block, match all of them.
23479         * build-aux/useless-if-before-free: Iterate through each block
23480         until there are no more matches.
23481
23482         Fix broken useless-if-before-free script.
23483         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23484         the expression to match cast of argument to free-like function.
23485
23486 2008-04-29  Eric Blake  <ebb9@byu.net>
23487
23488         Use new header.
23489         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23490
23491 2008-04-29  Jim Meyering  <meyering@redhat.com>
23492
23493         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23494         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23495         by gnulib to exist and to declare e.g., inet_ntop.
23496         Don't include "inet_ntop.h", now removed.
23497
23498         * m4/arpa_inet_h.m4: Remove trailing blanks.
23499
23500 2008-04-29  Eric Blake  <ebb9@byu.net>
23501
23502         Silence valgrind on safe reads beyond potential array bounds.
23503         * lib/rawmemchr.valgrind: New file.
23504         * lib/strchrnul.valgrind: Likewise.
23505         * modules/rawmemchr (Files): Distribute new file.
23506         * modules/strchrnul (Files): Likewise.
23507         Suggested by Bruno Haible.
23508
23509 2008-04-29  Bruno Haible  <bruno@clisp.org>
23510
23511         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23512         (inet_ntop, inet_pton): Change portability warning's wording.
23513         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23514         Invoke gl_CHECK_NEXT_HEADERS.
23515         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23516         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23517         set ARPA_INET_H.
23518         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23519         * modules/arpa_inet (Description): No longer only for systems that
23520         lack it.
23521         (Depends-on): Add include_next.
23522         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23523         HAVE_ARPA_INET_H.
23524
23525 2008-04-29  Jim Meyering  <meyering@redhat.com>
23526
23527         * modules/mkdir (License): Re-license as LGPLv2+.
23528
23529 2008-04-29  Bruno Haible  <bruno@clisp.org>
23530
23531         * modules/rawmemchr (Maintainer): Set to Eric.
23532         * modules/strchrnul (Maintainer): Likewise.
23533
23534 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23535
23536         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23537         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23538
23539         * modules/arpa_inet (arpa/inet.h): Use them.
23540
23541 2008-04-28  Eric Blake  <ebb9@byu.net>
23542
23543         Test getndelim2.
23544         * modules/getndelim2-tests: New file.
23545         * tests/test-getndelim2.c: Likewise.
23546         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23547         stream.
23548         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23549
23550         * MODULES.html.sh: Document new module.
23551
23552 2008-04-20  Bruno Haible  <bruno@clisp.org>
23553
23554         * lib/c-stack.c (die): Use raise.
23555         * modules/c-stack (Depends-on): Add raise.
23556
23557 2008-04-28  Bruno Haible  <bruno@clisp.org>
23558
23559         Expect rpmatch to be declared.
23560         * lib/yesno.c (rpmatch): Remove declaration.
23561
23562         Declare rpmatch.
23563         * lib/stdlib.in.h (rpmatch): New declaration.
23564         * lib/rpmatch.c: Include <stdlib.h> first.
23565         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23566         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23568         HAVE_RPMATCH.
23569         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23571         (Include): Set to <stdlib.h>.
23572         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23573         HAVE_RPMATCH.
23574         * NEWS: Document the change.
23575
23576 2008-04-28  Bruno Haible  <bruno@clisp.org>
23577
23578         Change rpmatch to use nl_langinfo when appropriate.
23579         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23580         (N_): New macro.
23581         (localized_pattern): New function/macro.
23582         (try): Remove match, nomatch arguments. Copy the pattern into safe
23583         memory before caching it.
23584         (rpmatch): Use localized_pattern. Add translator comments.
23585         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23586         Suggested by Eric Blake.
23587         * modules/rpmatch (Depends-on): Add stdbool.
23588
23589 2008-04-28  Eric Blake  <ebb9@byu.net>
23590
23591         Add rawmemchr module, matching glibc.
23592         * modules/string (Makefile.am): New indicator.
23593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23594         * lib/string.in.h (rawmemchr): Declare when appropriate.
23595         * modules/rawmemchr: New file.
23596         * m4/rawmemchr.m4: Likewise.
23597         * lib/rawmemchr.c: Likewise.
23598         * modules/rawmemchr-tests: Likewise.
23599         * tests/test-rawmemchr.c: Likewise.
23600         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23601         module.
23602         * modules/strchrnul (Depends-on): Add rawmemchr.
23603         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23604
23605         Whitespace cleanup.
23606         * tests/test-strchrnul.c: Reindent.
23607         * lib/strchrnul.c: Likewise.
23608
23609         Optimize and test strchrnul.
23610         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23611         * modules/strchrnul-tests: New file.
23612         * tests/test-strchrnul.c: Likewise.
23613
23614         Remove intprops dependency.
23615         * modules/memchr (Depends-on): Remove intprops.
23616         * modules/memrchr (Depends-on): Likewise.
23617         * modules/memchr2 (Depends-on): Likewise.
23618         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23619         * lib/memrchr.c (__memrchr): Likewise.
23620         * lib/memrchr2.c (memchr2): Likewise.
23621         Reported by Simon Josefsson.
23622
23623 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23624
23625         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23626         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23627
23628 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23629
23630         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23631
23632         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23633
23634         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23635
23636         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23637         declarations.
23638         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23639
23640         * m4/inet_pton.m4: Don't check for header files.
23641
23642         * m4/inet_ntop.m4: Don't check for header files.
23643
23644 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23645
23646         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23647         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23648         trigger for cygwin).
23649         Reported by Bruno Haible  <bruno@clisp.org>.
23650
23651 2008-04-28  Bruno Haible  <bruno@clisp.org>
23652
23653         * doc/posix-functions/strdup.texi: Mention mingw problem.
23654
23655 2008-04-27  Bruno Haible  <bruno@clisp.org>
23656
23657         * modules/stat-time-tests (Depends-on): Add sleep.
23658         * tests/test-stat-time.c (force_unlink): New function.
23659         (cleanup): Use it.
23660         (test_mtime): Remove the ctime related tests.
23661         (test_ctime): New function, containing the ctime related tests.
23662         (main): Call test_ctime, except on native Windows platforms.
23663
23664 2008-04-27  Bruno Haible  <bruno@clisp.org>
23665
23666         * lib/rpmatch.c (rpmatch): Add some comments.
23667         Reported by James Youngman <jay@gnu.org>.
23668
23669 2008-04-27  Bruno Haible  <bruno@clisp.org>
23670
23671         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23672         quiet NaNs.
23673
23674 2008-04-27  Bruno Haible  <bruno@clisp.org>
23675
23676         Make test-yesno.sh work on mingw.
23677         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23678         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23679         (main): Set stdin to binary mode.
23680         * modules/yesno-tests (Depends-on): Add binary-io.
23681
23682 2008-04-27  Bruno Haible  <bruno@clisp.org>
23683
23684         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23685         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23686         argument that lie outside the IEEE 854 domain.
23687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23688         (gl_ISFINITE): Use it.
23689         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23690
23691 2008-04-27  Bruno Haible  <bruno@clisp.org>
23692
23693         Allow local renaming in config.h.
23694         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23695
23696 2008-04-27  Bruno Haible  <bruno@clisp.org>
23697
23698         * lib/memchr.c (__memchr): Change type of 'i'.
23699         * lib/memchr2.c (memchr2): Likewise.
23700
23701 2008-04-26  Eric Blake  <ebb9@byu.net>
23702         and Bruno Haible  <bruno@clisp.org>
23703
23704         Optimize and test memrchr.
23705         * modules/memrchr (Depends-on): Add intprops.
23706         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23707         * modules/memrchr-tests: New file.
23708         * tests/test-memrchr.c: New file.
23709
23710 2008-04-26  Bruno Haible  <bruno@clisp.org>
23711
23712         Add tentative support for DragonFly BSD.
23713         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23714         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23715         fp.
23716         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23717         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23718         * lib/fpurge.c (fpurge): Likewise.
23719         * lib/freadable.c (freaadable): Likewise.
23720         * lib/freadahead.c (freadahead): Likewise.
23721         * lib/freading.c (freading): Likewise.
23722         * lib/freadptr.c (freadptr): Likewise.
23723         * lib/freadseek.c (freadptrinc): Likewise.
23724         * lib/fseeko.c (fseeko): Likewise.
23725         * lib/fseterr.c (fseterr): Likewise.
23726         * lib/fwritable.c (fwritable): Likewise.
23727         * lib/fwriting.c (fwriting): Likewise.
23728
23729 2008-04-26  Bruno Haible  <bruno@clisp.org>
23730
23731         * lib/stdio-impl.h: New file.
23732         * lib/fbufmode.c: Include stdio-impl.h.
23733         (fbufmode): Use fp_, remove redundant #defines.
23734         * lib/fflush.c: Include stdio-impl.h.
23735         (clear_ungetc_buffer): Remove redundant #defines.
23736         * lib/fpurge.c: Include stdio-impl.h.
23737         (fpurge): Remove redundant #defines.
23738         * lib/freadable.c: Include stdio-impl.h.
23739         (freadable): Remove redundant #defines.
23740         * lib/freadahead.c: Include stdio-impl.h.
23741         (freadahead): Remove redundant #defines.
23742         * lib/freading.c: Include stdio-impl.h.
23743         (freading): Remove redundant #defines.
23744         * lib/freadptr.c: Include stdio-impl.h.
23745         (freadptr): Remove redundant #defines.
23746         * lib/freadseek.c: Include stdio-impl.h.
23747         (freadptrinc): Remove redundant #defines.
23748         * lib/fseeko.c: Include stdio-impl.h.
23749         (rpl_fseeko): Remove redundant #defines.
23750         * lib/fseterr.c: Include stdio-impl.h.
23751         (fseterr): Remove redundant #defines.
23752         * lib/fwritable.c: Include stdio-impl.h.
23753         (fwritable: Remove redundant #defines.
23754         * lib/fwriting.c: Include stdio-impl.h.
23755         (fwriting): Remove redundant #defines.
23756         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23757         * modules/fflush (Files): Likewise.
23758         * modules/fpurge (Files): Likewise.
23759         * modules/freadable (Files): Likewise.
23760         * modules/freadahead (Files): Likewise.
23761         * modules/freading (Files): Likewise.
23762         * modules/freadptr (Files): Likewise.
23763         * modules/freadseek (Files): Likewise.
23764         * modules/fseeko (Files): Likewise.
23765         * modules/fseterr (Files): Likewise.
23766         * modules/fwritable (Files): Likewise.
23767         * modules/fwriting (Files): Likewise.
23768
23769 2008-04-26  Bruno Haible  <bruno@clisp.org>
23770
23771         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23772         restore_seek_optimization, update_fpos_cache): New functions, extracted
23773         from rpl_fflush.
23774         (rpl_fflush): Use them.
23775         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23776         (gl_REPLACE_FFLUSH): Use it.
23777
23778 2008-04-26  Bruno Haible  <bruno@clisp.org>
23779
23780         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23781         on Solaris.
23782         * tests/test-xstrtoimax.sh: Likewise.
23783         * tests/test-xstrtoumax.sh: Likewise.
23784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23785
23786 2008-04-26  Bruno Haible  <bruno@clisp.org>
23787
23788         * modules/memchr-tests: New file.
23789         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23790
23791 2008-04-26  Eric Blake  <ebb9@byu.net>
23792             Bruno Haible  <bruno@clisp.org>
23793
23794         * lib/memchr.c: Include intprops.h.
23795         (__memchr): Optimize parallel detection of matching bytes. Rename local
23796         variables. Add explanatory comments.
23797
23798 2008-04-26  Bruno Haible  <bruno@clisp.org>
23799
23800         Fix module 'memchr', broken since 2000-10-28.
23801         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23802
23803 2008-04-26  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23806         comments.
23807
23808 2008-04-25  Eric Blake  <ebb9@byu.net>
23809
23810         Use native fstatat on cygwin 1.7.0.
23811         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23812         first.
23813
23814 2008-04-23  Eric Blake  <ebb9@byu.net>
23815
23816         Improve memchr2 performance.
23817         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23818         NUL bytes.
23819         * modules/memchr2 (Depends-on): Use intprops.h.
23820
23821 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23822
23823         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23824         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23825         <blp@cs.stanford.edu>.
23826
23827 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23828
23829         * lib/arpa_inet.in.h: New file.
23830
23831         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23832         (Makefile.am): Sed in substitute header file.
23833
23834         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23835         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23836
23837         * modules/inet_ntop (configure.ac): Use
23838         gl_ARPA_INET_MODULE_INDICATOR.
23839
23840         * modules/inet_pton (configure.ac): Use
23841         gl_ARPA_INET_MODULE_INDICATOR.
23842
23843 2008-04-22  Jim Meyering  <meyering@redhat.com>
23844
23845         * modules/verify (License): Re-license as LGPLv2+.
23846
23847 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23848
23849         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23850         parameter to void* as per POSIX standard (MinGW uses char*).
23851
23852 2008-04-21  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23855         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23856         Define to replacements if REPLACE_ISWCNTRL is 1.
23857         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23858         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23859         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23860         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23861         what it fixes.
23862         * doc/posix-functions/iswalpha.texi: Likewise.
23863         * doc/posix-functions/iswblank.texi: Likewise.
23864         * doc/posix-functions/iswcntrl.texi: Likewise.
23865         * doc/posix-functions/iswdigit.texi: Likewise.
23866         * doc/posix-functions/iswgraph.texi: Likewise.
23867         * doc/posix-functions/iswlower.texi: Likewise.
23868         * doc/posix-functions/iswprint.texi: Likewise.
23869         * doc/posix-functions/iswpunct.texi: Likewise.
23870         * doc/posix-functions/iswspace.texi: Likewise.
23871         * doc/posix-functions/iswupper.texi: Likewise.
23872         * doc/posix-functions/iswxdigit.texi: Likewise.
23873         Reported by Alain Guibert.
23874
23875 2008-04-21  Bruno Haible  <bruno@clisp.org>
23876
23877         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23878         Patch by Alain Guibert.
23879
23880 2008-04-21  Bruno Haible  <bruno@clisp.org>
23881
23882         Fix test failures on mingw.
23883         * tests/test-xstrtol.c (print_no_progname): New function.
23884         (main): Install it in error_print_progname hook.
23885         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23886         * tests/test-xstrtoimax.sh: Likewise.
23887         * tests/test-xstrtoumax.sh: Likewise.
23888
23889 2008-04-21  Bruno Haible  <bruno@clisp.org>
23890
23891         Fix test failure on mingw.
23892         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23893
23894 2008-04-21  Bruno Haible  <bruno@clisp.org>
23895
23896         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23897         Actually assign a value.
23898
23899 2008-04-20  Bruno Haible  <bruno@clisp.org>
23900
23901         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23902         take 2.
23903         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23904         'canonicalize-lgpl' module is also used.
23905         * lib/canonicalize-lgpl.c: Undo last change.
23906         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23907
23908 2008-04-20  Bruno Haible  <bruno@clisp.org>
23909
23910         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23911         config.h. Provide _mkdir based fallback for mingw.
23912         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23913         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23914         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23915         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23916         rather than defining mkdir in config.h.
23917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23918         (gl_SYS_STAT_H_DEFAULTS): New macro.
23919         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23920         HAVE_IO_H any more.
23921         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23922         HAVE_DECL_MKDIR and HAVE_IO_H.
23923
23924 2008-04-20  Bruno Haible  <bruno@clisp.org>
23925
23926         * lib/isapipe.c: Port to native Windows platforms.
23927
23928 2008-04-20  Bruno Haible  <bruno@clisp.org>
23929
23930         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23931
23932 2008-04-21  Eric Blake  <ebb9@byu.net>
23933
23934         Work around preprocessors that don't handle UINTMAX_MAX.
23935         * lib/memchr2.c (memchr2): Avoid embedded #if.
23936         Reported by Alain Guibert, fix suggested by Bruno Haible.
23937
23938 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23939
23940         * doc/posix-functions/strftime.texi (strftime): Explain better
23941         Windows incompatibility.  Suggested by Micah Cowan
23942         <micah@cowan.name>.
23943
23944 2008-04-20  Bruno Haible  <bruno@clisp.org>
23945
23946         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23947         unistr/u8-mblen.
23948
23949 2008-04-20  Bruno Haible  <bruno@clisp.org>
23950
23951         Fix test failure on platforms with non-GNU iconv.
23952         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23953         (U_TO_U8): Use it, rather than u16_to_u8.
23954         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23955         units at the end of the input string.
23956         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23957
23958 2008-04-20  Bruno Haible  <bruno@clisp.org>
23959
23960         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23961         when the resulting length is 0.
23962         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23963
23964 2008-04-20  Bruno Haible  <bruno@clisp.org>
23965
23966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23967         works.
23968         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23969
23970 2008-04-20  Bruno Haible  <bruno@clisp.org>
23971
23972         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23973         * modules/tsearch-tests (configure.ac): Test for initstate function.
23974
23975 2008-04-20  Bruno Haible  <bruno@clisp.org>
23976
23977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23978         for nlink_t if missing.
23979         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23980
23981 2008-04-19  Bruno Haible  <bruno@clisp.org>
23982
23983         Work around snprintf bug on Linux libc5.
23984         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23986         gl_SNPRINTF_SIZE1.
23987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23988         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23989         that test failed.
23990         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23991         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23992         * modules/snprintf (Files): Add m4/printf.m4.
23993         * modules/vsnprintf (Files): Likewise.
23994         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23995         * doc/posix-functions/vsnprintf.texi: Likewise.
23996
23997 2008-04-19  Bruno Haible  <bruno@clisp.org>
23998
23999         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24000         from 0.0058 to less than 10^-7.
24001
24002 2008-04-19  Bruno Haible  <bruno@clisp.org>
24003
24004         Fix rounding when a precision is given.
24005         * lib/vasnprintf.c (is_borderline): New function.
24006         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24007         9...9x.
24008         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24009         %e, %g.
24010         * tests/test-vasprintf-posix.c (test_function): Likewise.
24011         * tests/test-snprintf-posix.h (test_function): Likewise.
24012         * tests/test-sprintf-posix.h (test_function): Likewise.
24013         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24014         * tests/test-printf-posix.h (test_function): Likewise.
24015         * tests/test-printf-posix.output: Update.
24016         Reported by John Darrington <john@darrington.wattle.id.au> via
24017         Ben Pfaff <blp@cs.stanford.edu>.
24018
24019 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24020
24021         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24022         Suggested by Bruno Haible <bruno@clisp.org>.
24023
24024 2008-04-17  Bruno Haible  <bruno@clisp.org>
24025
24026         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24027         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24028         implementation.
24029         Patch by Bruce Merry <bmerry@gmail.com>.
24030
24031 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24032
24033         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24034         doesn't work under Windows.
24035
24036 2008-04-16  Bruno Haible  <bruno@clisp.org>
24037
24038         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24039         New macros.
24040         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24041         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24042         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24043         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24044         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24045         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24046         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24047         macros.
24048         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24049         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24050         Northern Sotho, Uighur.
24051
24052 2008-04-16  Bruno Haible  <bruno@clisp.org>
24053
24054         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24055         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24056         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24057         Reported by Daniel Bergström <daniel@octocode.com>.
24058
24059 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24060             Bruno Haible  <bruno@clisp.org>
24061
24062         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24063         function.
24064         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24065         New functions, mostly extracted from gl_locale_name_default.
24066         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24067
24068 2008-04-16  Eric Blake  <ebb9@byu.net>
24069
24070         Adjust strtod detection to catch glibc 2.7 bug.
24071         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24072         Reported by John Gatewood Ham.
24073
24074 2008-04-16  Bruno Haible  <bruno@clisp.org>
24075
24076         Add tentative support for Linux libc5.
24077         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24078         * lib/fpurge.c (fpurge): Likewise.
24079         * lib/freadable.c (freadable): Likewise.
24080         * lib/freadahead.c (freadahead): Likewise.
24081         * lib/freading.c (freading): Likewise.
24082         * lib/freadptr.c (freadptr): Likewise.
24083         * lib/freadseek.c (freadptrinc): Likewise.
24084         * lib/fseeko.c (rpl_fseeko): Likewise.
24085         * lib/fseterr.c (fseterr): Likewise.
24086         * lib/fwritable.c (fwritable): Likewise.
24087         * lib/fwriting.c (fwriting): Likewise.
24088         Reported by Alain Guibert <alguibert+bts@free.fr>.
24089
24090 2008-04-15  Bruno Haible  <bruno@clisp.org>
24091
24092         * modules/mathl (configure.ac): Define module indicator.
24093
24094 2008-04-15  Bruno Haible  <bruno@clisp.org>
24095
24096         * lib/logl.c (logl): Remove unused variables.
24097
24098 2008-04-15  Bruno Haible  <bruno@clisp.org>
24099
24100         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24101         fails.
24102
24103 2008-04-15  Bruno Haible  <bruno@clisp.org>
24104
24105         * lib/trim.c (trim2): Fix argument of isspace() macro.
24106
24107 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24108
24109         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24110         to 0.
24111         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24112
24113 2008-04-14  Bruno Haible  <bruno@clisp.org>
24114
24115         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24116         AC_LANG_PROGRAM argument.
24117         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24118         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24120         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24121         * m4/math_h.m4 (gl_MATH_H): Likewise.
24122         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24124         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24125         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24126         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24127         * m4/regex.m4 (gl_REGEX): Likewise.
24128         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24129         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24131         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24132         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24133         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24136
24137 2008-04-14  Jim Meyering  <meyering@redhat.com>
24138
24139         test-strtod: fix typos: s/abs/fabs/
24140         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24141
24142 2008-04-13  Bruno Haible  <bruno@clisp.org>
24143
24144         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24145         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24146         module is also used and while not building the reloc-wrapper.
24147
24148 2008-04-13  Bruno Haible  <bruno@clisp.org>
24149
24150         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24151
24152 2008-04-13  Bruno Haible  <bruno@clisp.org>
24153
24154         Fix AIX compilation failure introduced on 2008-04-02.
24155         * tests/test-frexp.c (exp): Undefine before redefining.
24156         * tests/test-frexpl.c (exp): Likewise.
24157
24158 2008-04-13  Bruno Haible  <bruno@clisp.org>
24159
24160         Work around a HP-UX stdio bug.
24161         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24162         * tests/test-ftello.c (main): Likewise.
24163         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24164         * doc/posix-functions/ftello.texi: Likewise.
24165
24166 2008-04-13  Bruno Haible  <bruno@clisp.org>
24167
24168         Make test-signbit pass on HP-UX/hppa.
24169         * tests/test-signbit.c (minus_zerol): New variable.
24170         (test_signbitl): Use it.
24171
24172 2008-04-13  Bruno Haible  <bruno@clisp.org>
24173
24174         Make truncl work on OSF/1 4.0.
24175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24176         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24177         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24179         HAVE_DECL_TRUNCL.
24180         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24181         HAVE_DECL_TRUNCL.
24182         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24183
24184 2008-04-13  Bruno Haible  <bruno@clisp.org>
24185
24186         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24187
24188 2008-04-13  Bruno Haible  <bruno@clisp.org>
24189
24190         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24191         expression, so as to avoid HP-UX 11 cc compiler bug.
24192
24193 2008-04-13  Bruno Haible  <bruno@clisp.org>
24194
24195         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24196
24197 2008-04-13  Bruno Haible  <bruno@clisp.org>
24198
24199         * lib/git-merge-changelog.c: Remove empty declaration outside of
24200         functions.
24201
24202 2008-04-13  Bruno Haible  <bruno@clisp.org>
24203
24204         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24205
24206 2008-04-13  Bruno Haible  <bruno@clisp.org>
24207
24208         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24209         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24210         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24211         also if it exists but lacks definitions of the SHUT_* macros.
24212         * modules/sys_socket (Description): Update.
24213         Reported by Elbert Pol <e.pol@chello.nl>.
24214
24215 2008-04-13  Bruno Haible  <bruno@clisp.org>
24216
24217         * lib/localcharset.c (OS2): Don't redefine if already defined.
24218         Reported by Elbert Pol <e.pol@chello.nl>.
24219
24220 2008-04-13  Bruno Haible  <bruno@clisp.org>
24221
24222         * lib/binary-io.h [__EMX__]: Include <io.h>.
24223         Reported by Elbert Pol <e.pol@chello.nl>.
24224
24225 2008-04-12  Bruno Haible  <bruno@clisp.org>
24226
24227         * lib/fpucw.h: Enable the definitions also for x86_64.
24228         Needed for NetBSD/x86_64.
24229         Reported by Thomas Klausner <tk@giga.or.at>.
24230
24231 2008-04-12  Bruno Haible  <bruno@clisp.org>
24232
24233         * tests/test-strtod.c: Include isnand.h.
24234         (main): Use isnand instead of isnan.
24235         Reported by Jim Meyering.
24236
24237 2008-04-12  Bruno Haible  <bruno@clisp.org>
24238
24239         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24240         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24241
24242 2008-04-12  Jim Meyering  <meyering@redhat.com>
24243
24244         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24245
24246 2008-04-12  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24249         Reported by Elbert Pol <e.pol@chello.nl>.
24250
24251 2008-04-12  Eric Blake  <ebb9@byu.net>
24252
24253         Work around Solaris 10 math.h bug.
24254         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24255         (gl_MATH_H_DEFAULTS): Set up default.
24256         * modules/math (Makefile.am): Replace new indicators.
24257         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24258         * tests/test-math.c (main): Test this.
24259         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24260         * doc/posix-headers/math.texi (math.h): Mention bug.
24261         Reported by Nelson H. F. Beebe and Jim Meyering.
24262
24263 2008-04-11  Bruno Haible  <bruno@clisp.org>
24264
24265         Adapt to future versions of Apple GCC.
24266         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24267         Reported by Peter O'Gorman <peter@pogma.com>.
24268
24269 2008-04-11  Bruno Haible  <bruno@clisp.org>
24270
24271         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24272
24273 2008-04-11  Bruno Haible  <bruno@clisp.org>
24274
24275         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24276
24277         * modules/getaddrinfo-tests (Makefile.am): Define
24278         test_getaddrinfo_LDADD.
24279
24280 2008-04-11  Bruno Haible  <bruno@clisp.org>
24281
24282         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24283         (init): Fix syntax error.
24284         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24285         is declared.
24286
24287 2008-04-11  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24290         * modules/glob (Depends-on): Add stdbool.
24291
24292 2008-04-11  Bruno Haible  <bruno@clisp.org>
24293
24294         * lib/trim.c: Include <string.h>.
24295
24296 2008-04-11  Eric Blake  <ebb9@byu.net>
24297
24298         Avoid compile failure on OS/2.
24299         * lib/regex_internal.h (internal_function): Disable optimization
24300         on OS/2 (__EMX__), where it caused compiler error.
24301         Reported by Elbert Pol.
24302
24303 2008-04-11  Bruno Haible  <bruno@clisp.org>
24304
24305         Flush the standard error stream before aborting. Needed on mingw.
24306         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24307         * tests/test-array_list.c (ASSERT): Likewise.
24308         * tests/test-array_oset.c (ASSERT): Likewise.
24309         * tests/test-avltree_list.c (ASSERT): Likewise.
24310         * tests/test-avltree_oset.c (ASSERT): Likewise.
24311         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24312         * tests/test-binary-io.c (ASSERT): Likewise.
24313         * tests/test-byteswap.c (ASSERT): Likewise.
24314         * tests/test-c-ctype.c (ASSERT): Likewise.
24315         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24316         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24317         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24318         * tests/test-c-strstr.c (ASSERT): Likewise.
24319         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24320         * tests/test-canonicalize.c (ASSERT): Likewise.
24321         * tests/test-carray_list.c (ASSERT): Likewise.
24322         * tests/test-ceilf1.c (ASSERT): Likewise.
24323         * tests/test-ceilf2.c (ASSERT): Likewise.
24324         * tests/test-ceill.c (ASSERT): Likewise.
24325         * tests/test-count-one-bits.c (ASSERT): Likewise.
24326         * tests/test-fbufmode.c (ASSERT): Likewise.
24327         * tests/test-fflush2.c (ASSERT): Likewise.
24328         * tests/test-floorf1.c (ASSERT): Likewise.
24329         * tests/test-floorf2.c (ASSERT): Likewise.
24330         * tests/test-floorl.c (ASSERT): Likewise.
24331         * tests/test-fopen.c (ASSERT): Likewise.
24332         * tests/test-fpending.c (ASSERT): Likewise.
24333         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24334         * tests/test-fpurge.c (ASSERT): Likewise.
24335         * tests/test-freadable.c (ASSERT): Likewise.
24336         * tests/test-freadahead.c (ASSERT): Likewise.
24337         * tests/test-freading.c (ASSERT): Likewise.
24338         * tests/test-freadptr.c (ASSERT): Likewise.
24339         * tests/test-freadptr2.c (ASSERT): Likewise.
24340         * tests/test-freadseek.c (ASSERT): Likewise.
24341         * tests/test-freopen.c (ASSERT): Likewise.
24342         * tests/test-frexp.c (ASSERT): Likewise.
24343         * tests/test-frexpl.c (ASSERT): Likewise.
24344         * tests/test-fseek.c (ASSERT): Likewise.
24345         * tests/test-fseeko.c (ASSERT): Likewise.
24346         * tests/test-fstrcmp.c (ASSERT): Likewise.
24347         * tests/test-ftell.c (ASSERT): Likewise.
24348         * tests/test-ftello.c (ASSERT): Likewise.
24349         * tests/test-func.c (ASSERT): Likewise.
24350         * tests/test-fwritable.c (ASSERT): Likewise.
24351         * tests/test-fwriting.c (ASSERT): Likewise.
24352         * tests/test-getdelim.c (ASSERT): Likewise.
24353         * tests/test-getline.c (ASSERT): Likewise.
24354         * tests/test-i-ring.c (ASSERT): Likewise.
24355         * tests/test-iconv-utf.c (ASSERT): Likewise.
24356         * tests/test-iconv.c (ASSERT): Likewise.
24357         * tests/test-isfinite.c (ASSERT): Likewise.
24358         * tests/test-isnand.c (ASSERT): Likewise.
24359         * tests/test-isnanf.c (ASSERT): Likewise.
24360         * tests/test-isnanl.h (ASSERT): Likewise.
24361         * tests/test-ldexpl.c (ASSERT): Likewise.
24362         * tests/test-linked_list.c (ASSERT): Likewise.
24363         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24364         * tests/test-localename.c (ASSERT): Likewise.
24365         * tests/test-lseek.c (ASSERT): Likewise.
24366         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24367         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24368         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24369         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24370         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24371         * tests/test-mbschr.c (ASSERT): Likewise.
24372         * tests/test-mbscspn.c (ASSERT): Likewise.
24373         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24374         * tests/test-mbspbrk.c (ASSERT): Likewise.
24375         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24376         * tests/test-mbsrchr.c (ASSERT): Likewise.
24377         * tests/test-mbsspn.c (ASSERT): Likewise.
24378         * tests/test-mbsstr1.c (ASSERT): Likewise.
24379         * tests/test-mbsstr2.c (ASSERT): Likewise.
24380         * tests/test-mbsstr3.c (ASSERT): Likewise.
24381         * tests/test-memchr2.c (ASSERT): Likewise.
24382         * tests/test-memmem.c (ASSERT): Likewise.
24383         * tests/test-open.c (ASSERT): Likewise.
24384         * tests/test-printf-frexp.c (ASSERT): Likewise.
24385         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24386         * tests/test-printf-posix.c (ASSERT): Likewise.
24387         * tests/test-quotearg.c (ASSERT): Likewise.
24388         * tests/test-rbtree_list.c (ASSERT): Likewise.
24389         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24390         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24391         * tests/test-round1.c (ASSERT): Likewise.
24392         * tests/test-roundf1.c (ASSERT): Likewise.
24393         * tests/test-roundl.c (ASSERT): Likewise.
24394         * tests/test-signbit.c (ASSERT): Likewise.
24395         * tests/test-sleep.c (ASSERT): Likewise.
24396         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24397         * tests/test-snprintf.c (ASSERT): Likewise.
24398         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24399         * tests/test-stat-time.c (ASSERT): Likewise.
24400         * tests/test-strcasestr.c (ASSERT): Likewise.
24401         * tests/test-strerror.c (ASSERT): Likewise.
24402         * tests/test-striconv.c (ASSERT): Likewise.
24403         * tests/test-striconveh.c (ASSERT): Likewise.
24404         * tests/test-striconveha.c (ASSERT): Likewise.
24405         * tests/test-strsignal.c (ASSERT): Likewise.
24406         * tests/test-strstr.c (ASSERT): Likewise.
24407         * tests/test-strtod.c (ASSERT): Likewise.
24408         * tests/test-trunc1.c (ASSERT): Likewise.
24409         * tests/test-trunc2.c (ASSERT): Likewise.
24410         * tests/test-truncf1.c (ASSERT): Likewise.
24411         * tests/test-truncf2.c (ASSERT): Likewise.
24412         * tests/test-truncl.c (ASSERT): Likewise.
24413         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24414         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24415         * tests/test-vasnprintf.c (ASSERT): Likewise.
24416         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24417         * tests/test-vasprintf.c (ASSERT): Likewise.
24418         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24419         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24420         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24421         * tests/test-vsnprintf.c (ASSERT): Likewise.
24422         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24423         * tests/test-wcwidth.c (ASSERT): Likewise.
24424         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24425         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24426         * tests/test-xvasprintf.c (ASSERT): Likewise.
24427         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24428         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24429         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24430         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24431         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24432         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24433         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24434         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24435         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24436         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24437         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24438         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24439         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24440         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24441         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24442         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24443         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24444         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24445         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24446         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24447         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24448         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24449         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24450         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24451         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24452         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24453         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24454         * tests/unictype/test-combining.c (ASSERT): Likewise.
24455         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24456         * tests/unictype/test-digit.c (ASSERT): Likewise.
24457         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24458         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24459         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24460         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24461         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24462         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24463         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24464         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24465         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24466         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24467         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24468         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24469         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24470         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24471         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24472         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24473         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24474         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24475         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24476         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24477         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24478         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24479         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24480         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24481         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24482         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24483         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24484         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24485         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24486         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24487         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24488         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24489         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24490         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24491         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24492         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24493         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24494         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24495         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24496         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24497         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24498         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24499         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24500         Reported by Eric Blake.
24501
24502 2008-04-11  Bruno Haible  <bruno@clisp.org>
24503
24504         * lib/wchar.in.h: Tweak comment.
24505
24506 2008-04-11  Bruno Haible  <bruno@clisp.org>
24507
24508         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24509         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24510         gl_COMMON.
24511         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24512
24513 2008-04-11  Bruno Haible  <bruno@clisp.org>
24514
24515         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24516
24517 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24518
24519         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24520         of attempting to use non-existing /dev/*random.  Based on patch
24521         from Adam Strzelecki <ono@java.pl> in
24522         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24523
24524 2008-04-08  Bruno Haible  <bruno@clisp.org>
24525
24526         Add tentative support for emx+gcc.
24527         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24528         * lib/fpurge.c (fpurge): Likewise.
24529         * lib/freadable.c (freadable): Likewise.
24530         * lib/freadahead.c (freadahead): Likewise.
24531         * lib/freading.c (freading): Likewise.
24532         * lib/freadptr.c (freadptr): Likewise.
24533         * lib/freadseek.c (freadptrinc): Likewise.
24534         * lib/fseeko.c (rpl_fseeko): Likewise.
24535         * lib/fseterr.c (fseterr): Likewise.
24536         * lib/fwritable.c (fwritable): Likewise.
24537         * lib/fwriting.c (fwriting): Likewise.
24538         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24539
24540 2008-04-09  Eric Blake  <ebb9@byu.net>
24541
24542         Avoid some autoconf warnings.
24543         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24544         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24545         * m4/afs.m4 (gl_AFS): Likewise.
24546         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24547         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24549         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24550         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24551         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24552         (AC_CHECK_DECLS_ONCE): Likewise.
24553         Rename file...
24554         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24555         gnulib-tool requires autoconf 2.59 or better.
24556         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24557
24558 2008-04-08  Eric Blake  <ebb9@byu.net>
24559
24560         Use 'git describe --match' if present (added in git 1.5.5).
24561         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24562         if possible.
24563
24564 2008-04-08  Bruno Haible  <bruno@clisp.org>
24565
24566         Add tentative support for OpenServer.
24567         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24568         _ptr, _cnt.
24569         * lib/fpurge.c (fpurge): Likewise.
24570         * lib/freadable.c (freadable): Likewise.
24571         * lib/freadahead.c (freadahead): Likewise.
24572         * lib/freading.c (freading): Likewise.
24573         * lib/freadptr.c (freadptr): Likewise.
24574         * lib/freadseek.c (freadptrinc): Likewise.
24575         * lib/fseeko.c (rpl_fseeko): Likewise.
24576         * lib/fseterr.c (fseterr): Likewise.
24577         * lib/fwritable.c (fwritable): Likewise.
24578         * lib/fwriting.c (fwriting): Likewise.
24579         Reported by Roger Cornelius <rac@tenzing.org> and
24580         Brian K. White <brian@aljex.com>.
24581
24582 2008-04-06  Jim Meyering  <meyering@redhat.com>
24583
24584         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24585
24586 2008-04-06  Bruno Haible  <bruno@clisp.org>
24587
24588         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24589         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24590         * tests/test-printf-posix.sh: Likewise.
24591         * tests/test-vfprintf-posix.sh: Likewise.
24592         * tests/test-vprintf-posix.sh: Likewise.
24593         * tests/test-xprintf-posix.sh: Likewise.
24594
24595 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24596
24597         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24598         hide error from 'ls', needed on OS/2.
24599         Report by Elbert Pol <elbert.pol@gmail.com>.
24600
24601 2008-04-04  Eric Blake  <ebb9@byu.net>
24602
24603         Make test-fseeko.c failures meaningful.
24604         * tests/test-fseeko.c: Print line number on failure.
24605         * tests/test-fseek.c: Likewise.
24606         Reported by Nelson H. F. Beebe.
24607
24608         Improve strtod bug detection check.
24609         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24610         required for Solaris 10.
24611         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24612
24613 2008-04-04  Bruno Haible  <bruno@clisp.org>
24614
24615         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24616         by m4/setenv.m4.
24617
24618 2008-04-03  Eric Blake  <ebb9@byu.net>
24619
24620         Ensure sane .version contents.
24621         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24622         version string.
24623         * build-aux/git-version-gen: Improve documentation.
24624
24625         Make GNU make output nicer.
24626         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24627         MAKECMDGOALS to enforce message for all command line targets.  Set
24628         srcdir for use in maint.mk.
24629
24630         Another maintainer tweak.
24631         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24632         a target that regenerates version.
24633
24634 2008-04-03  Jim Meyering  <meyering@redhat.com>
24635
24636         vc-list-files: don't cause coreutils "make po-check" failure
24637         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24638
24639 2008-04-03  Eric Blake  <ebb9@byu.net>
24640
24641         Allow VPATH usage of vc-list-files.
24642         * build-aux/vc-list-files (scriptversion): Add timestamp.
24643         (options): Add --help, --version, -C.
24644         (CVS): Support installed cvsu.
24645
24646 2008-04-02  Bruno Haible  <bruno@clisp.org>
24647
24648         Avoid some "statement with no effect" warnings from gcc.
24649         * tests/test-wctype.c (main): Explicitly ignore unused values.
24650         Reported by Jim Meyering.
24651
24652 2008-04-02  Jim Meyering  <meyering@redhat.com>
24653
24654         Avoid some warnings from "gcc -Wshadow".
24655         * tests/test-frexp.c (exp): Define to a different identifier.
24656         * tests/test-frexpl.c (exp): Likewise.
24657
24658 2008-04-03  Jim Meyering  <meyering@redhat.com>
24659
24660         bootstrap: remove dangling *.[ch] symlinks from lib
24661         * build-aux/bootstrap [dangling symlink removal]: Move find's
24662         -depth option to precede all others, to avoid a warning.
24663         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24664
24665 2008-04-02  Bruno Haible  <bruno@clisp.org>
24666
24667         Avoid some warnings from "gcc -Wshadow".
24668         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24669         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24670         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24671         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24672         Reported by Jim Meyering.
24673
24674 2008-04-01  Bruno Haible  <bruno@clisp.org>
24675
24676         Fix test to work on IRIX 6.5 with cc.
24677         * tests/test-math.c (numeric_equal): New function.
24678         (main): Use it.
24679
24680 2008-04-01  Bruno Haible  <bruno@clisp.org>
24681
24682         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24683
24684 2008-04-01  Bruno Haible  <bruno@clisp.org>
24685
24686         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24687         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24688         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24689         (Depends-on): Remove math.
24690
24691         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24692         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24693         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24694         (Depends-on): Remove math.
24695
24696         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24697         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24698         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24699         (Depends-on): Remove math.
24700         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24701         (Depends-on): Remove math.
24702
24703         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24704         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24705         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24706         (Depends-on): Remove math.
24707         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24708         (Depends-on): Remove math.
24709
24710         * tests/test-round1.c: Include nan.h.
24711         (main): Use NaNd instead of NAN.
24712         * modules/round-tests (Files): Add tests/nan.h.
24713
24714         * tests/test-trunc1.c: Include nan.h.
24715         (main): Use NaNd instead of NAN.
24716         * modules/trunc-tests (Files): Add tests/nan.h.
24717
24718         * tests/test-roundf1.c: Include nan.h.
24719         (main): Use NaNf instead of NAN.
24720         * modules/roundf-tests (Files): Add tests/nan.h.
24721
24722         * tests/test-truncf1.c: Include nan.h.
24723         (main): Use NaNf instead of NAN.
24724         * modules/truncf-tests (Files): Add tests/nan.h.
24725
24726         * tests/test-ceilf1.c: Include nan.h.
24727         (main): Use NaNf instead of NAN.
24728         * modules/ceilf-tests (Files): Add tests/nan.h.
24729
24730         * tests/test-floorf1.c: Include nan.h.
24731         (main): Use NaNf instead of NAN.
24732         * modules/floorf-tests (Files): Add tests/nan.h.
24733
24734         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24735         (main): Use NaNf instead of NAN.
24736         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24737
24738         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24739         (main): Use NaNd instead of NAN.
24740         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24741
24742         * tests/test-frexp.c: Include nan.h.
24743         (main): Use NaNd instead of NAN.
24744         * modules/frexp-tests (Files): Add tests/nan.h.
24745
24746         * lib/isnan.c: Don't include <math.h>.
24747         (FUNC): Don't use NAN macro.
24748         * modules/isnand-nolibm (Depends-on): Remove math.
24749         * modules/isnanf-nolibm (Depends-on): Remove math.
24750         * modules/isnanl (Depends-on): Remove math.
24751         * modules/isnanl-nolibm (Depends-on): Remove math.
24752
24753         * tests/nan.h: New file.
24754
24755 2008-04-01  Eric Blake  <ebb9@byu.net>
24756
24757         Fix typos.
24758         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24759         values to be the right type.
24760
24761         For now, cater to gnulib strtod inaccuracies.
24762         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24763         fractional results.  While not as nice from a QoI perspective, it
24764         is a quicker patch than correctly implementing decimal to binary
24765         rounding.
24766
24767 2008-03-31  Eric Blake  <ebb9@byu.net>
24768
24769         Guarantee a definition of NAN.
24770         * lib/math.in.h (NAN): Define if missing.
24771         * tests/test-math.c (main): Test it.
24772         * doc/posix-headers/math.texi (math.h): Document this.
24773         * lib/isnan.c (rpl_isnand): Use it.
24774         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24775         * tests/test-floorf1.c (NaN): Likewise.
24776         * tests/test-frexp.c (NaN): Likewise.
24777         * tests/test-isnand.c (NaN): Likewise.
24778         * tests/test-isnanf.c (NaN): Likewise.
24779         * tests/test-round1.c (NaN): Likewise.
24780         * tests/test-roundf1.c (NaN): Likewise.
24781         * tests/test-snprintf-posix.h (NaN): Likewise.
24782         * tests/test-sprintf-posix.h (NaN): Likewise.
24783         * tests/test-trunc1.c (NaN): Likewise.
24784         * tests/test-truncf1.c (NaN): Likewise.
24785         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24786         * tests/test-vasprintf-posix.c (NaN): Likewise.
24787         * modules/isnand-nolibm (Depends-on): Add math.
24788         * modules/isnanf-nolibm (Depends-on): Likewise.
24789         * modules/isnanl (Depends-on): Likewise.
24790         * modules/isnanl-nolibm (Depends-on): Likewise.
24791         * modules/snprintf-posix-tests (Depends-on): Likewise.
24792         * modules/sprintf-posix-tests (Depends-on): Likewise.
24793         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24794         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24795         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24796         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24797
24798 2008-03-31  Bruno Haible  <bruno@clisp.org>
24799
24800         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24801         * doc/posix-functions/strtod.texi: Likewise.
24802
24803 2008-03-31  Bruno Haible  <bruno@clisp.org>
24804
24805         * tests/test-strtod.c (main): Don't use C99 syntax.
24806
24807 2008-03-31  Bruno Haible  <bruno@clisp.org>
24808
24809         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24810         Reported by Eric Blake.
24811
24812 2008-03-31  Jim Meyering  <meyering@redhat.com>
24813
24814         Don't compare actual signbit return values.
24815         * tests/test-strtod.c (main): Rather, compare only their
24816         zero/non-zero nature.
24817
24818 2008-03-31  Eric Blake  <ebb9@byu.net>
24819
24820         More strtod documentation.
24821         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24822         failures as distinct bugs.
24823
24824 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24825
24826         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24827         Problem reported by Erik Benada in
24828         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24829
24830 2008-03-30  Bruno Haible  <bruno@clisp.org>
24831
24832         * tests/test-strtod.c: Add comments about which assertion fails on which
24833         platform.
24834         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24835
24836 2008-03-30  Eric Blake  <ebb9@byu.net>
24837
24838         Test signbit behavior on zeros.
24839         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24840         (test_signbitd, test_signbitl): Likewise.
24841
24842         More strtod touchups.
24843         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24844         sign of negative underflow, for now.  Use .5, not .1.
24845         * doc/posix-functions/strtod.texi (strtod): Mention these
24846         limitations.
24847         Reported by Jim Meyering.
24848
24849 2008-03-30  Bruno Haible  <bruno@clisp.org>
24850
24851         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24852         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24853
24854 2008-03-30  Bruno Haible  <bruno@clisp.org>
24855
24856         Avoid failure when attempting to return empty iconv results on some
24857         platforms.
24858         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24859         allocation, don't report ENOMEM when the resulting string is empty.
24860
24861 2008-03-30  Bruno Haible  <bruno@clisp.org>
24862
24863         Fix buffer overrun.
24864         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24865         Don't consider the width for tmp_length. Check count against tmp_length
24866         before doing the padding. Ensure enough allocation during padding.
24867
24868 2008-03-30  Eric Blake  <ebb9@byu.net>
24869
24870         strtod touchups.
24871         * lib/strtod.c (strtod): Avoid compiler warnings.
24872         Reported by Jim Meyering.
24873
24874 2008-03-30  Bruno Haible  <bruno@clisp.org>
24875
24876         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24877         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24878         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24879         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24880         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24881         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24882         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24883         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24884
24885         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24886         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24887         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24888         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24889         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24890         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24891         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24892         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24893
24894         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24895         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24896         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24897         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24898         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24899         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24900         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24901         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24902
24903         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24904         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24905
24906         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24907         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24908
24909         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24910         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24911
24912         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24914         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24915
24916         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24918         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24919
24920         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24922         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24923
24924         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24926         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24927
24928         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24929         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24931         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24932         (Depends-on): Add EOVERFLOW.
24933         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24934         (Depends-on): Add EOVERFLOW.
24935         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24936         (Depends-on): Add EOVERFLOW.
24937         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24938         (Depends-on): Add EOVERFLOW.
24939         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24940         (Depends-on): Add EOVERFLOW.
24941         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24942         (Depends-on): Add EOVERFLOW.
24943         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24944         (Depends-on): Add EOVERFLOW.
24945         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24946         (Depends-on): Add EOVERFLOW.
24947
24948         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24950         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24951
24952         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24954         * modules/snprintf (Depends-on): Add EOVERFLOW.
24955
24956         * lib/poll.c (EOVERFLOW): Remove fallback.
24957         * modules/poll (Depends-on): Add EOVERFLOW.
24958
24959         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24960         * modules/getugroups (Depends-on): Add EOVERFLOW.
24961
24962         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24963         * modules/getdelim (Depends-on): Add EOVERFLOW.
24964
24965         * lib/ftell.c (EOVERFLOW): Remove fallback.
24966         * modules/ftell (Depends-on): Add EOVERFLOW.
24967
24968         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24970         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24971
24972         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24973
24974         * modules/EOVERFLOW-tests: New file.
24975         * tests/test-EOVERFLOW.c: New file.
24976
24977         * modules/EOVERFLOW: New file.
24978         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24979
24980 2008-03-30  Bruno Haible  <bruno@clisp.org>
24981
24982         Fix bug introduced on 2007-06-10.
24983         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24984         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24985
24986 2008-03-30  Bruno Haible  <bruno@clisp.org>
24987
24988         Improve freadseek's efficiency after ungetc.
24989         * lib/freadseek.c: Include freadahead.h.
24990         (freadptrinc): New function, extracted from freadseek.
24991         (freadseek): Use it in a loop. Use freadahead to determine the number
24992         of loop iterations.
24993         * modules/freadseek (Depends-on): Add freadahead.
24994         (configure.ac): Require AC_C_INLINE.
24995
24996 2008-03-30  Bruno Haible  <bruno@clisp.org>
24997
24998         * lib/freadseek.c (freadseek): Don't ignore the return value of
24999         freadptr.
25000
25001 2008-03-29  Eric Blake  <ebb9@byu.net>
25002
25003         Add hex float support.
25004         * modules/strtod (Depends-on): Add c-ctype.
25005         (Link): Mention POW_LIB.
25006         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25007         whitespace between 'e' and exponent.
25008         * tests/test-strtod.c (main): Enable hex float tests.
25009         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25010         now provides.
25011
25012         Document various strtod bugs, with some fixes.
25013         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25014         "-0x", "inf", "nan", and hex constants.
25015         * doc/posix-functions/atof.texi (atof): Likewise.
25016         * modules/stdlib (Makefile.am): Support strtod.
25017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25018         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25019         detect additional strtod bugs.
25020         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25021         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25022         bool where appropriate.  Parse 'inf' and 'nan'.
25023         * tests/test-strtod.c: New file.
25024         * modules/strtod (Depends-on): Add stdbool, stdlib.
25025         (configure.ac): Turn on module indicator.
25026         * modules/strtod-tests: New module.
25027
25028 2008-03-29  Eric Blake  <ebb9@byu.net>
25029
25030         Fix ftell on mingw.
25031         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25032         * modules/ftell-tests (Depends-on): Add binary-io.
25033         * modules/ftello-tests (Depends-on): Likewise.
25034         * tests/test-ftell.c (main): Enhance test to cover behavior after
25035         ungetc.  Enforce binary mode.
25036         * tests/test-ftello.c (main): Likewise.
25037
25038         Pass test-freadseek on cygwin.
25039         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25040         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25041         ungetc buffer.
25042
25043         * tests/test-fflush2.c (main): Fix typo.
25044
25045 2008-03-29  Bruno Haible  <bruno@clisp.org>
25046
25047         * tests/test-fflush2.c (main): Temporarily disable the contents of
25048         this test.
25049         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25050         Reported by Eric Blake.
25051
25052 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25053
25054         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25055         (GC_SHA224_DIGEST_SIZE): Add.
25056
25057         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25058         (gc_hash_digest_length): Likewise.
25059         (gc_hash_buffer): Likewise.
25060
25061 2008-03-25  Bruno Haible  <bruno@clisp.org>
25062
25063         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25064         detail which gettext release to use.
25065         Reported by Simon Josefsson.
25066
25067 2008-03-26  Jim Meyering  <meyering@redhat.com>
25068
25069         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25070         * modules/gnumakefile (clean-GNUmakefile): Also, use
25071         test ... && ... || : syntax rather than if-then ... fi.
25072
25073         gnumakefile: Don't double-quote-expand $(VPATH) value.
25074         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25075
25076 2008-03-24  Eric Blake  <ebb9@byu.net>
25077
25078         Alter GNUmakefile to install into top directory.
25079         * modules/maintainer-makefile: Split, and add dependency...
25080         * modules/gnumakefile: to this new module.
25081         * build-aux/GNUmakefile: Move...
25082         * top/GNUmakefile: ...here.
25083         * build-aux/maint.mk: Move...
25084         * top/maint.mk: ...here.
25085         * MODULES.html.sh (Support for maintaining...): Document new
25086         module.
25087
25088 2008-03-23  Bruno Haible  <bruno@clisp.org>
25089
25090         * gnulib-tool: New options --vc-files, --no-vc-files.
25091         (func_usage): Document them.
25092         (vc_files): New variable.
25093         (func_import): Consider vc_files.
25094         (func_create_testdir): Set vc_files to empty.
25095         Suggested by Jim Meyering and Karl Berry.
25096
25097 2008-03-23  Bruno Haible  <bruno@clisp.org>
25098
25099         Fix regex compilation error on HP-UX 11.
25100         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25101         * modules/regex (Files): Add m4/mbstate_t.m4.
25102         Reported by Ton Voon <ton.voon@altinity.com>.
25103
25104 2008-03-23  Bruno Haible  <bruno@clisp.org>
25105
25106         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25107
25108 2008-03-23  Eric Blake  <ebb9@byu.net>
25109             Bruno Haible  <bruno@clisp.org>
25110
25111         Install files from top/ in the destination directory.
25112         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25113         augmentation also for the files from top/.
25114         (func_import, func_create_testdir): Rewrite file names:
25115         top/filename -> filename.
25116
25117 2008-03-23  Bruno Haible  <bruno@clisp.org>
25118
25119         Tweak "gnulib --version" output.
25120         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25121
25122 2008-03-23  Bruno Haible  <bruno@clisp.org>
25123
25124         Tweak "gnulib --version" output.
25125         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25126         rather than contents of ChangeLog, when possible.
25127
25128 2008-03-21  Eric Blake  <ebb9@byu.net>
25129
25130         More --version tweaks.
25131         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25132         date of last ChangeLog entry.
25133
25134 2008-03-21  Jim Meyering  <meyering@redhat.com>
25135
25136         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25137
25138 2008-03-20  Eric Blake  <ebb9@byu.net>
25139
25140         VPATH fix.
25141         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25142
25143 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25144
25145         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25146         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25147
25148 2008-03-20  Eric Blake  <ebb9@byu.net>
25149
25150         Sync GNUmakefile with coreutils.
25151         * build-aux/GNUmakefile (have-Makefile): Rename...
25152         (_have-Makefile): ...to this, for namespace consideration.
25153         (GNUmakefile.cfg): Include, if present.
25154         (_autoreconf): Define a default.
25155         (_is-dist-target): New rule for rebuilds to pick up intra-release
25156         version.
25157         (maint-cfg.mk): Rename...
25158         (cfg.mk): ...to this.
25159
25160 2008-03-18  Jim Meyering  <meyering@redhat.com>
25161
25162         New script and module: mktempd
25163         * MODULES.html.sh (maint+release support): Add mktempd.
25164         * build-aux/mktempd: New file.
25165         * modules/mktempd: New file.
25166
25167 2008-03-15  Jim Meyering  <meyering@redhat.com>
25168
25169         Undo last change.
25170         * lib/sha1.c, lib/md5.c: 63 != ~63.
25171         Reported by Andreas Schwab.
25172
25173         sha1.c, md5.c: Hoist a redundant expression.
25174         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25175         "ctx->buflen" only once, before calling *_process_block.
25176         * lib/md5.c (md5_process_bytes): Likewise.
25177
25178 2008-03-14  Eric Blake  <ebb9@byu.net>
25179
25180         Bump copyright year in files generated by gnulib-tool.
25181         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25182         gnulib-tool, rather than hard-coding it.
25183
25184         Fix 'gnulib-tool --version' output to work with git.
25185         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25186         (startup): ...here.
25187         (func_version): Use it to invoke git-version-gen, rather than
25188         relying on CVS keyword expansion.  Modernize wording.
25189         (cvsdatestamp, last_checkin_date, version): Kill unused
25190         variables.
25191
25192 2008-03-12  Jim Meyering  <meyering@redhat.com>
25193
25194         Recognize optional cast of the argument to free.
25195         * build-aux/useless-if-before-free: Update regexps.
25196
25197         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25198
25199 2008-03-11  Bruno Haible  <bruno@clisp.org>
25200
25201         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25202         by a single package.
25203         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25204         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25205         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25206         Reported by Sam Steingold <sds@gnu.org>.
25207
25208 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25209
25210         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25211         repositories.
25212
25213 2008-03-11  Bruno Haible  <bruno@clisp.org>
25214
25215         Avoid conflicts between local macro definitions.
25216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25217         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25218
25219 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25220             Bruno Haible  <bruno@clisp.org>
25221
25222         Make va_copy work with some version of xlc on AIX 5.1.
25223         * lib/stdarg.in.h: New file.
25224         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25225         On AIX, use a <stdarg.h> file substitute.
25226         * modules/stdarg (Files): Add lib/stdarg.in.h.
25227         (Depends-on): Add include_next.
25228         (Makefile.am): Build a stdarg.h substitute if requested.
25229         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25230
25231 2008-03-10  Bruno Haible  <bruno@clisp.org>
25232
25233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25235         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25236
25237 2008-03-10  Bruno Haible  <bruno@clisp.org>
25238
25239         * modules/stdlib (Depends-on): Add include_next, remove
25240         absolute-header.
25241
25242 2008-03-09  Bruno Haible  <bruno@clisp.org>
25243
25244         * lib/freadahead.h (freadahead): Document more precisely.
25245         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25246         the sum of both buffer sizes.
25247         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25248         * NEWS: Document the change.
25249
25250 2008-03-09  Bruno Haible  <bruno@clisp.org>
25251
25252         Extend freadptr to return also the buffer size.
25253         * lib/freadptr.h (freadptr): Add sizep argument.
25254         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25255         (freadptr): Add sizep argument. Determine buffer size like freadahead
25256         does.
25257         * tests/test-freadptr.c: Don't include freadahead.h.
25258         (main): Adapt for new calling convention of freadptr.
25259         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25260         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25261         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25262         tests/test-freadptr2.sh.
25263         (Depends): Remove freadahead.
25264         (TESTS): Add test-freadptr2.sh.
25265         (check_PROGRAMS): Add test-freadptr2.
25266
25267 2008-03-09  Bruno Haible  <bruno@clisp.org>
25268
25269         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25270         Report and solution by Simon Josefsson.
25271
25272 2008-03-06  Bruno Haible  <bruno@clisp.org>
25273
25274         Make fflush after ungetc work on BSD platforms.
25275         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25276         * tests/test-fflush2.c: New file.
25277         * tests/test-fflush2.sh: New file.
25278         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25279         tests/test-fflush2.c.
25280         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25281         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25282
25283 2008-03-06  Eric Blake  <ebb9@byu.net>
25284
25285         Likewise for ftello.
25286         * modules/ftello (Dependencies): Add extensions.
25287         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25288
25289 2008-03-06  Bruno Haible  <bruno@clisp.org>
25290
25291         * modules/fseeko (Dependencies): Add extensions.
25292         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25293         Needed on glibc systems.
25294
25295 2008-03-06  Bruno Haible  <bruno@clisp.org>
25296
25297         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25298         email address.
25299         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25300
25301 2008-03-06  Bruno Haible  <bruno@clisp.org>
25302
25303         * users.txt: Add libgnupdf.
25304
25305 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25306
25307         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25308         (Header File Substitutes, Function Substitutes,
25309         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25310         (Build robot for gnulib): Fix typo.
25311
25312 2008-03-06  Bruno Haible  <bruno@clisp.org>
25313
25314         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25315         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25316
25317 2008-03-06  Bruno Haible  <bruno@clisp.org>
25318
25319         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25320         * doc/gnulib.texi: Include it.
25321
25322 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25323
25324         * modules/func (License): Change license to unlimited; there was
25325         no LGPL parts in the module anyway.
25326
25327 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25328
25329         * modules/__func__: Renamed to modules/func.
25330         * modules/__func__-tests: Renamed to modules/func-tests.
25331         * tests/test-__func__.c: Renamed to tests/test-func.c.
25332         * m4/__func__.m4: Renamed to m4/func.m4.
25333         * doc/gnulib.texi (__func__): Section renamed to func.
25334         Suggested by Eric Blake <ebb9@byu.net>.
25335
25336 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25337
25338         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25339         about __func__.  Make example self-contained.  Suggested by Eric
25340         Blake <ebb9@byu.net>.
25341
25342         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25343         Suggested by Eric Blake <ebb9@byu.net>.
25344
25345 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25346
25347         * modules/__func__: New file.
25348         * modules/__func__-tests: New file.
25349         * tests/test-__func__.c: New file.
25350         * m4/__func__.m4: New file.
25351         * doc/gnulib.texi (__func__): Document __func__ module.
25352
25353 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25354
25355         * modules/byteswap (License): Re-license as LGPLv2+.
25356
25357 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25358
25359         * doc/Makefile: Add pdf target.
25360
25361 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25362
25363         * modules/inline (License): Use 'unlimited', since there are only
25364         *.m4 files in this module.
25365
25366 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25367             Bruno Haible  <bruno@clisp.org>
25368
25369         Add support for HP C 7.1 on OpenVMS 8.3.
25370         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25371
25372 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25373
25374         Update VMS specifics.
25375         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25376
25377 2008-03-02  Jim Meyering  <meyering@redhat.com>
25378
25379         Remove the last dependency on the "free" module.
25380         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25381         Reported by Bob Proulx.
25382
25383         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25384
25385         Remove useless "if" tests before free.  Deprecate "free" module.
25386         * doc/posix-functions/free.texi: Mention that this
25387         module is no longer useful.
25388         * modules/free (Notice): Say this module is obsolete.
25389         * modules/readutmp (Depends-on): Remove free.
25390         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25391         * lib/putenv.c (putenv): Likewise.
25392         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25393         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25394         * tests/test-c-strcasestr.c (main): Likewise.
25395         * tests/test-c-strstr.c (main): Likewise.
25396         * tests/test-mbscasestr1.c (main): Likewise.
25397         * tests/test-mbscasestr2.c (main): Likewise.
25398         * tests/test-mbsstr1.c (main): Likewise.
25399         * tests/test-mbsstr2.c (main): Likewise.
25400         * tests/test-memmem.c (main): Likewise.
25401         * tests/test-strcasestr.c (main): Likewise.
25402         * tests/test-striconv.c (main): Likewise.
25403         * tests/test-striconveh.c (main): Likewise.
25404         * tests/test-striconveha.c (main): Likewise.
25405         * tests/test-strstr.c (main): Likewise.
25406
25407         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25408
25409         bootstrap: sync from coreutils again
25410         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25411
25412 2008-03-01  Jim Meyering  <meyering@redhat.com>
25413
25414         bootstrap: sync from coreutils
25415         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25416         also when the target doesn't exist.
25417
25418 2008-03-01  Eric Blake  <ebb9@byu.net>
25419
25420         Fix bugs in last patch.
25421         * lib/memchr2.c (memchr2): Fix typo.
25422         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25423         extension.
25424         Reported by Bruce Korb.
25425
25426         New module 'memchr2'.
25427         * modules/memchr2: New file.
25428         * modules/memchr2-tests: Likewise.
25429         * lib/memchr2.h: Likewise.
25430         * lib/memchr2.c: Likewise, based on memchr.c.
25431         * tests/test-memchr2.c: New test.
25432         * MODULES.html.sh (String handling): Add memchr2.
25433
25434 2008-02-29  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/freadseek-tests: New file.
25437         * tests/test-freadseek.sh: New file.
25438         * tests/test-freadseek.c: New file.
25439
25440         New module 'freadseek'.
25441         * modules/freadseek: New file.
25442         * lib/freadseek.h: New file.
25443         * lib/freadseek.c: New file.
25444         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25445
25446 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25447
25448         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25449         wydawca.
25450
25451         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25452         program_invocation_name and program_invocation_short_name are
25453         present.
25454
25455 2008-02-28  Bruno Haible  <bruno@clisp.org>
25456
25457         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25458         * tests/test-freadptr.sh: Also test non-seekable stdin.
25459
25460 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25461
25462         * build-aux/bootstrap (source_base, m4_base)
25463         (doc_base, tests_base): New variables.
25464         (gnulib_tool_options): Do not hardcode base directories, use
25465         the above variables instead.
25466
25467 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25468
25469         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25470
25471 2008-02-28  Bruno Haible  <bruno@clisp.org>
25472
25473         * modules/freadptr-tests: New file.
25474         * tests/test-freadptr.sh: New file.
25475         * tests/test-freadptr.c: New file.
25476
25477         New module 'freadptr'.
25478         * modules/freadptr: New file.
25479         * lib/freadptr.h: New file.
25480         * lib/freadptr.c: New file.
25481         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25482
25483 2008-02-26  Karl Berry  <karl@freefriends.org>
25484
25485         Sync from Libtool:
25486         * libltdl/argz.c (argz_add, argz_count): New functions.
25487         * libltdl/argz.in.h: Declare them.
25488         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25489
25490 2008-02-22  Bruno Haible  <bruno@clisp.org>
25491
25492         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25493         is a pointer type.  Needed for HP-UX 10.
25494         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25495         * doc/posix-functions/gmtime_r.texi: Likewise.
25496         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25497
25498 2008-02-24  Bruno Haible  <bruno@clisp.org>
25499
25500         * modules/environ-tests: New file.
25501         * tests/test-environ.c: New file.
25502
25503         New module 'environ'.
25504         * modules/environ: New file.
25505         * lib/unistd.in.h (environ): New declaration.
25506         * m4/environ.m4: New file.
25507         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25508         after use.
25509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25510         HAVE_DECL_ENVIRON.
25511         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25512         HAVE_DECL_ENVIRON.
25513         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25514         wrong claim that 'environ' is missing on some systems.
25515         * modules/execute (Depends-on): Add environ.
25516         * lib/execute.c (environ): Remove fallback declaration.
25517         * modules/pipe (Depends-on): Add environ.
25518         * lib/pipe.c (environ): Remove fallback declaration.
25519         * modules/setenv (Depends-on): Add environ.
25520         * lib/setenv.c (environ): Remove fallback declaration.
25521         * modules/unsetenv (Depends-on): Add environ.
25522         * lib/unsetenv.c (environ): Remove fallback declaration.
25523         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25524         m4/environ.m4.
25525         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25526         (gl_PREREQ_UNSETENV): Likewise.
25527
25528 2008-02-24  Bruno Haible  <bruno@clisp.org>
25529
25530         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25531
25532 2008-02-20  Bob Proulx  <bob@proulx.com>
25533
25534         Enable use of older two part flavor 'git describe'.
25535         * build-aux/git-version-gen: If using the older two part flavor of
25536         git version then recreate the third part now present in the
25537         newer three part flavor of git describe.
25538
25539 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25540
25541         * lib/fts.c (fts_build): Typo correction to comment.
25542
25543 2008-02-17  Bruno Haible  <bruno@clisp.org>
25544
25545         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25546         generating no-op conflicts.
25547
25548 2008-02-17  Bruno Haible  <bruno@clisp.org>
25549
25550         Speed up by 10%.
25551         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25552         result_entries, rather than an index-based loop.
25553
25554 2008-02-17  Bruno Haible  <bruno@clisp.org>
25555
25556         Speed up by 25%.
25557         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25558         'hashcode_cached'.
25559         (entry_create): New function.
25560         (entry_hashcode): Use the cached hashcode if possible.
25561         (read_changelog_file, try_split_merged_entry): Use entry_create.
25562
25563 2008-02-17  Bruno Haible  <bruno@clisp.org>
25564
25565         Speed up from O(n^2) to O(n) for long ChangeLog files.
25566         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25567         (read_changelog_file): Change implementation of entries_reversed list
25568         to rbtreehash.
25569         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25570
25571 2008-02-17  Bruno Haible  <bruno@clisp.org>
25572
25573         New option --split-merged-entry.
25574         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25575         (find_paragraph_end, try_split_merged_entry): New functions.
25576         (long_options): Add option --split-merged-entry.
25577         (usage): Document option --split-merged-entry.
25578         (main): Implement option --split-merged-entry.
25579         Reported by Eric Blake.
25580
25581 2008-02-17  Bruno Haible  <bruno@clisp.org>
25582
25583         * lib/git-merge-changelog.c: Include c-strstr.h.
25584         (main): Support the "git pull --rebase" situation.
25585         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25586         Reported by Eric Blake.
25587
25588 2008-02-16  Eric Blake  <ebb9@byu.net>
25589
25590         Avoid doubling \ in common case of "c-maybe" quoting style.
25591         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25592         eliding outer quotes.
25593         * lib/quotearg.h: Document this.
25594         * tests/test-quotearg.c (result_strings, inputs, results_g)
25595         (flag_results, locale_results): Test it by adding a new string to
25596         each test group.
25597         (compare_strings): Test new string.
25598
25599 2008-02-13  Eric Blake  <ebb9@byu.net>
25600
25601         Avoid trigraph quoting in default output.
25602         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25603         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25604         unless explicitly requested.
25605         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25606
25607 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25608
25609         Don't rely on signed integer overflowing to negative value.
25610         * lib/getugroups.c (getugroups): Include <limits.h>.
25611         Instead, compare against INT_MAX, and increment only if the test passes.
25612
25613 2008-02-13  Jim Meyering  <meyering@redhat.com>
25614         and Eric Blake  <ebb9@byu.net>
25615
25616         Avoid shadowing warning and compile errors on Linux.
25617         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25618         forwarding macros on Linux.
25619         (dcgettext): Define a stub, for Linux.
25620         (results_g, main): Avoid warnings.
25621
25622 2008-02-12  Eric Blake  <ebb9@byu.net>
25623
25624         Silence warning in last patch.
25625         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25626
25627         Quotearg part 4: add tests, fix c-maybe colon quoting.
25628         * lib/quotearg.h: Improve documentation.
25629         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25630         escapes when adding outer quotes.  When quoting trigraphs, use
25631         valid C notation.  When quoting NUL, omit extra characters if next
25632         character is not digit.  Alter prototype.
25633         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25634         callers.
25635         * modules/quotearg-tests: New module.
25636         * tests/test-quotearg.c: New test.
25637
25638 2008-02-07  Eric Blake  <ebb9@byu.net>
25639
25640         Quotearg part 3: add flag to control outer quote elision.
25641         * lib/quotearg.h (c_maybe_quoting_style): New style.
25642         (enum quoting_flags): Better documentation of flags.
25643         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25644         c-maybe style.
25645         (quotearg_buffer_restyled): Handle new flag to elide outer
25646         quotes.
25647
25648         Quotearg part 2: add flag that can control NUL elision.
25649         * lib/quotearg.h (set_quoting_flags): New prototype.
25650         * lib/quotearg.c (struct quoting_options): Add flag field.
25651         (set_quoting_flags): New function.
25652         (quotearg_buffer_restyled): Add flags parameter.
25653         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25654         (quotearg_n_options): Set the flag, since length cannot be
25655         returned.
25656         (quoting_options_from_style): Default flags correctly.
25657
25658         Quotearg part 1: more wrappers, restore quotearg_char state.
25659         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25660         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25661         (quotearg_colon_mem): New wrappers.
25662         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25663         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25664         functions.
25665         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25666         (quotearg_colon_mem): New functions.
25667
25668 2008-02-11  Bruno Haible  <bruno@clisp.org>
25669
25670         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25671         library in the current directory: it does not work with parallel make.
25672         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25673
25674 2008-02-11  Bruno Haible  <bruno@clisp.org>
25675
25676         * .gitattributes: New file.
25677
25678 2008-02-11  Jim Meyering  <meyering@redhat.com>
25679
25680         useless-if-before-free: Fix reversed exit values.
25681         * build-aux/useless-if-before-free: Use correct values
25682         for EXIT_MATCH and EXIT_NO_MATCH.
25683
25684         * build-aux/useless-if-before-free: Close stdout carefully.
25685
25686 2008-02-10  Bruno Haible  <bruno@clisp.org>
25687
25688         New module 'git-merge-changelog'.
25689         * modules/git-merge-changelog: New file.
25690         * lib/git-merge-changelog.c: New file.
25691
25692 2008-02-10  Jim Meyering  <meyering@redhat.com>
25693
25694         useless-if-before-free: New option: --list (-l).
25695
25696         useless-if-before-free: Don't exit immediately upon open failure.
25697         * build-aux/useless-if-before-free: Exit 2 for errors.
25698         Upon failure to open a file, don't exit immediately.
25699         Rather, just warn and continue with any remaining files.
25700
25701 2008-02-10  Bruno Haible  <bruno@clisp.org>
25702
25703         New abstract list operation 'node_set_value'.
25704         * lib/gl_list.h (gl_list_node_set_value): New function.
25705         (struct gl_list_implementation): New field node_set_value.
25706         * lib/gl_list.c (gl_list_node_set_value): New function.
25707         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25708         (gl_array_list_implementation): Update.
25709         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25710         (gl_carray_list_implementation): Update.
25711         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25712         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25713         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25714         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25715         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25717         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25718         Update.
25719         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25720         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25721         (gl_sublist_list_implementation): Update.
25722
25723 2008-02-10  Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25726         Needed when ELEMENT is #defined to 'some_type *'.
25727
25728 2008-02-10  Jim Meyering  <meyering@redhat.com>
25729
25730         New script and module: useless-if-before-free
25731         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25732         * build-aux/useless-if-before-free: New file.
25733         * modules/useless-if-before-free: New file.
25734
25735         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25736
25737         xstrtol_error: Fix typo.
25738         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25739         s/exit_failure/exit_status/.
25740
25741 2008-02-09  Jim Meyering  <meyering@redhat.com>
25742
25743         New script and module: gitlog-to-changelog
25744         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25745         * modules/gitlog-to-changelog: New file.
25746         * build-aux/gitlog-to-changelog: New file.
25747
25748 2008-02-08  Jim Meyering  <meyering@redhat.com>
25749
25750         Avoid two "parameter unused" warnings.
25751         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25752         Mark "st" as used.
25753
25754         Use "git COMMAND", not "git-COMMAND".
25755         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25756         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25757         * build-aux/git-version-gen: Use "git status", not "git-status".
25758
25759 2008-02-07  Bruno Haible  <bruno@clisp.org>
25760
25761         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25762         Avoids a crash on Windows Vista.
25763         Reported by Adam Strzelecki <ono@java.pl> via
25764         Simon Josefsson <simon@josefsson.org>.
25765
25766 2008-02-06  Bruno Haible  <bruno@clisp.org>
25767
25768         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25769         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25770         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25772         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25774         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25775         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25783         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25784         left-adjust flag.
25785         * tests/test-snprintf-posix.h (test_function): Likewise.
25786         * tests/test-sprintf-posix.h (test_function): Likewise.
25787         * tests/test-vasprintf-posix.c (test_function): Likewise.
25788         * doc/posix-functions/fprintf.texi: Update.
25789         * doc/posix-functions/printf.texi: Update.
25790         * doc/posix-functions/snprintf.texi: Update.
25791         * doc/posix-functions/sprintf.texi: Update.
25792         * doc/posix-functions/vfprintf.texi: Update.
25793         * doc/posix-functions/vprintf.texi: Update.
25794         * doc/posix-functions/vsnprintf.texi: Update.
25795         * doc/posix-functions/vsprintf.texi: Update.
25796         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25797
25798 2008-02-06  Bruno Haible  <bruno@clisp.org>
25799
25800         Fix bug introduced on 2008-01-26.
25801         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25802
25803 2008-02-06  Bruno Haible  <bruno@clisp.org>
25804
25805         Fix bug introduced on 2007-06-10.
25806         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25807         !NEED_PRINTF_FLAG_ZERO.
25808
25809 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25810
25811         getloadavg: use libperfstat on AIX5
25812         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25813
25814 2008-02-03  Bruno Haible  <bruno@clisp.org>
25815
25816         * lib/diffseq.h: Add comments about required #includes.
25817         Reported by Michael Biggs <gnulib@doubleplum.net>.
25818
25819 2008-02-01  Bruno Haible  <bruno@clisp.org>
25820
25821         * users.txt: Add gnuit.
25822
25823 2008-01-31  Bruno Haible  <bruno@clisp.org>
25824
25825         * lib/md4.c (set_uint32): Mark as inline.
25826         * lib/md5.c (set_uint32): Likewise.
25827         * lib/sha1.c (set_uint32): Likewise.
25828         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25829         * m4/md5.m4 (gl_MD5): Likewise.
25830         * m4/sha1.m4 (gl_SHA1): Likewise.
25831
25832 2008-01-31  Jim Meyering  <meyering@redhat.com>
25833
25834         Use "sizeof VAR", rather than a literal "4".
25835         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25836         * lib/md4.c (md4_read_ctx): Likewise.
25837         * lib/sha1.c (sha1_read_ctx): Likewise.
25838
25839 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25840
25841         * tests/test-sha1.c: New file, based on test-md5.c.
25842
25843         * modules/crypto/sha1-tests: New file.
25844
25845 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25846
25847         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25848
25849 2008-01-31  Jim Meyering  <meyering@redhat.com>
25850
25851         Prefer "sizeof v" over the equivalent "4".
25852         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25853         * lib/md5.c (set_uint32): Likewise.
25854         * lib/sha1.c (set_uint32): Likewise.
25855
25856 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25857
25858         * lib/sha1.c (set_uint32): Mark function as static.
25859
25860 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25861
25862         md2: clarify comments to say that alignment is not required.
25863         * lib/md2.h: Remove warning about alignment in comment.
25864         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25865         never been required.
25866
25867 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25868
25869         md4: adapt alignment constraint fix from sha1.
25870         * lib/md4.c (set_uint32): New function, from sha1.c
25871         (md4_read_ctx): Use it.
25872         (md4_finish_ctx): Doc fix.
25873         * lib/md4.h: Doc fix.
25874
25875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25876
25877         md5: adapt alignment constraint fix from sha1.
25878         * lib/md5.c (set_uint32): New function, from sha1.c
25879         (md5_read_ctx): Use it.
25880         (md5_finish_ctx): Doc fix.
25881         * lib/md5.h: Doc fix.
25882
25883 2008-01-30  Peter Palfrader  <weasel@debian.org>
25884
25885         sha1: remove the result buffer alignment constraint
25886         * lib/sha1.c (set_uint32): New function.
25887         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25888         constraint.
25889         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25890         * lib/sha1.h: Likewise.
25891
25892 2008-01-30  Andreas Schwab  <schwab@suse.de>
25893             Bruno Haible  <bruno@clisp.org>
25894
25895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25896         correct definition of LDBL_MIN_EXP.
25897
25898 2008-01-30  Karl Berry  <karl@gnu.org>
25899
25900         * config/srclist-update: try to preserve x bit on updates.
25901         * config/srclistvars.sh: update for karl.
25902
25903 2008-01-29  Jim Meyering  <meyering@redhat.com>
25904
25905         vasnprintf.c: Avoid warning about unused label
25906         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25907         "overflow" label definition and associated code with the
25908         same cpp condition that guards the sole use of that label.
25909
25910 2008-01-26  Bruno Haible  <bruno@clisp.org>
25911
25912         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25913         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25914         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25915         * lib/isnanl-nolibm.h (isnanl): Likewise.
25916         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25917
25918 2008-01-26  Bruno Haible  <bruno@clisp.org>
25919
25920         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25921         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25922
25923 2008-01-26  Bruno Haible  <bruno@clisp.org>
25924
25925         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25926         GCC >= 4.0 built-in.
25927         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25928
25929 2008-01-26  Bruno Haible  <bruno@clisp.org>
25930
25931         Rename isnan, applicable to 'double' only, to isnand.
25932         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25933         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25934         (configure.ac): Update.
25935         (Include): Replace "isnan.h" with "isnand.h".
25936         * m4/isnand.m4: Renamed from m4/isnan.m4.
25937         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25938         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25939         instead of isnan.c.
25940         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25941         instead of HAVE_ISNAN_IN_LIBC.
25942         (isnand): Renamed from isnan.
25943         * lib/isnand.c: New file.
25944         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25945         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25946         (Makefile.am): Update.
25947         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25948         Include isnand.h instead of isnan.h.
25949         (main): Test isnand instead of isnan.
25950         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25951         isnan-nolibm.
25952         * modules/frexp (Depends-on): Likewise.
25953         * modules/frexp-tests (Depends-on): Likewise.
25954         * modules/frexp-nolibm (Depends-on): Likewise.
25955         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25956         * modules/isfinite (Depends-on): Likewise.
25957         * modules/round-tests (Depends-on): Likewise.
25958         * modules/signbit (Depends-on): Likewise.
25959         * modules/signbit-tests (Depends-on): Likewise.
25960         * modules/snprintf-posix (Depends-on): Likewise.
25961         * modules/sprintf-posix (Depends-on): Likewise.
25962         * modules/trunc-tests (Depends-on): Likewise.
25963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25968         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25970         * modules/vasnprintf-posix (Depends-on): Likewise.
25971         * modules/vasprintf-posix (Depends-on): Likewise.
25972         * modules/vfprintf-posix (Depends-on): Likewise.
25973         * modules/vsnprintf-posix (Depends-on): Likewise.
25974         * modules/vsprintf-posix (Depends-on): Likewise.
25975         * lib/frexp.c: Include isnand.h instead of isnan.h.
25976         (ISNAN): Set to isnand instead of isnan.
25977         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25978         (gl_isfinited): Use isnand instead of isnan.
25979         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25980         (gl_signbitd): Use isnand instead of isnan.
25981         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25982         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25983         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25984         (main): Use isnand instead of isnan.
25985         * tests/test-round1.c: Include isnand.h.
25986         (main): Use isnand instead of isnan.
25987         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25988         (ISNAN): Set to isnand instead of isnan.
25989         * tests/test-trunc1.c: Include isnand.h.
25990         (main): Use isnand instead of isnan.
25991         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25992         (equal): Use isnand instead of isnan.
25993         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25994         isnand-nolibm.
25995         * NEWS: Mention the change.
25996
25997 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25998             Bruno Haible  <bruno@clisp.org>
25999
26000         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26001         the GCC builtins for signbits are present and set
26002         REPLACE_SIGNBIT_USING_GCC if so.
26003         * lib/math.in.h (signbit): Define using GCC builtins if
26004         REPLACE_SIGNBIT_USING_GCC is set.
26005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26006         REPLACE_SIGNBIT_USING_GCC.
26007         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26008
26009 2008-01-25  Jim Meyering  <meyering@redhat.com>
26010
26011         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26012         * lib/poll.c: Include <config.h>, not "config.h".
26013         * tests/test-getaddrinfo.c: Likewise.
26014
26015 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26016
26017         * modules/sockets-tests: New file.
26018
26019 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26020
26021         * modules/sockets: New module, can be used to call WSA_Startup and
26022         WSA_Cleanup when needed.
26023
26024         * lib/sockets.h, lib/sockets.c: New files.
26025
26026         * m4/sockets.m4: New file.
26027
26028         * tests/test-sockets.c: New file.
26029
26030 2008-01-19  Bruno Haible  <bruno@clisp.org>
26031
26032         * doc/posix-headers: Renamed from doc/headers.
26033         * doc/posix-functions: Renamed from doc/functions.
26034         * doc/gnulib.texi: Update.
26035
26036 2008-01-19  Bruno Haible  <bruno@clisp.org>
26037
26038         * doc/glibc-functions/strcasestr.texi: Include contents of
26039         doc/functions/strcasestr.texi, fixing the list of platforms.
26040         * doc/functions/strcasestr.texi: Remove file.
26041
26042 2008-01-19  Bruno Haible  <bruno@clisp.org>
26043
26044         * doc/glibc-functions/memmem.texi: Include contents of
26045         doc/functions/memmem.texi.
26046         * doc/functions/memmem.texi: Remove file.
26047
26048 2008-01-18  Bruno Haible  <bruno@clisp.org>
26049
26050         * doc/glibc-functions/*.texi: New files.
26051         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26052         to use the new files.
26053
26054 2008-01-17  Bruno Haible  <bruno@clisp.org>
26055
26056         * tests/test-gethostname.c (main): Fix printf statement.
26057
26058 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26059
26060         * modules/gethostname-tests: New file.
26061
26062         * tests/test-gethostname.c: New file.
26063
26064 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26065
26066         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26067         used by the UNAME case.  Reported by Bruno Haible
26068         <bruno@clisp.org>.
26069
26070 2008-01-17  Eric Blake  <ebb9@byu.net>
26071
26072         Convert c-strcasestr to be more efficient.
26073         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26074         (Depends-on): Add c-strcase, remove malloca, strnlen.
26075         * tests/test-c-strcasestr.c (main): Enhance test.
26076         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26077
26078 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26079
26080         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26081         Use it in creating po/Makevars.
26082
26083 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26084
26085         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26086         Applications that requires it should initialize libgcrypt
26087         manually.
26088
26089 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26090
26091         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26092
26093 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         Fix problem with getdate on mingw32 reported by Simon Josefsson
26096         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26097         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26098         tzname", when deciding whether to declare tzname.
26099         * lib/strftime.c (tzname): Likewise.
26100
26101 2008-01-15  Bruno Haible  <bruno@clisp.org>
26102
26103         Work around a MacOS X 10.5 bug in frexpl().
26104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26105         * doc/functions/frexpl.texi: Document the bug.
26106         Reported by Elias Pipping <pipping@gentoo.org>.
26107
26108 2008-01-14  Eric Blake  <ebb9@byu.net>
26109
26110         Touch up previous patch.
26111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26112         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26113
26114         Convert strcasestr module to use Two-Way algorithm.
26115         * modules/strcasestr-simple: New module, based on the old
26116         strcasestr, but with Two-Way rather than KMP.
26117         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26118         * lib/string.in.h (rpl_strcasestr): Declare.
26119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26120         performance.
26121         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26122         * modules/string (Makefile.am): Support strcasestr.
26123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26124         * modules/strcasestr-tests (Depends-on): Check for alarm.
26125         * tests/test-strcasestr.c: Augment test.
26126         * lib/str-two-way.h: Clean up stray macro.
26127         * NEWS: Document new module.
26128         * MODULES.html.sh (string handling): Likewise.
26129         * doc/functions/strcasestr.texi: New file.
26130         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26131         here, since it is not a POSIX function.
26132
26133 2008-01-14  Colin Watson  <cjwatson@debian.org>
26134             Bruno Haible  <bruno@clisp.org>
26135
26136         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26137         works fine; if not, set REPLACE_STRSIGNAL.
26138         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26140         REPLACE_STRSIGNAL.
26141         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26142         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26143         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26144
26145 2008-01-14  Bruno Haible  <bruno@clisp.org>
26146
26147         * modules/strsignal (Include): Change to <string.h>.
26148
26149 2008-01-14  Colin Watson  <cjwatson@debian.org>
26150
26151         * modules/argp (Notice): Add a notice recommending to change
26152         XGETTEXT_OPTIONS.
26153         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26154
26155 2008-01-13  Colin Watson  <cjwatson@debian.org>
26156
26157         * modules/strsignal-tests: New file.
26158         * tests/test-strsignal.c: New file.
26159
26160         * lib/strsignal.c: New file, from glibc with modifications.
26161         * lib/siglist.h: New file, from glibc with modifications.
26162         * lib/string.in.h (strsignal): New declaration.
26163         * m4/strsignal.m4: New file.
26164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26165         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26166         * modules/strsignal: New file.
26167         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26168         HAVE_DECL_STRSIGNAL.
26169
26170 2008-01-13  Bruno Haible  <bruno@clisp.org>
26171
26172         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26173         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26174         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26175         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26176
26177 2008-01-13  Bruno Haible  <bruno@clisp.org>
26178
26179         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26180         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26181         * lib/argp.h (__attribute__): Likewise.
26182         * lib/c-stack.c (__attribute__): Likewise.
26183         * lib/error.h (__attribute__): Likewise.
26184         * lib/fts.c (__attribute__): Likewise.
26185         * lib/openat.h (__attribute__): Likewise.
26186         * lib/stdio.in.h (__attribute__): Likewise.
26187         * lib/string.in.h (__attribute__): Likewise.
26188         * lib/utimens.c (__attribute__): Likewise.
26189         * lib/vasnprintf.h (__attribute__): Likewise.
26190         * lib/xalloc.h (__attribute__): Likewise.
26191         * lib/xprintf.h (__attribute__): Likewise.
26192         * lib/xstrtol.h (__attribute__): Likewise.
26193         * lib/xvasprintf.h (__attribute__): Likewise.
26194
26195 2008-01-12  Bruno Haible  <bruno@clisp.org>
26196
26197         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26198         * doc/glibc-headers/a.out.texi: New file.
26199         * doc/glibc-headers/aliases.texi: New file.
26200         * doc/glibc-headers/alloca.texi: New file.
26201         * doc/glibc-headers/ar.texi: New file.
26202         * doc/glibc-headers/argp.texi: New file.
26203         * doc/glibc-headers/argz.texi: New file.
26204         * doc/glibc-headers/byteswap.texi: New file.
26205         * doc/glibc-headers/crypt.texi: New file.
26206         * doc/glibc-headers/endian.texi: New file.
26207         * doc/glibc-headers/envz.texi: New file.
26208         * doc/glibc-headers/err.texi: New file.
26209         * doc/glibc-headers/error.texi: New file.
26210         * doc/glibc-headers/execinfo.texi: New file.
26211         * doc/glibc-headers/fpu_control.texi: New file.
26212         * doc/glibc-headers/fstab.texi: New file.
26213         * doc/glibc-headers/fts.texi: New file.
26214         * doc/glibc-headers/getopt.texi: New file.
26215         * doc/glibc-headers/ieee754.texi: New file.
26216         * doc/glibc-headers/ifaddrs.texi: New file.
26217         * doc/glibc-headers/libintl.texi: New file.
26218         * doc/glibc-headers/mcheck.texi: New file.
26219         * doc/glibc-headers/mntent.texi: New file.
26220         * doc/glibc-headers/obstack.texi: New file.
26221         * doc/glibc-headers/paths.texi: New file.
26222         * doc/glibc-headers/printf.texi: New file.
26223         * doc/glibc-headers/pty.texi: New file.
26224         * doc/glibc-headers/resolv.texi: New file.
26225         * doc/glibc-headers/shadow.texi: New file.
26226         * doc/glibc-headers/sysexits.texi: New file.
26227         * doc/glibc-headers/ttyent.texi: New file.
26228
26229 2008-01-12  Jim Meyering  <meyering@redhat.com>
26230
26231         announce-gen: emit Gnulib's git-based version string.
26232         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26233         New option --gnulib-version=V, where V is expected to be
26234         the output of running git describe in the gnulib directory.
26235         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26236         not useful, and plan to stop publishing an xdelta file with each
26237         coreutils release.
26238
26239         * build-aux/announce-gen: Also check for lzma-compressed files.
26240
26241 2008-01-11  Bruno Haible  <bruno@clisp.org>
26242
26243         * tests/test-memmem.c (main): Increase maximum allowed time.
26244         * tests/test-strstr.c (main): Likewise.
26245
26246 2008-01-11  Bruno Haible  <bruno@clisp.org>
26247
26248         * doc/functions/memmem.texi: Add more precisions about platforms.
26249         * doc/functions/strstr.texi: Likewise.
26250
26251 2008-01-10  Eric Blake  <ebb9@byu.net>
26252
26253         * m4/strstr.m4: Delete cruft from copy-n-paste.
26254         Reported by Bruno Haible.
26255
26256 2008-01-10  Bruno Haible  <bruno@clisp.org>
26257
26258         Make c-strstr rely on strstr.
26259         * lib/c-strstr.c: Don't include str-kmp.h.
26260         (c_strstr): Define in terms of strstr.
26261         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26262         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26263
26264 2008-01-10  Bruno Haible  <bruno@clisp.org>
26265
26266         * doc/gnulib.texi (String Functions in C Locale): New section.
26267         * doc/c-ctype.texi: New file.
26268         * doc/c-strcase.texi: New file.
26269         * doc/c-strcaseeq.texi: New file.
26270         * doc/c-strcasestr.texi: New file.
26271         * doc/c-strstr.texi: New file.
26272         * doc/c-strtod.texi: New file.
26273         * doc/c-strtold.texi: New file.
26274
26275 2008-01-10  Eric Blake  <ebb9@byu.net>
26276
26277         * lib/relocatable.h: Fix a comment.
26278
26279 2008-01-10  Eric Blake  <ebb9@byu.net>
26280
26281         Share two-way algorithm.
26282         * lib/str-two-way.h: New file, merged from...
26283         * lib/memmem.c: ...here...
26284         * lib/strstr.c: ...and here.
26285         * modules/memmem (Files): Use it.
26286         * modules/strstr (Files): Likewise.
26287
26288         Avoid quadratic strstr implementations.
26289         * lib/strstr.c: New file.
26290         * m4/strstr.m4: Likewise.
26291         * modules/strstr: Likewise.
26292         * modules/strstr-tests: Likewise.
26293         * tests/test-strstr.c: Likewise.
26294         * lib/string.in.h (rpl_strstr): Declare.
26295         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26297         * modules/string (Makefile.am): Likewise.
26298         * MODULES.html.sh (string handling): Mention new module.
26299         * doc/functions/strstr.texi (strstr): Document the bug.
26300
26301 2008-01-10  Bruno Haible  <bruno@clisp.org>
26302
26303         * lib/relocatable.h (relocate): State whether result is freshly
26304         allocated or not.
26305         * lib/relocatable.c (relocate): Return a freshly allocated string
26306         instead of a pointer to a privately held string.
26307         Reported by Sylvain Beucler <beuc@gnu.org>.
26308
26309 2008-01-10  Colin Watson  <cjwatson@debian.org>
26310
26311         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26312         s/S_ISNLK/S_ISLNK/.
26313
26314 2008-01-09  Bruno Haible  <bruno@clisp.org>
26315
26316         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26317         and other files.
26318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26319         if it's only a guess.
26320         * modules/memmem: Simplify by depending on memmem-simple.
26321
26322 2008-01-09  Bruno Haible  <bruno@clisp.org>
26323
26324         Work around OpenBSD 4.0 tdelete() bug.
26325         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26326         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26327         macros and don't redefine the enum values.
26328         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26329         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26330         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26331
26332 2008-01-09  Bruno Haible  <bruno@clisp.org>
26333
26334         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26335         (main): Don't perform the tests if setlocale did not install a UTF-8
26336         locale. Needed on OpenBSD 4.0.
26337         * modules/wcwidth-tests (Depends-on): Add localcharset.
26338
26339 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26340
26341         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26342         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26343         * NEWS: announce this.
26344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26345
26346 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26347         and Eric Blake  <ebb9@byu.net>
26348
26349         Add memmem-simple module.
26350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26351         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26352         * modules/memmem-simple: New file.
26353         * modules/memmem (Description): Tweak.
26354         * MODULES.html.sh (string handling): Mention new module.
26355         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26356         addressed by memmem-simple.
26357         * NEWS: Document the difference.
26358
26359 2008-01-09  Eric Blake  <ebb9@byu.net>
26360
26361         Give gcc some memmem optimization hints.
26362         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26363         (strcasestr): Declare as pure.
26364         * modules/memmem (Maintainer): Claim my implementation.
26365
26366 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26367
26368         Support AIX 6.1 and higher.
26369         * build-aux/config.libpath: Likewise.
26370         * build-aux/config.rpath: Likewise.
26371
26372 2008-01-08  Jim Meyering  <meyering@redhat.com>
26373             Bruno Haible  <bruno@clisp.org>
26374
26375         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26376         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26377         Reported by Peter Fales in
26378         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26379
26380 2008-01-08  Bruno Haible  <bruno@clisp.org>
26381
26382         * modules/unictype/category-of (Depends-on): Add
26383         unictype/category-none.
26384         * modules/unictype/category-and-tests (Depends-on): Add
26385         unictype/category-{L,N,Lu,Nd}.
26386         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26387         * modules/unictype/category-or-tests (Depends-on): Add
26388         unictype/category-{L,N}.
26389         * modules/unictype/category-name-tests (Depends-on): Add
26390         unictype/category-{Z,Nl}.
26391         Reported by Simon Josefsson.
26392
26393 2008-01-08  Bruno Haible  <bruno@clisp.org>
26394
26395         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26396         convention better.
26397         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26398         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26399         Reported by Peter Miller <millerp@canb.auug.org.au>.
26400
26401 2008-01-08  Eric Blake  <ebb9@byu.net>
26402
26403         Rewrite memmem to guarantee linear complexity without malloc.
26404         * lib/memmem.c (memmem): Use Two-Way rather than
26405         Knuth-Morris-Pratt, to allow O(1) space usage.
26406         (critical_factorization, two_way_short_needle)
26407         (two_way_long_needle): New functions.
26408         (knuth_morris_pratt): Delete.
26409         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26410         Add stdint.
26411         * tests/test-memmem.c (main): Add tests for periodic needle and
26412         sublinear performance.
26413         * doc/functions/memmem.texi (memmem): Document other deficiencies
26414         in cygwin and older glibc.
26415
26416 2008-01-08  Bruno Haible  <bruno@clisp.org>
26417
26418         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26419         augmentation.
26420
26421 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26422
26423         Add a configure time option: --disable-acl.
26424         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26425         AC_ARG_ENABLE(acl).
26426
26427 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26428
26429         * tests/test-localename.c: Don't include obsolete "setenv.h".
26430
26431         * modules/localename-tests (Depends-on): Need unsetenv.
26432
26433 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26434
26435         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26436
26437 2008-01-06  Colin Watson  <cjwatson@debian.org>
26438
26439         * users.txt: Add man-db.
26440
26441 2008-01-07  Bruno Haible  <bruno@clisp.org>
26442
26443         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26444         previous section name.
26445
26446 2008-01-07  Bruno Haible  <bruno@clisp.org>
26447
26448         * lib/progname.c (set_program_name): Don't strip off a leading
26449         "lt-" prefix outside a .libs directory.
26450         Suggested by Paul Eggert.
26451
26452 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26453             Bruno Haible  <bruno@clisp.org>
26454
26455         Improve memory cleanup in 'relocatable' module.
26456         * lib/relocatable.h (compute_curr_prefix): Change return type to
26457         'char *'.
26458         * lib/relocatable.c (compute_curr_prefix): Change return type to
26459         'char *'. Free curr_installdir after use.
26460         (relocate): Free curr_prefix_better after use.
26461         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26462
26463 2008-01-01  Bruno Haible  <bruno@clisp.org>
26464
26465         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26466         failure on older glibc systems.
26467         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26468
26469 2008-01-05  Eric Blake  <ebb9@byu.net>
26470
26471         Avoid quadratic system memmem.
26472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26473         Reported by Ralf Wildenhues.
26474
26475         Fix memmem test for mingw.
26476         * modules/memmem-tests (configure.ac): Check for alarm.
26477         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26478         it.
26479         * doc/functions/memmem.texi: New file.
26480         * doc/gnulib.texi (Function Substitutes): Add memmem.
26481         Reported by Bruno Haible.
26482
26483 2008-01-04  Bruno Haible  <bruno@clisp.org>
26484
26485         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26486         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26487         gl_HEADER_STRING_H_DEFAULTS.
26488
26489 2008-01-04  Eric Blake  <ebb9@byu.net>
26490
26491         Shorten duration of memmem test.
26492         * tests/test-memmem.c (main): Use alarm to declare failure if test
26493         is taking too long.
26494         Reported by Ralf Wildenhues.
26495
26496 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26497
26498         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26499         string, needed by strerror.
26500
26501 2008-01-03  Colin Watson  <cjwatson@debian.org>
26502             Bruno Haible  <bruno@clisp.org>
26503
26504         * doc/gnulib-tool.texi (Localization): New section.
26505
26506 2008-01-02  Bruno Haible  <bruno@clisp.org>
26507
26508         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26509         variables to 'unsigned char *' type.
26510         Reported by Paul Eggert.
26511
26512 2008-01-02  Jim Meyering  <jim@meyering.net>
26513
26514         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26515
26516 2007-12-31  Jim Meyering  <jim@meyering.net>
26517
26518         Avoid use of private FTS type name.
26519         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26520
26521 2007-12-30  Karl Berry  <karl@gnu.org>
26522
26523         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26524         work around defect in Texinfo and/or the standalone Info browser.
26525
26526 2007-12-30  Bruno Haible  <bruno@clisp.org>
26527
26528         Unify 5 copies of the KMP code.
26529         * lib/str-kmp.h: New file.
26530         * lib/c-strcasestr.c: Include str-kmp.h.
26531         (knuth_morris_pratt): Remove function.
26532         (c_strcasestr): Update.
26533         * lib/c-strstr.c: Include str-kmp.h.
26534         (knuth_morris_pratt): Remove function.
26535         (c_strcasestr): Update.
26536         * lib/mbscasestr.c: Include str-kmp.h.
26537         (knuth_morris_pratt_unibyte): Remove function.
26538         * lib/mbsstr.c: Include str-kmp.h.
26539         (knuth_morris_pratt_unibyte): Remove function.
26540         * lib/strcasestr.c: Include str-kmp.h.
26541         (knuth_morris_pratt): Remove function.
26542         (strcasestr): Update.
26543         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26544         * modules/c-strstr (Files): Likewise.
26545         * modules/mbscasestr (Files): Likewise.
26546         * modules/mbsstr (Files): Likewise.
26547         * modules/strcasestr (Files): Likewise.
26548         Suggested by Paul Eggert.
26549
26550 2007-12-30  Bruno Haible  <bruno@clisp.org>
26551
26552         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26553         defined.
26554
26555 2007-12-30  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/xmalloca.h: Include xalloc.h.
26558         (xnmalloca): New macro.
26559
26560 2007-12-30  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/malloca.h (nmalloca): New macro.
26563         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26564         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26565         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26566         knuth_morris_pratt_multibyte): Likewise.
26567         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26568         knuth_morris_pratt_multibyte): Likewise.
26569         * lib/memmem.c (knuth_morris_pratt): Likewise.
26570         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26571
26572 2007-12-25  Bruno Haible  <bruno@clisp.org>
26573
26574         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26575         * lib/glob.c: Don't include openat.h.
26576         (link_exists2_p): Add back the code that deals with the
26577         !GLOB_ALTDIRFUNC case.
26578         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26579         let it do the filename concatenation.
26580         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26581         * modules/glob (Depends-on): Remove openat.
26582
26583 2007-12-31  Bruno Haible  <bruno@clisp.org>
26584
26585         * modules/dirfd (License): Change to LGPLv2+.
26586         Approved by Jim Meyering.
26587
26588 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26589
26590         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26591         when multiplying M by sizeof (size_t).
26592
26593 2007-12-10  Martin Lambers  <marlam@marlam.de>
26594
26595         Override getpagesize on mingw.
26596         * lib/getpagesize.c: New file.
26597         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26598         * modules/getpagesize (Files): Add lib/getpagesize.c.
26599         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26601         REPLACE_GETPAGESIZE.
26602         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26603
26604 2007-12-25  Bruno Haible  <bruno@clisp.org>
26605
26606         * modules/localcharset (Notice): New field.
26607         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26608         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26609
26610 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26611             Bruno Haible  <bruno@clisp.org>
26612
26613         Avoid using the syntax symbol() in formatted documentation.
26614         * MODULES.html.sh (func_module): When replacing symbol() with a
26615         hyperlink, remove the parentheses. Show an error if some remain.
26616         Recognize and render the '...' syntax.
26617         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26618         Rework. Add paragraph about GCC's inlining.
26619         * doc/alloca.texi: Likewise.
26620         * doc/error.texi: Remove parentheses from symbol reference.
26621         * doc/gnulib-intro.texi: Likewise.
26622         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26623         * modules/fnmatch (Description): Reword to say "the ... function".
26624         * modules/full-read (Description): Likewise.
26625         * modules/full-write (Description): Likewise.
26626         * modules/safe-read (Description): Likewise.
26627         * modules/safe-write (Description): Likewise.
26628         * modules/strchrnul (Description): Likewise.
26629         * modules/trim (Description): Likewise.
26630         * modules/error (Description): Remove parentheses from symbol
26631         references.
26632         * modules/verror (Description): Likewise.
26633         Reported by Karl Berry.
26634
26635 2007-12-25  Bruno Haible  <bruno@clisp.org>
26636
26637         Fixup after 2007-10-16 commit.
26638         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26639
26640 2007-12-24  Bruno Haible  <bruno@clisp.org>
26641
26642         Make --enable-relocatable work with DESTDIR.
26643         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26644         to compute installdir from destprog.
26645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26646         also set the RELOC_DESTDIR variable.
26647         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26648
26649 2007-12-24  Bruno Haible  <bruno@clisp.org>
26650
26651         Fix link error due to xalloc_die().
26652         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26653         of xreadlink.
26654         * lib/relocwrapper.c: Update comments.
26655         * build-aux/install-reloc: Remove xreadlink.c from file list.
26656         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26657         xreadlink.c.
26658         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26659
26660 2007-12-24  Bruno Haible  <bruno@clisp.org>
26661
26662         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26663         * lib/setenv.h: Remove file.
26664         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26665         lib/setenv.h.
26666         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26667         (Depends-on): Add stdlib.
26668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26669         gl_FUNC_UNSETENV.
26670         (Include): Replace setenv.h with <stdlib.h>.
26671         * modules/unsetenv: New file.
26672         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26673         * lib/unsetenv.c: Include <stdlib.h> first.
26674         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26675         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26676         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26677         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26678         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26679         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26681         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26682         * doc/functions/unsetenv.texi: Update.
26683         * modules/xsetenv (Depends-on): Add unsetenv.
26684         * modules/getdate (Depends-on): Likewise.
26685         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26686         * lib/xsetenv.c: Don't include setenv.h.
26687         * lib/getdate.y: Likewise.
26688         * lib/relocwrapper.c: Likewise.
26689         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26690         (Depends-on): Add stdlib.
26691         * NEWS: Mention the changes.
26692         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26693
26694 2007-12-23  Bruno Haible  <bruno@clisp.org>
26695
26696         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26697         indentation.
26698
26699 2007-12-23  Bruno Haible  <bruno@clisp.org>
26700
26701         * lib/c-strcasestr.c: Add more comments.
26702         * lib/c-strstr.c: Likewise.
26703         * lib/mbscasestr.c: Likewise.
26704         * lib/mbsstr.c: Likewise.
26705         * lib/strcasestr.c: Likewise.
26706         * lib/memmem.c: Likewise.
26707
26708 2007-12-23  Bruno Haible  <bruno@clisp.org>
26709
26710         * tests/test-memmem.c: Include <string.h> first.
26711
26712 2007-12-22  Bruno Haible  <bruno@clisp.org>
26713
26714         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26715         the contents of $testsbase.
26716         Reported by Ralf Wildenhues.
26717
26718 2007-12-22  Bruno Haible  <bruno@clisp.org>
26719
26720         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26721         two variables local_ldadd_before, local_ldadd_last.
26722
26723 2007-12-20  Eric Blake  <ebb9@byu.net>
26724
26725         Work around circular library issue when cross-compiling.
26726         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26727         that progname.o does not need to pull in rpl_memcmp.
26728
26729 2007-12-19  Eric Blake  <ebb9@byu.net>
26730
26731         Fix memmem to avoid O(n^2) worst-case complexity.
26732         * lib/memmem.c (knuth_morris_pratt): New function.
26733         (memmem): Use it if first few naive iterations fail.
26734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26735         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26736         * modules/memchr (License): Likewise.
26737         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26738         malloca.
26739         * tests/test-memmem.c: Rewrite, borrowing ideas from
26740         test-mbsstr1.c; the old version wouldn't even compile!
26741         * modules/memmem-tests: New file.
26742         * lib/string.in.h (rpl_memmem): Add declaration.
26743         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26745         REPLACE_MEMMEM.
26746
26747 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26748
26749         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26750         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26751         before any system include files, and undef after them all.  This
26752         should fix a problem on VMS reported by John E. Malmberg in
26753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26754
26755 2007-12-17  Eric Blake  <ebb9@byu.net>
26756
26757         Revert addition of verify, for BSD/OS.
26758         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26759         can't handle large files, for the sake of obsolete platforms.
26760         * modules/fseeko (Depends-on): Remove verify.
26761         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26762         * doc/functions/ftello.texi (ftello): Likewise.
26763         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26764         Reported by Larry Jones.
26765
26766 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26767
26768         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26769         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26770
26771 2007-12-17  Jim Meyering  <meyering@redhat.com>
26772
26773         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26774         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26775         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26776         * modules/getcwd (Depends-on): Add openat.
26777         Reported by Petr Salinger.
26778
26779 2007-12-17  Bruno Haible  <bruno@clisp.org>
26780
26781         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26782         avoid a segmentation fault of the configure test on x86_64 systems.
26783
26784 2007-12-15  Jim Meyering  <meyering@redhat.com>
26785
26786         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26787
26788 2007-12-13  Eric Blake  <ebb9@byu.net>
26789
26790         Another fseek test.
26791         * tests/test-fseek.c (main): Also test ungetc handling.
26792         * tests/test-fseeko.c (main): Likewise.
26793         * modules/fseeko (Depends-on): Add verify.
26794         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26795         large.
26796         Reported by Larry Jones.
26797
26798         Fix fseeko on mingw.
26799         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26800         seek.
26801
26802         Beef up fseek tests.
26803         * tests/test-fseek.c (main): Also test eof handling.
26804         * tests/test-fseeko.c (main): Likewise.
26805         Reported by Larry Jones.
26806
26807 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26808
26809         Fix fseeko on BSD-based platforms.
26810         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26811         successful seek.
26812
26813 2007-12-12  Eric Blake  <ebb9@byu.net>
26814
26815         Allow circular dependency of separate libtests.a
26816         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26817         when use_libtests.
26818
26819 2007-12-11  Eric Blake  <ebb9@byu.net>
26820
26821         Fix bug with -0.0L in previous patch.
26822         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26823         * tests/test-isnan.c (main): Also test on zeroes.
26824         * tests/test-isnanf.c (main): Likewise.
26825         * tests/test-isnanl.h (main): Likewise.
26826
26827         Detect pseudo-denormals on x86 even when cross-compiling.
26828         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26829         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26830         invalid bit patterns that happen to satisfy ==.
26831
26832         Avoid link failures with separate libtests.a.
26833         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26834         last, to satisfy circular dependencies.
26835
26836 2007-12-11  Eric Blake  <ebb9@byu.net>
26837         and Bruno Haible  <bruno@clisp.org>
26838
26839         Fix OpenBSD 4.0 <float.h> handling of long double.
26840         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26841         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26842         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26843
26844 2007-12-11  Jim Meyering  <meyering@redhat.com>
26845
26846         * users.txt: Add libvirt.
26847
26848         Support versions of autoconf prior to 2.59c.
26849         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26850         if it is not already defined.
26851
26852 2007-12-09  Bruno Haible  <bruno@clisp.org>
26853
26854         Let 'gnulib-tool --import' collect sources needed for the tests in
26855         tests/ rather than in lib/.
26856         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26857         argument. If true, add rules to generate libtests.a, and put libtests.a
26858         into $(LDADD). Consider source files in subdirectories and set
26859         uses_subdirs.
26860         (func_emit_initmacro_start, func_emit_initmacro_end,
26861         func_emit_initmacro_done): Pass all arguments explicitly.
26862         (func_import): Determine two module lists main_modules,
26863         testsrelated_modules. Determine use_libtests. Determine two variables
26864         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26865         instead of just sed_transform_lib_file. Determine two variables
26866         main_files and testsrelated_files. Compute 'files' as the union of
26867         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26868         func_add_or_update. In the generated gnulib-comp.m4, collect the
26869         object files for tests/ in different variables than those for lib/.
26870         Substitute LIBTESTS_LIBDEPS.
26871         (func_create_testdir): Combine the uses_subdirs results from
26872         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26873
26874 2007-12-09  Bruno Haible  <bruno@clisp.org>
26875
26876         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26877         the build-aux directory.
26878
26879 2007-12-09  Bruno Haible  <bruno@clisp.org>
26880
26881         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26882         introduced on 2006-09-09.
26883
26884 2007-12-07  Jim Meyering  <meyering@redhat.com>
26885
26886         Let these macros work also with autoconf-2.59.
26887         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26888         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26890
26891 2007-12-06  Jim Meyering  <meyering@redhat.com>
26892
26893         Avoid a configure-time syntax error in gl_FUNC_ACL.
26894         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26895         function in each branch, before testing the cache variable.
26896
26897 2007-12-04  Eric Blake  <ebb9@byu.net>
26898
26899         Make scripts executable.
26900         * build-aux/config.guess: Add execute permissions.
26901         * build-aux/config.sub: Likewise.
26902         * build-aux/gendocs.sh: Likewise.
26903
26904         Fix frexp on mingw.
26905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26906         cross-compiling.
26907         * doc/functions/frexp.texi (frexp): Document the bug.
26908
26909         Make cygwin fseeko check more reliable.
26910         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26911         version numbers, rather than unrelated feature check.
26912         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26913         * doc/functions/ftello.texi (ftello): Likewise.
26914         Reported by Bruno Haible.
26915
26916         * m4/strerror.m4: Bump version number.
26917
26918 2007-12-03  Bruno Haible  <bruno@clisp.org>
26919
26920         * doc/functions/mprotect.texi: Mention the mingw problem.
26921
26922 2007-12-03  Eric Blake  <ebb9@byu.net>
26923
26924         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26925         REPLACE_STRERROR is initialized before this macro.
26926
26927 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26928
26929         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26930         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26931         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26932         put -lsec in even for programs other than 'ls'.  This fixes a problem
26933         for gettext reported by Bruno Haible in
26934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26935         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26936         Add support for Solaris 10.  This isn't efficient, but should get the
26937         job done for now.
26938
26939 2007-12-03  James Youngman  <jay@gnu.org>
26940
26941         * doc/regexprops-generic.texi: change "an close-group" to "a
26942         close-group" and "illegal" to "not allowed".
26943
26944 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26945
26946         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26947         pr_byname.h. Needed for the rare case when the maintainer has done
26948         "make maintainer-clean" in the source directory and then attempts a
26949         build outside the source directory.
26950         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26951         scripts_byname.h.
26952
26953 2007-12-02  Martin Lambers <marlam@marlam.de>
26954             Bruno Haible  <bruno@clisp.org>
26955
26956         * lib/getpagesize.h: Remove file.
26957         * lib/unistd.in.h: Include declaration of getpagesize here.
26958         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26959         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26960         HAVE_SYS_PARAM_H.
26961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26962         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26963         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26964         (Depends-on): Add unistd.
26965         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26966         (Include): Use <unistd.h> instead of getpagesize.h.
26967         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26968         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26969         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26970         gl_GETPAGESIZE invocation, already handled by module dependency.
26971         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26972
26973 2007-12-02  Bruno Haible  <bruno@clisp.org>
26974
26975         * modules/strings-tests: New file.
26976         * tests/test-strings.c: New file.
26977
26978         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26979         * lib/strings.in.h: New file.
26980         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26981         * m4/strings_h.m4: New file.
26982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26983         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26984         * modules/strings: New file.
26985         * modules/string (Makefile.am): Update.
26986         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26987         Reported by Karl Berry.
26988
26989 2007-12-01  Eric Blake  <ebb9@byu.net>
26990
26991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26992         accomodate fix in cygwin 1.5.25.
26993
26994 2007-12-01  Jim Meyering  <meyering@redhat.com>
26995
26996         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26997         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26998         that would inhibit utf8-optimization of a regexp containing line-
26999         or buffer-anchors, e.g., `^', `$'.
27000
27001 2007-11-30  Bruno Haible  <bruno@clisp.org>
27002
27003         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27004         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27005         glthread_recursive_lock_init.
27006         * lib/lock.c (glthread_recursive_lock_init)
27007         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27009
27010 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27011
27012         New function qset_acl, like set_acl but with syscall semantics.
27013         * lib/acl.h (qset_acl): New decl.
27014         * lib/acl.c (qset_acl): New function.
27015         (set_acl): Use new function.  Use more-consistent diagnostics.
27016
27017 2007-11-28  Jim Meyering  <meyering@redhat.com>
27018
27019         * modules/physmem (License): Change from GPL to LGPLv2+.
27020
27021 2007-11-26  Bruno Haible  <bruno@clisp.org>
27022
27023         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27024         'long double' type has excess precision.
27025         Reported by Jim Meyering in
27026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27027
27028 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27029
27030         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27031         Sync from <http://gnu.org/licenses>.
27032         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27033         with license text from same location.
27034         * doc/maintain.texi, doc/standards.texi:  Sync from
27035         <http://savannah.gnu.org/projects/gnustandards>.
27036
27037 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
27038         and Jim Meyering  <meyering@redhat.com>
27039
27040         Adjust getdate' grammar to accept a slightly more regular language.
27041         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27042         Before, the former was rejected.
27043         * lib/getdate.y (digits_to_date_time): New function, factored
27044         out of ...
27045         (number): ...here.  Just call digits_to_date_time.
27046         (hybrid): New non-terminal to handle an <unsigned number,
27047         signed relative offset> sequence consistently.
27048
27049 2007-11-18  Jim Meyering  <meyering@redhat.com>
27050
27051         Pull my changes from coreutils:
27052         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27053         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27054         use of $gnulib_tool_option_extras, so that it's separated from the
27055         preceding argument.
27056
27057         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27058         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27059         parent destination directories before copying a file into place.
27060
27061 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27062
27063         bootstrap: work also with 4-argument variant of AC_INIT
27064         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27065
27066 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27067
27068         Port test-getaddrinfo to Solaris.
27069         Problem reported by Bruno Haible in
27070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27071         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27072         explanation of setting 'hints'.
27073         Don't reject an implementation merely because it returns EAI_SERVICE.
27074         (EAI_SERVICE): Define to 0 if not defined.
27075
27076 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27077
27078         The license of gnu-make and posix-shell is now "GPLed build tool".
27079         * modules/gnu-make (License): Likewise.
27080         * modules/posix-shell (License): Likewise.
27081
27082         New module posix-shell, for determining a POSIX shell
27083         or perhaps something that is close enough to a POSIX shell.
27084         * m4/posix-shell.m4: New file.
27085         * modules/posix-shell: New file.
27086
27087         * MODULES.html.sh: Mention new module.
27088
27089         New module gnu-make, for determining whether we're using GNU Make.
27090         * m4/gnu-make.m4: New file.
27091         * modules/gnu-make: New file.
27092         * MODULES.html.sh: Mention new module.
27093
27094 2007-11-14  Jim Meyering  <meyering@redhat.com>
27095
27096         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27097         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27098         use this macro to create a function _definition_.
27099         Remove useless "#undef ARGMATCH_DIE".
27100
27101 2007-11-14  Bruno Haible  <bruno@clisp.org>
27102
27103         * lib/config.charset: Update for OpenBSD 4.1.
27104         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27105
27106 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27107
27108         Document 64-bit #if problems in stdint.texi.
27109         * doc/headers/stdint.texi (stdint.h): Mention problems with
27110         64-bit-#if, and how to work around them.
27111
27112         Don't insist on 'long long int' support in the preprocessor.  It
27113         breaks too many things.  For example, PRIdMAX still uses a 'long
27114         long int' format with the latest Sun compiler, even though
27115         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27116         preprocessor problem.  This causes the latest coreutils to dump
27117         core on Solaris 10 sparc with the Sun C compiler.
27118         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27119         the troublesome expressions at configure-time, not at #if-time.
27120         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27121         preprocessor.
27122         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27123         compile-time C checks, done at 'configure'-time.
27124         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27125         * modules/inttypes (Makefile): Substitute the new symbols that
27126         gl_INTTYPES_H now generates.
27127         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27128
27129 2007-11-12  Bruno Haible  <bruno@clisp.org>
27130
27131         Tests for Unicode character classification functions.
27132
27133         * modules/unictype/bidicategory-byname-tests: New file.
27134         * modules/unictype/bidicategory-name-tests: New file.
27135         * modules/unictype/bidicategory-of-tests: New file.
27136         * modules/unictype/bidicategory-test-tests: New file.
27137         * modules/unictype/block-list-tests: New file.
27138         * modules/unictype/block-of-tests: New file.
27139         * modules/unictype/block-test-tests: New file.
27140         * modules/unictype/category-C-tests: New file.
27141         * modules/unictype/category-Cc-tests: New file.
27142         * modules/unictype/category-Cf-tests: New file.
27143         * modules/unictype/category-Cn-tests: New file.
27144         * modules/unictype/category-Co-tests: New file.
27145         * modules/unictype/category-Cs-tests: New file.
27146         * modules/unictype/category-L-tests: New file.
27147         * modules/unictype/category-Ll-tests: New file.
27148         * modules/unictype/category-Lm-tests: New file.
27149         * modules/unictype/category-Lo-tests: New file.
27150         * modules/unictype/category-Lt-tests: New file.
27151         * modules/unictype/category-Lu-tests: New file.
27152         * modules/unictype/category-M-tests: New file.
27153         * modules/unictype/category-Mc-tests: New file.
27154         * modules/unictype/category-Me-tests: New file.
27155         * modules/unictype/category-Mn-tests: New file.
27156         * modules/unictype/category-N-tests: New file.
27157         * modules/unictype/category-Nd-tests: New file.
27158         * modules/unictype/category-Nl-tests: New file.
27159         * modules/unictype/category-No-tests: New file.
27160         * modules/unictype/category-P-tests: New file.
27161         * modules/unictype/category-Pc-tests: New file.
27162         * modules/unictype/category-Pd-tests: New file.
27163         * modules/unictype/category-Pe-tests: New file.
27164         * modules/unictype/category-Pf-tests: New file.
27165         * modules/unictype/category-Pi-tests: New file.
27166         * modules/unictype/category-Po-tests: New file.
27167         * modules/unictype/category-Ps-tests: New file.
27168         * modules/unictype/category-S-tests: New file.
27169         * modules/unictype/category-Sc-tests: New file.
27170         * modules/unictype/category-Sk-tests: New file.
27171         * modules/unictype/category-Sm-tests: New file.
27172         * modules/unictype/category-So-tests: New file.
27173         * modules/unictype/category-Z-tests: New file.
27174         * modules/unictype/category-Zl-tests: New file.
27175         * modules/unictype/category-Zp-tests: New file.
27176         * modules/unictype/category-Zs-tests: New file.
27177         * modules/unictype/category-and-not-tests: New file.
27178         * modules/unictype/category-and-tests: New file.
27179         * modules/unictype/category-byname-tests: New file.
27180         * modules/unictype/category-name-tests: New file.
27181         * modules/unictype/category-none-tests: New file.
27182         * modules/unictype/category-of-tests: New file.
27183         * modules/unictype/category-or-tests: New file.
27184         * modules/unictype/category-test-withtable-tests: New file.
27185         * modules/unictype/combining-class-tests: New file.
27186         * modules/unictype/ctype-alnum-tests: New file.
27187         * modules/unictype/ctype-alpha-tests: New file.
27188         * modules/unictype/ctype-blank-tests: New file.
27189         * modules/unictype/ctype-cntrl-tests: New file.
27190         * modules/unictype/ctype-digit-tests: New file.
27191         * modules/unictype/ctype-graph-tests: New file.
27192         * modules/unictype/ctype-lower-tests: New file.
27193         * modules/unictype/ctype-print-tests: New file.
27194         * modules/unictype/ctype-punct-tests: New file.
27195         * modules/unictype/ctype-space-tests: New file.
27196         * modules/unictype/ctype-upper-tests: New file.
27197         * modules/unictype/ctype-xdigit-tests: New file.
27198         * modules/unictype/decimal-digit-tests: New file.
27199         * modules/unictype/digit-tests: New file.
27200         * modules/unictype/mirror-tests: New file.
27201         * modules/unictype/numeric-tests: New file.
27202         * modules/unictype/property-alphabetic-tests: New file.
27203         * modules/unictype/property-ascii-hex-digit-tests: New file.
27204         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27205         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27206         * modules/unictype/property-bidi-block-separator-tests: New file.
27207         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27208         * modules/unictype/property-bidi-common-separator-tests: New file.
27209         * modules/unictype/property-bidi-control-tests: New file.
27210         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27211         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27212         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27213         * modules/unictype/property-bidi-european-digit-tests: New file.
27214         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27215         * modules/unictype/property-bidi-left-to-right-tests: New file.
27216         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27217         * modules/unictype/property-bidi-other-neutral-tests: New file.
27218         * modules/unictype/property-bidi-pdf-tests: New file.
27219         * modules/unictype/property-bidi-segment-separator-tests: New file.
27220         * modules/unictype/property-bidi-whitespace-tests: New file.
27221         * modules/unictype/property-byname-tests: New file.
27222         * modules/unictype/property-combining-tests: New file.
27223         * modules/unictype/property-composite-tests: New file.
27224         * modules/unictype/property-currency-symbol-tests: New file.
27225         * modules/unictype/property-dash-tests: New file.
27226         * modules/unictype/property-decimal-digit-tests: New file.
27227         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27228         * modules/unictype/property-deprecated-tests: New file.
27229         * modules/unictype/property-diacritic-tests: New file.
27230         * modules/unictype/property-extender-tests: New file.
27231         * modules/unictype/property-format-control-tests: New file.
27232         * modules/unictype/property-grapheme-base-tests: New file.
27233         * modules/unictype/property-grapheme-extend-tests: New file.
27234         * modules/unictype/property-grapheme-link-tests: New file.
27235         * modules/unictype/property-hex-digit-tests: New file.
27236         * modules/unictype/property-hyphen-tests: New file.
27237         * modules/unictype/property-id-continue-tests: New file.
27238         * modules/unictype/property-id-start-tests: New file.
27239         * modules/unictype/property-ideographic-tests: New file.
27240         * modules/unictype/property-ids-binary-operator-tests: New file.
27241         * modules/unictype/property-ids-trinary-operator-tests: New file.
27242         * modules/unictype/property-ignorable-control-tests: New file.
27243         * modules/unictype/property-iso-control-tests: New file.
27244         * modules/unictype/property-join-control-tests: New file.
27245         * modules/unictype/property-left-of-pair-tests: New file.
27246         * modules/unictype/property-line-separator-tests: New file.
27247         * modules/unictype/property-logical-order-exception-tests: New file.
27248         * modules/unictype/property-lowercase-tests: New file.
27249         * modules/unictype/property-math-tests: New file.
27250         * modules/unictype/property-non-break-tests: New file.
27251         * modules/unictype/property-not-a-character-tests: New file.
27252         * modules/unictype/property-numeric-tests: New file.
27253         * modules/unictype/property-other-alphabetic-tests: New file.
27254         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27255         * modules/unictype/property-other-grapheme-extend-tests: New file.
27256         * modules/unictype/property-other-id-continue-tests: New file.
27257         * modules/unictype/property-other-id-start-tests: New file.
27258         * modules/unictype/property-other-lowercase-tests: New file.
27259         * modules/unictype/property-other-math-tests: New file.
27260         * modules/unictype/property-other-uppercase-tests: New file.
27261         * modules/unictype/property-paired-punctuation-tests: New file.
27262         * modules/unictype/property-paragraph-separator-tests: New file.
27263         * modules/unictype/property-pattern-syntax-tests: New file.
27264         * modules/unictype/property-pattern-white-space-tests: New file.
27265         * modules/unictype/property-private-use-tests: New file.
27266         * modules/unictype/property-punctuation-tests: New file.
27267         * modules/unictype/property-quotation-mark-tests: New file.
27268         * modules/unictype/property-radical-tests: New file.
27269         * modules/unictype/property-sentence-terminal-tests: New file.
27270         * modules/unictype/property-soft-dotted-tests: New file.
27271         * modules/unictype/property-space-tests: New file.
27272         * modules/unictype/property-terminal-punctuation-tests: New file.
27273         * modules/unictype/property-test-tests: New file.
27274         * modules/unictype/property-titlecase-tests: New file.
27275         * modules/unictype/property-unassigned-code-value-tests: New file.
27276         * modules/unictype/property-unified-ideograph-tests: New file.
27277         * modules/unictype/property-uppercase-tests: New file.
27278         * modules/unictype/property-variation-selector-tests: New file.
27279         * modules/unictype/property-white-space-tests: New file.
27280         * modules/unictype/property-xid-continue-tests: New file.
27281         * modules/unictype/property-xid-start-tests: New file.
27282         * modules/unictype/property-zero-width-tests: New file.
27283         * modules/unictype/scripts-tests: New file.
27284         * modules/unictype/syntax-c-ident-tests: New file.
27285         * modules/unictype/syntax-c-whitespace-tests: New file.
27286         * modules/unictype/syntax-java-ident-tests: New file.
27287         * modules/unictype/syntax-java-whitespace-tests: New file.
27288         * tests/unictype/test-bidi_byname.c: New file.
27289         * tests/unictype/test-bidi_name.c: New file.
27290         * tests/unictype/test-bidi_of.c: New file.
27291         * tests/unictype/test-bidi_test.c: New file.
27292         * tests/unictype/test-block_list.c: New file.
27293         * tests/unictype/test-block_of.c: New file.
27294         * tests/unictype/test-block_test.c: New file.
27295         * tests/unictype/test-categ_and.c: New file.
27296         * tests/unictype/test-categ_and_not.c: New file.
27297         * tests/unictype/test-categ_byname.c: New file.
27298         * tests/unictype/test-categ_name.c: New file.
27299         * tests/unictype/test-categ_none.c: New file.
27300         * tests/unictype/test-categ_of.c: New file.
27301         * tests/unictype/test-categ_or.c: New file.
27302         * tests/unictype/test-categ_test_withtable.c: New file.
27303         * tests/unictype/test-combining.c: New file.
27304         * tests/unictype/test-decdigit.c: New file.
27305         * tests/unictype/test-digit.c: New file.
27306         * tests/unictype/test-mirror.c: New file.
27307         * tests/unictype/test-numeric.c: New file.
27308         * tests/unictype/test-pr_byname.c: New file.
27309         * tests/unictype/test-pr_test.c: New file.
27310         * tests/unictype/test-predicate-part1.h: New file.
27311         * tests/unictype/test-predicate-part2.h: New file.
27312         * tests/unictype/test-scripts.c: New file.
27313         * tests/unictype/test-sy_c_ident.c: New file.
27314         * tests/unictype/test-sy_java_ident.c: New file.
27315
27316         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27317         for Unicode 5.0.0.
27318         * tests/unictype/test-categ_Cc.c: Likewise.
27319         * tests/unictype/test-categ_Cf.c: Likewise.
27320         * tests/unictype/test-categ_Cn.c: Likewise.
27321         * tests/unictype/test-categ_Co.c: Likewise.
27322         * tests/unictype/test-categ_Cs.c: Likewise.
27323         * tests/unictype/test-categ_L.c: Likewise.
27324         * tests/unictype/test-categ_Ll.c: Likewise.
27325         * tests/unictype/test-categ_Lm.c: Likewise.
27326         * tests/unictype/test-categ_Lo.c: Likewise.
27327         * tests/unictype/test-categ_Lt.c: Likewise.
27328         * tests/unictype/test-categ_Lu.c: Likewise.
27329         * tests/unictype/test-categ_M.c: Likewise.
27330         * tests/unictype/test-categ_Mc.c: Likewise.
27331         * tests/unictype/test-categ_Me.c: Likewise.
27332         * tests/unictype/test-categ_Mn.c: Likewise.
27333         * tests/unictype/test-categ_N.c: Likewise.
27334         * tests/unictype/test-categ_Nd.c: Likewise.
27335         * tests/unictype/test-categ_Nl.c: Likewise.
27336         * tests/unictype/test-categ_No.c: Likewise.
27337         * tests/unictype/test-categ_P.c: Likewise.
27338         * tests/unictype/test-categ_Pc.c: Likewise.
27339         * tests/unictype/test-categ_Pd.c: Likewise.
27340         * tests/unictype/test-categ_Pe.c: Likewise.
27341         * tests/unictype/test-categ_Pf.c: Likewise.
27342         * tests/unictype/test-categ_Pi.c: Likewise.
27343         * tests/unictype/test-categ_Po.c: Likewise.
27344         * tests/unictype/test-categ_Ps.c: Likewise.
27345         * tests/unictype/test-categ_S.c: Likewise.
27346         * tests/unictype/test-categ_Sc.c: Likewise.
27347         * tests/unictype/test-categ_Sk.c: Likewise.
27348         * tests/unictype/test-categ_Sm.c: Likewise.
27349         * tests/unictype/test-categ_So.c: Likewise.
27350         * tests/unictype/test-categ_Z.c: Likewise.
27351         * tests/unictype/test-categ_Zl.c: Likewise.
27352         * tests/unictype/test-categ_Zp.c: Likewise.
27353         * tests/unictype/test-categ_Zs.c: Likewise.
27354         * tests/unictype/test-ctype_alnum.c: Likewise.
27355         * tests/unictype/test-ctype_alpha.c: Likewise.
27356         * tests/unictype/test-ctype_blank.c: Likewise.
27357         * tests/unictype/test-ctype_cntrl.c: Likewise.
27358         * tests/unictype/test-ctype_digit.c: Likewise.
27359         * tests/unictype/test-ctype_graph.c: Likewise.
27360         * tests/unictype/test-ctype_lower.c: Likewise.
27361         * tests/unictype/test-ctype_print.c: Likewise.
27362         * tests/unictype/test-ctype_punct.c: Likewise.
27363         * tests/unictype/test-ctype_space.c: Likewise.
27364         * tests/unictype/test-ctype_upper.c: Likewise.
27365         * tests/unictype/test-ctype_xdigit.c: Likewise.
27366         * tests/unictype/test-decdigit.h: Likewise.
27367         * tests/unictype/test-digit.h: Likewise.
27368         * tests/unictype/test-numeric.h: Likewise.
27369         * tests/unictype/test-pr_alphabetic.c: Likewise.
27370         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27371         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27372         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27373         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27374         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27375         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27376         * tests/unictype/test-pr_bidi_control.c: Likewise.
27377         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27378         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27379         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27380         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27381         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27382         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27383         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27384         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27385         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27386         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27387         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27388         * tests/unictype/test-pr_combining.c: Likewise.
27389         * tests/unictype/test-pr_composite.c: Likewise.
27390         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27391         * tests/unictype/test-pr_dash.c: Likewise.
27392         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27393         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27394         * tests/unictype/test-pr_deprecated.c: Likewise.
27395         * tests/unictype/test-pr_diacritic.c: Likewise.
27396         * tests/unictype/test-pr_extender.c: Likewise.
27397         * tests/unictype/test-pr_format_control.c: Likewise.
27398         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27399         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27400         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27401         * tests/unictype/test-pr_hex_digit.c: Likewise.
27402         * tests/unictype/test-pr_hyphen.c: Likewise.
27403         * tests/unictype/test-pr_id_continue.c: Likewise.
27404         * tests/unictype/test-pr_id_start.c: Likewise.
27405         * tests/unictype/test-pr_ideographic.c: Likewise.
27406         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27407         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27408         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27409         * tests/unictype/test-pr_iso_control.c: Likewise.
27410         * tests/unictype/test-pr_join_control.c: Likewise.
27411         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27412         * tests/unictype/test-pr_line_separator.c: Likewise.
27413         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27414         * tests/unictype/test-pr_lowercase.c: Likewise.
27415         * tests/unictype/test-pr_math.c: Likewise.
27416         * tests/unictype/test-pr_non_break.c: Likewise.
27417         * tests/unictype/test-pr_not_a_character.c: Likewise.
27418         * tests/unictype/test-pr_numeric.c: Likewise.
27419         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27420         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27421         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27422         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27423         * tests/unictype/test-pr_other_id_start.c: Likewise.
27424         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27425         * tests/unictype/test-pr_other_math.c: Likewise.
27426         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27427         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27428         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27429         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27430         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27431         * tests/unictype/test-pr_private_use.c: Likewise.
27432         * tests/unictype/test-pr_punctuation.c: Likewise.
27433         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27434         * tests/unictype/test-pr_radical.c: Likewise.
27435         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27436         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27437         * tests/unictype/test-pr_space.c: Likewise.
27438         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27439         * tests/unictype/test-pr_titlecase.c: Likewise.
27440         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27441         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27442         * tests/unictype/test-pr_uppercase.c: Likewise.
27443         * tests/unictype/test-pr_variation_selector.c: Likewise.
27444         * tests/unictype/test-pr_white_space.c: Likewise.
27445         * tests/unictype/test-pr_xid_continue.c: Likewise.
27446         * tests/unictype/test-pr_xid_start.c: Likewise.
27447         * tests/unictype/test-pr_zero_width.c: Likewise.
27448         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27449         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27450
27451 2007-11-12  Bruno Haible  <bruno@clisp.org>
27452
27453         Unicode character classification functions.
27454         * lib/unictype.h: New file.
27455         * modules/unictype/base: New file.
27456         * modules/unictype/category-L: New file.
27457         * modules/unictype/category-Lu: New file.
27458         * modules/unictype/category-Ll: New file.
27459         * modules/unictype/category-Lt: New file.
27460         * modules/unictype/category-Lm: New file.
27461         * modules/unictype/category-Lo: New file.
27462         * modules/unictype/category-M: New file.
27463         * modules/unictype/category-Mn: New file.
27464         * modules/unictype/category-Mc: New file.
27465         * modules/unictype/category-Me: New file.
27466         * modules/unictype/category-N: New file.
27467         * modules/unictype/category-Nd: New file.
27468         * modules/unictype/category-Nl: New file.
27469         * modules/unictype/category-No: New file.
27470         * modules/unictype/category-P: New file.
27471         * modules/unictype/category-Pc: New file.
27472         * modules/unictype/category-Pd: New file.
27473         * modules/unictype/category-Ps: New file.
27474         * modules/unictype/category-Pe: New file.
27475         * modules/unictype/category-Pi: New file.
27476         * modules/unictype/category-Pf: New file.
27477         * modules/unictype/category-Po: New file.
27478         * modules/unictype/category-S: New file.
27479         * modules/unictype/category-Sm: New file.
27480         * modules/unictype/category-Sc: New file.
27481         * modules/unictype/category-Sk: New file.
27482         * modules/unictype/category-So: New file.
27483         * modules/unictype/category-Z: New file.
27484         * modules/unictype/category-Zs: New file.
27485         * modules/unictype/category-Zl: New file.
27486         * modules/unictype/category-Zp: New file.
27487         * modules/unictype/category-C: New file.
27488         * modules/unictype/category-Cc: New file.
27489         * modules/unictype/category-Cf: New file.
27490         * modules/unictype/category-Cs: New file.
27491         * modules/unictype/category-Co: New file.
27492         * modules/unictype/category-Cn: New file.
27493         * modules/unictype/category-or: New file.
27494         * modules/unictype/category-of: New file.
27495         * modules/unictype/category-test: New file.
27496         * modules/unictype/category-test-withtable: New file.
27497         * modules/unictype/category-byname: New file.
27498         * modules/unictype/category-none: New file.
27499         * modules/unictype/category-and: New file.
27500         * modules/unictype/category-and-not: New file.
27501         * modules/unictype/category-name: New file.
27502         * modules/unictype/combining-class: New file.
27503         * modules/unictype/category-all: New file.
27504         * modules/unictype/bidicategory-all: New file.
27505         * modules/unictype/bidicategory-byname: New file.
27506         * modules/unictype/bidicategory-name: New file.
27507         * modules/unictype/bidicategory-of: New file.
27508         * modules/unictype/bidicategory-test: New file.
27509         * modules/unictype/decimal-digit: New file.
27510         * modules/unictype/digit: New file.
27511         * modules/unictype/numeric: New file.
27512         * modules/unictype/mirror: New file.
27513         * modules/unictype/property-white-space: New file.
27514         * modules/unictype/property-alphabetic: New file.
27515         * modules/unictype/property-other-alphabetic: New file.
27516         * modules/unictype/property-not-a-character: New file.
27517         * modules/unictype/property-default-ignorable-code-point: New file.
27518         * modules/unictype/property-other-default-ignorable-code-point: New
27519         file.
27520         * modules/unictype/property-deprecated: New file.
27521         * modules/unictype/property-logical-order-exception: New file.
27522         * modules/unictype/property-variation-selector: New file.
27523         * modules/unictype/property-private-use: New file.
27524         * modules/unictype/property-unassigned-code-value: New file.
27525         * modules/unictype/property-uppercase: New file.
27526         * modules/unictype/property-other-uppercase: New file.
27527         * modules/unictype/property-lowercase: New file.
27528         * modules/unictype/property-other-lowercase: New file.
27529         * modules/unictype/property-titlecase: New file.
27530         * modules/unictype/property-soft-dotted: New file.
27531         * modules/unictype/property-id-start: New file.
27532         * modules/unictype/property-other-id-start: New file.
27533         * modules/unictype/property-id-continue: New file.
27534         * modules/unictype/property-other-id-continue: New file.
27535         * modules/unictype/property-xid-start: New file.
27536         * modules/unictype/property-xid-continue: New file.
27537         * modules/unictype/property-pattern-white-space: New file.
27538         * modules/unictype/property-pattern-syntax: New file.
27539         * modules/unictype/property-join-control: New file.
27540         * modules/unictype/property-grapheme-base: New file.
27541         * modules/unictype/property-grapheme-extend: New file.
27542         * modules/unictype/property-other-grapheme-extend: New file.
27543         * modules/unictype/property-grapheme-link: New file.
27544         * modules/unictype/property-bidi-control: New file.
27545         * modules/unictype/property-bidi-left-to-right: New file.
27546         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27547         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27548         * modules/unictype/property-bidi-european-digit: New file.
27549         * modules/unictype/property-bidi-eur-num-separator: New file.
27550         * modules/unictype/property-bidi-eur-num-terminator: New file.
27551         * modules/unictype/property-bidi-arabic-digit: New file.
27552         * modules/unictype/property-bidi-common-separator: New file.
27553         * modules/unictype/property-bidi-block-separator: New file.
27554         * modules/unictype/property-bidi-segment-separator: New file.
27555         * modules/unictype/property-bidi-whitespace: New file.
27556         * modules/unictype/property-bidi-non-spacing-mark: New file.
27557         * modules/unictype/property-bidi-boundary-neutral: New file.
27558         * modules/unictype/property-bidi-pdf: New file.
27559         * modules/unictype/property-bidi-embedding-or-override: New file.
27560         * modules/unictype/property-bidi-other-neutral: New file.
27561         * modules/unictype/property-hex-digit: New file.
27562         * modules/unictype/property-ascii-hex-digit: New file.
27563         * modules/unictype/property-ideographic: New file.
27564         * modules/unictype/property-unified-ideograph: New file.
27565         * modules/unictype/property-radical: New file.
27566         * modules/unictype/property-ids-binary-operator: New file.
27567         * modules/unictype/property-ids-trinary-operator: New file.
27568         * modules/unictype/property-zero-width: New file.
27569         * modules/unictype/property-space: New file.
27570         * modules/unictype/property-non-break: New file.
27571         * modules/unictype/property-iso-control: New file.
27572         * modules/unictype/property-format-control: New file.
27573         * modules/unictype/property-dash: New file.
27574         * modules/unictype/property-hyphen: New file.
27575         * modules/unictype/property-punctuation: New file.
27576         * modules/unictype/property-line-separator: New file.
27577         * modules/unictype/property-paragraph-separator: New file.
27578         * modules/unictype/property-quotation-mark: New file.
27579         * modules/unictype/property-sentence-terminal: New file.
27580         * modules/unictype/property-terminal-punctuation: New file.
27581         * modules/unictype/property-currency-symbol: New file.
27582         * modules/unictype/property-math: New file.
27583         * modules/unictype/property-other-math: New file.
27584         * modules/unictype/property-paired-punctuation: New file.
27585         * modules/unictype/property-left-of-pair: New file.
27586         * modules/unictype/property-combining: New file.
27587         * modules/unictype/property-composite: New file.
27588         * modules/unictype/property-decimal-digit: New file.
27589         * modules/unictype/property-numeric: New file.
27590         * modules/unictype/property-diacritic: New file.
27591         * modules/unictype/property-extender: New file.
27592         * modules/unictype/property-ignorable-control: New file.
27593         * modules/unictype/property-test: New file.
27594         * modules/unictype/property-byname: New file.
27595         * modules/unictype/property-all: New file.
27596         * modules/unictype/scripts: New file.
27597         * modules/unictype/scripts-all: New file.
27598         * modules/unictype/block-of: New file.
27599         * modules/unictype/block-test: New file.
27600         * modules/unictype/block-list: New file.
27601         * modules/unictype/block-all: New file.
27602         * modules/unictype/syntax-c-whitespace: New file.
27603         * modules/unictype/syntax-java-whitespace: New file.
27604         * modules/unictype/syntax-c-ident: New file.
27605         * modules/unictype/syntax-java-ident: New file.
27606         * modules/unictype/ctype-alnum: New file.
27607         * modules/unictype/ctype-alpha: New file.
27608         * modules/unictype/ctype-cntrl: New file.
27609         * modules/unictype/ctype-digit: New file.
27610         * modules/unictype/ctype-graph: New file.
27611         * modules/unictype/ctype-lower: New file.
27612         * modules/unictype/ctype-print: New file.
27613         * modules/unictype/ctype-punct: New file.
27614         * modules/unictype/ctype-space: New file.
27615         * modules/unictype/ctype-upper: New file.
27616         * modules/unictype/ctype-xdigit: New file.
27617         * modules/unictype/ctype-blank: New file.
27618         * lib/unictype/bidi_byname.c: New file.
27619         * lib/unictype/bidi_name.c: New file.
27620         * lib/unictype/bidi_of.c: New file.
27621         * lib/unictype/bidi_test.c: New file.
27622         * lib/unictype/bitmap.h: New file.
27623         * lib/unictype/block_test.c: New file.
27624         * lib/unictype/blocks.c: New file.
27625         * lib/unictype/categ_C.c: New file.
27626         * lib/unictype/categ_Cc.c: New file.
27627         * lib/unictype/categ_Cf.c: New file.
27628         * lib/unictype/categ_Cn.c: New file.
27629         * lib/unictype/categ_Co.c: New file.
27630         * lib/unictype/categ_Cs.c: New file.
27631         * lib/unictype/categ_L.c: New file.
27632         * lib/unictype/categ_Ll.c: New file.
27633         * lib/unictype/categ_Lm.c: New file.
27634         * lib/unictype/categ_Lo.c: New file.
27635         * lib/unictype/categ_Lt.c: New file.
27636         * lib/unictype/categ_Lu.c: New file.
27637         * lib/unictype/categ_M.c: New file.
27638         * lib/unictype/categ_Mc.c: New file.
27639         * lib/unictype/categ_Me.c: New file.
27640         * lib/unictype/categ_Mn.c: New file.
27641         * lib/unictype/categ_N.c: New file.
27642         * lib/unictype/categ_Nd.c: New file.
27643         * lib/unictype/categ_Nl.c: New file.
27644         * lib/unictype/categ_No.c: New file.
27645         * lib/unictype/categ_P.c: New file.
27646         * lib/unictype/categ_Pc.c: New file.
27647         * lib/unictype/categ_Pd.c: New file.
27648         * lib/unictype/categ_Pe.c: New file.
27649         * lib/unictype/categ_Pf.c: New file.
27650         * lib/unictype/categ_Pi.c: New file.
27651         * lib/unictype/categ_Po.c: New file.
27652         * lib/unictype/categ_Ps.c: New file.
27653         * lib/unictype/categ_S.c: New file.
27654         * lib/unictype/categ_Sc.c: New file.
27655         * lib/unictype/categ_Sk.c: New file.
27656         * lib/unictype/categ_Sm.c: New file.
27657         * lib/unictype/categ_So.c: New file.
27658         * lib/unictype/categ_Z.c: New file.
27659         * lib/unictype/categ_Zl.c: New file.
27660         * lib/unictype/categ_Zp.c: New file.
27661         * lib/unictype/categ_Zs.c: New file.
27662         * lib/unictype/categ_and.c: New file.
27663         * lib/unictype/categ_and_not.c: New file.
27664         * lib/unictype/categ_byname.c: New file.
27665         * lib/unictype/categ_name.c: New file.
27666         * lib/unictype/categ_none.c: New file.
27667         * lib/unictype/categ_of.c: New file.
27668         * lib/unictype/categ_or.c: New file.
27669         * lib/unictype/categ_test.c: New file.
27670         * lib/unictype/combining.c: New file.
27671         * lib/unictype/ctype_alnum.c: New file.
27672         * lib/unictype/ctype_alpha.c: New file.
27673         * lib/unictype/ctype_blank.c: New file.
27674         * lib/unictype/ctype_cntrl.c: New file.
27675         * lib/unictype/ctype_digit.c: New file.
27676         * lib/unictype/ctype_graph.c: New file.
27677         * lib/unictype/ctype_lower.c: New file.
27678         * lib/unictype/ctype_print.c: New file.
27679         * lib/unictype/ctype_punct.c: New file.
27680         * lib/unictype/ctype_space.c: New file.
27681         * lib/unictype/ctype_upper.c: New file.
27682         * lib/unictype/ctype_xdigit.c: New file.
27683         * lib/unictype/decdigit.c: New file.
27684         * lib/unictype/digit.c: New file.
27685         * lib/unictype/identsyntaxmap.h: New file.
27686         * lib/unictype/mirror.c: New file.
27687         * lib/unictype/numeric.c: New file.
27688         * lib/unictype/pr_alphabetic.c: New file.
27689         * lib/unictype/pr_ascii_hex_digit.c: New file.
27690         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27691         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27692         * lib/unictype/pr_bidi_block_separator.c: New file.
27693         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27694         * lib/unictype/pr_bidi_common_separator.c: New file.
27695         * lib/unictype/pr_bidi_control.c: New file.
27696         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27697         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27698         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27699         * lib/unictype/pr_bidi_european_digit.c: New file.
27700         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27701         * lib/unictype/pr_bidi_left_to_right.c: New file.
27702         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27703         * lib/unictype/pr_bidi_other_neutral.c: New file.
27704         * lib/unictype/pr_bidi_pdf.c: New file.
27705         * lib/unictype/pr_bidi_segment_separator.c: New file.
27706         * lib/unictype/pr_bidi_whitespace.c: New file.
27707         * lib/unictype/pr_byname.c: New file.
27708         * lib/unictype/pr_byname.gperf: New file.
27709         * lib/unictype/pr_combining.c: New file.
27710         * lib/unictype/pr_composite.c: New file.
27711         * lib/unictype/pr_currency_symbol.c: New file.
27712         * lib/unictype/pr_dash.c: New file.
27713         * lib/unictype/pr_decimal_digit.c: New file.
27714         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27715         * lib/unictype/pr_deprecated.c: New file.
27716         * lib/unictype/pr_diacritic.c: New file.
27717         * lib/unictype/pr_extender.c: New file.
27718         * lib/unictype/pr_format_control.c: New file.
27719         * lib/unictype/pr_grapheme_base.c: New file.
27720         * lib/unictype/pr_grapheme_extend.c: New file.
27721         * lib/unictype/pr_grapheme_link.c: New file.
27722         * lib/unictype/pr_hex_digit.c: New file.
27723         * lib/unictype/pr_hyphen.c: New file.
27724         * lib/unictype/pr_id_continue.c: New file.
27725         * lib/unictype/pr_id_start.c: New file.
27726         * lib/unictype/pr_ideographic.c: New file.
27727         * lib/unictype/pr_ids_binary_operator.c: New file.
27728         * lib/unictype/pr_ids_trinary_operator.c: New file.
27729         * lib/unictype/pr_ignorable_control.c: New file.
27730         * lib/unictype/pr_iso_control.c: New file.
27731         * lib/unictype/pr_join_control.c: New file.
27732         * lib/unictype/pr_left_of_pair.c: New file.
27733         * lib/unictype/pr_line_separator.c: New file.
27734         * lib/unictype/pr_logical_order_exception.c: New file.
27735         * lib/unictype/pr_lowercase.c: New file.
27736         * lib/unictype/pr_math.c: New file.
27737         * lib/unictype/pr_non_break.c: New file.
27738         * lib/unictype/pr_not_a_character.c: New file.
27739         * lib/unictype/pr_numeric.c: New file.
27740         * lib/unictype/pr_other_alphabetic.c: New file.
27741         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27742         * lib/unictype/pr_other_grapheme_extend.c: New file.
27743         * lib/unictype/pr_other_id_continue.c: New file.
27744         * lib/unictype/pr_other_id_start.c: New file.
27745         * lib/unictype/pr_other_lowercase.c: New file.
27746         * lib/unictype/pr_other_math.c: New file.
27747         * lib/unictype/pr_other_uppercase.c: New file.
27748         * lib/unictype/pr_paired_punctuation.c: New file.
27749         * lib/unictype/pr_paragraph_separator.c: New file.
27750         * lib/unictype/pr_pattern_syntax.c: New file.
27751         * lib/unictype/pr_pattern_white_space.c: New file.
27752         * lib/unictype/pr_private_use.c: New file.
27753         * lib/unictype/pr_punctuation.c: New file.
27754         * lib/unictype/pr_quotation_mark.c: New file.
27755         * lib/unictype/pr_radical.c: New file.
27756         * lib/unictype/pr_sentence_terminal.c: New file.
27757         * lib/unictype/pr_soft_dotted.c: New file.
27758         * lib/unictype/pr_space.c: New file.
27759         * lib/unictype/pr_terminal_punctuation.c: New file.
27760         * lib/unictype/pr_test.c: New file.
27761         * lib/unictype/pr_titlecase.c: New file.
27762         * lib/unictype/pr_unassigned_code_value.c: New file.
27763         * lib/unictype/pr_unified_ideograph.c: New file.
27764         * lib/unictype/pr_uppercase.c: New file.
27765         * lib/unictype/pr_variation_selector.c: New file.
27766         * lib/unictype/pr_white_space.c: New file.
27767         * lib/unictype/pr_xid_continue.c: New file.
27768         * lib/unictype/pr_xid_start.c: New file.
27769         * lib/unictype/pr_zero_width.c: New file.
27770         * lib/unictype/scripts.c: New file.
27771         * lib/unictype/sy_c_ident.c: New file.
27772         * lib/unictype/sy_c_whitespace.c: New file.
27773         * lib/unictype/sy_java_ident.c: New file.
27774         * lib/unictype/sy_java_whitespace.c: New file.
27775
27776         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27777         Unicode 5.0.0.
27778         * lib/unictype/blocks.h: Likewise.
27779         * lib/unictype/categ_C.h: Likewise.
27780         * lib/unictype/categ_Cc.h: Likewise.
27781         * lib/unictype/categ_Cf.h: Likewise.
27782         * lib/unictype/categ_Cn.h: Likewise.
27783         * lib/unictype/categ_Co.h: Likewise.
27784         * lib/unictype/categ_Cs.h: Likewise.
27785         * lib/unictype/categ_L.h: Likewise.
27786         * lib/unictype/categ_Ll.h: Likewise.
27787         * lib/unictype/categ_Lm.h: Likewise.
27788         * lib/unictype/categ_Lo.h: Likewise.
27789         * lib/unictype/categ_Lt.h: Likewise.
27790         * lib/unictype/categ_Lu.h: Likewise.
27791         * lib/unictype/categ_M.h: Likewise.
27792         * lib/unictype/categ_Mc.h: Likewise.
27793         * lib/unictype/categ_Me.h: Likewise.
27794         * lib/unictype/categ_Mn.h: Likewise.
27795         * lib/unictype/categ_N.h: Likewise.
27796         * lib/unictype/categ_Nd.h: Likewise.
27797         * lib/unictype/categ_Nl.h: Likewise.
27798         * lib/unictype/categ_No.h: Likewise.
27799         * lib/unictype/categ_P.h: Likewise.
27800         * lib/unictype/categ_Pc.h: Likewise.
27801         * lib/unictype/categ_Pd.h: Likewise.
27802         * lib/unictype/categ_Pe.h: Likewise.
27803         * lib/unictype/categ_Pf.h: Likewise.
27804         * lib/unictype/categ_Pi.h: Likewise.
27805         * lib/unictype/categ_Po.h: Likewise.
27806         * lib/unictype/categ_Ps.h: Likewise.
27807         * lib/unictype/categ_S.h: Likewise.
27808         * lib/unictype/categ_Sc.h: Likewise.
27809         * lib/unictype/categ_Sk.h: Likewise.
27810         * lib/unictype/categ_Sm.h: Likewise.
27811         * lib/unictype/categ_So.h: Likewise.
27812         * lib/unictype/categ_Z.h: Likewise.
27813         * lib/unictype/categ_Zl.h: Likewise.
27814         * lib/unictype/categ_Zp.h: Likewise.
27815         * lib/unictype/categ_Zs.h: Likewise.
27816         * lib/unictype/categ_of.h: Likewise.
27817         * lib/unictype/combining.h: Likewise.
27818         * lib/unictype/ctype_alnum.h: Likewise.
27819         * lib/unictype/ctype_alpha.h: Likewise.
27820         * lib/unictype/ctype_blank.h: Likewise.
27821         * lib/unictype/ctype_cntrl.h: Likewise.
27822         * lib/unictype/ctype_digit.h: Likewise.
27823         * lib/unictype/ctype_graph.h: Likewise.
27824         * lib/unictype/ctype_lower.h: Likewise.
27825         * lib/unictype/ctype_print.h: Likewise.
27826         * lib/unictype/ctype_punct.h: Likewise.
27827         * lib/unictype/ctype_space.h: Likewise.
27828         * lib/unictype/ctype_upper.h: Likewise.
27829         * lib/unictype/ctype_xdigit.h: Likewise.
27830         * lib/unictype/decdigit.h: Likewise.
27831         * lib/unictype/digit.h: Likewise.
27832         * lib/unictype/mirror.h: Likewise.
27833         * lib/unictype/numeric.h: Likewise.
27834         * lib/unictype/pr_alphabetic.h: Likewise.
27835         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27836         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27837         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27838         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27839         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27840         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27841         * lib/unictype/pr_bidi_control.h: Likewise.
27842         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27843         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27844         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27845         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27846         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27847         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27848         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27849         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27850         * lib/unictype/pr_bidi_pdf.h: Likewise.
27851         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27852         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27853         * lib/unictype/pr_combining.h: Likewise.
27854         * lib/unictype/pr_composite.h: Likewise.
27855         * lib/unictype/pr_currency_symbol.h: Likewise.
27856         * lib/unictype/pr_dash.h: Likewise.
27857         * lib/unictype/pr_decimal_digit.h: Likewise.
27858         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27859         * lib/unictype/pr_deprecated.h: Likewise.
27860         * lib/unictype/pr_diacritic.h: Likewise.
27861         * lib/unictype/pr_extender.h: Likewise.
27862         * lib/unictype/pr_format_control.h: Likewise.
27863         * lib/unictype/pr_grapheme_base.h: Likewise.
27864         * lib/unictype/pr_grapheme_extend.h: Likewise.
27865         * lib/unictype/pr_grapheme_link.h: Likewise.
27866         * lib/unictype/pr_hex_digit.h: Likewise.
27867         * lib/unictype/pr_hyphen.h: Likewise.
27868         * lib/unictype/pr_id_continue.h: Likewise.
27869         * lib/unictype/pr_id_start.h: Likewise.
27870         * lib/unictype/pr_ideographic.h: Likewise.
27871         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27872         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27873         * lib/unictype/pr_ignorable_control.h: Likewise.
27874         * lib/unictype/pr_iso_control.h: Likewise.
27875         * lib/unictype/pr_join_control.h: Likewise.
27876         * lib/unictype/pr_left_of_pair.h: Likewise.
27877         * lib/unictype/pr_line_separator.h: Likewise.
27878         * lib/unictype/pr_logical_order_exception.h: Likewise.
27879         * lib/unictype/pr_lowercase.h: Likewise.
27880         * lib/unictype/pr_math.h: Likewise.
27881         * lib/unictype/pr_non_break.h: Likewise.
27882         * lib/unictype/pr_not_a_character.h: Likewise.
27883         * lib/unictype/pr_numeric.h: Likewise.
27884         * lib/unictype/pr_other_alphabetic.h: Likewise.
27885         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27886         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27887         * lib/unictype/pr_other_id_continue.h: Likewise.
27888         * lib/unictype/pr_other_id_start.h: Likewise.
27889         * lib/unictype/pr_other_lowercase.h: Likewise.
27890         * lib/unictype/pr_other_math.h: Likewise.
27891         * lib/unictype/pr_other_uppercase.h: Likewise.
27892         * lib/unictype/pr_paired_punctuation.h: Likewise.
27893         * lib/unictype/pr_paragraph_separator.h: Likewise.
27894         * lib/unictype/pr_pattern_syntax.h: Likewise.
27895         * lib/unictype/pr_pattern_white_space.h: Likewise.
27896         * lib/unictype/pr_private_use.h: Likewise.
27897         * lib/unictype/pr_punctuation.h: Likewise.
27898         * lib/unictype/pr_quotation_mark.h: Likewise.
27899         * lib/unictype/pr_radical.h: Likewise.
27900         * lib/unictype/pr_sentence_terminal.h: Likewise.
27901         * lib/unictype/pr_soft_dotted.h: Likewise.
27902         * lib/unictype/pr_space.h: Likewise.
27903         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27904         * lib/unictype/pr_titlecase.h: Likewise.
27905         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27906         * lib/unictype/pr_unified_ideograph.h: Likewise.
27907         * lib/unictype/pr_uppercase.h: Likewise.
27908         * lib/unictype/pr_variation_selector.h: Likewise.
27909         * lib/unictype/pr_white_space.h: Likewise.
27910         * lib/unictype/pr_xid_continue.h: Likewise.
27911         * lib/unictype/pr_xid_start.h: Likewise.
27912         * lib/unictype/pr_zero_width.h: Likewise.
27913         * lib/unictype/scripts.h: Likewise.
27914         * lib/unictype/scripts_byname.gperf: Likewise.
27915         * lib/unictype/sy_c_ident.h: Likewise.
27916         * lib/unictype/sy_c_whitespace.h: Likewise.
27917         * lib/unictype/sy_java_ident.h: Likewise.
27918         * lib/unictype/sy_java_whitespace.h: Likewise.
27919
27920         * lib/unictype/Makefile: New file.
27921         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27922         glibc.
27923         * lib/unictype/3level.h: New file, copied from glibc.
27924         * lib/unictype/3levelbit.h: New file.
27925
27926 2007-11-11  Bruno Haible  <bruno@clisp.org>
27927
27928         * modules/gperf: New file.
27929         * modules/iconv_open (Depends-on): Add it.
27930         (Makefile.am): Remove the GPERF definition.
27931
27932 2007-11-11  Bruno Haible  <bruno@clisp.org>
27933
27934         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27935         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27936
27937 2007-11-11  Bruno Haible  <bruno@clisp.org>
27938
27939         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27940         (usage): Remove function.
27941
27942 2007-11-11  Bruno Haible  <bruno@clisp.org>
27943
27944         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27945         gl_FUNC_CEILF_LIBS.
27946         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27947         gl_FUNC_CEIL_LIBS.
27948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27949         gl_FUNC_CEILL_LIBS.
27950         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27951         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27952         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27953
27954 2007-11-11  Bruno Haible  <bruno@clisp.org>
27955
27956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27957         roundf were declared but do not exist on functions.
27958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27959         roundl were declared but do not exist on functions.
27960         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27961         HAVE_FLOORL_AND_CEILL, respectively.
27962         Needed for Sun C on Solaris 10.
27963
27964 2007-11-11  Bruno Haible  <bruno@clisp.org>
27965
27966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27967         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27968         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27969         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27970         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27971         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27972         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27973         HAVE_DECL_ROUNDF.
27974         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27975         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27977         of HAVE_DECL_ROUND*.
27978         * modules/math (Makefile.am): Update.
27979
27980 2007-11-10  Bruno Haible  <bruno@clisp.org>
27981
27982         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27983         ptrdiff_t as m4/intl.m4.
27984
27985 2007-11-10  Jim Meyering  <meyering@redhat.com>
27986
27987         Avoid link failure for the argmatch test.
27988         * tests/test-argmatch.c (usage): Define function to avoid a link
27989         failure: argmatch_die requires a usage function.
27990
27991 2007-11-09  Bruno Haible  <bruno@clisp.org>
27992
27993         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27994         * doc/functions/vsnprintf.texi: Likewise.
27995         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27996         with a size argument < 2.
27997
27998 2007-11-09  Bruno Haible  <bruno@clisp.org>
27999
28000         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28001         buffer. Fixes an inefficiency introduced on 2007-11-03.
28002
28003 2007-11-09  Bruno Haible  <bruno@clisp.org>
28004
28005         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28006         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28007
28008 2007-11-08  Jim Meyering  <meyering@redhat.com>
28009
28010         Change cache variable name prefix "jm_" to "gl_" everywhere.
28011         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28012         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28013         * m4/uptime.m4: s/gl_/jm_/
28014
28015 2007-11-07  Bruno Haible  <bruno@clisp.org>
28016
28017         Update to GNU gettext 0.17.
28018         * m4/intl.m4: Update to GNU gettext 0.17.
28019         * m4/po.m4: Likewise.
28020         * modules/gettext (Files): Remove m4/ulonglong.m4.
28021         (configure.ac): Require gettext infrastructure from version 0.17.
28022
28023 2007-11-06  Bruno Haible  <bruno@clisp.org>
28024
28025         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28026         symbolic values are not defined in a public header.
28027         * lib/freadable.c (freadable) [QNX]: Likewise.
28028         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28029         * lib/freading.c (freading) [QNX]: Likewise.
28030         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28031         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28032         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28033         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28034         Reported by Alain Magloire.
28035
28036         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28037
28038 2007-11-05  Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28041         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28042         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28043         Reported by Eric Blake.
28044
28045 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28046             Bruno Haible  <bruno@clisp.org>
28047
28048         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28049         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28050         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28051         (malloc): Undefine also before including <stdlib.h>.
28052         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28053         Needed on OSF/1 4.0.
28054
28055 2007-11-05  Jim Meyering  <meyering@redhat.com>
28056
28057         git-version-gen: sync from coreutils.
28058         * build-aux/git-version-gen: Add comments.
28059         Change the first '-' to '.' in the snapshot version string,
28060         e.g., 6.9-377-08144 -> 6.9.377-08144
28061         Remove first parameter.
28062         Don't declare a version "-dirty" merely because a time
28063         stamp has changed.
28064
28065 2007-11-04  Bruno Haible  <bruno@clisp.org>
28066
28067         * lib/lock.h: Protect all macro definitions containing an 'if'
28068         statement through a "do { ... } while (0)".
28069         * lib/tls.h: Likewise.
28070
28071 2007-11-04  Bruno Haible  <bruno@clisp.org>
28072
28073         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28074
28075 2007-11-04  Bruno Haible  <bruno@clisp.org>
28076
28077         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28078         * modules/fprintf-posix (Depends-on): Add nocrash.
28079         * modules/snprintf-posix (Depends-on): Likewise.
28080         * modules/sprintf-posix (Depends-on): Likewise.
28081         * modules/vasnprintf-posix (Depends-on): Likewise.
28082         * modules/vasprintf-posix (Depends-on): Likewise.
28083         * modules/vfprintf-posix (Depends-on): Likewise.
28084         * modules/vsnprintf-posix (Depends-on): Likewise.
28085         * modules/vsprintf-posix (Depends-on): Likewise.
28086         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28087         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28088         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28089         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28090         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28091         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28092         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28093
28094 2007-11-04  Bruno Haible  <bruno@clisp.org>
28095
28096         * modules/nocrash: New file.
28097         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28098         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28099
28100 2007-11-04  Bruno Haible  <bruno@clisp.org>
28101
28102         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28103         precision handling.
28104         * tests/test-vasprintf-posix.c (test_function): Likewise.
28105         * tests/test-snprintf-posix.h (test_function): Likewise.
28106         * tests/test-sprintf-posix.h (test_function): Likewise.
28107
28108         Fix *printf behaviour for large precisions on mingw and BeOS.
28109         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28110         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28112         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28113         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28114         gl_PRINTF_PRECISION and test its result. Invoke
28115         gl_PREREQ_VASNPRINTF_PRECISION.
28116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28123         * doc/functions/fprintf.texi: Update.
28124         * doc/functions/printf.texi: Update.
28125         * doc/functions/snprintf.texi: Update.
28126         * doc/functions/sprintf.texi: Update.
28127         * doc/functions/vfprintf.texi: Update.
28128         * doc/functions/vprintf.texi: Update.
28129         * doc/functions/vsnprintf.texi: Update.
28130         * doc/functions/vsprintf.texi: Update.
28131
28132 2007-11-04  Bruno Haible  <bruno@clisp.org>
28133
28134         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28135
28136 2007-11-04  Bruno Haible  <bruno@clisp.org>
28137
28138         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28139         Reported by Sylvain Beucler <beuc@gnu.org>.
28140
28141 2007-11-03  Bruno Haible  <bruno@clisp.org>
28142
28143         * tests/test-fprintf-posix2.sh: New file.
28144         * tests/test-fprintf-posix2.c: New file.
28145         * modules/fprintf-posix-tests (Files): Add them.
28146         (TESTS): Add test-fprintf-posix2.sh.
28147         (configure.ac): Check for getrlimit and setrlimit.
28148         (check_PROGRAMS): Add test-fprintf-posix2.
28149
28150         * tests/test-printf-posix2.sh: New file.
28151         * tests/test-printf-posix2.c: New file.
28152         * modules/printf-posix-tests (Files): Add them.
28153         (TESTS): Add test-printf-posix2.sh.
28154         (configure.ac): Check for getrlimit and setrlimit.
28155         (check_PROGRAMS): Add test-printf-posix2.
28156
28157         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28158         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28159         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28160         (decode_double): New function, copied from decode_long_double.
28161         (scale10_round_decimal_decoded): New function, extracted from
28162         scale10_round_decimal_long_double.
28163         (scale10_round_decimal_long_double): Use it.
28164         (scale10_round_decimal_double): New function.
28165         (floorlog10): New function.
28166         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28168         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28170         gl_PRINTF_ENOMEM and test its result. Invoke
28171         gl_PREREQ_VASNPRINTF_ENOMEM.
28172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28179         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28180         * modules/snprintf-posix (Depends-on): Likewise.
28181         * modules/sprintf-posix (Depends-on): Likewise.
28182         * modules/vasnprintf-posix (Depends-on): Likewise.
28183         * modules/vasprintf-posix (Depends-on): Likewise.
28184         * modules/vfprintf-posix (Depends-on): Likewise.
28185         * modules/vsnprintf-posix (Depends-on): Likewise.
28186         * modules/vsprintf-posix (Depends-on): Likewise.
28187         * doc/functions/fprintf.texi: Update.
28188         * doc/functions/printf.texi: Update.
28189         * doc/functions/snprintf.texi: Update.
28190         * doc/functions/sprintf.texi: Update.
28191         * doc/functions/vfprintf.texi: Update.
28192         * doc/functions/vprintf.texi: Update.
28193         * doc/functions/vsnprintf.texi: Update.
28194         * doc/functions/vsprintf.texi: Update.
28195
28196 2007-11-03  Bruno Haible  <bruno@clisp.org>
28197
28198         * modules/frexp-nolibm-tests: New file.
28199
28200         * modules/frexp-nolibm: New file.
28201         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28202
28203 2007-11-03  Bruno Haible  <bruno@clisp.org>
28204
28205         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28206         value is C99 compliant.
28207         Needed for OSF/1 5.1.
28208
28209 2007-11-03  Bruno Haible  <bruno@clisp.org>
28210
28211         Fix out-of-memory handling of vasnprintf.
28212         * lib/printf-parse.c: Include <errno.h>.
28213         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28214         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28215         is already set.
28216
28217 2007-11-02  Eric Blake  <ebb9@byu.net>
28218
28219         Fix tests on cygwin.
28220         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28221
28222 2007-11-01  Bruno Haible  <bruno@clisp.org>
28223
28224         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28225         warning.
28226         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28227         needed for POSIX compatibility.
28228
28229 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28230
28231         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28232         for compatibility with GNU.
28233
28234 2007-11-01  Bruno Haible  <bruno@clisp.org>
28235
28236         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28237         (putenv): Renamed from rpl_putenv. Change argument type from
28238         'const char *' to 'char *'.
28239         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28240         of defining putenv in config.h, just set REPLACE_PUTENV.
28241         * modules/putenv (Depends-on): Add stdlib.
28242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28243         (Include): Use <stdlib.h>.
28244         * lib/stdlib.in.h (putenv): New declaration.
28245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28246         REPLACE_PUTENV.
28247         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28248         REPLACE_PUTENV.
28249         Needed for MacOS X 10.5.0.
28250         Reported by Peter O'Gorman <peter@pogma.com>.
28251
28252 2007-11-01  Jim Meyering  <meyering@redhat.com>
28253
28254         Treat an empty date string exactly like "0".
28255         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28256         if the remaining date string (to be parsed) is empty, use "0".
28257         Reported by Mischa Molhoek and discussed in this thread:
28258         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28259
28260 2007-10-31  Bruno Haible  <bruno@clisp.org>
28261
28262         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28263         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28264         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28265         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28266         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28267         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28268
28269 2007-10-31  Bruno Haible  <bruno@clisp.org>
28270
28271         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28272         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28273         (AC_TYPE_LONG_LONG_INT): Use it.
28274         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28275         it as well.
28276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28277         to m4/longlong.m4.
28278         * modules/stdint (Files): Remove m4/ulonglong.m4.
28279         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28280         m4/ulonglong.m4.
28281         * modules/strtoumax (Files): Likewise.
28282
28283 2007-10-30  Bruno Haible  <bruno@clisp.org>
28284
28285         * modules/xvasprintf-posix: New file.
28286         Suggested by Eric Blake.
28287
28288 2007-10-30  Bruno Haible  <bruno@clisp.org>
28289
28290         * modules/xprintf-posix-tests: New file.
28291         * tests/test-xprintf-posix.sh: New file.
28292         * tests/test-xprintf-posix.c: New file.
28293         * tests/test-xfprintf-posix.c: New file.
28294
28295         * modules/xprintf-posix: New file.
28296
28297 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28298
28299         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28300         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28301         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28302
28303 2007-10-29  Bruno Haible  <bruno@clisp.org>
28304
28305         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28306         contain the special marker '_cv_'.
28307         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28308         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28309         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28310         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28311         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28312         Reported by Ralf Wildenhues.
28313
28314 2007-10-29  Bruno Haible  <bruno@clisp.org>
28315
28316         * gnulib-tool (func_import): When --lgpl is not specified, set
28317         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28318         GPLv3.
28319         Reported by Simon Josefsson.
28320
28321 2007-10-28  Bruno Haible  <bruno@clisp.org>
28322
28323         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28324         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28325         HAVE_DECL_ISFINITE.
28326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28327         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28328         HAVE_DECL_ISFINITE.
28329
28330 2007-10-28  Bruno Haible  <bruno@clisp.org>
28331
28332         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28333         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28334
28335 2007-10-28  Bruno Haible  <bruno@clisp.org>
28336
28337         Fix link errors with Sun C 5.0 on Solaris 10.
28338         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28339         function is declared but not present in the compiler's libm.
28340         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28341         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28342         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28343         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28344         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28345         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28346         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28348         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28349         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28350         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28351         HAVE_DECL_FLOORL.
28352
28353 2007-10-28  Bruno Haible  <bruno@clisp.org>
28354
28355         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28356         gl_FUNC_FLOORL. Cache the result.
28357         (gl_FUNC_FLOORL): Use it.
28358         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28359         gl_FUNC_CEILL. Cache the result.
28360         (gl_FUNC_CEILL): Use it.
28361
28362         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28363         gl_FUNC_FLOOR. Cache the result.
28364         (gl_FUNC_FLOOR): Use it.
28365         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28366         gl_FUNC_CEIL. Cache the result.
28367         (gl_FUNC_CEIL): Use it.
28368
28369         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28370         gl_FUNC_FLOORF. Cache the result.
28371         (gl_FUNC_FLOORF): Use it.
28372         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28373         gl_FUNC_CEILF. Cache the result.
28374         (gl_FUNC_CEILF): Use it.
28375
28376 2007-10-28  Bruno Haible  <bruno@clisp.org>
28377
28378         * gnulib-tool: Allow specifying the LGPL version number through
28379         --lgpl=2 or --lgpl=3.
28380         (func_usage): Document --lgpl with argument.
28381         Handle --lgpl=... arguments.
28382         (func_import): Recognize also gl_LGPL calls with an argument. When
28383         --lgpl=2 is used and the module's license is just LGPL, report an
28384         error. Set sed_transform_lib_file according to the lgpl variable. In
28385         the generated files, use --lgpl or gl_LGPL invocations with argument,
28386         if necessary.
28387         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28388         an LGPv2+ license.
28389         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28390         gl_LGPL macro.
28391
28392 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28393             Bruno Haible  <bruno@clisp.org>
28394
28395         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28396         (u16_uctomb_aux): Likewise.
28397         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28398         !HAVE_INLINE.
28399         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28400
28401 2007-10-28  Bruno Haible  <bruno@clisp.org>
28402
28403         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28404         Invoke AM_GETTEXT_OPTION if it exists.
28405         * modules/vasprintf: Likewise.
28406         * modules/verror: Likewise.
28407         * modules/xprintf: Likewise.
28408         * modules/xvasprintf: Likewise.
28409
28410 2007-10-27  Ben Pfaff  <blp@gnu.org>
28411
28412         * lib/math.in.h: Define isfinite macro and prototypes for
28413         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28414         implementations.
28415         * m4/math_h.m4: New substitutions for isfinite module.
28416         * lib/isfinite.c: New file.
28417         * m4/isfinite.m4: New file.
28418         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28419         * modules/isfinite: New file.
28420         * modules/isfinite-tests: New file.
28421         * tests/tests-isfinite.c: New file.
28422         * doc/functions/isfinite.texi: Mention isfinite module.
28423         * MODULES.html.sh: Mention new module.
28424
28425 2007-10-27  Ben Pfaff  <blp@gnu.org>
28426
28427         Ralf Wildenhues reported that Tru64 4.0D declares the round
28428         functions but does not have definitions.
28429         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28430         cannot be found in any library, set the output variable to
28431         "missing" instead of "".
28432         * m4/round.m4: Also use our substitute if we cannot find round in
28433         any library, even if it is declared.
28434         * m4/roundf.m4: Likewise for roundf.
28435         * m4/roundl.m4: Likewise for roundl.
28436         * lib/math.in.h: Undefine roundf, round, roundl before defining
28437         their replacements, to allow for hypothetical systems where these
28438         may be defined as macros but not available in libraries.
28439
28440 2007-10-27  Bruno Haible  <bruno@clisp.org>
28441
28442         * doc/gnulib.texi: Invoke @firstparagraphindent.
28443         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28444         changes in gnulib.
28445         (Source changes): New section.
28446
28447 2007-10-26  Bruno Haible  <bruno@clisp.org>
28448
28449         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28450         borrowed from autoconf.
28451
28452 2007-10-26  Bruno Haible  <bruno@clisp.org>
28453
28454         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28455         strerror returned the empty string. Needed on HP-UX 11.00.
28456
28457 2007-10-24  Micah Cowan  <micah@cowan.name>
28458
28459         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28460         * build-aux/bootstrap: Remove support for now-unnecessary option,
28461         --cvs-user, and envvars CVS_USER, CVS_RSH.
28462
28463 2007-10-24  Jim Meyering  <meyering@redhat.com>
28464
28465         Avoid diagnostics from sha1sum when there is no cached checksum.
28466         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28467         if the po.s1 file hasn't been created yet.
28468
28469         * build-aux/bootstrap: Sync from coreutils:
28470         2007-10-24  Jim Meyering  <meyering@redhat.com>
28471         Get gnulib from the git repository, not from an obsolete cvs one.
28472         * build-aux/bootstrap: Suggestion from Micah Cowan.
28473         2007-10-04  Jim Meyering  <jim@meyering.net>
28474         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28475         (update_po_files): Work also when there are no .po files in po/.
28476
28477 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28478
28479         * README: Append ".git" to git and cg examples.
28480         Problem reported by Benoit Sigoure.
28481
28482 2007-10-23  Micah Cowan  <micah@cowan.name>
28483
28484         * users.txt: Add wget.
28485
28486 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28487
28488         Fix linking of some unistdio tests on FreeBSD.
28489         * modules/unistdio/u16-vsnprintf-tests
28490         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28491         * modules/unistdio/u16-vsprintf-tests
28492         (test_u16_vsnprintf1_LDADD): Likewise.
28493         * modules/unistdio/u32-vsnprintf-tests
28494         (test_u32_vsnprintf1_LDADD): Likewise.
28495         * modules/unistdio/u32-vsprintf-tests
28496         (test_u32_vsprintf1_LDADD): Likewise.
28497         * modules/unistdio/u8-vsnprintf-tests
28498         (test_u8_vsnprintf1_LDADD): Likewise.
28499         * modules/unistdio/u8-vsprintf-tests
28500         (test_u8_vsprintf1_LDADD): Likewise.
28501         * modules/unistdio/ulc-vsnprintf-tests
28502         (test_ulc_vsnprintf1_LDADD): Likewise.
28503         * modules/unistdio/ulc-vsprintf-tests
28504         (test_ulc_vsprintf1_LDADD): Likewise.
28505
28506         Fix linking of some uniconv tests on FreeBSD.
28507         * modules/uniconv/u16-conv-from-enc-tests
28508         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28509         * modules/uniconv/u16-conv-to-enc-tests
28510         (test_u16_conv_to_enc_LDADD): Likewise.
28511         * modules/uniconv/u16-strconv-from-enc-tests
28512         (test_u16_strconv_from_enc_LDADD): Likewise.
28513         * modules/uniconv/u16-strconv-to-enc-tests
28514         (test_u16_strconv_to_enc_LDADD): Likewise.
28515         * modules/uniconv/u32-conv-from-enc-tests
28516         (test_u32_conv_from_enc_LDADD): Likewise.
28517         * modules/uniconv/u32-conv-to-enc-tests
28518         (test_u32_conv_to_enc_LDADD): Likewise.
28519         * modules/uniconv/u32-strconv-from-enc-tests
28520         (test_u32_strconv_from_enc_LDADD): Likewise.
28521         * modules/uniconv/u32-strconv-to-enc-tests
28522         (test_u32_strconv_to_enc_LDADD): Likewise.
28523         * modules/uniconv/u8-conv-from-enc-tests
28524         (test_u8_conv_from_enc_LDADD): Likewise.
28525         * modules/uniconv/u8-conv-to-enc-tests
28526         (test_u8_conv_to_enc_LDADD): Likewise.
28527         * modules/uniconv/u8-strconv-from-enc-tests
28528         (test_u8_strconv_from_enc_LDADD): Likewise.
28529         * modules/uniconv/u8-strconv-to-enc-tests
28530         (test_u8_strconv_to_enc_LDADD): Likewise.
28531
28532 2007-10-22  Bruno Haible  <bruno@clisp.org>
28533
28534         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28535         size.
28536
28537 2007-10-22  Eric Blake  <ebb9@byu.net>
28538
28539         Tweak x*printf documentation.
28540         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28541         variable name and comments.
28542         Suggested by Bruno Haible.
28543
28544 2007-10-22  Bruno Haible  <bruno@clisp.org>
28545
28546         * lib/acl.c (copy_acl): Fix file name in comment.
28547
28548 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28549
28550         Fix Tru64 problem with stdbool.h.
28551         * lib/stdbool.in.h (false, true):
28552         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28553         Don't declare as an enum in this situation; it runs afoul of Tru64.
28554         Problem reported by Steven M. Schweda in
28555         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28556
28557 2007-10-22  Eric Blake  <ebb9@byu.net>
28558
28559         Also wrap vf?printf.
28560         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28561         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28562         (xvprintf, xvfprintf): New functions.
28563
28564 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28565
28566         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28567         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28568
28569         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28570         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28571
28572 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28573
28574         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28575         by Bruno Haible.
28576
28577 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28578
28579         * lib/getloadavg.c
28580         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28581         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28582
28583         * tests/test-i-ring.c: Work for C89.
28584
28585 2007-10-22  Bruno Haible  <bruno@clisp.org>
28586
28587         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28588         -1u, in preprocessor expression, so that we don't test for the bug
28589         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28591
28592 2007-10-22  Eric Blake  <ebb9@byu.net>
28593
28594         * tests/test-yesno.sh: Silence stderr during test.
28595
28596 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28597
28598         * modules/crypto/gc-camellia: New file.
28599
28600         * m4/gc-camellia.m4: New file.
28601
28602         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28603
28604         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28605
28606 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28607
28608         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28609         --help to stdout.  Reported by sms@antinode.org (Steven
28610         M. Schweda).
28611
28612 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28613
28614         * users.txt: Fix link to libksba.
28615
28616 2007-10-21  Ben Pfaff  <blp@gnu.org>
28617
28618         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28619         round.c roundf implementation that depends on floorf and ceilf to
28620         be tested unconditionally.
28621
28622 2007-10-21  Ben Pfaff  <blp@gnu.org>
28623
28624         * m4/check-libm-func.m4: Removed.
28625         * m4/check-math-lib.m4: New file.
28626         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28627         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28628         definition and lack of AC_LIBOBJ([roundf]).
28629         * m4/roundl.m4: Ditto, and similarly for roundl.
28630         * modules/round: Reference new m4 file.
28631         * modules/roundf: Ditto.
28632         * modules/roundl: Ditto.
28633         * tests/test-round2.c (main): Use ROUND instead of round.
28634         Bug report from Bruno Haible.
28635
28636 2007-10-21  Bruno Haible  <bruno@clisp.org>
28637
28638         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28639         context.
28640
28641 2007-10-21  Bruno Haible  <bruno@clisp.org>
28642
28643         * tests/test-wcwidth.c (main): Allow negative result for some control
28644         characters.
28645
28646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28647         Needed on OSF/1 5.1.
28648
28649 2007-10-21  Bruno Haible  <bruno@clisp.org>
28650
28651         * tests/test-floorf1.c: Include isnanf.h.
28652         (main): Use isnanf() instead of isnan().
28653         * tests/test-ceilf1.c: Include isnanf.h.
28654         (main): Use isnanf() instead of isnan().
28655         * tests/test-truncf1.c: Include isnanf.h.
28656         (main): Use isnanf() instead of isnan().
28657         * tests/test-roundf1.c: Include isnanf.h.
28658         (main): Use isnanf() instead of isnan().
28659
28660 2007-10-21  Eric Blake  <ebb9@byu.net>
28661
28662         * users.txt: Update URL for m4.
28663
28664 2007-10-21  Bruno Haible  <bruno@clisp.org>
28665
28666         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28667
28668 2007-10-21  Bruno Haible  <bruno@clisp.org>
28669
28670         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28671         Git's management files if the CVS files are not present.
28672
28673 2007-10-20  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28676         gcc-3.4.x.
28677
28678 2007-10-20  Ben Pfaff  <blp@gnu.org>
28679
28680         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28681         implementations.
28682         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28683         * lib/round.c: New file.
28684         * lib/roundf.c: New file.
28685         * lib/roundl.c: New file.
28686         * m4/round.m4: New file.
28687         * m4/roundf.m4: New file.
28688         * m4/roundl.m4: New file.
28689         * m4/check-libm-func-m4: New file.
28690         * modules/math: Replace round, roundf, roundl related @VARS@ in
28691         math.in.h.
28692         * modules/round: New file.
28693         * modules/round-tests: New file.
28694         * modules/roundf: New file.
28695         * modules/roundf-tests: New file.
28696         * modules/roundl: New file.
28697         * modules/roundl-tests: New file.
28698         * tests/test-round1.c: New file.
28699         * tests/test-round2.c: New file.
28700         * tests/test-roundf1.c: New file.
28701         * tests/test-roundf2.c: New file.
28702         * tests/test-roundl.c: New file.
28703         * doc/functions/round.texi: Mention round module.
28704         * doc/functions/roundf.texi: Mention roundf module.
28705         * doc/functions/roundl.texi: Mention roundl module.
28706         * MODULES.html.sh: Mention new modules.
28707         Thanks to Bruno Haible for suggestions.
28708
28709 2007-10-20  Jim Meyering  <meyering@redhat.com>
28710
28711         * lib/xprintf.c: Include <config.h> unconditionally.
28712
28713         Change xprintf's license to GPL.
28714         * modules/xprintf (License): s/LGPL/GPL/, since this module
28715         depends on modules (exit and exitfail) which are GPL.
28716         Suggestion from Bruno Haible.
28717
28718         xprintf fixes.
28719         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28720         Use a clearer diagnostic.
28721         Patch from Bruno Haible.
28722
28723 2007-10-20  Bruno Haible  <bruno@clisp.org>
28724
28725         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28726         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28728
28729 2007-10-20  Bruno Haible  <bruno@clisp.org>
28730
28731         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28732         precision in the comparison result > x - 1 or similar.
28733         * tests/test-ceilf2.c (correct_result_p): Likewise.
28734         * tests/test-truncf2.c (correct_result_p): Likewise.
28735         * tests/test-trunc2.c (correct_result_p): Likewise.
28736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28737
28738 2007-10-20  Bruno Haible  <bruno@clisp.org>
28739
28740         * modules/ceil: New file.
28741         * m4/ceil.m4: New file.
28742         * doc/functions/ceil.texi: Mention the 'ceil' module.
28743
28744 2007-10-20  Bruno Haible  <bruno@clisp.org>
28745
28746         * modules/floor: New file.
28747         * m4/floor.m4: New file.
28748         * doc/functions/floor.texi: Mention the 'floor' module.
28749
28750 2007-10-20  Bruno Haible  <bruno@clisp.org>
28751
28752         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28753         of %a.
28754         * modules/floorf-tests (Depends-on): Likewise.
28755         * modules/truncf-tests (Depends-on): Likewise.
28756         * modules/trunc-tests (Depends-on): Likewise.
28757         Reported by Ben Pfaff.
28758
28759 2007-10-19  Jim Meyering  <meyering@redhat.com>
28760
28761         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28762         Don't bother testing specific errno values.  Just test ferror.
28763
28764         New module: xprintf
28765         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28766
28767 2007-10-19  Bruno Haible  <bruno@clisp.org>
28768
28769         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28770         syntax.
28771         * modules/javaexec (Makefile.am): Likewise.
28772         * modules/relocatable-prog (Makefile.am): Likewise.
28773         Suggested by Jim Meyering.
28774
28775 2007-10-18  Bruno Haible  <bruno@clisp.org>
28776
28777         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28778         Reported by Jim Meyering.
28779
28780 2007-10-18  Eric Blake  <ebb9@byu.net>
28781
28782         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28783
28784 2007-10-18  Bruno Haible  <bruno@clisp.org>
28785
28786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28787         the format string into writable memory. Needed in Fortify conditions.
28788
28789 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28790             Bruno Haible  <bruno@clisp.org>
28791
28792         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28793         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28794         * modules/trim (Depends-on): Add mbchar.
28795         (configure.ac): Add gl_FUNC_MBRTOWC.
28796         (Makefile.am): Augment lib_SOURCES.
28797
28798 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28799
28800         Modify glob.c to use fstatat and dirfd, to simplify it.
28801         Suggested by Eric Blake.
28802         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28803         Don't include <stdbool.h>; not used.
28804         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28805         (link_exists_p): Simplify implementation, since we can now assume
28806         dirfd and fstatat.
28807         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28808
28809 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28810
28811         * gnulib-tool (func_get_dependencies): Fix sed script to
28812         match only tests.
28813
28814 2007-10-17  Bruno Haible  <bruno@clisp.org>
28815
28816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28817         allow locale names without encoding suffix.
28818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28819         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28820
28821 2007-10-16  Bruno Haible  <bruno@clisp.org>
28822
28823         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28824         * lib/getgroups.c (getgroups): Likewise.
28825         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28826
28827 2007-10-16  Bruno Haible  <bruno@clisp.org>
28828
28829         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28830         * modules/malloc-posix (License): Likewise.
28831         * modules/realloc-posix (License): Likewise.
28832         * modules/calloc-posix (License): Likewise.
28833         * modules/intprops (License): Change from GPL to LGPL, with
28834         Paul Eggert's approval.
28835
28836 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28837
28838         Merge glibc changes into lib/glob.c.
28839
28840         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28841         2007-10-15 04:59:03 UTC.  Here are the changes:
28842
28843         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28844
28845         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28846
28847         * lib/glob.c: Add some branch prediction throughout.
28848
28849         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28850
28851         [BZ #5103]
28852         * lib/glob.c (glob): Recognize patterns starting \/.
28853
28854         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28855
28856         [BZ #3996]
28857         * lib/glob.c (attribute_hidden): Define if not defined.
28858         (glob): Unescape dirname, filename or username when needed and not
28859         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28860         is NULL.  Handle unescaped [ in pattern without closing ].
28861         Don't pass GLOB_CHECK down to recursive glob for directories.
28862         (__glob_pattern_type): New function.
28863         (__glob_pattern_p): Implement using __glob_pattern_type.
28864         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28865         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28866         Remove unreachable code.
28867
28868         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28869
28870         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28871         explain why there are no leaks.
28872
28873         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28874
28875         [BZ #3253]
28876         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28877         time, rather allocate increasingly bigger arrays of pointers, if
28878         possible with alloca, if too large with malloc.
28879
28880 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28881
28882         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28883         Problem reported by H.Merijn Brand in
28884         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28886         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28887
28888 2007-10-15  Bruno Haible  <bruno@clisp.org>
28889
28890         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28891         with explicit rpl_ prefix.
28892         * lib/fopen.c (fopen): Likewise.
28893         * lib/freopen.c (freopen): Likewise.
28894         * lib/iconv.c (iconv): Likewise.
28895         * lib/iconv_close.c (iconv_close): Likewise.
28896
28897 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28898
28899         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28900
28901 2007-10-15  Bruno Haible  <bruno@clisp.org>
28902
28903         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28904         <stddef.h> instead of <stdlib.h> since we only need NULL.
28905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28906
28907 2007-10-15  Bruno Haible  <bruno@clisp.org>
28908
28909         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28910         Replace paragraph talking about LIBOBJS.
28911         Reported by Colin Watson <cjwatson@debian.org>.
28912
28913 2007-10-15  Bruno Haible  <bruno@clisp.org>
28914
28915         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28916         <stdlib.h> before using NULL.
28917
28918 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28919
28920         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28921         Reported by Albert Chin <china@thewrittenword.com>.
28922
28923 2007-10-14  Bruno Haible  <bruno@clisp.org>
28924
28925         * modules/iconv_open-utf-tests: New file.
28926         * tests/test-iconv-utf.c: New file.
28927
28928         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28929         * modules/iconv_open-utf: New file.
28930         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28931         (iconv, iconv_close): New declarations.
28932         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28933         be defined.
28934         (iconv_open): Add special handling of conversion between UTF-8 and
28935         UTF-{16,32}{BE,LE}.
28936         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28937         * lib/iconv_close.c: New file.
28938         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28939         gl_FUNC_ICONV_OPEN.
28940         (gl_FUNC_ICONV_OPEN): Use it.
28941         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28942         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28943         and REPLACE_ICONV_UTF.
28944         * modules/iconv_open (Depends-on): Add c-strcase.
28945         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28946         ICONV_CONST.
28947         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28948
28949 2007-10-13  Albert Chin  <china@thewrittenword.com>
28950             Bruno Haible  <bruno@clisp.org>
28951
28952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28953         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28954
28955 2007-10-13  Bruno Haible  <bruno@clisp.org>
28956
28957         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28958         defined, use the ISO C99 inline semantics.
28959         * lib/argp.h (ARGP_EI): Likewise.
28960
28961 2007-10-13  Bruno Haible  <bruno@clisp.org>
28962
28963         Handle 'inline' change in gcc 4.3.0.
28964         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28965         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28966         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28967         argp_fmtstream_point): Disable 'extern' declaration if the function
28968         definition is going to be provided inline.
28969         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28970         semantics, not the ISO C99 inline semantics.
28971         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28972         'extern' declaration if the function definition is going to be provided
28973         inline.
28974         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28975         the GNU C inline semantics, not the ISO C99 inline semantics. With
28976         GCC 4.2, avoid a warning.
28977
28978 2007-10-13  Bruno Haible  <bruno@clisp.org>
28979
28980         * lib/freading.h (freading): Enable the use of __freading for
28981         glibc >= 2.7.
28982         * lib/freading.c (freading): Likewise.
28983
28984 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28985
28986         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28987         "warning: C99 inline functions are not supported; using GNU89".
28988
28989 2007-10-12  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28992         of 2.
28993         * tests/test-ceilf2.c: New file.
28994         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28995
28996         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28997         * modules/ceilf-tests: Update.
28998
28999 2007-10-12  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29002         of 2.
29003         * tests/test-floorf2.c: New file.
29004         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29005
29006         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29007         * modules/floorf-tests: Update.
29008
29009 2007-10-12  Bruno Haible  <bruno@clisp.org>
29010
29011         * tests/test-trunc2.c: New file.
29012         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29013
29014         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29015         * modules/trunc-tests: Update.
29016
29017 2007-10-12  Bruno Haible  <bruno@clisp.org>
29018
29019         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29020         of 2.
29021         * tests/test-truncf2.c: New file.
29022         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29023
29024         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29025         * modules/truncf-tests: Update.
29026
29027 2007-10-11  Eric Blake  <ebb9@byu.net>
29028
29029         Don't claim strerror is broken on Interix.
29030         * doc/functions/strerror.texi (strerror): Known broken systems are
29031         now Solaris 8, and not Interix.
29032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29033         Interix on cross-compile.
29034         Reported by Martin Koeppe in
29035         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29036
29037 2007-10-11  Bruno Haible  <bruno@clisp.org>
29038
29039         * modules/i-ring-tests: New file.
29040         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29041         instead of assert.
29042
29043 2007-10-11  Bruno Haible  <bruno@clisp.org>
29044
29045         * modules/filenamecat-tests: New file.
29046         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29047         * lib/filenamecat.c: Remove test code.
29048
29049 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29050
29051         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29052
29053         * lib/strerror.c: Include <string.h> always, to test interface,
29054         and to remove the need for the dummy.
29055         Include intprops.h to compute width instead of doing it ourselves
29056         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29057         (strerror): Define it to return NULL if there's no system strerror.
29058         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29059         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29060         ancient pre-strerror Unix systems well any more.  Saying "unknown
29061         system error" is enough.
29062         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29063         simpler strerror.c implementation.
29064         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29065         Simplify the tests to reflect the simpler strerror implementation.
29066         * modules/strerror (Depends-on): Add intprops.
29067
29068 2007-10-09  Eric Blake  <ebb9@byu.net>
29069
29070         Silence test-fpending.
29071         * modules/fpending-tests (Files): Add wrapper script.
29072         * tests/test-fpending.sh: New file.
29073
29074 2007-10-09  Bruno Haible  <bruno@clisp.org>
29075
29076         * MODULES.html.sh (func_module): Don't create a hyperlink for
29077         function names like 'printf_frexp'.
29078         (Misc): Add crc, memxor.
29079         (Characteristics of floating types): New section.
29080         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29081         isnanf-nolibm, signbit, trunc, truncf, truncl.
29082         (Enhancements for ISO C 99 functions): New subsection Input/output.
29083         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29084         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29085         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29086         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29087         (Enhancements for POSIX:2001 functions): Add chdir-long.
29088         (File system functions): Add areadlink, chdir-safer, read-file.
29089         Remove cycle-check.
29090         (File system as inode set): New section.
29091         (Date and time): Add gethrxtime.
29092         (Multithreading): Add openmp.
29093         (Internationalization functions): Add localename.
29094         (Unicode string functions): Add unistr/u*-mbsnlen.
29095         (Support for maintaining and releasing projects): Add git-version-gen.
29096         (Lone files): Remove directories.
29097
29098 2007-10-08  Ben Pfaff  <blp@gnu.org>
29099
29100         * lib/xmalloca.h: Fix typo in comment.
29101
29102 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29103
29104         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29105         when avoiding problems with integer overflow.  Use a portable test
29106         instead.
29107
29108 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29109
29110         * modules/dummy (License): Change to LGPLv2+.
29111         * modules/float (License): Likewise
29112         * modules/realloc (License): Likewise
29113         * modules/stdlib (License): Likewise
29114
29115 2007-10-07  Bruno Haible  <bruno@clisp.org>
29116
29117         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29118         * floor.c (TWO_MANT_DIG): Likewise.
29119         * ceil.c (TWO_MANT_DIG): Likewise.
29120         Reported by Ben Pfaff.
29121
29122 2007-10-07  Bruno Haible  <bruno@clisp.org>
29123
29124         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29125         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29126         * lib/frexp.c (FUNC): Likewise.
29127         * lib/printf-frexp.h (printf_frexp): Likewise.
29128         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29129         * lib/printf-frexp.c (FUNC): Likewise.
29130         Suggested by Jim Meyering.
29131
29132 2007-10-07  Jim Meyering  <meyering@redhat.com>
29133
29134         Make xnanosleep's integer overflow test more robust.
29135         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29136         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29137
29138 2007-10-07  Bruno Haible  <bruno@clisp.org>
29139
29140         * NEWS: Mention the license change.
29141
29142         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29143         abbreviations in the modules files.
29144
29145         Change copyright notice from GPLv2+ to GPLv3+.
29146         * README: Change copyright notice.
29147         * MODULES.html.sh: Likewise.
29148         * build-aux/bootstrap.conf: Likewise.
29149         * build-aux/config.libpath: Likewise.
29150         * build-aux/csharpcomp.sh.in: Likewise.
29151         * build-aux/csharpexec.sh.in: Likewise.
29152         * build-aux/install-reloc: Likewise.
29153         * build-aux/javacomp.sh.in: Likewise.
29154         * build-aux/javaexec.sh.in: Likewise.
29155         * build-aux/ldd.sh.in: Likewise.
29156         * build-aux/reloc-ldflags: Likewise.
29157         * build-aux/relocatable.sh.in: Likewise.
29158         * build-aux/x-to-1.in: Likewise.
29159         * check-module: Likewise.
29160         * config/srclistvars.sh: Likewise.
29161         * gnulib-tool: Likewise.
29162         * lib/acl-internal.h: Likewise.
29163         * lib/acl.c: Likewise.
29164         * lib/acl.h: Likewise.
29165         * lib/acl_entries.c: Likewise.
29166         * lib/areadlink-with-size.c: Likewise.
29167         * lib/areadlink.c: Likewise.
29168         * lib/areadlink.h: Likewise.
29169         * lib/argmatch.c: Likewise.
29170         * lib/argmatch.h: Likewise.
29171         * lib/argp-ba.c: Likewise.
29172         * lib/argp-eexst.c: Likewise.
29173         * lib/argp-fmtstream.c: Likewise.
29174         * lib/argp-fmtstream.h: Likewise.
29175         * lib/argp-fs-xinl.c: Likewise.
29176         * lib/argp-help.c: Likewise.
29177         * lib/argp-namefrob.h: Likewise.
29178         * lib/argp-parse.c: Likewise.
29179         * lib/argp-pin.c: Likewise.
29180         * lib/argp-pv.c: Likewise.
29181         * lib/argp-pvh.c: Likewise.
29182         * lib/argp-xinl.c: Likewise.
29183         * lib/argp.h: Likewise.
29184         * lib/at-func.c: Likewise.
29185         * lib/atanl.c: Likewise.
29186         * lib/backupfile.c: Likewise.
29187         * lib/backupfile.h: Likewise.
29188         * lib/basename.c: Likewise.
29189         * lib/binary-io.h: Likewise.
29190         * lib/byteswap.in.h: Likewise.
29191         * lib/c-stack.c: Likewise.
29192         * lib/c-stack.h: Likewise.
29193         * lib/c-strcasestr.c: Likewise.
29194         * lib/c-strcasestr.h: Likewise.
29195         * lib/c-strstr.c: Likewise.
29196         * lib/c-strstr.h: Likewise.
29197         * lib/c-strtod.c: Likewise.
29198         * lib/calloc.c: Likewise.
29199         * lib/canon-host.c: Likewise.
29200         * lib/canon-host.h: Likewise.
29201         * lib/canonicalize-lgpl.c: Likewise.
29202         * lib/canonicalize.c: Likewise.
29203         * lib/canonicalize.h: Likewise.
29204         * lib/ceil.c: Likewise.
29205         * lib/ceilf.c: Likewise.
29206         * lib/ceill.c: Likewise.
29207         * lib/chdir-long.c: Likewise.
29208         * lib/chdir-long.h: Likewise.
29209         * lib/chdir-safer.c: Likewise.
29210         * lib/chdir-safer.h: Likewise.
29211         * lib/chown.c: Likewise.
29212         * lib/classpath.c: Likewise.
29213         * lib/classpath.h: Likewise.
29214         * lib/clean-temp.c: Likewise.
29215         * lib/clean-temp.h: Likewise.
29216         * lib/cloexec.c: Likewise.
29217         * lib/close-stream.c: Likewise.
29218         * lib/closein.c: Likewise.
29219         * lib/closein.h: Likewise.
29220         * lib/closeout.c: Likewise.
29221         * lib/closeout.h: Likewise.
29222         * lib/concat-filename.c: Likewise.
29223         * lib/copy-file.c: Likewise.
29224         * lib/copy-file.h: Likewise.
29225         * lib/count-one-bits.h: Likewise.
29226         * lib/crc.c: Likewise.
29227         * lib/crc.h: Likewise.
29228         * lib/creat-safer.c: Likewise.
29229         * lib/csharpcomp.c: Likewise.
29230         * lib/csharpcomp.h: Likewise.
29231         * lib/csharpexec.c: Likewise.
29232         * lib/csharpexec.h: Likewise.
29233         * lib/cycle-check.c: Likewise.
29234         * lib/cycle-check.h: Likewise.
29235         * lib/diacrit.c: Likewise.
29236         * lib/diacrit.h: Likewise.
29237         * lib/diffseq.h: Likewise.
29238         * lib/dirchownmod.c: Likewise.
29239         * lib/dirent.in.h: Likewise.
29240         * lib/dirfd.c: Likewise.
29241         * lib/dirfd.h: Likewise.
29242         * lib/dirname.c: Likewise.
29243         * lib/dirname.h: Likewise.
29244         * lib/dummy.c: Likewise.
29245         * lib/dup-safer.c: Likewise.
29246         * lib/dup2.c: Likewise.
29247         * lib/eealloc.h: Likewise.
29248         * lib/error.c: Likewise.
29249         * lib/error.h: Likewise.
29250         * lib/euidaccess.c: Likewise.
29251         * lib/exclude.c: Likewise.
29252         * lib/exclude.h: Likewise.
29253         * lib/execute.c: Likewise.
29254         * lib/execute.h: Likewise.
29255         * lib/exitfail.c: Likewise.
29256         * lib/exitfail.h: Likewise.
29257         * lib/expl.c: Likewise.
29258         * lib/fatal-signal.c: Likewise.
29259         * lib/fatal-signal.h: Likewise.
29260         * lib/fbufmode.c: Likewise.
29261         * lib/fbufmode.h: Likewise.
29262         * lib/fchdir.c: Likewise.
29263         * lib/fchmodat.c: Likewise.
29264         * lib/fchownat.c: Likewise.
29265         * lib/fcntl--.h: Likewise.
29266         * lib/fcntl-safer.h: Likewise.
29267         * lib/fcntl.in.h: Likewise.
29268         * lib/fd-safer.c: Likewise.
29269         * lib/fflush.c: Likewise.
29270         * lib/file-has-acl.c: Likewise.
29271         * lib/file-set.c: Likewise.
29272         * lib/file-type.c: Likewise.
29273         * lib/file-type.h: Likewise.
29274         * lib/fileblocks.c: Likewise.
29275         * lib/filemode.c: Likewise.
29276         * lib/filemode.h: Likewise.
29277         * lib/filename.h: Likewise.
29278         * lib/filenamecat.c: Likewise.
29279         * lib/filenamecat.h: Likewise.
29280         * lib/findprog.c: Likewise.
29281         * lib/findprog.h: Likewise.
29282         * lib/float.in.h: Likewise.
29283         * lib/floor.c: Likewise.
29284         * lib/floorf.c: Likewise.
29285         * lib/floorl.c: Likewise.
29286         * lib/fopen-safer.c: Likewise.
29287         * lib/fopen.c: Likewise.
29288         * lib/fpending.c: Likewise.
29289         * lib/fpending.h: Likewise.
29290         * lib/fprintf.c: Likewise.
29291         * lib/fprintftime.h: Likewise.
29292         * lib/fpucw.h: Likewise.
29293         * lib/fpurge.c: Likewise.
29294         * lib/fpurge.h: Likewise.
29295         * lib/freadable.c: Likewise.
29296         * lib/freadable.h: Likewise.
29297         * lib/freadahead.c: Likewise.
29298         * lib/freadahead.h: Likewise.
29299         * lib/freading.c: Likewise.
29300         * lib/freading.h: Likewise.
29301         * lib/free.c: Likewise.
29302         * lib/freopen.c: Likewise.
29303         * lib/frexp.c: Likewise.
29304         * lib/frexpl.c: Likewise.
29305         * lib/fseek.c: Likewise.
29306         * lib/fseterr.c: Likewise.
29307         * lib/fseterr.h: Likewise.
29308         * lib/fstatat.c: Likewise.
29309         * lib/fstrcmp.c: Likewise.
29310         * lib/fstrcmp.h: Likewise.
29311         * lib/fsusage.c: Likewise.
29312         * lib/fsusage.h: Likewise.
29313         * lib/ftell.c: Likewise.
29314         * lib/ftello.c: Likewise.
29315         * lib/fts-cycle.c: Likewise.
29316         * lib/fts.c: Likewise.
29317         * lib/fts_.h: Likewise.
29318         * lib/full-read.c: Likewise.
29319         * lib/full-read.h: Likewise.
29320         * lib/full-write.c: Likewise.
29321         * lib/full-write.h: Likewise.
29322         * lib/fwritable.c: Likewise.
29323         * lib/fwritable.h: Likewise.
29324         * lib/fwriteerror.c: Likewise.
29325         * lib/fwriteerror.h: Likewise.
29326         * lib/fwriting.c: Likewise.
29327         * lib/fwriting.h: Likewise.
29328         * lib/gcd.c: Likewise.
29329         * lib/gcd.h: Likewise.
29330         * lib/getcwd.c: Likewise.
29331         * lib/getdate.h: Likewise.
29332         * lib/getdate.y: Likewise.
29333         * lib/getdomainname.c: Likewise.
29334         * lib/getdomainname.h: Likewise.
29335         * lib/getgroups.c: Likewise.
29336         * lib/gethostname.c: Likewise.
29337         * lib/gethrxtime.c: Likewise.
29338         * lib/gethrxtime.h: Likewise.
29339         * lib/getloadavg.c: Likewise.
29340         * lib/getndelim2.c: Likewise.
29341         * lib/getndelim2.h: Likewise.
29342         * lib/getnline.c: Likewise.
29343         * lib/getnline.h: Likewise.
29344         * lib/getopt.c: Likewise.
29345         * lib/getopt.in.h: Likewise.
29346         * lib/getopt1.c: Likewise.
29347         * lib/getopt_int.h: Likewise.
29348         * lib/getpagesize.h: Likewise.
29349         * lib/getsubopt.c: Likewise.
29350         * lib/gettime.c: Likewise.
29351         * lib/getugroups.c: Likewise.
29352         * lib/getugroups.h: Likewise.
29353         * lib/getusershell.c: Likewise.
29354         * lib/gl_anyavltree_list1.h: Likewise.
29355         * lib/gl_anyavltree_list2.h: Likewise.
29356         * lib/gl_anyhash_list1.h: Likewise.
29357         * lib/gl_anyhash_list2.h: Likewise.
29358         * lib/gl_anylinked_list1.h: Likewise.
29359         * lib/gl_anylinked_list2.h: Likewise.
29360         * lib/gl_anyrbtree_list1.h: Likewise.
29361         * lib/gl_anyrbtree_list2.h: Likewise.
29362         * lib/gl_anytree_list1.h: Likewise.
29363         * lib/gl_anytree_list2.h: Likewise.
29364         * lib/gl_anytree_oset.h: Likewise.
29365         * lib/gl_anytreehash_list1.h: Likewise.
29366         * lib/gl_anytreehash_list2.h: Likewise.
29367         * lib/gl_array_list.c: Likewise.
29368         * lib/gl_array_list.h: Likewise.
29369         * lib/gl_array_oset.c: Likewise.
29370         * lib/gl_array_oset.h: Likewise.
29371         * lib/gl_avltree_list.c: Likewise.
29372         * lib/gl_avltree_list.h: Likewise.
29373         * lib/gl_avltree_oset.c: Likewise.
29374         * lib/gl_avltree_oset.h: Likewise.
29375         * lib/gl_avltreehash_list.c: Likewise.
29376         * lib/gl_avltreehash_list.h: Likewise.
29377         * lib/gl_carray_list.c: Likewise.
29378         * lib/gl_carray_list.h: Likewise.
29379         * lib/gl_linked_list.c: Likewise.
29380         * lib/gl_linked_list.h: Likewise.
29381         * lib/gl_linkedhash_list.c: Likewise.
29382         * lib/gl_linkedhash_list.h: Likewise.
29383         * lib/gl_list.c: Likewise.
29384         * lib/gl_list.h: Likewise.
29385         * lib/gl_oset.c: Likewise.
29386         * lib/gl_oset.h: Likewise.
29387         * lib/gl_rbtree_list.c: Likewise.
29388         * lib/gl_rbtree_list.h: Likewise.
29389         * lib/gl_rbtree_oset.c: Likewise.
29390         * lib/gl_rbtree_oset.h: Likewise.
29391         * lib/gl_rbtreehash_list.c: Likewise.
29392         * lib/gl_rbtreehash_list.h: Likewise.
29393         * lib/gl_sublist.c: Likewise.
29394         * lib/gl_sublist.h: Likewise.
29395         * lib/group-member.c: Likewise.
29396         * lib/group-member.h: Likewise.
29397         * lib/hard-locale.c: Likewise.
29398         * lib/hard-locale.h: Likewise.
29399         * lib/hash-pjw.c: Likewise.
29400         * lib/hash-pjw.h: Likewise.
29401         * lib/hash-triple.c: Likewise.
29402         * lib/hash.c: Likewise.
29403         * lib/hash.h: Likewise.
29404         * lib/human.c: Likewise.
29405         * lib/human.h: Likewise.
29406         * lib/i-ring.c: Likewise.
29407         * lib/i-ring.h: Likewise.
29408         * lib/idcache.c: Likewise.
29409         * lib/imaxabs.c: Likewise.
29410         * lib/imaxdiv.c: Likewise.
29411         * lib/inet_pton.c: Likewise.
29412         * lib/inet_pton.h: Likewise.
29413         * lib/intprops.h: Likewise.
29414         * lib/inttostr.c: Likewise.
29415         * lib/inttostr.h: Likewise.
29416         * lib/inttypes.in.h: Likewise.
29417         * lib/isapipe.c: Likewise.
29418         * lib/isdir.c: Likewise.
29419         * lib/isnan.c: Likewise.
29420         * lib/isnan.h: Likewise.
29421         * lib/isnanf.c: Likewise.
29422         * lib/isnanf.h: Likewise.
29423         * lib/isnanl-nolibm.h: Likewise.
29424         * lib/isnanl.c: Likewise.
29425         * lib/isnanl.h: Likewise.
29426         * lib/javacomp.c: Likewise.
29427         * lib/javacomp.h: Likewise.
29428         * lib/javaexec.c: Likewise.
29429         * lib/javaexec.h: Likewise.
29430         * lib/javaversion.c: Likewise.
29431         * lib/javaversion.h: Likewise.
29432         * lib/javaversion.java: Likewise.
29433         * lib/lbrkprop.h: Likewise.
29434         * lib/lchmod.h: Likewise.
29435         * lib/lchown.c: Likewise.
29436         * lib/ldexpl.c: Likewise.
29437         * lib/linebreak.c: Likewise.
29438         * lib/linebreak.h: Likewise.
29439         * lib/linebuffer.c: Likewise.
29440         * lib/linebuffer.h: Likewise.
29441         * lib/locale.in.h: Likewise.
29442         * lib/logl.c: Likewise.
29443         * lib/long-options.c: Likewise.
29444         * lib/long-options.h: Likewise.
29445         * lib/lstat.c: Likewise.
29446         * lib/lstat.h: Likewise.
29447         * lib/math.in.h: Likewise.
29448         * lib/mbchar.c: Likewise.
29449         * lib/mbchar.h: Likewise.
29450         * lib/mbfile.h: Likewise.
29451         * lib/mbiter.h: Likewise.
29452         * lib/mbscasecmp.c: Likewise.
29453         * lib/mbscasestr.c: Likewise.
29454         * lib/mbschr.c: Likewise.
29455         * lib/mbscspn.c: Likewise.
29456         * lib/mbslen.c: Likewise.
29457         * lib/mbsncasecmp.c: Likewise.
29458         * lib/mbsnlen.c: Likewise.
29459         * lib/mbspbrk.c: Likewise.
29460         * lib/mbspcasecmp.c: Likewise.
29461         * lib/mbsrchr.c: Likewise.
29462         * lib/mbssep.c: Likewise.
29463         * lib/mbsspn.c: Likewise.
29464         * lib/mbsstr.c: Likewise.
29465         * lib/mbstok_r.c: Likewise.
29466         * lib/mbswidth.c: Likewise.
29467         * lib/mbswidth.h: Likewise.
29468         * lib/mbuiter.h: Likewise.
29469         * lib/memcasecmp.c: Likewise.
29470         * lib/memcasecmp.h: Likewise.
29471         * lib/memchr.c: Likewise.
29472         * lib/memcmp.c: Likewise.
29473         * lib/memcoll.c: Likewise.
29474         * lib/memcoll.h: Likewise.
29475         * lib/memcpy.c: Likewise.
29476         * lib/memrchr.c: Likewise.
29477         * lib/mkancesdirs.c: Likewise.
29478         * lib/mkdir-p.c: Likewise.
29479         * lib/mkdir-p.h: Likewise.
29480         * lib/mkdir.c: Likewise.
29481         * lib/mkdirat.c: Likewise.
29482         * lib/mkdtemp.c: Likewise.
29483         * lib/mkstemp-safer.c: Likewise.
29484         * lib/mkstemp.c: Likewise.
29485         * lib/modechange.c: Likewise.
29486         * lib/modechange.h: Likewise.
29487         * lib/mountlist.c: Likewise.
29488         * lib/mountlist.h: Likewise.
29489         * lib/mpsort.c: Likewise.
29490         * lib/nanosleep.c: Likewise.
29491         * lib/obstack.c: Likewise.
29492         * lib/obstack.h: Likewise.
29493         * lib/open-safer.c: Likewise.
29494         * lib/open.c: Likewise.
29495         * lib/openat-die.c: Likewise.
29496         * lib/openat-priv.h: Likewise.
29497         * lib/openat-proc.c: Likewise.
29498         * lib/openat.c: Likewise.
29499         * lib/openat.h: Likewise.
29500         * lib/pagealign_alloc.c: Likewise.
29501         * lib/pagealign_alloc.h: Likewise.
29502         * lib/physmem.c: Likewise.
29503         * lib/physmem.h: Likewise.
29504         * lib/pipe-safer.c: Likewise.
29505         * lib/pipe.c: Likewise.
29506         * lib/pipe.h: Likewise.
29507         * lib/posixtm.c: Likewise.
29508         * lib/posixtm.h: Likewise.
29509         * lib/posixver.c: Likewise.
29510         * lib/printf-frexp.c: Likewise.
29511         * lib/printf-frexp.h: Likewise.
29512         * lib/printf-frexpl.c: Likewise.
29513         * lib/printf-frexpl.h: Likewise.
29514         * lib/printf.c: Likewise.
29515         * lib/progname.c: Likewise.
29516         * lib/progname.h: Likewise.
29517         * lib/progreloc.c: Likewise.
29518         * lib/putenv.c: Likewise.
29519         * lib/quote.c: Likewise.
29520         * lib/quote.h: Likewise.
29521         * lib/quotearg.c: Likewise.
29522         * lib/quotearg.h: Likewise.
29523         * lib/raise.c: Likewise.
29524         * lib/readline.c: Likewise.
29525         * lib/readline.h: Likewise.
29526         * lib/readlink.c: Likewise.
29527         * lib/readtokens.c: Likewise.
29528         * lib/readtokens.h: Likewise.
29529         * lib/readtokens0.c: Likewise.
29530         * lib/readtokens0.h: Likewise.
29531         * lib/readutmp.c: Likewise.
29532         * lib/readutmp.h: Likewise.
29533         * lib/realloc.c: Likewise.
29534         * lib/relocwrapper.c: Likewise.
29535         * lib/rename-dest-slash.c: Likewise.
29536         * lib/rename.c: Likewise.
29537         * lib/rmdir.c: Likewise.
29538         * lib/rpmatch.c: Likewise.
29539         * lib/safe-read.c: Likewise.
29540         * lib/safe-read.h: Likewise.
29541         * lib/safe-write.c: Likewise.
29542         * lib/safe-write.h: Likewise.
29543         * lib/same-inode.h: Likewise.
29544         * lib/same.c: Likewise.
29545         * lib/same.h: Likewise.
29546         * lib/save-cwd.c: Likewise.
29547         * lib/save-cwd.h: Likewise.
29548         * lib/savedir.c: Likewise.
29549         * lib/savedir.h: Likewise.
29550         * lib/savewd.c: Likewise.
29551         * lib/savewd.h: Likewise.
29552         * lib/search.in.h: Likewise.
29553         * lib/setenv.c: Likewise.
29554         * lib/setenv.h: Likewise.
29555         * lib/settime.c: Likewise.
29556         * lib/sh-quote.c: Likewise.
29557         * lib/sh-quote.h: Likewise.
29558         * lib/sig2str.c: Likewise.
29559         * lib/sig2str.h: Likewise.
29560         * lib/signal.in.h: Likewise.
29561         * lib/signbitd.c: Likewise.
29562         * lib/signbitf.c: Likewise.
29563         * lib/signbitl.c: Likewise.
29564         * lib/sigprocmask.c: Likewise.
29565         * lib/sincosl.c: Likewise.
29566         * lib/sleep.c: Likewise.
29567         * lib/sprintf.c: Likewise.
29568         * lib/sqrtl.c: Likewise.
29569         * lib/stat-time.h: Likewise.
29570         * lib/stdio--.h: Likewise.
29571         * lib/stdio-safer.h: Likewise.
29572         * lib/stdlib--.h: Likewise.
29573         * lib/stdlib-safer.h: Likewise.
29574         * lib/stdlib.in.h: Likewise.
29575         * lib/stpcpy.c: Likewise.
29576         * lib/stpncpy.c: Likewise.
29577         * lib/strchrnul.c: Likewise.
29578         * lib/strcspn.c: Likewise.
29579         * lib/strerror.c: Likewise.
29580         * lib/strftime.c: Likewise.
29581         * lib/strftime.h: Likewise.
29582         * lib/striconveh.c: Likewise.
29583         * lib/striconveh.h: Likewise.
29584         * lib/striconveha.c: Likewise.
29585         * lib/striconveha.h: Likewise.
29586         * lib/stripslash.c: Likewise.
29587         * lib/strnlen1.c: Likewise.
29588         * lib/strnlen1.h: Likewise.
29589         * lib/strtod.c: Likewise.
29590         * lib/strtoimax.c: Likewise.
29591         * lib/strtok_r.c: Likewise.
29592         * lib/strtol.c: Likewise.
29593         * lib/strtoll.c: Likewise.
29594         * lib/strtoul.c: Likewise.
29595         * lib/strtoull.c: Likewise.
29596         * lib/sysexits.in.h: Likewise.
29597         * lib/tempname.c: Likewise.
29598         * lib/tempname.h: Likewise.
29599         * lib/timespec.h: Likewise.
29600         * lib/tls.c: Likewise.
29601         * lib/tls.h: Likewise.
29602         * lib/tmpdir.c: Likewise.
29603         * lib/tmpdir.h: Likewise.
29604         * lib/tmpfile-safer.c: Likewise.
29605         * lib/tmpfile.c: Likewise.
29606         * lib/trigl.c: Likewise.
29607         * lib/trigl.h: Likewise.
29608         * lib/trim.c: Likewise.
29609         * lib/trim.h: Likewise.
29610         * lib/trunc.c: Likewise.
29611         * lib/truncf.c: Likewise.
29612         * lib/truncl.c: Likewise.
29613         * lib/tsearch.c: Likewise.
29614         * lib/unicodeio.c: Likewise.
29615         * lib/unicodeio.h: Likewise.
29616         * lib/unistd--.h: Likewise.
29617         * lib/unistd-safer.h: Likewise.
29618         * lib/unistdio/ulc-fprintf.c: Likewise.
29619         * lib/unistdio/ulc-vfprintf.c: Likewise.
29620         * lib/unlinkdir.c: Likewise.
29621         * lib/unlinkdir.h: Likewise.
29622         * lib/unlocked-io.h: Likewise.
29623         * lib/unsetenv.c: Likewise.
29624         * lib/userspec.c: Likewise.
29625         * lib/utime.c: Likewise.
29626         * lib/utimecmp.c: Likewise.
29627         * lib/utimecmp.h: Likewise.
29628         * lib/utimens.c: Likewise.
29629         * lib/verify.h: Likewise.
29630         * lib/verror.c: Likewise.
29631         * lib/verror.h: Likewise.
29632         * lib/version-etc-fsf.c: Likewise.
29633         * lib/version-etc.c: Likewise.
29634         * lib/version-etc.h: Likewise.
29635         * lib/vfprintf.c: Likewise.
29636         * lib/vprintf.c: Likewise.
29637         * lib/vsprintf.c: Likewise.
29638         * lib/w32spawn.h: Likewise.
29639         * lib/wait-process.c: Likewise.
29640         * lib/wait-process.h: Likewise.
29641         * lib/wcwidth.c: Likewise.
29642         * lib/write-any-file.c: Likewise.
29643         * lib/xalloc-die.c: Likewise.
29644         * lib/xalloc.h: Likewise.
29645         * lib/xasprintf.c: Likewise.
29646         * lib/xgetcwd.c: Likewise.
29647         * lib/xgetcwd.h: Likewise.
29648         * lib/xgetdomainname.c: Likewise.
29649         * lib/xgetdomainname.h: Likewise.
29650         * lib/xgethostname.c: Likewise.
29651         * lib/xmalloc.c: Likewise.
29652         * lib/xmalloca.c: Likewise.
29653         * lib/xmalloca.h: Likewise.
29654         * lib/xmemcoll.c: Likewise.
29655         * lib/xnanosleep.c: Likewise.
29656         * lib/xreadlink.c: Likewise.
29657         * lib/xreadlink.h: Likewise.
29658         * lib/xsetenv.c: Likewise.
29659         * lib/xsetenv.h: Likewise.
29660         * lib/xstriconv.c: Likewise.
29661         * lib/xstriconv.h: Likewise.
29662         * lib/xstrndup.c: Likewise.
29663         * lib/xstrndup.h: Likewise.
29664         * lib/xstrtod.c: Likewise.
29665         * lib/xstrtod.h: Likewise.
29666         * lib/xstrtol-error.c: Likewise.
29667         * lib/xstrtol.c: Likewise.
29668         * lib/xstrtol.h: Likewise.
29669         * lib/xtime.h: Likewise.
29670         * lib/xvasprintf.c: Likewise.
29671         * lib/xvasprintf.h: Likewise.
29672         * lib/yesno.c: Likewise.
29673         * lib/yesno.h: Likewise.
29674         * posix-modules: Likewise.
29675         * tests/test-alloca-opt.c: Likewise.
29676         * tests/test-arcfour.c: Likewise.
29677         * tests/test-arctwo.c: Likewise.
29678         * tests/test-argmatch.c: Likewise.
29679         * tests/test-argp-2.sh: Likewise.
29680         * tests/test-argp.c: Likewise.
29681         * tests/test-arpa_inet.c: Likewise.
29682         * tests/test-array_list.c: Likewise.
29683         * tests/test-array_oset.c: Likewise.
29684         * tests/test-atexit.c: Likewise.
29685         * tests/test-avltree_list.c: Likewise.
29686         * tests/test-avltree_oset.c: Likewise.
29687         * tests/test-avltreehash_list.c: Likewise.
29688         * tests/test-base64.c: Likewise.
29689         * tests/test-binary-io.c: Likewise.
29690         * tests/test-byteswap.c: Likewise.
29691         * tests/test-c-ctype.c: Likewise.
29692         * tests/test-c-strcasecmp.c: Likewise.
29693         * tests/test-c-strcasestr.c: Likewise.
29694         * tests/test-c-strncasecmp.c: Likewise.
29695         * tests/test-c-strstr.c: Likewise.
29696         * tests/test-canonicalize-lgpl.c: Likewise.
29697         * tests/test-canonicalize.c: Likewise.
29698         * tests/test-carray_list.c: Likewise.
29699         * tests/test-ceilf.c: Likewise.
29700         * tests/test-ceill.c: Likewise.
29701         * tests/test-count-one-bits.c: Likewise.
29702         * tests/test-crc.c: Likewise.
29703         * tests/test-dirname.c: Likewise.
29704         * tests/test-fbufmode.c: Likewise.
29705         * tests/test-fcntl.c: Likewise.
29706         * tests/test-fflush.c: Likewise.
29707         * tests/test-floorf.c: Likewise.
29708         * tests/test-floorl.c: Likewise.
29709         * tests/test-fopen.c: Likewise.
29710         * tests/test-fprintf-posix.c: Likewise.
29711         * tests/test-fprintf-posix.h: Likewise.
29712         * tests/test-fpurge.c: Likewise.
29713         * tests/test-freadable.c: Likewise.
29714         * tests/test-freadahead.c: Likewise.
29715         * tests/test-freading.c: Likewise.
29716         * tests/test-freopen.c: Likewise.
29717         * tests/test-frexp.c: Likewise.
29718         * tests/test-frexpl.c: Likewise.
29719         * tests/test-fseek.c: Likewise.
29720         * tests/test-fseeko.c: Likewise.
29721         * tests/test-fseterr.c: Likewise.
29722         * tests/test-fstrcmp.c: Likewise.
29723         * tests/test-ftell.c: Likewise.
29724         * tests/test-ftello.c: Likewise.
29725         * tests/test-fwritable.c: Likewise.
29726         * tests/test-fwriting.c: Likewise.
29727         * tests/test-getaddrinfo.c: Likewise.
29728         * tests/test-getpass.c: Likewise.
29729         * tests/test-gettimeofday.c: Likewise.
29730         * tests/test-hmac-md5.c: Likewise.
29731         * tests/test-hmac-sha1.c: Likewise.
29732         * tests/test-iconv.c: Likewise.
29733         * tests/test-iconvme.c: Likewise.
29734         * tests/test-inttypes.c: Likewise.
29735         * tests/test-isnan.c: Likewise.
29736         * tests/test-isnanf.c: Likewise.
29737         * tests/test-isnanl-nolibm.c: Likewise.
29738         * tests/test-isnanl.c: Likewise.
29739         * tests/test-isnanl.h: Likewise.
29740         * tests/test-ldexpl.c: Likewise.
29741         * tests/test-linked_list.c: Likewise.
29742         * tests/test-linkedhash_list.c: Likewise.
29743         * tests/test-locale.c: Likewise.
29744         * tests/test-localename.c: Likewise.
29745         * tests/test-lock.c: Likewise.
29746         * tests/test-lseek.c: Likewise.
29747         * tests/test-malloca.c: Likewise.
29748         * tests/test-math.c: Likewise.
29749         * tests/test-mbscasecmp.c: Likewise.
29750         * tests/test-mbscasestr1.c: Likewise.
29751         * tests/test-mbscasestr2.c: Likewise.
29752         * tests/test-mbscasestr3.c: Likewise.
29753         * tests/test-mbscasestr4.c: Likewise.
29754         * tests/test-mbschr.c: Likewise.
29755         * tests/test-mbscspn.c: Likewise.
29756         * tests/test-mbsncasecmp.c: Likewise.
29757         * tests/test-mbspbrk.c: Likewise.
29758         * tests/test-mbspcasecmp.c: Likewise.
29759         * tests/test-mbsrchr.c: Likewise.
29760         * tests/test-mbsspn.c: Likewise.
29761         * tests/test-mbsstr1.c: Likewise.
29762         * tests/test-mbsstr2.c: Likewise.
29763         * tests/test-mbsstr3.c: Likewise.
29764         * tests/test-md5.c: Likewise.
29765         * tests/test-memmem.c: Likewise.
29766         * tests/test-netinet_in.c: Likewise.
29767         * tests/test-open.c: Likewise.
29768         * tests/test-printf-frexp.c: Likewise.
29769         * tests/test-printf-frexpl.c: Likewise.
29770         * tests/test-printf-posix.c: Likewise.
29771         * tests/test-printf-posix.h: Likewise.
29772         * tests/test-rbtree_list.c: Likewise.
29773         * tests/test-rbtree_oset.c: Likewise.
29774         * tests/test-rbtreehash_list.c: Likewise.
29775         * tests/test-read-file.c: Likewise.
29776         * tests/test-rijndael.c: Likewise.
29777         * tests/test-search.c: Likewise.
29778         * tests/test-signbit.c: Likewise.
29779         * tests/test-sleep.c: Likewise.
29780         * tests/test-snprintf-posix.c: Likewise.
29781         * tests/test-snprintf-posix.h: Likewise.
29782         * tests/test-snprintf.c: Likewise.
29783         * tests/test-sprintf-posix.c: Likewise.
29784         * tests/test-sprintf-posix.h: Likewise.
29785         * tests/test-stat-time.c: Likewise.
29786         * tests/test-stdbool.c: Likewise.
29787         * tests/test-stdint.c: Likewise.
29788         * tests/test-stdio.c: Likewise.
29789         * tests/test-stdlib.c: Likewise.
29790         * tests/test-stpncpy.c: Likewise.
29791         * tests/test-strcasestr.c: Likewise.
29792         * tests/test-striconv.c: Likewise.
29793         * tests/test-striconveh.c: Likewise.
29794         * tests/test-striconveha.c: Likewise.
29795         * tests/test-string.c: Likewise.
29796         * tests/test-sys_select.c: Likewise.
29797         * tests/test-sys_socket.c: Likewise.
29798         * tests/test-sys_stat.c: Likewise.
29799         * tests/test-sys_time.c: Likewise.
29800         * tests/test-sysexits.c: Likewise.
29801         * tests/test-time.c: Likewise.
29802         * tests/test-tls.c: Likewise.
29803         * tests/test-trunc.c: Likewise.
29804         * tests/test-truncf.c: Likewise.
29805         * tests/test-truncl.c: Likewise.
29806         * tests/test-unistd.c: Likewise.
29807         * tests/test-vasnprintf-posix.c: Likewise.
29808         * tests/test-vasnprintf-posix2.c: Likewise.
29809         * tests/test-vasnprintf.c: Likewise.
29810         * tests/test-vasprintf-posix.c: Likewise.
29811         * tests/test-vasprintf.c: Likewise.
29812         * tests/test-verify.c: Likewise.
29813         * tests/test-vfprintf-posix.c: Likewise.
29814         * tests/test-vprintf-posix.c: Likewise.
29815         * tests/test-vsnprintf-posix.c: Likewise.
29816         * tests/test-vsnprintf.c: Likewise.
29817         * tests/test-vsprintf-posix.c: Likewise.
29818         * tests/test-wchar.c: Likewise.
29819         * tests/test-wctype.c: Likewise.
29820         * tests/test-wcwidth.c: Likewise.
29821         * tests/test-xstrtol.c: Likewise.
29822         * tests/test-xvasprintf.c: Likewise.
29823         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29824         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29825         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29826         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29827         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29828         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29829         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29830         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29831         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29832         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29833         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29834         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29835         * tests/uniname/test-uninames.c: Likewise.
29836         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29837         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29838         * tests/unistdio/test-u16-printf1.h: Likewise.
29839         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29840         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29841         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29842         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29843         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29844         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29845         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29846         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29847         * tests/unistdio/test-u32-printf1.h: Likewise.
29848         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29849         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29850         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29851         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29852         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29853         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29854         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29855         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29856         * tests/unistdio/test-u8-printf1.h: Likewise.
29857         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29858         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29859         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29860         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29861         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29862         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29863         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29864         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29865         * tests/unistdio/test-ulc-printf1.h: Likewise.
29866         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29867         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29868         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29869         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29870         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29871         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29872         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29873         * tests/uniwidth/test-u16-width.c: Likewise.
29874         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29875         * tests/uniwidth/test-u32-width.c: Likewise.
29876         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29877         * tests/uniwidth/test-u8-width.c: Likewise.
29878         * tests/uniwidth/test-uc_width.c: Likewise.
29879         * config/srclist-update: Likewise.
29880         (fixlicense): Update to GPLv3+.
29881
29882         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29883         * tests/test-tsearch.c: Change copyright notice.
29884
29885         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29886         * lib/c-strcaseeq.h: Change copyright notice.
29887         * lib/streq.h: Likewise.
29888         * lib/uniconv.h: Likewise.
29889         * lib/uniconv/u-conv-from-enc.h: Likewise.
29890         * lib/uniconv/u-conv-to-enc.h: Likewise.
29891         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29892         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29893         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29894         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29895         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29896         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29897         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29898         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29899         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29900         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29901         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29902         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29903         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29904         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29905         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29906         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29907         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29908         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29909         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29910         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29911         * lib/uniname.h: Likewise.
29912         * lib/uniname/uniname.c: Likewise.
29913         * lib/unistdio.h: Likewise.
29914         * lib/unistdio/u-asnprintf.h: Likewise.
29915         * lib/unistdio/u-asprintf.h: Likewise.
29916         * lib/unistdio/u-printf-args.c: Likewise.
29917         * lib/unistdio/u-printf-args.h: Likewise.
29918         * lib/unistdio/u-printf-parse.h: Likewise.
29919         * lib/unistdio/u-snprintf.h: Likewise.
29920         * lib/unistdio/u-sprintf.h: Likewise.
29921         * lib/unistdio/u-vasprintf.h: Likewise.
29922         * lib/unistdio/u-vsnprintf.h: Likewise.
29923         * lib/unistdio/u-vsprintf.h: Likewise.
29924         * lib/unistdio/u16-asnprintf.c: Likewise.
29925         * lib/unistdio/u16-asprintf.c: Likewise.
29926         * lib/unistdio/u16-printf-parse.c: Likewise.
29927         * lib/unistdio/u16-snprintf.c: Likewise.
29928         * lib/unistdio/u16-sprintf.c: Likewise.
29929         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29930         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29931         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29932         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29933         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29934         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29935         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29936         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29937         * lib/unistdio/u16-vasnprintf.c: Likewise.
29938         * lib/unistdio/u16-vasprintf.c: Likewise.
29939         * lib/unistdio/u16-vsnprintf.c: Likewise.
29940         * lib/unistdio/u16-vsprintf.c: Likewise.
29941         * lib/unistdio/u32-asnprintf.c: Likewise.
29942         * lib/unistdio/u32-asprintf.c: Likewise.
29943         * lib/unistdio/u32-printf-parse.c: Likewise.
29944         * lib/unistdio/u32-snprintf.c: Likewise.
29945         * lib/unistdio/u32-sprintf.c: Likewise.
29946         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29947         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29948         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29949         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29950         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29951         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29952         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29953         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29954         * lib/unistdio/u32-vasnprintf.c: Likewise.
29955         * lib/unistdio/u32-vasprintf.c: Likewise.
29956         * lib/unistdio/u32-vsnprintf.c: Likewise.
29957         * lib/unistdio/u32-vsprintf.c: Likewise.
29958         * lib/unistdio/u8-asnprintf.c: Likewise.
29959         * lib/unistdio/u8-asprintf.c: Likewise.
29960         * lib/unistdio/u8-printf-parse.c: Likewise.
29961         * lib/unistdio/u8-snprintf.c: Likewise.
29962         * lib/unistdio/u8-sprintf.c: Likewise.
29963         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29964         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29965         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29966         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29967         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29968         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29969         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29970         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29971         * lib/unistdio/u8-vasnprintf.c: Likewise.
29972         * lib/unistdio/u8-vasprintf.c: Likewise.
29973         * lib/unistdio/u8-vsnprintf.c: Likewise.
29974         * lib/unistdio/u8-vsprintf.c: Likewise.
29975         * lib/unistdio/ulc-asnprintf.c: Likewise.
29976         * lib/unistdio/ulc-asprintf.c: Likewise.
29977         * lib/unistdio/ulc-printf-parse.c: Likewise.
29978         * lib/unistdio/ulc-snprintf.c: Likewise.
29979         * lib/unistdio/ulc-sprintf.c: Likewise.
29980         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29981         * lib/unistdio/ulc-vasprintf.c: Likewise.
29982         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29983         * lib/unistdio/ulc-vsprintf.c: Likewise.
29984         * lib/unistr.h: Likewise.
29985         * lib/unistr/u-cpy-alloc.h: Likewise.
29986         * lib/unistr/u-cpy.h: Likewise.
29987         * lib/unistr/u-endswith.h: Likewise.
29988         * lib/unistr/u-move.h: Likewise.
29989         * lib/unistr/u-set.h: Likewise.
29990         * lib/unistr/u-startswith.h: Likewise.
29991         * lib/unistr/u-stpcpy.h: Likewise.
29992         * lib/unistr/u-stpncpy.h: Likewise.
29993         * lib/unistr/u-strcat.h: Likewise.
29994         * lib/unistr/u-strcpy.h: Likewise.
29995         * lib/unistr/u-strcspn.h: Likewise.
29996         * lib/unistr/u-strdup.h: Likewise.
29997         * lib/unistr/u-strlen.h: Likewise.
29998         * lib/unistr/u-strncat.h: Likewise.
29999         * lib/unistr/u-strncpy.h: Likewise.
30000         * lib/unistr/u-strnlen.h: Likewise.
30001         * lib/unistr/u-strpbrk.h: Likewise.
30002         * lib/unistr/u-strspn.h: Likewise.
30003         * lib/unistr/u-strstr.h: Likewise.
30004         * lib/unistr/u-strtok.h: Likewise.
30005         * lib/unistr/u16-check.c: Likewise.
30006         * lib/unistr/u16-chr.c: Likewise.
30007         * lib/unistr/u16-cmp.c: Likewise.
30008         * lib/unistr/u16-cpy-alloc.c: Likewise.
30009         * lib/unistr/u16-cpy.c: Likewise.
30010         * lib/unistr/u16-endswith.c: Likewise.
30011         * lib/unistr/u16-mblen.c: Likewise.
30012         * lib/unistr/u16-mbsnlen.c: Likewise.
30013         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30014         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30015         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30016         * lib/unistr/u16-mbtouc.c: Likewise.
30017         * lib/unistr/u16-mbtoucr.c: Likewise.
30018         * lib/unistr/u16-move.c: Likewise.
30019         * lib/unistr/u16-next.c: Likewise.
30020         * lib/unistr/u16-prev.c: Likewise.
30021         * lib/unistr/u16-set.c: Likewise.
30022         * lib/unistr/u16-startswith.c: Likewise.
30023         * lib/unistr/u16-stpcpy.c: Likewise.
30024         * lib/unistr/u16-stpncpy.c: Likewise.
30025         * lib/unistr/u16-strcat.c: Likewise.
30026         * lib/unistr/u16-strchr.c: Likewise.
30027         * lib/unistr/u16-strcmp.c: Likewise.
30028         * lib/unistr/u16-strcpy.c: Likewise.
30029         * lib/unistr/u16-strcspn.c: Likewise.
30030         * lib/unistr/u16-strdup.c: Likewise.
30031         * lib/unistr/u16-strlen.c: Likewise.
30032         * lib/unistr/u16-strmblen.c: Likewise.
30033         * lib/unistr/u16-strmbtouc.c: Likewise.
30034         * lib/unistr/u16-strncat.c: Likewise.
30035         * lib/unistr/u16-strncmp.c: Likewise.
30036         * lib/unistr/u16-strncpy.c: Likewise.
30037         * lib/unistr/u16-strnlen.c: Likewise.
30038         * lib/unistr/u16-strpbrk.c: Likewise.
30039         * lib/unistr/u16-strrchr.c: Likewise.
30040         * lib/unistr/u16-strspn.c: Likewise.
30041         * lib/unistr/u16-strstr.c: Likewise.
30042         * lib/unistr/u16-strtok.c: Likewise.
30043         * lib/unistr/u16-to-u32.c: Likewise.
30044         * lib/unistr/u16-to-u8.c: Likewise.
30045         * lib/unistr/u16-uctomb-aux.c: Likewise.
30046         * lib/unistr/u16-uctomb.c: Likewise.
30047         * lib/unistr/u32-check.c: Likewise.
30048         * lib/unistr/u32-chr.c: Likewise.
30049         * lib/unistr/u32-cmp.c: Likewise.
30050         * lib/unistr/u32-cpy-alloc.c: Likewise.
30051         * lib/unistr/u32-cpy.c: Likewise.
30052         * lib/unistr/u32-endswith.c: Likewise.
30053         * lib/unistr/u32-mblen.c: Likewise.
30054         * lib/unistr/u32-mbsnlen.c: Likewise.
30055         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30056         * lib/unistr/u32-mbtouc.c: Likewise.
30057         * lib/unistr/u32-mbtoucr.c: Likewise.
30058         * lib/unistr/u32-move.c: Likewise.
30059         * lib/unistr/u32-next.c: Likewise.
30060         * lib/unistr/u32-prev.c: Likewise.
30061         * lib/unistr/u32-set.c: Likewise.
30062         * lib/unistr/u32-startswith.c: Likewise.
30063         * lib/unistr/u32-stpcpy.c: Likewise.
30064         * lib/unistr/u32-stpncpy.c: Likewise.
30065         * lib/unistr/u32-strcat.c: Likewise.
30066         * lib/unistr/u32-strchr.c: Likewise.
30067         * lib/unistr/u32-strcmp.c: Likewise.
30068         * lib/unistr/u32-strcpy.c: Likewise.
30069         * lib/unistr/u32-strcspn.c: Likewise.
30070         * lib/unistr/u32-strdup.c: Likewise.
30071         * lib/unistr/u32-strlen.c: Likewise.
30072         * lib/unistr/u32-strmblen.c: Likewise.
30073         * lib/unistr/u32-strmbtouc.c: Likewise.
30074         * lib/unistr/u32-strncat.c: Likewise.
30075         * lib/unistr/u32-strncmp.c: Likewise.
30076         * lib/unistr/u32-strncpy.c: Likewise.
30077         * lib/unistr/u32-strnlen.c: Likewise.
30078         * lib/unistr/u32-strpbrk.c: Likewise.
30079         * lib/unistr/u32-strrchr.c: Likewise.
30080         * lib/unistr/u32-strspn.c: Likewise.
30081         * lib/unistr/u32-strstr.c: Likewise.
30082         * lib/unistr/u32-strtok.c: Likewise.
30083         * lib/unistr/u32-to-u16.c: Likewise.
30084         * lib/unistr/u32-to-u8.c: Likewise.
30085         * lib/unistr/u32-uctomb.c: Likewise.
30086         * lib/unistr/u8-check.c: Likewise.
30087         * lib/unistr/u8-chr.c: Likewise.
30088         * lib/unistr/u8-cmp.c: Likewise.
30089         * lib/unistr/u8-cpy-alloc.c: Likewise.
30090         * lib/unistr/u8-cpy.c: Likewise.
30091         * lib/unistr/u8-endswith.c: Likewise.
30092         * lib/unistr/u8-mblen.c: Likewise.
30093         * lib/unistr/u8-mbsnlen.c: Likewise.
30094         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30095         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30096         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30097         * lib/unistr/u8-mbtouc.c: Likewise.
30098         * lib/unistr/u8-mbtoucr.c: Likewise.
30099         * lib/unistr/u8-move.c: Likewise.
30100         * lib/unistr/u8-next.c: Likewise.
30101         * lib/unistr/u8-prev.c: Likewise.
30102         * lib/unistr/u8-set.c: Likewise.
30103         * lib/unistr/u8-startswith.c: Likewise.
30104         * lib/unistr/u8-stpcpy.c: Likewise.
30105         * lib/unistr/u8-stpncpy.c: Likewise.
30106         * lib/unistr/u8-strcat.c: Likewise.
30107         * lib/unistr/u8-strchr.c: Likewise.
30108         * lib/unistr/u8-strcmp.c: Likewise.
30109         * lib/unistr/u8-strcpy.c: Likewise.
30110         * lib/unistr/u8-strcspn.c: Likewise.
30111         * lib/unistr/u8-strdup.c: Likewise.
30112         * lib/unistr/u8-strlen.c: Likewise.
30113         * lib/unistr/u8-strmblen.c: Likewise.
30114         * lib/unistr/u8-strmbtouc.c: Likewise.
30115         * lib/unistr/u8-strncat.c: Likewise.
30116         * lib/unistr/u8-strncmp.c: Likewise.
30117         * lib/unistr/u8-strncpy.c: Likewise.
30118         * lib/unistr/u8-strnlen.c: Likewise.
30119         * lib/unistr/u8-strpbrk.c: Likewise.
30120         * lib/unistr/u8-strrchr.c: Likewise.
30121         * lib/unistr/u8-strspn.c: Likewise.
30122         * lib/unistr/u8-strstr.c: Likewise.
30123         * lib/unistr/u8-strtok.c: Likewise.
30124         * lib/unistr/u8-to-u16.c: Likewise.
30125         * lib/unistr/u8-to-u32.c: Likewise.
30126         * lib/unistr/u8-uctomb-aux.c: Likewise.
30127         * lib/unistr/u8-uctomb.c: Likewise.
30128         * lib/unitypes.h: Likewise.
30129         * lib/uniwidth.h: Likewise.
30130         * lib/uniwidth/cjk.h: Likewise.
30131         * lib/uniwidth/u16-strwidth.c: Likewise.
30132         * lib/uniwidth/u16-width.c: Likewise.
30133         * lib/uniwidth/u32-strwidth.c: Likewise.
30134         * lib/uniwidth/u32-width.c: Likewise.
30135         * lib/uniwidth/u8-strwidth.c: Likewise.
30136         * lib/uniwidth/u8-width.c: Likewise.
30137         * lib/uniwidth/width.c: Likewise.
30138
30139 2007-10-07  Bruno Haible  <bruno@clisp.org>
30140
30141         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30142         The file is still under LGPL (see modules/inttypes).
30143
30144 2007-10-06  Bruno Haible  <bruno@clisp.org>
30145
30146         * modules/trunc (Dependencies): Add 'extensions'.
30147         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30148         Reported by Ben Pfaff <blp@gnu.org>.
30149
30150 2007-10-06  Bruno Haible  <bruno@clisp.org>
30151
30152         * modules/freopen-tests: New file.
30153         * tests/test-freopen.c: New file.
30154
30155         * modules/fopen-tests: New file.
30156         * tests/test-fopen.c: New file.
30157
30158         * modules/fopen: New file.
30159         * lib/fopen.c: New file.
30160         * m4/fopen.m4: New file.
30161         * modules/freopen: New file.
30162         * lib/freopen.c: New file.
30163         * m4/freopen.m4: New file.
30164         * lib/stdio.in.h (fopen, freopen): New declarations.
30165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30166         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30167         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30168         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30169         * doc/functions/fopen.texi: Mention the 'fopen' module.
30170         * doc/functions/freopen.texi: Mention the 'freopen' module.
30171
30172 2007-10-06  Bruno Haible  <bruno@clisp.org>
30173
30174         * modules/open-tests: New file.
30175         * tests/test-open.c: New file.
30176
30177         * modules/open: New file.
30178         * lib/open.c: New file.
30179         * m4/open.m4: New file.
30180         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30181         lib/open.c does.
30182         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30183         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30184         macros.
30185         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30186         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30187         REPLACE_OPEN.
30188         * doc/functions/open.texi: Mention the 'open' module.
30189
30190 2007-10-04  Bruno Haible  <bruno@clisp.org>
30191
30192         * modules/ceill-tests: New file.
30193         * tests/test-ceill.c: New file.
30194
30195         * modules/ceill: New file.
30196         * lib/ceill.c: Replace entire file.
30197         * m4/ceill.m4: New file.
30198         * lib/math.in.h (ceill): Replace declaration.
30199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30200         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30201         * doc/functions/ceill.texi: Mention the 'ceill' module.
30202         * modules/mathl (Files): Remove lib/ceill.c.
30203         (Depends-on): Add ceill.
30204
30205 2007-10-04  Bruno Haible  <bruno@clisp.org>
30206
30207         * modules/ceilf-tests: New file.
30208         * tests/test-ceilf.c: New file.
30209
30210         * modules/ceilf: New file.
30211         * lib/ceil.c: New file.
30212         * lib/ceilf.c: New file.
30213         * m4/ceilf.m4: New file.
30214         * lib/math.in.h (ceilf): New declaration.
30215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30216         HAVE_DECL_CEILF.
30217         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30218         HAVE_DECL_CEILF.
30219         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30220
30221 2007-10-04  Bruno Haible  <bruno@clisp.org>
30222
30223         * modules/floorl-tests: New file.
30224         * tests/test-floorl.c: New file.
30225
30226         * modules/floorl: New file.
30227         * lib/floorl.c: Replace entire file.
30228         * m4/floorl.m4: New file.
30229         * lib/math.in.h (floorl): Replace declaration.
30230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30231         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30232         * doc/functions/floorl.texi: Mention the 'floorl' module.
30233         * modules/mathl (Files): Remove lib/floorl.c.
30234         (Depends-on): Add floorl.
30235
30236 2007-10-04  Bruno Haible  <bruno@clisp.org>
30237
30238         * modules/floorf-tests: New file.
30239         * tests/test-floorf.c: New file.
30240
30241         * modules/floorf: New file.
30242         * lib/floor.c: New file.
30243         * lib/floorf.c: New file.
30244         * m4/floorf.m4: New file.
30245         * lib/math.in.h (floorf): New declaration.
30246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30247         HAVE_DECL_FLOORF.
30248         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30249         HAVE_DECL_FLOORF.
30250         * doc/functions/floorf.texi: Mention the 'floorf' module.
30251
30252 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30253             Bruno Haible  <bruno@clisp.org>
30254
30255         Advertise for the Git server instead of the CVS server.
30256         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30257         repository instead of the CVS one.
30258         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30259         about all VCS systems generically.
30260         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30261
30262 2007-10-04  Bruno Haible  <bruno@clisp.org>
30263
30264         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30265         means.
30266         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30267
30268 2007-10-04  Bruno Haible  <bruno@clisp.org>
30269
30270         * modules/truncl-tests: New file.
30271         * tests/test-truncl.c: New file.
30272
30273         * modules/truncl: New file.
30274         * lib/truncl.c: New file.
30275         * m4/truncl.m4: New file.
30276         * lib/math.in.h (truncl): New declaration.
30277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30278         HAVE_DECL_TRUNCL.
30279         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30280         HAVE_DECL_TRUNCL.
30281         * doc/functions/truncl.texi: Mention the 'truncl' module.
30282
30283 2007-10-04  Bruno Haible  <bruno@clisp.org>
30284
30285         * modules/truncf-tests: New file.
30286         * tests/test-truncf.c: New file.
30287
30288         * modules/truncf: New file.
30289         * lib/trunc.c: Make paramerizable through USE_* macros.
30290         * lib/truncf.c: New file.
30291         * m4/truncf.m4: New file.
30292         * lib/math.in.h (truncf): New declaration.
30293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30294         HAVE_DECL_TRUNCF.
30295         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30296         HAVE_DECL_TRUNCF.
30297         * doc/functions/truncf.texi: Mention the 'truncf' module.
30298
30299 2007-10-03  Bruno Haible  <bruno@clisp.org>
30300
30301         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30302         augmentation also for tests modules.
30303         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30304         * modules/atexit-tests (Makefile.am): Likewise.
30305         * modules/binary-io-tests (Makefile.am): Likewise.
30306         * modules/c-strcase-tests (Makefile.am): Likewise.
30307         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30308         * modules/canonicalize-tests (Makefile.am): Likewise.
30309         * modules/closein-tests (Makefile.am): Likewise.
30310         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30311         * modules/freadahead-tests (Makefile.am): Likewise.
30312         * modules/fseek-tests (Makefile.am): Likewise.
30313         * modules/fseeko-tests (Makefile.am): Likewise.
30314         * modules/ftell-tests (Makefile.am): Likewise.
30315         * modules/ftello-tests (Makefile.am): Likewise.
30316         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30317         * modules/isnanl-tests (Makefile.am): Likewise.
30318         * modules/lseek-tests (Makefile.am): Likewise.
30319         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30320         * modules/mbscasestr-tests (Makefile.am): Likewise.
30321         * modules/mbschr-tests (Makefile.am): Likewise.
30322         * modules/mbscspn-tests (Makefile.am): Likewise.
30323         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30324         * modules/mbspbrk-tests (Makefile.am): Likewise.
30325         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30326         * modules/mbsrchr-tests (Makefile.am): Likewise.
30327         * modules/mbsspn-tests (Makefile.am): Likewise.
30328         * modules/mbsstr-tests (Makefile.am): Likewise.
30329         * modules/printf-posix-tests (Makefile.am): Likewise.
30330         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30331         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30332         * modules/tsearch-tests (Makefile.am): Likewise.
30333         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30334         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30335         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30336         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30337         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30338         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30339         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30340         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30341         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30342         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30343         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30344         * modules/xstrtol-tests (Makefile.am): Likewise.
30345         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30346         * modules/yesno-tests (Makefile.am): Likewise.
30347
30348 2007-10-03  Bruno Haible  <bruno@clisp.org>
30349
30350         * modules/trunc-tests: New file.
30351         * tests/test-trunc.c: New file.
30352
30353         * modules/trunc: New file.
30354         * lib/trunc.c: New file.
30355         * m4/trunc.m4: New file.
30356         * lib/math.in.h (trunc): New declaration.
30357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30358         HAVE_DECL_TRUNC.
30359         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30360         HAVE_DECL_TRUNC.
30361         * doc/functions/trunc.texi: Mention the 'trunc' module.
30362
30363 2007-10-03  Bruno Haible  <bruno@clisp.org>
30364
30365         * tests/test-fpending.c: New file, mostly copied
30366         from coreutils/lib/t-fpending.c.
30367         * modules/fpending-tests: New file.
30368
30369 2007-10-03  Bruno Haible  <bruno@clisp.org>
30370
30371         Port the stdio extensions to QNX (untested).
30372         * lib/fseterr.c (fseterr): Add support for QNX.
30373         * lib/fbufmode.c (fbufmode): Likewise.
30374         * lib/freadable.c (freadable): Likewise.
30375         * lib/fwritable.c (fwritable): Likewise.
30376         * lib/freading.c (freading): Likewise.
30377         * lib/fwriting.c (fwriting): Likewise.
30378         * lib/freadahead.c (freadahed): Likewise.
30379         * lib/fpurge.c (fpurge): Likewise.
30380         * lib/fseeko.c (rpl_fseeko): Likewise.
30381
30382 2007-10-03  Bruno Haible  <bruno@clisp.org>
30383             Jim Meyering  <jim@meyering.net>
30384             Eric Blake  <ebb9@byu.net>
30385
30386         * doc/relocatable.texi: Use @command instead of @program.
30387
30388 2007-10-02  Jim Meyering  <jim@meyering.net>
30389
30390         Perform one more "_.h" -> ".in.h" substitution.
30391         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30392         instead of unistd_.h here, too.
30393
30394 2007-10-01  Bruno Haible  <bruno@clisp.org>
30395
30396         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30397         Needed for the alloca-opt module.
30398
30399 2007-09-30  Bruno Haible  <bruno@clisp.org>
30400
30401         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30402         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30403         alloca_.h.
30404         * lib/argz.in.h: Renamed from lib/argz_.h.
30405         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30406         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30407         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30408         byteswap_.h.
30409         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30410         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30411         dirent_.h.
30412         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30413         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30414         fcntl_.h.
30415         * lib/float.in.h: Renamed from lib/float_.h.
30416         * modules/float (Files, Makefile.am): Use float.in.h instead of
30417         float_.h.
30418         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30419         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30420         fnmatch_.h.
30421         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30422         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30423         getopt_.h.
30424         * lib/glob.in.h: Renamed from lib/glob_.h.
30425         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30426         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30427         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30428         iconv_.h.
30429         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30430         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30431         inttypes_.h.
30432         * lib/locale.in.h: Renamed from lib/locale_.h.
30433         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30434         locale_.h.
30435         * lib/math.in.h: Renamed from lib/math_.h.
30436         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30437         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30438         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30439         of netinet_in_.h. Add dependency.
30440         * lib/poll.in.h: Renamed from lib/poll_.h.
30441         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30442         * lib/search.in.h: Renamed from lib/search_.h.
30443         * modules/search (Files, Makefile.am): Use search.in.h instead of
30444         search_.h.
30445         * lib/signal.in.h: Renamed from lib/signal_.h.
30446         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30447         _signal.h.
30448         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30449         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30450         stdbool_.h.
30451         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30452         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30453         stdint_.h.
30454         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30455         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30456         stdio_.h.
30457         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30458         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30459         stdlib_.h.
30460         * lib/string.in.h: Renamed from lib/string_.h.
30461         * modules/string (Files, Makefile.am): Use string.in.h instead of
30462         string_.h.
30463         * doc/gnulib-tool.texi (Initial import): Update.
30464         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30465         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30466         of sys_select_.h. Add dependency.
30467         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30468         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30469         of sys_socket_.h.
30470         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30471         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30472         sys_stat_.h.
30473         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30474         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30475         sys_time_.h.
30476         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30477         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30478         sysexits_.h.
30479         * lib/time.in.h: Renamed from lib/time_.h.
30480         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30481         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30482         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30483         unistd_.h.
30484         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30485         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30486         wchar_.h.
30487         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30488         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30489         wctype_.h.
30490         * build-aux/bootstrap (slurp): Update.
30491         * lib/.cppi-disable: Update.
30492
30493 2007-09-30  Bruno Haible  <bruno@clisp.org>
30494
30495         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30496         Needed on BeOS.
30497
30498 2007-09-30  Bruno Haible  <bruno@clisp.org>
30499
30500         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30501
30502 2007-09-29  Bruno Haible  <bruno@clisp.org>
30503
30504         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30505
30506 2007-09-29  Bruno Haible  <bruno@clisp.org>
30507
30508         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30509         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30510         * build-aux/install-reloc: Compile also areadlink.c.
30511         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30512
30513 2007-09-29  Bruno Haible  <bruno@clisp.org>
30514
30515         * gnulib-tool (func_emit_initmacro_done): Indentation.
30516
30517 2007-09-29  Bruno Haible  <bruno@clisp.org>
30518
30519         * README: Add CVS checkout update instructions.
30520         Info from Bob Proulx <bob@proulx.com>.
30521
30522 2007-09-28  Eric Blake  <ebb9@byu.net>
30523
30524         Provide move-if-change.
30525         * build-aux/move-if-change: New file, based on best practice
30526         rather than any canonical upstream location.
30527
30528 2007-09-28  Jim Meyering  <jim@meyering.net>
30529
30530         Fix canonicalize loop-detection corner case.
30531         Do not attempt to stat the symlink values stored via seen_triple.
30532         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30533         on linux-2.6.18, (but not 2.6.22).
30534         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30535         triple_compare.  The former compares dev,ino,filename, while the latter
30536         would actually stat dirname(filename) when dev and ino were equal.
30537         * lib/hash-triple.c: Install <string.h>.
30538         (STREQ): Define.
30539         (triple_compare_ino_str): New function.
30540         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30541
30542 2007-09-28  Eric Blake  <ebb9@byu.net>
30543
30544         Enforce that AC_REPLACE_FUNCS files exist.
30545         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30546         override check for typos.
30547
30548         Fix test-closein on Solaris 10.
30549         * tests/test-closein.c (main): Don't assume stdin can be inherited
30550         closed on all systems.
30551         * tests/test-closein.sh: Likewise.
30552         Reported by Piotr Tarnowski.
30553
30554 2007-09-28  Jim Meyering  <jim@meyering.net>
30555
30556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30557
30558 2007-09-27  Jim Meyering  <jim@meyering.net>
30559
30560         canonicalize: Avoid a false-positive cycle failure.
30561         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30562         Sort.  Remove cycle-check.
30563         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30564         not cycle-check.h.
30565         (seen_triple): New function.
30566         (canonicalize_filename_mode): Use it instead of cycle-check.
30567         * tests/test-canonicalize.c: Add a test for this bug.
30568         * tests/test-canonicalize.sh: Set up and run the test.
30569
30570         New module, file-set, from coreutils.
30571         * modules/file-set: Define it.
30572         * lib/file-set.c, lib/file-set.h: Implement.
30573
30574         New module, hash-triple, from coreutils.
30575         * modules/hash-triple: Define it.
30576         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30577
30578 2007-09-25  Eric Blake  <ebb9@byu.net>
30579
30580         Fix strerror on Interix.
30581         * lib/string_.h (strerror): Declare replacement.
30582         * doc/functions/strerror.texi (strerror): Document the Interix
30583         shortcoming.
30584         * modules/string (Makefile.am): Support new hooks.
30585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30586         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30587         gl_FUNC_STRERROR_SEPARATE.
30588         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30589         * lib/strerror.c (rpl_strerror): Provide replacement.
30590         * modules/strerror (Depends-on): Add string.
30591         (configure.ac): Detect use of module.
30592         * tests/test-strerror.c: New file.
30593         * modules/strerror-tests: New test module.
30594         * modules/argp (Depends-on): Add strerror.
30595         * modules/error (Depends-on): Likewise.
30596         Reported by Martin Koeppe.
30597
30598 2007-09-24  Bruno Haible  <bruno@clisp.org>
30599
30600         * README: Update git instructions.
30601
30602 2007-09-24  Eric Blake  <ebb9@byu.net>
30603
30604         Revert fpending breakage from 2007-09-08.
30605         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30606         __fpending.c.
30607
30608 2007-09-24  Jim Meyering  <jim@meyering.net>
30609
30610         filenamecat.c: Add a test.
30611         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30612         showing how the function works when DIR is the empty string.
30613
30614 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30615
30616         * tests/test-canonicalize.sh: Turn on executable bit.
30617
30618 2007-09-19  Eric Blake  <ebb9@byu.net>
30619
30620         * README: Update CVS instructions.
30621
30622 2007-09-18  Bruno Haible  <bruno@clisp.org>
30623
30624         * modules/areadlink: New file.
30625         * lib/areadlink.h (areadlink): New declaration.
30626         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30627
30628 2007-09-17  Jim Meyering  <jim@meyering.net>
30629
30630         * lib/savewd.c (ESTALE) [!defined]: Define.
30631         Reported to be required on Interix by Martin Koeppe.
30632
30633 2007-09-17  Bruno Haible  <bruno@clisp.org>
30634
30635         * gnulib-tool (func_version): Use $version.
30636
30637 2007-09-16  Bruno Haible  <bruno@clisp.org>
30638
30639         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30640         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30641         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30642         Reported by Greg Schafer <gschafer@zip.com.au>.
30643
30644 2007-09-15  Bruno Haible  <bruno@clisp.org>
30645
30646         * gnulib-tool (sed): Try a little harder to make bash understand the
30647         alias.
30648         Reported by Bruce Korb <bruce.korb@gmail.com>.
30649
30650 2007-09-13  Eric Blake  <ebb9@byu.net>
30651
30652         * ChangeLog: Remove conflict markers.
30653
30654 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30655
30656         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30657         Reported by Bruno Haible <bruno@clisp.org>.
30658
30659 2007-09-12  Bruno Haible  <bruno@clisp.org>
30660
30661         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30662         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30663         is not defined.
30664
30665 2007-09-12  Eric Blake  <ebb9@byu.net>
30666
30667         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30669         Autoconf definition.
30670         * modules/euidaccess (Depends-on): Add extensions, for
30671         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30672         * modules/fnmatch (Depends-on): Likewise.
30673         * modules/getaddrinfo (Depends-on): Likewise.
30674         * modules/getdelim (Depends-on): Likewise.
30675         * modules/getline (Depends-on): Likewise.
30676         * modules/getsubopt (Depends-on): Likewise.
30677         * modules/gettext (Depends-on): Likewise.
30678         * modules/group-member (Depends-on): Likewise.
30679         * modules/mbchar (Depends-on): Likewise.
30680         * modules/memmem (Depends-on): Likewise.
30681         * modules/mempcpy (Depends-on): Likewise.
30682         * modules/memrchr (Depends-on): Likewise.
30683         * modules/pagealign_alloc (Depends-on): Likewise.
30684         * modules/readutmp (Depends-on): Likewise.
30685         * modules/stpcpy (Depends-on): Likewise.
30686         * modules/stpncpy (Depends-on): Likewise.
30687         * modules/strchrnul (Depends-on): Likewise.
30688         * modules/strndup (Depends-on): Likewise.
30689         * modules/strsep (Depends-on): Likewise.
30690         * modules/strverscmp (Depends-on): Likewise.
30691         * modules/vasprintf (Depends-on): Likewise.
30692         * modules/wcwidth (Depends-on): Likewise.
30693         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30694         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30695         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30696         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30698         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30699         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30700         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30701         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30702         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30704         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30707         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30708         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30709         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30710         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30712         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30713         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30714         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30715         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30716         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30717         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30719         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30720         so that lock.m4 can be used in gettext without extensions module.
30721
30722 2007-09-11  Bruno Haible  <bruno@clisp.org>
30723
30724         * m4/isc-posix.m4: Remove file.
30725         Suggested by Eric Blake.
30726
30727 2007-09-11  Eric Blake  <ebb9@byu.net>
30728
30729         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30730
30731 2007-09-10  Bruno Haible  <bruno@clisp.org>
30732
30733         * posix-modules: Fix typo in error message.
30734         Reported by Matt <mkraai@beckman.com>.
30735
30736 2007-09-09  Bruno Haible  <bruno@clisp.org>
30737
30738         * doc/functions/getdelim.texi: Update list of platforms lacking the
30739         function.
30740         * doc/functions/getline.texi: Likewise.
30741
30742 2007-09-09  Jim Meyering  <jim@meyering.net>
30743
30744         * lib/hash.c (hash_initialize): Detect calloc failure.
30745         Reported by Bruno Haible.
30746
30747 2007-09-09  Bruno Haible  <bruno@clisp.org>
30748
30749         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30750         malloc or realloc fails.
30751
30752 2007-09-09  Bruno Haible  <bruno@clisp.org>
30753
30754         * modules/getcwd (Depends-on): Add malloc-posix.
30755         * modules/glob (Depends-on): Likewise.
30756         * modules/putenv (Depends-on): Likewise.
30757         * modules/strdup (Depends-on): Likewise.
30758         * modules/getdelim (Depends-on): Add realloc-posix.
30759         * modules/read-file (Depends-on): Likewise.
30760
30761 2007-09-09  Bruno Haible  <bruno@clisp.org>
30762
30763         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30764         (gl_FUNC_MALLOC_POSIX): Require it.
30765         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30766         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30767         * modules/realloc (Files): Add m4/malloc.m4.
30768         * modules/calloc (Files): Likewise.
30769
30770 2007-09-09  Bruno Haible  <bruno@clisp.org>
30771
30772         * modules/malloc-posix: New file.
30773         * modules/malloc (Depends-on): Add malloc-posix.
30774         * lib/malloc.c: Include errno.h.
30775         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30776         and a POSIX-compatible malloc into a single function. Set ENOMEM
30777         when returning NULL.
30778         * m4/malloc.m4: New file.
30779         * doc/functions/malloc.texi: Mention the malloc-posix module.
30780         * lib/stdlib_.h (malloc): New declaration.
30781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30782         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30783         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30784         and HAVE_MALLOC_POSIX.
30785
30786 2007-09-09  Bruno Haible  <bruno@clisp.org>
30787
30788         * modules/realloc-posix: New file.
30789         * modules/realloc (Depends-on): Add realloc-posix.
30790         * lib/realloc.c: Include errno.h.
30791         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30792         and a POSIX-compatible realloc into a single function. Set ENOMEM
30793         when returning NULL.
30794         * m4/realloc.m4: New file.
30795         * doc/functions/realloc.texi: Mention the realloc-posix module.
30796         * lib/stdlib_.h (realloc): New declaration.
30797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30798         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30799         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30800         and HAVE_REALLOC_POSIX.
30801
30802 2007-09-09  Bruno Haible  <bruno@clisp.org>
30803
30804         * modules/calloc-posix: New file.
30805         * modules/calloc (Depends-on): Add calloc-posix.
30806         * lib/calloc.c: Include errno.h.
30807         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30808         and a POSIX-compatible calloc into a single function. Set ENOMEM
30809         when returning NULL.
30810         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30811         * doc/functions/calloc.texi: Mention the calloc-posix module.
30812         * lib/stdlib_.h (calloc): New declaration.
30813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30814         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30815         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30816         and HAVE_CALLOC_POSIX.
30817
30818 2007-09-09  Bruno Haible  <bruno@clisp.org>
30819
30820         Allow for modules to show an arbitrary notice.
30821         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30822         * gnulib-tool: New option --extract-notice.
30823         (func_usage): Document it.
30824         (sed_extract_prog): Update.
30825         (func_get_notice): New function.
30826         (func_modules_notice): New function.
30827         (func_import, func_create_testdir): Invoke it.
30828         Suggested by Jim Meyering.
30829
30830 2007-09-09  Bruno Haible  <bruno@clisp.org>
30831
30832         * gnulib-tool: New options --verbose, --quiet.
30833         (func_usage): Document them.
30834         (verbose): New variable.
30835         (func_execute_command): New function.
30836         (func_import): Don't show the module list and the file list if
30837         $verbose < 0.
30838         (func_create_testdir): Likewise. Use func_execute_command.
30839         (func_create_megatestdir): Use func_execute_command.
30840
30841 2007-09-08  Bruno Haible  <bruno@clisp.org>
30842
30843         * gnulib-tool (func_import): Prefer rsync over wget when available,
30844         for fetching the PO files.
30845
30846 2007-09-08  Bruno Haible  <bruno@clisp.org>
30847
30848         * posix-modules: New file. Portions copied from gnulib-tool.
30849         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30850
30851 2007-09-08  Jim Meyering  <jim@meyering.net>
30852
30853         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30854         * lib/fpending.h: Rename from __fpending.h.
30855         * lib/fpending.c: Rename from __fpending.c.
30856         Include "fpending.h", not "__fpending.h".
30857         * lib/__fpending.h, lib/__fpending.c: Remove files.
30858         * modules/fpending (Files): Reflect new file names.
30859         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30860
30861 2007-09-08  Bruno Haible  <bruno@clisp.org>
30862
30863         * m4/inttypes-h.m4: Remove stub file.
30864
30865 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30866
30867         * doc/headers/stdint.texi: Discuss #include_next issue.
30868
30869 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30870
30871         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30872
30873 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30874
30875         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30876         in variable name.
30877
30878 2007-09-03  Jim Meyering  <jim@meyering.net>
30879
30880         New module: git-version-gen.
30881         * modules/git-version-gen: New file.
30882
30883         Import changes from coreutils for bootstrap script.
30884
30885         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30886
30887         bootstrap: uses rsync to download the .po files
30888         * build-aux/bootstrap (po_download_command_format): New global.
30889         (download_po_files): Use rsync.
30890         (update_po_files): Don't remove .po files after download,
30891         so future rsync runs can take advantage of the copies.
30892
30893         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30894
30895         Solve the unnecessary-.po-file-regeneration problem once and for all.
30896         * build-aux/bootstrap (download_po_files): New function, renamed from
30897         get_translations.  Now, downloads, but doesn't update LINGUAS.
30898         (update_po_files): New function.
30899
30900         bootstrap: Ignore more.
30901         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30902         uniwidth to e.g., lib/.gitignore.
30903         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30904
30905         * build-aux/bootstrap: New setting: vc_ignore.
30906         (insert_sorted_if_absent): Create $file if absent.
30907         Adapt to new, possibly empty, list: $vc_ignore.
30908
30909         bootstrap: generate more ignorable names
30910         * build-aux/bootstrap (slurp): When generating ignorable names,
30911         also map .sin to .sed, .gperf to .c, and .y to .c.
30912
30913 2007-09-03  Jim Meyering  <jim@meyering.net>
30914
30915         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30916         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30917
30918 2007-09-02  Bruno Haible  <bruno@clisp.org>
30919
30920         Fix mis-recognition of 'mcs' on QNX 6.
30921         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30922         output contains the string "Mono".
30923         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30924         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30925
30926 2007-09-01  Bruno Haible  <bruno@clisp.org>
30927
30928         Fix collision between uniwidth/* and linebreak modules.
30929         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30930         u32_width): Remove declarations.
30931         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30932         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30933         streq3, streq2, streq1, streq0): Remove functions.
30934         (STREQ): Remove macro.
30935         (is_cjk_encoding): Remove function.
30936         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30937         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30938         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30939         * NEWS: Document the change.
30940
30941 2007-09-01  Bruno Haible  <bruno@clisp.org>
30942
30943         * lib/streq.h: Add double-inclusion guard.
30944
30945 2007-09-01  Karl Berry  <karl@gnu.org>
30946
30947         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30948
30949 2007-08-28  Jim Meyering  <jim@meyering.net>
30950
30951         Rename mreadlink_with_size to areadlink_with_size.
30952         * NEWS: Document the change.
30953         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30954         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30955         * lib/mreadlink.h: Rename this to...
30956         * lib/areadlink.h: ...this.
30957         * modules/mreadlink-with-size: Rename this to...
30958         * modules/areadlink-with-size: ...this.
30959         * lib/canonicalize.c: Reflect the renaming.
30960         * modules/canonicalize: Likewise.
30961
30962 2007-08-26  Bruno Haible  <bruno@clisp.org>
30963
30964         * gnulib-tool (func_import): When deciding which files to remove,
30965         consider also dangling symbolic links.
30966         Reported by Eric Blake.
30967
30968 2007-08-26  Bruno Haible  <bruno@clisp.org>
30969
30970         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30971
30972 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30973
30974         * lib/readline.c: Don't include getline.h, the prototype is now
30975         found in stdio.h.
30976
30977 2007-08-23  Jim Meyering  <jim@meyering.net>
30978
30979         Getdelim touchup.
30980         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30981         around the funlockfile call, since funlockfile never sets errno.
30982         Don't set errno upon failed realloc.
30983
30984 2007-08-22  Eric Blake  <ebb9@byu.net>
30985
30986         Getline touchups.
30987         * lib/getdelim.c (getdelim): Revert regression that required *n to
30988         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30990         getdelim, rather than whether implementation is missing.
30991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30992         * lib/stdio_.h (getline): Also declare if replacement is
30993         required.
30994         * doc/functions/getdelim.texi: New file.
30995         * doc/functions/getline.texi: Likewise.
30996         * doc/gnulib.texi (Function Substitutes): Add new files.
30997         Reported by Bruno Haible.
30998
30999 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31000
31001         * users.txt: Add Guile.
31002
31003 2007-08-22  Eric Blake  <ebb9@byu.net>
31004
31005         * tests/test-getdelim.c (main): Use remove, not unlink.
31006         * tests/test-getline.c (main): Likewise.
31007
31008         Move getline and getdelim into stdio.h, per POSIX 200x.
31009         * modules/getline (Files): Remove getline.h.
31010         (Depends-on): Add stdio.
31011         (configure.ac): Add module indicator.
31012         * modules/getdelim (Files): Remove getdelim.h.
31013         (Depends-on): Add stdio.
31014         (configure.ac): Add module indicator.
31015         * modules/stdio (Makefile.am): Work with new indicators.
31016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31018         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31019         * lib/getdelim.h: Delete.
31020         * lib/getline.h: Delete.
31021         * lib/stdio_.h (getdelim, getline): Declare.
31022         * modules/getdelim-tests: New module.
31023         * modules/getline-tests: Likewise.
31024         * tests/test-getdelim.c: New file.
31025         * tests/test-getline.c: Likewise.
31026         * NEWS: Document the change.
31027         * lib/getline.c: Update choice of header.
31028         * lib/csharpcomp.c: Likewise.
31029         * lib/getpass.c: Likewise.
31030         * lib/javacomp.c: Likewise.
31031         * lib/javaversion.c: Likewise.
31032         * lib/yesno.c: Likewise.
31033         * lib/getdelim.c: Likewise.
31034         (getdelim): Set errno on failure, and avoid memory leak.
31035
31036 2007-08-19  Bruno Haible  <bruno@clisp.org>
31037
31038         * modules/closein (Depends-on): Add freadahead.
31039         * lib/closein.c: Include freadahead.h.
31040         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31041         is zero.
31042
31043 2007-08-19  Bruno Haible  <bruno@clisp.org>
31044
31045         * modules/freadahead-tests: New file.
31046         * tests/test-freadahead.sh: New file.
31047         * tests/test-freadahead.c: New file.
31048
31049         * modules/freadahead: New file.
31050         * lib/freadahead.h: New file.
31051         * lib/freadahead.c: New file.
31052         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31053         fbufmode, fpurge, freadable, fwritable.
31054
31055 2007-08-19  Eric Blake  <ebb9@byu.net>
31056
31057         Test yesno in combination with closein.
31058         * lib/yesno.c (yesno): Document use of stdin.
31059         * modules/yesno-tests (Files): New module.
31060         * tests/test-yesno.c (main): New file.
31061         * tests/test-yesno.sh: Likewise.
31062
31063 2007-08-19  Bruno Haible  <bruno@clisp.org>
31064
31065         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31066         * lib/fseeko.c (rpl_fseeko): Likewise.
31067         * lib/fseterr.c (fseterr): Likewise.
31068
31069 2007-08-19  Bruno Haible  <bruno@clisp.org>
31070
31071         * tests/test-lseek.c (main): Disable a test for BeOS.
31072         * doc/functions/lseek.texi: Document the BeOS bug.
31073
31074 2007-08-19  Bruno Haible  <bruno@clisp.org>
31075             Eric Blake  <ebb9@byu.net>
31076
31077         * lib/lseek.c: Include <sys/stat.h>.
31078         (rpl_lseek): Add workaround code also for Unix platforms.
31079         Needed for BeOS.
31080         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31081         * doc/functions/lseek.texi: Document BeOS definiency.
31082
31083 2007-08-18  Bruno Haible  <bruno@clisp.org>
31084
31085         * modules/fstrcmp-tests: New file.
31086         * tests/test-fstrcmp.c: New file.
31087
31088 2007-08-18  Bruno Haible  <bruno@clisp.org>
31089
31090         * modules/fstrcmp: New file, from GNU gettext with modifications.
31091         * lib/fstrcmp.h: New file, from GNU gettext.
31092         * lib/fstrcmp.c: New file, from GNU gettext.
31093         * MODULES.html.sh (String handling): Add fstrcmp.
31094
31095 2007-08-18  Bruno Haible  <bruno@clisp.org>
31096
31097         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31098         'bool'.
31099         (diag, compareseq): Remove const from the ctxt argument.
31100         (USE_HEURISTIC): Undefine at the end.
31101
31102 2007-08-18  Jim Meyering  <jim@meyering.net>
31103
31104         New file: lib/idcache.h
31105         * NEWS: Mention the addition.
31106         * modules/idcache (Files): Add lib/idcache.h
31107         * lib/idcache.c: Include "idcache.h".
31108         Don't include <sys/types.h>.
31109         Add a FIXME comment.
31110         Move file-scoped "static" declarations to the top.
31111         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31112
31113 2007-08-17  Bruno Haible  <bruno@clisp.org>
31114         and Paul Eggert  <eggert@cs.ucla.edu>
31115
31116         * MODULES.html.sh: Add diffseq.
31117         * modules/diffseq: New file.
31118         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31119         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31120
31121 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31122
31123         Import changes from coreutils for bootstrap script.
31124
31125         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31126
31127         * build-aux/bootstrap (slurp): Work even in environments where
31128         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31129         current code does not slurp files whose names start with ".", and
31130         this looks like it might be a troublesome area.
31131
31132         2007-07-11  Jim Meyering  <jim@meyering.net>
31133
31134         If there's a GPL vN copyright comment, require that N == 3.
31135
31136         2007-07-08  Jim Meyering  <jim@meyering.net>
31137
31138         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31139         * build-aux/bootstrap (mam_template): Move definition out of loop.
31140
31141         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31142
31143         * build-aux/bootstrap (symlink_to_dir): Rename function from
31144         symlink_to_gnulib.  Add a directory parameter.  Update all
31145         callers.
31146         (cp_mark_as_generated): Also check for -- and link to -- files in
31147         gl/.
31148
31149         2007-07-08  Jim Meyering  <jim@meyering.net>
31150
31151         Adapt to deeper hierarchy in gnulib.
31152         * build-aux/bootstrap (symlink_to_dir): If the destination
31153         directory doesn't exist, create it. This is required at least for
31154         "lib/uniwidth/cjk.h".
31155
31156         2007-05-15  Jim Meyering  <jim@meyering.net>
31157
31158         * build-aux/bootstrap: Now that generated Makefile.am files
31159         are no longer under version control, they must be created at
31160         bootstrap time.
31161
31162 2007-08-14  Ben Pfaff  <blp@gnu.org>
31163
31164         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31165
31166 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31167
31168         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31169         given the changes below.
31170         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31171         even on hosts that have padding bits beyond the supported 64.
31172
31173 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31174
31175         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31176         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31177         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31178         depends on it.
31179         (xstrtol_error): Remove.
31180         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31181         but with a different signature.
31182         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31183         * lib/xstrtol-error.c: Include exitfail.h.
31184         (xstrtol_fatal): New function, with a different signature from the
31185         old xstrtol_error, so that the caller need not worry about passing
31186         in an exit status, or about storage management of the option argument.
31187         (xstrtol_error): Now a static function.  Redo signature to
31188         implement xstrtol_fatal.  Output the correct number of hyphens in
31189         front of the option so that the caller need not worry about
31190         storage management.
31191         (N_): New macro.
31192         (_): Remove; not used now.
31193         * modules/xstrtol: Depend on getopt.
31194         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31195         of old STRTOL_FATAL_ERROR macro.
31196         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31197         of test program.
31198         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31199         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31200
31201 2007-08-08  Eric Blake  <ebb9@byu.net>
31202
31203         * lib/xstrtol-error.c: Add missing include.
31204
31205         Move xstrtol messages into gnulib domain, when --pobase is used.
31206         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31207         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31208         * modules/xstrtol (Files): Distribute new file.
31209         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31210         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31211         * tests/test-xstrtol.c: ...into new file.
31212         * tests/test-xstrtoul.c: Also test xstrtoul.
31213         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31214         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31215         * tests/test-xstrtol.sh: Drive the tests.
31216         * tests/test-xstrtoimax.sh: Likewise.
31217         * tests/test-xstrtoumax.sh: Likewise.
31218         * modules/xstrtol-tests: New module.
31219         * modules/xstrtoimax-tests: Likewise.
31220         * modules/xstrtoumax-tests: Likewise.
31221
31222 2007-08-08  Jim Meyering  <jim@meyering.net>
31223
31224         New function: mfile_name_concat.
31225         * lib/filenamecat.c (mfile_name_concat): New function, just like
31226         file_name_concat, but return NULL upon failure rather than exiting
31227         with a diagnostic.
31228         * lib/filenamecat.h: Declare it.
31229
31230 2007-08-07  Bruno Haible  <bruno@clisp.org>
31231
31232         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31233         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31234         warning from gcc.
31235         Reported by Eric Blake.
31236
31237 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31238
31239         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31240         * modules/crypto/arcfour (License): Likewise.
31241         * modules/crypto/des-tests (License): Likewise.
31242         * modules/crypto/gc-arctwo-tests (License): Likewise.
31243         * modules/crypto/gc-des-tests (License): Likewise.
31244         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31245         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31246         * modules/crypto/gc-md2-tests (License): Likewise.
31247         * modules/crypto/gc-md4-tests (License): Likewise.
31248         * modules/crypto/gc-md5-tests (License): Likewise.
31249         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31250         * modules/crypto/gc-rijndael-tests (License): Likewise.
31251         * modules/crypto/gc-sha1-tests (License): Likewise.
31252         * modules/crypto/gc-tests (License): Likewise.
31253         * modules/crypto/hmac-md5 (License): Likewise.
31254         * modules/crypto/hmac-sha1 (License): Likewise.
31255         * modules/crypto/md2-tests (License): Likewise.
31256         * modules/crypto/md4-tests (License): Likewise.
31257         * modules/crypto/md5 (License): Likewise.
31258         * modules/crypto/rijndael (License): Likewise.
31259         * modules/crypto/sha1 (License): Likewise.
31260         * modules/memxor (License): Likewise.
31261
31262 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31263         and Bruno Haible  <bruno@clisp.org>
31264
31265         * NEWS: Describe interface changes to human, xstrtol.
31266         * lib/human.h: Include <xstrtol.h>.
31267         (human_options): Return enum strtol_error, not int.  Remove
31268         bool arg; take int * instead.
31269         * lib/human.c: Don't include "gettext.h".
31270         (_): Remove; no longer used.
31271         Don't include <xstrtol.h>, since human.h does it.
31272         (human_options): Adjust to abovementioned interface changes.
31273         Do not report error to stderr; that's now the caller's
31274         responsibility.
31275         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31276         interface change.
31277         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31278         Str, Argument_type_string.  All uses changed.  Put " argument"
31279         in diagnostics to make them clearer.  Change wording of suffix
31280         message for clarity.
31281         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31282         Argument_type_string.
31283         (STRTOL_FATAL_WARN): Remove; no longer used.
31284         * modules/human (Depends-on): Remove gettext-h.
31285
31286 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31287
31288         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31289
31290 2007-07-31  Bruno Haible  <bruno@clisp.org>
31291
31292         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31293         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31294         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31295
31296 2007-07-31  Bruno Haible  <bruno@clisp.org>
31297
31298         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31299         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31300
31301 2007-07-30  Bruno Haible  <bruno@clisp.org>
31302
31303         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31304         * modules/c-ctype (License): Likewise.
31305         * modules/c-strcase (License): Likewise.
31306         * modules/check-version (License): Likewise.
31307         * modules/iconv (License): Likewise.
31308         * modules/iconv_open (License): Likewise.
31309         * modules/read-file (License): Likewise.
31310         * modules/striconv (License): Likewise.
31311         * modules/strverscmp (License): Likewise.
31312         * modules/vasprintf (License): Likewise.
31313         * modules/crypto/des (License): Likewise.
31314         * modules/crypto/gc (License): Likewise.
31315         * modules/crypto/gc-arcfour (License): Likewise.
31316         * modules/crypto/gc-arctwo (License): Likewise.
31317         * modules/crypto/gc-des (License): Likewise.
31318         * modules/crypto/gc-hmac-md5 (License): Likewise.
31319         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31320         * modules/crypto/gc-md2 (License): Likewise.
31321         * modules/crypto/gc-md4 (License): Likewise.
31322         * modules/crypto/gc-md5 (License): Likewise.
31323         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31324         * modules/crypto/gc-random (License): Likewise.
31325         * modules/crypto/gc-rijndael (License): Likewise.
31326         * modules/crypto/gc-sha1 (License): Likewise.
31327         * modules/crypto/md2 (License): Likewise.
31328         * modules/crypto/md4 (License): Likewise.
31329
31330 2007-07-30  Jim Meyering  <jim@meyering.net>
31331
31332         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31333         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31334         it has valid stat data.  This bug would cause du not to count the
31335         sizes of inaccessible directories.
31336         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31337         in <http://bugzilla.redhat.com/250077>.
31338
31339 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31340             Bruno Haible  <bruno@clisp.org>
31341
31342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31343         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31344         #include_next, gives a diagnostic about it, but reports no error in
31345         the exit code.
31346         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31347
31348 2007-07-24  Ben Pfaff  <blp@gnu.org>
31349
31350         Improve name: "count-one-bits" is better than "popcount".
31351         * MODULES.html.sh: Update name.
31352         * lib/popcount.h: Renamed lib/count-one-bits.h.
31353         (popcount): Renamed count_one_bits.
31354         (popcountl): Renamed count_one_bits_l.
31355         (popcountll): Renamed count_one_bits_ll.
31356         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31357         * modules/popcount: Renamed module/count-one-bits.
31358         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31359         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31360
31361 2007-07-23  Ben Pfaff  <blp@gnu.org>
31362
31363         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31364         better code generation, and add U to large constants to avoid
31365         warnings, in non-GCC case.
31366         Suggested by Bruno Haible.
31367
31368 2007-07-23  Ben Pfaff  <blp@gnu.org>
31369
31370         * lib/popcount.h: Use verify_true instead of if...abort.
31371         * modules/popcount: Depend on verify module.
31372         Suggested by Jim Meyering.
31373
31374 2007-07-23  Bruno Haible  <bruno@clisp.org>
31375
31376         * gnulib-tool (func_import): Create a .cvsignore file also when the
31377         directory is not yet in CVS but the toplevel directory is. When
31378         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31379         Reported by Karl Berry.
31380
31381 2007-07-22  Ben Pfaff  <blp@gnu.org>
31382
31383         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31384         case.
31385         Suggested by Eric Blake.
31386
31387 2007-07-22  Ben Pfaff  <blp@gnu.org>
31388
31389         New module: popcount.
31390         * MODULES.html.sh: Add popcount.
31391         * modules/popcount: New file.
31392         * modules/popcount-tests: New file.
31393         * tests/test-popcount.c: New file.
31394         * lib/popcount.h: New file.
31395         * m4/popcount.m4: New file.
31396
31397 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31398
31399         * build-aux/announce-gen: Update to GPLv3.
31400
31401         * build-aux/config.guess: Update from config.
31402
31403 2007-07-21  Bruno Haible  <bruno@clisp.org>
31404
31405         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31406         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31407
31408 2007-07-20  Jim Meyering  <jim@meyering.net>
31409
31410         * check-module: Diagnose a self-dependency.
31411
31412 2007-07-19  Bruno Haible  <bruno@clisp.org>
31413
31414         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31415         empty.
31416         Reported by Eric Blake.
31417
31418 2007-07-18  Bruno Haible  <bruno@clisp.org>
31419
31420         * gnulib-tool: New options --po-base, --po-domain.
31421         (func_usage): Document them.
31422         (pobase, po_domain): New variables.
31423         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31424         DEFAULT_TEXT_DOMAIN.
31425         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31426         (func_import): Consider pobase and po_domain. Create a po/ directory.
31427         (func_create_testdir): Set pobase and po_domain to empty.
31428         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31429         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31430
31431 2007-07-18  Bruno Haible  <bruno@clisp.org>
31432
31433         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31434         EXTRA_DIST augmentation for files in build-aux/.
31435
31436 2007-07-16  Bruno Haible  <bruno@clisp.org>
31437
31438         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31439         * modules/getdelim (License): Likewise.
31440
31441 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31442
31443         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31444         * modules/d-type (License): Likewise.
31445         * modules/extensions (License): Likewise.
31446         * modules/fnmatch (License): Likewise.
31447         * modules/fseeko (License): Likewise.
31448         * modules/getaddrinfo (License): Likewise.
31449         * modules/getline (License): Likewise.
31450         * modules/getlogin_r (License): Likewise.
31451         * modules/getpass (License): Likewise.
31452         * modules/gettimeofday (License): Likewise.
31453         * modules/glob (License): Likewise.
31454         * modules/inet_ntop (License): Likewise.
31455         * modules/malloc (License): Likewise.
31456         * modules/malloca (License): Likewise.
31457         * modules/memmem (License): Likewise.
31458         * modules/mempcpy (License): Likewise.
31459         * modules/memset (License): Likewise.
31460         * modules/minmax (License): Likewise.
31461         * modules/mktime (License): Likewise.
31462         * modules/netinet_in (License): Likewise.
31463         * modules/pathmax (License): Likewise.
31464         * modules/poll (License): Likewise.
31465         * modules/regex (License): Likewise.
31466         * modules/snprintf (License): Likewise.
31467         * modules/stdbool (License): Likewise.
31468         * modules/stdint (License): Likewise.
31469         * modules/stdio (License): Likewise.
31470         * modules/strcase (License): Likewise.
31471         * modules/strcasestr (License): Likewise.
31472         * modules/strdup (License): Likewise.
31473         * modules/string (License): Likewise.
31474         * modules/strndup (License): Likewise.
31475         * modules/strnlen (License): Likewise.
31476         * modules/strpbrk (License): Likewise.
31477         * modules/strptime (License): Likewise.
31478         * modules/strsep (License): Likewise.
31479         * modules/sys_select (License): Likewise.
31480         * modules/sys_socket (License): Likewise.
31481         * modules/sys_stat (License): Likewise.
31482         * modules/sys_time (License): Likewise.
31483         * modules/time (License): Likewise.
31484         * modules/time_r (License): Likewise.
31485         * modules/timegm (License): Likewise.
31486         * modules/unistd (License): Likewise.
31487         * modules/vsnprintf (License): Likewise.
31488         * modules/wctype (License): Likewise.
31489
31490 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31491
31492         * modules/argz (License): LGPLv2+.
31493
31494 2007-07-15  Karl Berry  <karl@gnu.org>
31495
31496         * doc/gnulib.texi: revise node structure per new fdl.texi.
31497
31498 2007-07-14  Bruno Haible  <bruno@clisp.org>
31499
31500         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31501         the output file.
31502         * lib/uniname/uninames.h: Regenerated.
31503
31504 2007-07-14  Karl Berry  <karl@gnu.org>
31505
31506         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31507         omitting sectioning and index commands.
31508
31509 2007-07-13  Bruno Haible  <bruno@clisp.org>
31510
31511         New gnulib-tool option --more-symlinks.
31512         * gnulib-tool (func_usage): Document --more-symlinks.
31513         (do_copyrights): New variable.
31514         Recognize option --more-symlinks.
31515         (func_import): Don't add a copyright notice transform to
31516         sed_transform_lib_file if do_copyrights is empty.
31517
31518 2007-07-13  Bruno Haible  <bruno@clisp.org>
31519
31520         * lib/vasnprintf.c (decimal_point_char): Define also if
31521         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31522         && !NEED_PRINTF_DIRECTIVE_A.
31523         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31524         Gary V. Vaughan <gary@gnu.org>.
31525
31526 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31527
31528         * lib/inttypes_.h: Undo previous change, since it was fixed
31529         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31530
31531 2007-07-13  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31534         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31535
31536 2007-07-13  Jim Meyering  <jim@meyering.net>
31537
31538         df: Don't fail for Tru64's "file-on-file mount".
31539         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31540         so we fall through and use statfs instead.  Details here:
31541         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31542         Reported by Albert Chin.
31543
31544 2007-07-13  Bruno Haible  <bruno@clisp.org>
31545
31546         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31547         * modules/configmake (License): Likewise.
31548         * modules/gettext (License): Likewise.
31549         * modules/gettext-h (License): Likewise.
31550         * modules/include_next (License): Likewise.
31551         * modules/link-warning (License): Likewise.
31552         * modules/localcharset (License): Likewise.
31553         * modules/localename (License): Likewise.
31554         * modules/lock (License): Likewise.
31555         * modules/relocatable-lib-lgpl (License): Likewise.
31556         * modules/size_max (License): Likewise.
31557         * modules/vasnprintf (License): Likewise.
31558         * modules/wchar (License): Likewise.
31559         * modules/xsize (License): Likewise.
31560
31561 2007-07-13  Bruno Haible  <bruno@clisp.org>
31562
31563         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31564         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31565
31566 2007-07-12  Bruno Haible  <bruno@clisp.org>
31567
31568         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31569         in the modules files.
31570
31571 2007-07-11  Karl Berry  <karl@gnu.org>
31572
31573         * MODULES.html.sh (func_module): use
31574          sed -e '\|^'"${includefile}"'$|d'
31575          instead of /.../d, to avoid errors on $includefile's containing /.
31576
31577 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31578
31579         * gnulib-tool (func_import): Avoid duplication of --avoid
31580         statements
31581         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31582         names to `_' in variable names.
31583
31584 2007-07-10  Eric Blake  <ebb9@byu.net>
31585
31586         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31587         * NEWS: Document this change.
31588
31589 2007-07-08  Bruno Haible  <bruno@clisp.org>
31590
31591         Update to Unicode 5.0.
31592         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31593         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31594         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31595         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31596         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31597         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31598         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31599         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31600         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31601         U+10A3F, U+1D242..U+1D244.
31602         (nonspacing_table_ind): Update.
31603         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31604         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31605
31606 2007-07-08  Bruno Haible  <bruno@clisp.org>
31607
31608         Update to Unicode 5.0.
31609         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31610         code transform. Extend the name index field of unicode_name_to_code and
31611         unicode_code_to_name from 16 to 24 bits.
31612         * lib/uniname/uniname.c (unicode_character_name,
31613         unicode_name_character): Add the range 0x12xxx to the code transform.
31614         * lib/uniname/uninames.h: Regenerated.
31615         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31616
31617 2007-07-07  Bruno Haible  <bruno@clisp.org>
31618
31619         * modules/wcwidth-tests: New file.
31620         * tests/test-wcwidth.c: New file.
31621
31622         Work around MacOS X wcwidth() bug.
31623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31624         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31625         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31626         original wcwidth in non-UTF-8 locales.
31627         * modules/wcwidth (Depends-on): Add localcharset, streq,
31628         uniwidth/width.
31629         * doc/functions/wcwidth.texi: Update.
31630
31631 2007-07-07  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31634         (wcwidth): New declaration.
31635         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31636         macros.
31637         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31638         here. Prepare for creating <wchar.h> unconditionally.
31639         * modules/wchar (Depends-on): Add link-warning.
31640         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31641         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31642         * lib/wcwidth.h: Remove file.
31643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31644         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31645         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31646         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31647         (Include): Replace wcwidth.h with <wchar.h>.
31648         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31649         * lib/mbchar.h: Don't include wcwidth.h.
31650         * lib/mbswidth.c: Likewise.
31651         * NEWS: Mention the change.
31652
31653 2007-07-07  Bruno Haible  <bruno@clisp.org>
31654
31655         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31656         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31657         definition with an external declaration.
31658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31659         defined as a function. Remove AC_C_INLINE requirement.
31660         * modules/wcwidth (Files): Add lib/wcwidth.c.
31661         (Makefile.am): Remove redundant statement.
31662
31663 2007-07-07  Bruno Haible  <bruno@clisp.org>
31664
31665         * MODULES.html.sh (Unicode string functions): Add the new modules.
31666
31667         * tests/uniwidth/test-u32-strwidth.c: New file.
31668         * modules/uniwidth/u32-strwidth-tests: New file.
31669
31670         * lib/uniwidth/u32-strwidth.c: New file.
31671         * modules/uniwidth/u32-strwidth: New file.
31672
31673         * tests/uniwidth/test-u16-strwidth.c: New file.
31674         * modules/uniwidth/u16-strwidth-tests: New file.
31675
31676         * lib/uniwidth/u16-strwidth.c: New file.
31677         * modules/uniwidth/u16-strwidth: New file.
31678
31679         * tests/uniwidth/test-u8-strwidth.c: New file.
31680         * modules/uniwidth/u8-strwidth-tests: New file.
31681
31682         * lib/uniwidth/u8-strwidth.c: New file.
31683         * modules/uniwidth/u8-strwidth: New file.
31684
31685         * tests/uniwidth/test-u32-width.c: New file.
31686         * modules/uniwidth/u32-width-tests: New file.
31687
31688         * lib/uniwidth/u32-width.c: New file.
31689         * modules/uniwidth/u32-width: New file.
31690
31691         * tests/uniwidth/test-u16-width.c: New file.
31692         * modules/uniwidth/u16-width-tests: New file.
31693
31694         * lib/uniwidth/u16-width.c: New file.
31695         * modules/uniwidth/u16-width: New file.
31696
31697         * tests/uniwidth/test-u8-width.c: New file.
31698         * modules/uniwidth/u8-width-tests: New file.
31699
31700         * lib/uniwidth/u8-width.c: New file.
31701         * modules/uniwidth/u8-width: New file.
31702
31703         * tests/uniwidth/test-uc_width.c: New file.
31704         * modules/uniwidth/width-tests: New file.
31705
31706         * lib/uniwidth/width.c: New file, from GNU libiconv.
31707         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31708         * modules/uniwidth/width: New file.
31709
31710         * lib/uniwidth.h: New file, from GNU libiconv.
31711         * modules/uniwidth/base: New file.
31712
31713 2007-07-07  Bruno Haible  <bruno@clisp.org>
31714
31715         * lib/uniname.h: New file, from GNU gettext.
31716         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31717         * lib/uniname/uninames.h: New file, from GNU gettext.
31718         * lib/uniname/uniname.c: New file, from GNU gettext.
31719         * tests/uniname/test-uninames.sh: New file.
31720         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31721         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31722         * modules/uniname/base: New file.
31723         * modules/uniname/uniname: New file.
31724         * modules/uniname/uniname-tests: New file.
31725         * MODULES.html.sh (Unicode string functions): Add the new modules.
31726
31727 2007-07-06  Bruno Haible  <bruno@clisp.org>
31728
31729         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31730
31731 2007-07-06  Bruno Haible  <bruno@clisp.org>
31732
31733         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31734         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31735         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31736         include <sys/time.h>.
31737         Reported by Eric Blake.
31738
31739 2007-07-06  Eric Blake  <ebb9@byu.net>
31740
31741         Fix testing canonicalize on cygwin.
31742         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31743         Revert patch from 2007-06-19.
31744         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31745         canonicalize module is also in use.
31746         * tests/test-canonicalize.c: New file.
31747         * tests/test-canonicalize.sh: Likewise.
31748         * modules/canonicalize-tests: Likewise.
31749
31750 2007-07-06  Jim Meyering  <jim@meyering.net>
31751
31752         * lib/getugroups.c (getugroups): Detect getgrent failure.
31753         Adjust comment to reflect reality: this function may return -1.
31754
31755 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31756
31757         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31758         the new TP address.
31759         (usage): Fix typo
31760         (gnulib_mk): New variable.
31761
31762 2007-07-05  Jim Meyering  <jim@meyering.net>
31763
31764         Don't let endgrent clobber errno, no matter how improbable.
31765         * lib/getugroups.c (getugroups): Save and restore errno around
31766         endgrent call.
31767
31768         Close the group DB even when failing with 2^31 or more members.
31769         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31770
31771 2007-07-04  Jim Meyering  <jim@meyering.net>
31772
31773         * lib/getugroups.h: New file.
31774         * lib/getugroups.c: Include "getugroups.h".
31775         Remove uses of "register" keyword.
31776         Move local variable, "cp", down into scope where used.
31777         Give "username" parameter the "const" attribute.
31778         * modules/getugroups (Files): Add lib/getugroups.h
31779
31780 2007-07-04  Karl Berry  <karl@gnu.org>
31781
31782         * MODULES.html.sh (func_all_modules): Complete rename of
31783         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31784
31785 2007-07-02  Bruno Haible  <bruno@clisp.org>
31786
31787         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31788         mode, when inttypes.h comes from gnulib.
31789         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31790
31791 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31792
31793         * NEWS: Mention lgpl module name change.
31794
31795         * modules/lgpl-2.1: Renamed from lgpl.
31796
31797         * NEWS: Mention gpl module name change.
31798
31799         * modules/gpl-3.0: New file, based on gpl-2.0.
31800
31801         * modules/gpl-2.0: Renamed from gpl.
31802
31803         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31804         doc/gpl-2.0.texi.
31805
31806 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31807
31808         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31809         #define __STDC_LIMIT_MACROS temporarily while including
31810         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31811         Problem reported by Joel E. Denny in
31812         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31813
31814 2007-07-01  Bruno Haible  <bruno@clisp.org>
31815
31816         * lib/unistdio.h: New file.
31817         * lib/unistdio/u-asnprintf.h: New file.
31818         * lib/unistdio/u-asprintf.h: New file.
31819         * lib/unistdio/u-printf-args.c: New file.
31820         * lib/unistdio/u-printf-args.h: New file.
31821         * lib/unistdio/u-printf-parse.h: New file.
31822         * lib/unistdio/u-snprintf.h: New file.
31823         * lib/unistdio/u-sprintf.h: New file.
31824         * lib/unistdio/u-vasprintf.h: New file.
31825         * lib/unistdio/u-vsnprintf.h: New file.
31826         * lib/unistdio/u-vsprintf.h: New file.
31827         * lib/unistdio/ulc-asnprintf.c: New file.
31828         * lib/unistdio/ulc-asprintf.c: New file.
31829         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31830         * lib/unistdio/ulc-printf-parse.c: New file.
31831         * lib/unistdio/ulc-snprintf.c: New file.
31832         * lib/unistdio/ulc-sprintf.c: New file.
31833         * lib/unistdio/ulc-vasnprintf.c: New file.
31834         * lib/unistdio/ulc-vasprintf.c: New file.
31835         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31836         * lib/unistdio/ulc-vsnprintf.c: New file.
31837         * lib/unistdio/ulc-vsprintf.c: New file.
31838         * lib/unistdio/u8-asnprintf.c: New file.
31839         * lib/unistdio/u8-asprintf.c: New file.
31840         * lib/unistdio/u8-printf-parse.c: New file.
31841         * lib/unistdio/u8-snprintf.c: New file.
31842         * lib/unistdio/u8-sprintf.c: New file.
31843         * lib/unistdio/u8-vasnprintf.c: New file.
31844         * lib/unistdio/u8-vasprintf.c: New file.
31845         * lib/unistdio/u8-vsnprintf.c: New file.
31846         * lib/unistdio/u8-vsprintf.c: New file.
31847         * lib/unistdio/u8-u8-asnprintf.c: New file.
31848         * lib/unistdio/u8-u8-asprintf.c: New file.
31849         * lib/unistdio/u8-u8-snprintf.c: New file.
31850         * lib/unistdio/u8-u8-sprintf.c: New file.
31851         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31852         * lib/unistdio/u8-u8-vasprintf.c: New file.
31853         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31854         * lib/unistdio/u8-u8-vsprintf.c: New file.
31855         * lib/unistdio/u16-asnprintf.c: New file.
31856         * lib/unistdio/u16-asprintf.c: New file.
31857         * lib/unistdio/u16-printf-parse.c: New file.
31858         * lib/unistdio/u16-snprintf.c: New file.
31859         * lib/unistdio/u16-sprintf.c: New file.
31860         * lib/unistdio/u16-vasnprintf.c: New file.
31861         * lib/unistdio/u16-vasprintf.c: New file.
31862         * lib/unistdio/u16-vsnprintf.c: New file.
31863         * lib/unistdio/u16-vsprintf.c: New file.
31864         * lib/unistdio/u16-u16-asnprintf.c: New file.
31865         * lib/unistdio/u16-u16-asprintf.c: New file.
31866         * lib/unistdio/u16-u16-snprintf.c: New file.
31867         * lib/unistdio/u16-u16-sprintf.c: New file.
31868         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31869         * lib/unistdio/u16-u16-vasprintf.c: New file.
31870         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31871         * lib/unistdio/u16-u16-vsprintf.c: New file.
31872         * lib/unistdio/u32-asnprintf.c: New file.
31873         * lib/unistdio/u32-asprintf.c: New file.
31874         * lib/unistdio/u32-printf-parse.c: New file.
31875         * lib/unistdio/u32-snprintf.c: New file.
31876         * lib/unistdio/u32-sprintf.c: New file.
31877         * lib/unistdio/u32-vasnprintf.c: New file.
31878         * lib/unistdio/u32-vasprintf.c: New file.
31879         * lib/unistdio/u32-vsnprintf.c: New file.
31880         * lib/unistdio/u32-vsprintf.c: New file.
31881         * lib/unistdio/u32-u32-asnprintf.c: New file.
31882         * lib/unistdio/u32-u32-asprintf.c: New file.
31883         * lib/unistdio/u32-u32-snprintf.c: New file.
31884         * lib/unistdio/u32-u32-sprintf.c: New file.
31885         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31886         * lib/unistdio/u32-u32-vasprintf.c: New file.
31887         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31888         * lib/unistdio/u32-u32-vsprintf.c: New file.
31889         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31890         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31891         * tests/unistdio/test-ulc-printf1.h: New file.
31892         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31893         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31894         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31895         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31896         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31897         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31898         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31899         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31900         * tests/unistdio/test-u8-asnprintf1.c: New file.
31901         * tests/unistdio/test-u8-asnprintf1.h: New file.
31902         * tests/unistdio/test-u8-printf1.h: New file.
31903         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31904         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31905         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31906         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31907         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31908         * tests/unistdio/test-u8-vasprintf1.c: New file.
31909         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31910         * tests/unistdio/test-u8-vsprintf1.c: New file.
31911         * tests/unistdio/test-u16-asnprintf1.c: New file.
31912         * tests/unistdio/test-u16-asnprintf1.h: New file.
31913         * tests/unistdio/test-u16-printf1.h: New file.
31914         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31915         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31916         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31917         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31918         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31919         * tests/unistdio/test-u16-vasprintf1.c: New file.
31920         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31921         * tests/unistdio/test-u16-vsprintf1.c: New file.
31922         * tests/unistdio/test-u32-asnprintf1.c: New file.
31923         * tests/unistdio/test-u32-asnprintf1.h: New file.
31924         * tests/unistdio/test-u32-printf1.h: New file.
31925         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31926         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31927         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31928         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31929         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31930         * tests/unistdio/test-u32-vasprintf1.c: New file.
31931         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31932         * tests/unistdio/test-u32-vsprintf1.c: New file.
31933         * modules/unistdio/base: New file.
31934         * modules/unistdio/u-printf-args: New file.
31935         * modules/unistdio/ulc-asnprintf: New file.
31936         * modules/unistdio/ulc-asprintf: New file.
31937         * modules/unistdio/ulc-fprintf: New file.
31938         * modules/unistdio/ulc-printf-parse: New file.
31939         * modules/unistdio/ulc-snprintf: New file.
31940         * modules/unistdio/ulc-sprintf: New file.
31941         * modules/unistdio/ulc-vasnprintf: New file.
31942         * modules/unistdio/ulc-vasprintf: New file.
31943         * modules/unistdio/ulc-vfprintf: New file.
31944         * modules/unistdio/ulc-vsnprintf: New file.
31945         * modules/unistdio/ulc-vsprintf: New file.
31946         * modules/unistdio/u8-asnprintf: New file.
31947         * modules/unistdio/u8-asprintf: New file.
31948         * modules/unistdio/u8-printf-parse: New file.
31949         * modules/unistdio/u8-snprintf: New file.
31950         * modules/unistdio/u8-sprintf: New file.
31951         * modules/unistdio/u8-vasnprintf: New file.
31952         * modules/unistdio/u8-vasprintf: New file.
31953         * modules/unistdio/u8-vsnprintf: New file.
31954         * modules/unistdio/u8-vsprintf: New file.
31955         * modules/unistdio/u8-u8-asnprintf: New file.
31956         * modules/unistdio/u8-u8-asprintf: New file.
31957         * modules/unistdio/u8-u8-snprintf: New file.
31958         * modules/unistdio/u8-u8-sprintf: New file.
31959         * modules/unistdio/u8-u8-vasnprintf: New file.
31960         * modules/unistdio/u8-u8-vasprintf: New file.
31961         * modules/unistdio/u8-u8-vsnprintf: New file.
31962         * modules/unistdio/u8-u8-vsprintf: New file.
31963         * modules/unistdio/u16-asnprintf: New file.
31964         * modules/unistdio/u16-asprintf: New file.
31965         * modules/unistdio/u16-printf-parse: New file.
31966         * modules/unistdio/u16-snprintf: New file.
31967         * modules/unistdio/u16-sprintf: New file.
31968         * modules/unistdio/u16-vasnprintf: New file.
31969         * modules/unistdio/u16-vasprintf: New file.
31970         * modules/unistdio/u16-vsnprintf: New file.
31971         * modules/unistdio/u16-vsprintf: New file.
31972         * modules/unistdio/u16-u16-asnprintf: New file.
31973         * modules/unistdio/u16-u16-asprintf: New file.
31974         * modules/unistdio/u16-u16-snprintf: New file.
31975         * modules/unistdio/u16-u16-sprintf: New file.
31976         * modules/unistdio/u16-u16-vasnprintf: New file.
31977         * modules/unistdio/u16-u16-vasprintf: New file.
31978         * modules/unistdio/u16-u16-vsnprintf: New file.
31979         * modules/unistdio/u16-u16-vsprintf: New file.
31980         * modules/unistdio/u32-asnprintf: New file.
31981         * modules/unistdio/u32-asprintf: New file.
31982         * modules/unistdio/u32-printf-parse: New file.
31983         * modules/unistdio/u32-snprintf: New file.
31984         * modules/unistdio/u32-sprintf: New file.
31985         * modules/unistdio/u32-vasnprintf: New file.
31986         * modules/unistdio/u32-vasprintf: New file.
31987         * modules/unistdio/u32-vsnprintf: New file.
31988         * modules/unistdio/u32-vsprintf: New file.
31989         * modules/unistdio/u32-u32-asnprintf: New file.
31990         * modules/unistdio/u32-u32-asprintf: New file.
31991         * modules/unistdio/u32-u32-snprintf: New file.
31992         * modules/unistdio/u32-u32-sprintf: New file.
31993         * modules/unistdio/u32-u32-vasnprintf: New file.
31994         * modules/unistdio/u32-u32-vasprintf: New file.
31995         * modules/unistdio/u32-u32-vsnprintf: New file.
31996         * modules/unistdio/u32-u32-vsprintf: New file.
31997         * modules/unistdio/ulc-asnprintf-tests: New file.
31998         * modules/unistdio/ulc-vasnprintf-tests: New file.
31999         * modules/unistdio/ulc-vasprintf-tests: New file.
32000         * modules/unistdio/ulc-vsnprintf-tests: New file.
32001         * modules/unistdio/ulc-vsprintf-tests: New file.
32002         * modules/unistdio/u8-asnprintf-tests: New file.
32003         * modules/unistdio/u8-vasnprintf-tests: New file.
32004         * modules/unistdio/u8-vasprintf-tests: New file.
32005         * modules/unistdio/u8-vsnprintf-tests: New file.
32006         * modules/unistdio/u8-vsprintf-tests: New file.
32007         * modules/unistdio/u16-asnprintf-tests: New file.
32008         * modules/unistdio/u16-vasnprintf-tests: New file.
32009         * modules/unistdio/u16-vasprintf-tests: New file.
32010         * modules/unistdio/u16-vsnprintf-tests: New file.
32011         * modules/unistdio/u16-vsprintf-tests: New file.
32012         * modules/unistdio/u32-asnprintf-tests: New file.
32013         * modules/unistdio/u32-vasnprintf-tests: New file.
32014         * modules/unistdio/u32-vasprintf-tests: New file.
32015         * modules/unistdio/u32-vsnprintf-tests: New file.
32016         * modules/unistdio/u32-vsprintf-tests: New file.
32017         * MODULES.html.sh (Unicode string functions): Add the new modules.
32018
32019 2007-07-01  Bruno Haible  <bruno@clisp.org>
32020
32021         * lib/sprintf.c (sprintf): Limit the available length estimation,
32022         to avoid address wraparound.
32023         * lib/vsprintf.c (vsprintf): Likewise.
32024         * modules/sprintf-posix (Dependencies): Add stdint.
32025         * modules/vsprintf-posix (Dependencies): Likewise.
32026
32027 2007-07-01  Bruno Haible  <bruno@clisp.org>
32028
32029         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32030         Windows PATH as well. Conservative double-quoting. Comments.
32031
32032 2007-07-01  Bruno Haible  <bruno@clisp.org>
32033             Eric Blake  <ebb9@byu.net>
32034             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32035
32036         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32037         empty components in $PATH, denoting '.'.
32038
32039 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32040
32041         * gnulib-tool: Fix indentation.
32042         (func_create_megatestdir): Likewise.
32043         Report by Bruno Haible.
32044
32045 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32046
32047         Sync from Automake.
32048         * build-aux/gnupload: Fix shell portability issues with for loops.
32049         Report by Karl Berry.
32050
32051 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32052
32053         * build-aux/maint.mk (POURL): Use translationproject.org.
32054
32055 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32056             Bruno Haible  <bruno@clisp.org>
32057
32058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32059         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32060         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32061         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32062         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32063
32064 2007-06-27  Bruno Haible  <bruno@clisp.org>
32065
32066         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32067         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32068
32069 2007-06-26  Karl Berry  <karl@gnu.org>
32070
32071         * MODULES.html.sh: remove xreadlink-with-size.
32072
32073 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32074
32075         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32076         method that I hope also handles the double-include problem noted
32077         by Bruno Haible in
32078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32079
32080 2007-06-23  Bruno Haible  <bruno@clisp.org>
32081
32082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32083         Don't let the 'mostlyclean' target fail if the last subdirectory could
32084         not be removed.
32085         Reported by Karl Berry.
32086
32087 2007-06-23  Bruno Haible  <bruno@clisp.org>
32088
32089         * gnulib-tool (echo): Add a speedier workaround for ksh.
32090         * tests/test-echo.sh: Likewise.
32091
32092 2007-06-23  Bruno Haible  <bruno@clisp.org>
32093
32094         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32095         * tests/test-echo.sh: Likewise.
32096
32097 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32098
32099         * gnulib-tool (IFS): Initialize early, so we don't set it to
32100         empty later.
32101         (self_abspathname): Rewrite algorithm to set it, reindent.
32102         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32103         (func_create_megatestdir): Merge some sed scripts.
32104
32105 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32106
32107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32108         exposed by Sun Studio 11 cc on Solaris 8.
32109
32110 2007-06-22  Bruno Haible  <bruno@clisp.org>
32111
32112         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32113         backslashes.
32114         * tests/test-echo.sh: New file.
32115
32116 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32117
32118         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32119         simplify `sed_replace_build_aux' scripts, they are portable but
32120         echoing them with `echo' is not.
32121         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32122
32123 2007-06-21  Karl Berry  <karl@gnu.org>
32124
32125         * config/srclist.txt: guess we can't handle the licenses via
32126         srclist at the moment.
32127
32128 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32129
32130         * MODULES.html.sh: Add include_next.
32131         * modules/include_next: New file.
32132
32133 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32134
32135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32136         INCLUDE_NEXT.
32137         (gl_CHECK_NEXT_HEADERS): New macro.
32138         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32139         the obsolescent gl_ABSOLUTE_HEADER.
32140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32141         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32142         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32143         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32144         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32145         * m4/math_h.m4 (gl_MATH_H): Likewise.
32146         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32147         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32148         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32149         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32150         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32151         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32152         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32156         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32157         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32158         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32159         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32160         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32161         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32162         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32163         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32164         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32165         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32166         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32167         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32168         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32169         * lib/float_.h: Likewise.
32170         * lib/inttypes_.h: Likewise.
32171         * lib/math_.h: Likewise.
32172         * lib/search_.h: Likewise.
32173         * lib/signal_.h: Likewise.
32174         * lib/stdint_.h: Likewise.
32175         * lib/stdio_.h: Likewise.
32176         * lib/stdlib_.h: Likewise.
32177         * lib/string_.h: Likewise.
32178         * lib/sys_stat_.h: Likewise.
32179         * lib/sys_time_.h: Likewise.
32180         * lib/time_.h: Likewise.
32181         * lib/unistd_.h: Likewise.
32182         * lib/wchar_.h: Likewise.
32183         * lib/wctype_.h: Likewise.
32184         * lib/dirent_.h: Likewise.
32185         * lib/iconv_.h: Likewise.
32186         * lib/locale_.h: Likewise.
32187         * lib/netinet_in_.h: Likewise.
32188         * lib/sys_select_.h: Likewise.
32189         * lib/sys_socket_.h: Likewise.
32190         * lib/sysexits_.h: Likewise.
32191         * modules/fcntl (Depends-on): Depend on include_next, not
32192         absolute_header.
32193         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32194         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32195         * modules/fchdir: Likewise.
32196         * modules/float: Likewise.
32197         * modules/iconv_open: Likewise.
32198         * modules/inttypes: Likewise.
32199         * modules/locale: Likewise.
32200         * modules/math: Likewise.
32201         * modules/netinet_in: Likewise.
32202         * modules/search: Likewise.
32203         * modules/signal: Likewise.
32204         * modules/stdint: Likewise.
32205         * modules/stdio: Likewise.
32206         * modules/stdlib: Likewise.
32207         * modules/string: Likewise.
32208         * modules/sys_select: Likewise.
32209         * modules/sys_socket: Likewise.
32210         * modules/sys_stat: Likewise.
32211         * modules/sys_time: Likewise.
32212         * modules/sysexits: Likewise.
32213         * modules/time: Likewise.
32214         * modules/unistd: Likewise.
32215         * modules/wchar: Likewise.
32216         * modules/wctype: Likewise.
32217         * modules/sys_stat: Change maintainer to "all".
32218         * modules/unistd: Likewise.
32219
32220 2007-06-20  Karl Berry  <karl@gnu.org>
32221
32222         * config/srclist.txt: track www changes in license files.
32223
32224 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32225
32226         * build-aux/bootstrap: Remove stray dot.
32227         Make sure build_aux settings are honored when linking
32228         gnulib_extra_files.
32229
32230 2007-06-19  Eric Blake  <ebb9@byu.net>
32231
32232         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32233         Allow compilation on cygwin.
32234
32235 2007-06-19  Jim Meyering  <jim@meyering.net>
32236
32237         xreadlink-with-size: Remove module.  No longer used.
32238         Ex-callers now use xreadlink or mreadlink-with-size.
32239         * modules/xreadlink-with-size: Remove module.
32240         * lib/xreadlink-with-size.c: Remove file.
32241         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32242         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32243         just before the function definition *is* accurate.
32244
32245         Eliminate one way canonicalize_filename_mode could exit.
32246         * lib/canonicalize.c (canonicalize_filename_mode):
32247         Use mreadlink_with_size, not xreadlink_with_size.
32248
32249 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32250
32251         Detect porting problems to FreeBSD/arm, which has time_t wider than
32252         long int.  Original problem reported for GNU diff by Xin Li in
32253         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32254         * modules/getdate (Depends-on): Add intprops, verify.
32255         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32256         is an integer type no wider than long int.
32257
32258 2007-06-18  Jim Meyering  <jim@meyering.net>
32259
32260         New module: mreadlink-with-size.
32261         * MODULES.html.sh: Add mreadlink-with-size.
32262         * modules/mreadlink-with-size: New module
32263         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32264         not xreadlink-with-size.
32265         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32266
32267 2007-06-16  Bruno Haible  <bruno@clisp.org>
32268
32269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32270         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32271         Reported by Gary V. Vaughan <gary@gnu.org>.
32272
32273 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32274
32275         Revamp lchown so that it lives in unistd.h where it belongs.
32276         * lib/lchown.h: Remove.
32277         * lib/dirchownmod.c: Don't include lib/lchown.h.
32278         * lib/fchownat.c: Likewise.
32279         * lib/openat.c: Likewise.
32280         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32281         does not follow symlinks.
32282         (EOPNOTSUPP): Define if not defined.
32283         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32284         is defined to 0.
32285         (lchown): New decl.
32286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32287         Do not check for lchown decl.
32288         Set REPLACE_LCHOWN.
32289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32290         REPLACE_LCHOWN.
32291         * modules/chown: Make it clear it follows symlinks.
32292         * modules/lchown: Make it clear it doesn't follow symlinks.
32293         (Files): Remove lib/lchown.h
32294         (Depends-on): Add unistd.
32295         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32296         (Include): Include <unistd.h>, not "lchown.h".
32297         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32298         REPLACE_LCHOWN.
32299
32300 2007-06-15  Jim Meyering  <jim@meyering.net>
32301
32302         Change license (GPL to LGPL) of fsusage and dependents.
32303         * modules/fsusage (License): Change to LGPL.
32304         * modules/full-read (License): Likewise.
32305         * modules/full-write (License): Likewise.
32306         * modules/safe-read (License): Likewise.
32307         * modules/safe-write (License): Likewise.
32308
32309 2007-06-14  Ben Pfaff  <blp@gnu.org>
32310
32311         Missing part of allocsa -> malloca transition.
32312         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32313         gl_MALLOCA.
32314
32315 2007-06-12  Bruno Haible  <bruno@clisp.org>
32316
32317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32318         to ia64, x86_64, i386.
32319         Reported by Eric Blake.
32320
32321 2007-06-12  Bruno Haible  <bruno@clisp.org>
32322
32323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32324         cross-compiling to x86_64.
32325
32326 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32327
32328         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32329         glitch reported by Ralf Wildenhues in
32330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32331
32332         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32333         Vin Shelton.
32334
32335 2007-06-11  Bruno Haible  <bruno@clisp.org>
32336
32337         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32338         replacement string.
32339         Reported by Eric Blake.
32340
32341 2007-06-10  Bruno Haible  <bruno@clisp.org>
32342
32343         Prepare vasnprintf code for use with Unicode strings.
32344         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32345         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32346         TYPE_U32_STRING.
32347         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32348         a_u32_string variants.
32349         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32350         * lib/printf-args.c: Don't include config.h and the specification
32351         header if PRINTF_FETCHARGS is already defined.
32352         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32353         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32354         TYPE_U16_STRING, TYPE_U32_STRING.
32355         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32356         u16_directive, u16_directives, u32_directive, u32_directives): New
32357         types.
32358         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32359         New declarations.
32360         * lib/printf-parse.c: Don't include config.h and the specification
32361         header if PRINTF_PARSE is already defined. Eliminate the set of
32362         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32363         them now. Include c-ctype.h.
32364         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32365         directive and CHAR_T_ONLY_ASCII.
32366         * lib/vasnprintf.c: Don't include config.h and the specification header
32367         if VASNPRINTF is already defined.
32368         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32369         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32370         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32371         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32372         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32373         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32374         code accordingly.
32375         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32376         pad_ourselves also in this case, with the 'c' and 's' directives, and
32377         with a different notion of "width".
32378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32379
32380 2007-06-10  Bruno Haible  <bruno@clisp.org>
32381
32382         * modules/unistr/u32-mbsnlen: New file.
32383         * lib/unistr/u32-mbsnlen.c: New file.
32384
32385         * modules/unistr/u16-mbsnlen: New file.
32386         * lib/unistr/u16-mbsnlen.c: New file.
32387
32388         * modules/unistr/u8-mbsnlen: New file.
32389         * lib/unistr/u8-mbsnlen.c: New file.
32390
32391         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32392         declarations.
32393
32394 2007-06-10  Bruno Haible  <bruno@clisp.org>
32395
32396         * lib/string_.h (mbsnlen): New declaration.
32397         * lib/mbsnlen.c: New file.
32398         * m4/mbsnlen.m4: New file.
32399         * modules/mbsnlen: New file.
32400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32401         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32402         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32403
32404 2007-06-10  Bruno Haible  <bruno@clisp.org>
32405
32406         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32407
32408 2007-06-10  Bruno Haible  <bruno@clisp.org>
32409
32410         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32411         * lib/mbuiter.h: Likewise.
32412
32413 2007-06-10  Bruno Haible  <bruno@clisp.org>
32414
32415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32416         declaration.
32417
32418 2007-06-10  Karl Berry  <karl@gnu.org>
32419
32420         * config/srclist.txt: remove gettext entries, Bruno prefers
32421         to update individually.
32422
32423 2007-06-10  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32426         'maxlen'. Ensure only length + width bytes are allocated, not
32427         length + 1 + width.
32428
32429 2007-06-09  Bruno Haible  <bruno@clisp.org>
32430
32431         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32432         (CHAR_T): Remove macro.
32433         (VASNPRINTF): Update.
32434
32435 2007-06-09  Bruno Haible  <bruno@clisp.org>
32436
32437         * MODULES.html.sh (Unicode string functions): Add the new modules.
32438
32439         * modules/uniconv/u32-conv-to-enc: New file.
32440         * lib/uniconv/u32-conv-to-enc.c: New file.
32441         * modules/uniconv/u32-conv-to-enc-tests: New file.
32442         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32443
32444         * modules/uniconv/u16-conv-to-enc: New file.
32445         * lib/uniconv/u16-conv-to-enc.c: New file.
32446         * lib/uniconv/u-conv-to-enc.h: New file.
32447         * modules/uniconv/u16-conv-to-enc-tests: New file.
32448         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32449
32450         * modules/uniconv/u8-conv-to-enc: New file.
32451         * lib/uniconv/u8-conv-to-enc.c: New file.
32452         * modules/uniconv/u8-conv-to-enc-tests: New file.
32453         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32454
32455         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32456         u32_conv_to_encoding): New declarations.
32457
32458 2007-06-09  Bruno Haible  <bruno@clisp.org>
32459
32460         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32461
32462 2007-06-09  Bruno Haible  <bruno@clisp.org>
32463
32464         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32465         * modules/malloca: Renamed from modules/allocsa, updated.
32466         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32467         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32468         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32469         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32470         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32471         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32472         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32473         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32474         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32475         * modules/c-strcasestr (Depends-on): Update.
32476         * lib/c-strcasestr.c: Update.
32477         * modules/c-strstr (Depends-on): Update.
32478         * lib/c-strstr.c: Update.
32479         * modules/canonicalize-lgpl (Depends-on): Update.
32480         * lib/canonicalize-lgpl.c: Update.
32481         * modules/clean-temp (Depends-on): Update.
32482         * lib/clean-temp.c: Update.
32483         * modules/csharpcomp (Depends-on): Update.
32484         * lib/csharpcomp.c: Update.
32485         * modules/csharpexec (Depends-on): Update.
32486         * lib/csharpexec.c: Update.
32487         * modules/javacomp (Depends-on): Update.
32488         * lib/javacomp.c: Update.
32489         * modules/javaexec (Depends-on): Update.
32490         * lib/javaexec.c: Update.
32491         * modules/mbscasestr (Depends-on): Update.
32492         * lib/mbscasestr.c: Update.
32493         * modules/mbsstr (Depends-on): Update.
32494         * lib/mbsstr.c: Update.
32495         * modules/setenv (Depends-on): Update.
32496         * lib/setenv.c: Update.
32497         * modules/strcasestr (Depends-on): Update.
32498         * lib/strcasestr.c: Update.
32499         * modules/striconveha (Depends-on): Update.
32500         * lib/striconveha.c: Update.
32501         * modules/relocatable-prog-wrapper (Files): Update.
32502         * lib/relocwrapper.c: Update.
32503         * build-aux/install-reloc: Update.
32504         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32505
32506 2007-06-08  Bruno Haible  <bruno@clisp.org>
32507
32508         Port to uClibc.
32509         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32510         * lib/fpurge.c (fpurge): Likewise.
32511         * lib/freading.c (freading): Likewise.
32512         * lib/fseeko.c (rpl_fseeko): Likewise.
32513         * lib/fseterr.c (fseterr): Likewise.
32514         * lib/fwriting.c (fwriting): Likewise.
32515         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32516
32517 2007-06-08  Bruno Haible  <bruno@clisp.org>
32518
32519         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32520         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32521         * modules/gettext (Files): Add m4/intlmacosx.m4.
32522
32523 2007-06-07  Bruno Haible  <bruno@clisp.org>
32524
32525         * modules/localename-tests: New file.
32526         * tests/test-localename.c: New file.
32527
32528         New module 'localename'.
32529         * lib/localename.h: New file.
32530         * lib/localename.c: New file, from GNU gettext.
32531         * m4/localename.m4: New file.
32532         * modules/localename: New file.
32533
32534 2007-06-07  Bruno Haible  <bruno@clisp.org>
32535
32536         Work around the lack of <wchar.h> on some builds of uClibc.
32537         * doc/headers/wchar.texi: Update.
32538         * lib/wchar_.h: Include <wchar.h> only if it exists.
32539         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32540         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32541         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32542         doesn't exist.
32543         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32544         * modules/mbfile (Depends-on): Add wchar.
32545         * modules/mbiter (Depends-on): Likewise.
32546         * modules/mbuiter (Depends-on): Likewise.
32547         Reported by Simon Josefsson.
32548
32549 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32550
32551         Work around problem reported by Steven M. Schweda in
32552         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32553         Tru64 5.1B with the Compaq compiler environment installed declares
32554         an 'isblank' function but does not define it in the C library.
32555         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32556         * lib/regex_internal.h (isblank): Likewise.
32557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32558         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32559
32560 2007-06-05  Bruno Haible  <bruno@clisp.org>
32561
32562         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32563         ia64.
32564         * modules/printf-safe: New file.
32565         * modules/fprintf-posix (Depends-on): Add printf-safe.
32566         * modules/printf-posix (Depends-on): Likewise.
32567         * modules/snprintf-posix (Depends-on): Likewise.
32568         * modules/sprintf-posix (Depends-on): Likewise.
32569         * modules/vasnprintf-posix (Depends-on): Likewise.
32570         * modules/vasprintf-posix (Depends-on): Likewise.
32571         * modules/vfprintf-posix (Depends-on): Likewise.
32572         * modules/vprintf-posix (Depends-on): Likewise.
32573         * modules/vsnprintf-posix (Depends-on): Likewise.
32574         * modules/vsprintf-posix (Depends-on): Likewise.
32575         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32576         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32577         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32578         "no" on i386, x86_64, ia64.
32579         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32580         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32581         on i386, x86_64, ia64.
32582         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32583         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32584         on i386, x86_64, ia64.
32585         * tests/test-vasnprintf-posix.c: Include float.h.
32586         (LDBL80_WORDS): New macro.
32587         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32588         on i386, x86_64, ia64.
32589         * tests/test-vasprintf-posix.c: Include float.h.
32590         (LDBL80_WORDS): New macro.
32591         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32592         on i386, x86_64, ia64.
32593         * tests/test-snprintf-posix.c: Include float.h.
32594         * tests/test-sprintf-posix.c: Likewise.
32595         * tests/test-vsnprintf-posix.c: Likewise.
32596         * tests/test-vsprintf-posix.c: Likewise.
32597
32598 2007-06-05  Bruno Haible  <bruno@clisp.org>
32599
32600         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32601         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32602         non-IEEE numbers on i386, x86_64, ia64.
32603         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32604         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32605         * tests/test-isnanl.h: Include float.h.
32606         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32607
32608 2007-06-05  Bruno Haible  <bruno@clisp.org>
32609
32610         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32611         also the %a / %A. Handle the %a / %A code before this extra handling.
32612
32613 2007-06-05  Bruno Haible  <bruno@clisp.org>
32614
32615         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32616         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32617
32618 2007-06-05  Bruno Haible  <bruno@clisp.org>
32619
32620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32621         typo in variable name.
32622
32623 2007-06-05  Eric Blake  <ebb9@byu.net>
32624
32625         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32626         Reported by Simon Josefsson.
32627
32628 2007-06-04  Bruno Haible  <bruno@clisp.org>
32629
32630         Avoid test failures on some PowerPC platforms.
32631         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32632         Define differently for PowerPC.
32633         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32634         Reported by Gary V. Vaughan <gary@gnu.org>.
32635
32636 2007-06-02  Bruno Haible  <bruno@clisp.org>
32637
32638         Fix test-stdint failure on FreeBSD/ia64.
32639         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32640         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32641         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32642         * doc/headers/stdint.texi: Update.
32643
32644 2007-06-01  Bruno Haible  <bruno@clisp.org>
32645
32646         * tests/test-binary-io.c (main): Pass a third argument to open().
32647         Reported by Gary V. Vaughan <gary@gnu.org>.
32648
32649 2007-06-01  Bruno Haible  <bruno@clisp.org>
32650
32651         * doc/functions/frexpl.texi: Update for mingw.
32652
32653 2007-06-01  Bruno Haible  <bruno@clisp.org>
32654
32655         * tests/test-lseek.c (main): Disable test of errno for invalid third
32656         argument.
32657         * doc/functions/lseek.texi: Update.
32658         Reported by Gary V. Vaughan <gary@gnu.org>.
32659
32660 2007-05-28  Bruno Haible  <bruno@clisp.org>
32661
32662         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32663
32664 2007-05-31  Eric Blake  <ebb9@byu.net>
32665
32666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32667         cross compiling.
32668
32669 2007-05-30  Eric Blake  <ebb9@byu.net>
32670         and Bruno Haible  <bruno@clisp.org>
32671
32672         Work around mingw test failures exposed by m4-1.4.9b.
32673         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32674         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32675         moment.
32676
32677 2007-05-30  Bruno Haible  <bruno@clisp.org>
32678
32679         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32680         assuming that they are closed. Needed on HP-UX 11.
32681
32682 2007-05-29  Bruno Haible  <bruno@clisp.org>
32683
32684         Fix a problem with #include_next.
32685         * lib/dirent_.h: Split the double-inclusion guard.
32686         * lib/fcntl_.h: Likewise.
32687         * lib/float_.h: Likewise.
32688         * lib/iconv_.h: Likewise.
32689         * lib/inttypes_.h: Likewise.
32690         * lib/locale_.h: Likewise.
32691         * lib/math_.h: Likewise.
32692         * lib/netinet_in_.h: Likewise.
32693         * lib/search_.h: Likewise.
32694         * lib/signal_.h: Likewise.
32695         * lib/stdint_.h: Likewise.
32696         * lib/stdio_.h: Likewise.
32697         * lib/stdlib_.h: Likewise.
32698         * lib/string_.h: Likewise.
32699         * lib/sys_select_.h: Likewise.
32700         * lib/sys_socket_.h: Likewise.
32701         * lib/sys_stat_.h: Likewise.
32702         * lib/sys_time_.h: Likewise.
32703         * lib/sysexits_.h: Likewise.
32704         * lib/time_.h: Likewise.
32705         * lib/unistd_.h: Likewise.
32706         * lib/wchar_.h: Likewise.
32707         * lib/wctype_.h: Likewise.
32708
32709 2007-05-29  Bruno Haible  <bruno@clisp.org>
32710
32711         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32712         for the moment.
32713
32714 2007-05-29  Bruno Haible  <bruno@clisp.org>
32715
32716         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32717         invocation.
32718         Reported by Eric Blake.
32719
32720 2007-05-29  Bruno Haible  <bruno@clisp.org>
32721
32722         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32723         compiling case.
32724
32725 2007-05-29  Eric Blake  <ebb9@byu.net>
32726             Bruno Haible  <bruno@clisp.org>
32727
32728         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32729         cross compiles.
32730
32731 2007-05-28  Eric Blake  <ebb9@byu.net>
32732
32733         * modules/closein-tests (test_closein_LDADD): Support test on
32734         cygwin with libtool.
32735
32736 2007-05-28  Bruno Haible  <bruno@clisp.org>
32737
32738         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32742         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32743         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32744         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32745         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32746         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32747
32748 2007-05-28  Eric Blake  <ebb9@byu.net>
32749
32750         Unconditionally include <config.h> in unit tests.
32751         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32752         * tests/test-allocsa.c, tests/test-arcfour.c,
32753         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32754         tests/test-array_list.c, tests/test-array_oset.c,
32755         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32756         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32757         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32758         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32759         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32760         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32761         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32762         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32763         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32764         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32765         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32766         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32767         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32768         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32769         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32770         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32771         test-md5.c, test-memmem.c, test-printf-posix.c,
32772         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32773         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32774         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32775         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32776         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32777         test-vasnprintf-posix2.c, test-vasnprintf.c,
32778         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32779         test-vfprintf-posix.c, test-vprintf-posix.c,
32780         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32781         test-xvasprintf.c: Likewise.
32782
32783 2007-05-28  Bruno Haible  <bruno@clisp.org>
32784
32785         * gnulib-tool (func_import): Remember the --with-tests command-line
32786         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32787         Reported by Eric Blake.
32788
32789 2007-05-28  Bruno Haible  <bruno@clisp.org>
32790
32791         * modules/ftell-tests: New file.
32792         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32793         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32794
32795         * lib/ftell.c: New file.
32796         * modules/ftell: New file.
32797         * m4/ftell.m4: New file.
32798         * doc/functions/ftell.texi: Update.
32799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32800         REPLACE_FTELL.
32801         * lib/stdio_.h (rpl_ftell): New declaration.
32802         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32803         REPLACE_FTELL.
32804
32805 2007-05-28  Eric Blake  <ebb9@byu.net>
32806
32807         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32808
32809 2007-05-28  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/fseek-tests: New file.
32812         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32813         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32814
32815         * lib/fseek.c: New file.
32816         * modules/fseek: New file.
32817         * m4/fseek.m4: New file.
32818         * doc/functions/fseek.texi: Update.
32819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32820         REPLACE_FSEEK.
32821         * lib/stdio_.h (rpl_fseek): New declaration.
32822         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32823         REPLACE_FSEEK.
32824
32825 2007-05-28  Bruno Haible  <bruno@clisp.org>
32826
32827         * lib/stdio_.h (fflush): More comments.
32828
32829 2007-05-28  Bruno Haible  <bruno@clisp.org>
32830
32831         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32832         runtime test.
32833
32834 2007-05-28  Eric Blake  <ebb9@byu.net>
32835
32836         Improve lseek module.
32837         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32838         * lib/unistd_.h (lseek): Scale back link warning message.
32839         * tests/test-lseek.c: Beef up test.
32840         * tests/test-lseek.sh: Exercise more facets of lseek.
32841         Reported by Bruno Haible.
32842
32843 2007-05-28  Bruno Haible  <bruno@clisp.org>
32844
32845         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32846         to define.
32847
32848 2007-05-27  Bruno Haible  <bruno@clisp.org>
32849
32850         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32851
32852 2007-05-27  Bruno Haible  <bruno@clisp.org>
32853
32854         * modules/openmp: New file.
32855         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32856         Noah Misch.
32857
32858 2007-05-26  Bruno Haible  <bruno@clisp.org>
32859
32860         * modules/chdir-long (Depends-on): Add fchdir.
32861         * modules/chdir-safer (Depends-on): Likewise.
32862         * modules/fts (Depends-on): Likewise.
32863         * modules/fts-lgpl (Depends-on): Likewise.
32864         * modules/openat (Depends-on): Likewise.
32865         * modules/savewd (Depends-on): Likewise.
32866
32867 2007-05-24  Eric Blake  <ebb9@byu.net>
32868
32869         Fix lseek on mingw.
32870         * modules/lseek: New module.
32871         * m4/lseek.m4: New file.
32872         * lib/lseek.c: New file.
32873         * modules/lseek-tests: New file.
32874         * tests/test-lseek.c: New file.
32875         * tests/test-lseek.sh: New file.
32876         * MODULES.html.sh: Document lseek module.
32877         * modules/fflush (Depends-on): Add lseek, fseeko.
32878         * modules/fseeko (Depends-on): Likewise.
32879         * modules/ftello (Depends-on): Likewise.
32880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32881         broken.
32882         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32883         broken.
32884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32885         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32886         * lib/ftello.c (rpl_ftello): Likewise.
32887         * tests/test-fseeko.c (main): Test this.
32888         * tests/test-fseeko.sh: Likewise.
32889         * tests/test-ftello.c (main): Likewise.
32890         * tests/test-ftello.sh: Likewise.
32891         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32892         implies replacing fseek.
32893         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32894         HAVE_FTELLO.
32895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32896         * modules/unistd (Makefile.am): Likewise.
32897         * lib/unistd_.h (lseek): Declare a replacement.
32898         * doc/functions/lseek.texi (lseek): Document this fix.
32899         * doc/functions/fseek.texi (fseek): Likewise.
32900         * doc/functions/ftell.texi (ftell): Likewise.
32901
32902 2007-05-24  Bruno Haible  <bruno@clisp.org>
32903
32904         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32905         in the printed representation of a NaN.
32906         * tests/test-vasprintf-posix.c (test_function): Likewise.
32907         * tests/test-snprintf-posix.h (test_function): Likewise.
32908         * tests/test-sprintf-posix.h (test_function): Likewise.
32909         Reported by Eric Blake.
32910
32911 2007-05-23  Eric Blake  <ebb9@byu.net>
32912
32913         Fix fseeko/ftello on cygwin 1.5.24.
32914         * doc/functions/fseeko.texi (fseeko): Document the fix.
32915         * doc/functions/ftello.texi (ftello): Document the fix.
32916         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32917         * doc/functions/stdout.text (stdout): New file.
32918         * doc/functions/stderr.text (stderr): New file.
32919         * doc/gnulib.texi (Function Substitutes): Use new files.
32920         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32921         prior to 1.7.0.
32922         * tests/test-ftello.c (main): Likewise for ftello.
32923         * tests/test-fseeko.sh: New file.
32924         * tests/test-ftello.sh: New file.
32925         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32926         with seekable stdin.
32927         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32928         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32929         (gl_REPLACE_FSEEKO): New macro.
32930         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32931         * modules/fseeko (Files): Distribute fseeko.c.
32932         * modules/ftello (Files): Distribute ftello.c.
32933         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32934         mode.
32935         * lib/ftello.c (rpl_ftello): New file.
32936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32937         fseeko, ftello.
32938         (gl_STDIN_LARGE_OFFSET): New macro.
32939         * modules/stdio (Makefile.am): Perform the replacement.
32940         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32941
32942 2007-05-23  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32945         GNULIB_POSIXCHECK is defined.
32946
32947 2007-05-21  Bruno Haible  <bruno@clisp.org>
32948
32949         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32950         Check also the output for NaN arguments. When cross-compiling, guess
32951         no on IRIX.
32952         * lib/vasnprintf.c: Update comments.
32953         * tests/test-vasnprintf-posix.c (strisnan): New function.
32954         (test_function): Use it.
32955         * tests/test-vasprintf-posix.c (strisnan): New function.
32956         (test_function): Use it.
32957         * tests/test-snprintf-posix.h (strisnan): New function.
32958         (test_function): Use it.
32959         * tests/test-sprintf-posix.h (strisnan): New function.
32960         (test_function): Use it.
32961         Reported by Eric Blake.
32962
32963 2007-05-20  Bruno Haible  <bruno@clisp.org>
32964
32965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32966         numbers that fails on BeOS.
32967         * doc/functions/frexpl.texi: Update.
32968
32969 2007-05-20  Jim Meyering  <jim@meyering.net>
32970
32971         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32972         forced upon us by glibc-2.6.
32973
32974 2007-05-20  Bruno Haible  <bruno@clisp.org>
32975
32976         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32977         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32978         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32979         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32980         NEED_PRINTF_INFINITE.
32981         (is_infinitel): New function.
32982         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32984         gl_PREREQ_VASNPRINTF_INFINITE.
32985         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32986         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32987         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32988         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32989         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32990         gl_PREREQ_VASNPRINTF_INFINITE.
32991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32998         * doc/functions/fprintf.texi: Update.
32999         * doc/functions/printf.texi: Update.
33000         * doc/functions/snprintf.texi: Update.
33001         * doc/functions/sprintf.texi: Update.
33002         * doc/functions/vfprintf.texi: Update.
33003         * doc/functions/vprintf.texi: Update.
33004         * doc/functions/vsnprintf.texi: Update.
33005         * doc/functions/vsprintf.texi: Update.
33006
33007 2007-05-20  Bruno Haible  <bruno@clisp.org>
33008
33009         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33010         was not found in libc.
33011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33012
33013 2007-05-20  Bruno Haible  <bruno@clisp.org>
33014
33015         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33016         printed as "-nan" instead of "nan".
33017         * tests/test-vasprintf-posix.c (test_function): Likewise.
33018         * tests/test-snprintf-posix.h (test_function): Likewise.
33019         * tests/test-sprintf-posix.h (test_function): Likewise.
33020         Needed for HP-UX 11.
33021
33022 2007-05-20  Jim Meyering  <jim@meyering.net>
33023
33024         Fix buggy test for the fchownat-deref bug.
33025         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33026         symlink required for the run-test.  Without it, this test would
33027         always declare that fchownat doesn't work, and client code would
33028         unnecessarily use the replacement function with fixed libc.
33029         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33030         Reported by Greg Schafer.
33031
33032 2007-05-19  Bruno Haible  <bruno@clisp.org>
33033
33034         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33035         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33036         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33037         Needed for IRIX 6.5 and Solaris 2.5.1.
33038
33039 2007-05-19  Bruno Haible  <bruno@clisp.org>
33040
33041         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33042         (test_function): Skip tests involving -0.0 on platforms where
33043         -0.0 = 0.0.
33044         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33045         (test_function): Skip tests involving -0.0 on platforms where
33046         -0.0 = 0.0.
33047         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33048         (test_function): Skip tests involving -0.0 on platforms where
33049         -0.0 = 0.0.
33050         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33051         (test_function): Skip tests involving -0.0 on platforms where
33052         -0.0 = 0.0.
33053         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33054         tests.
33055         * tests/test-printf-posix.h (test_function): Likewise.
33056         * tests/test-printf-posix.output: Remove all -0.0 related results.
33057         Needed for IRIX 6.5.
33058
33059 2007-05-19  Bruno Haible  <bruno@clisp.org>
33060
33061         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33062         printed as "nan0x7fffffff" instead of "nan".
33063         * tests/test-vasprintf-posix.c (test_function): Likewise.
33064         * tests/test-snprintf-posix.h (test_function): Likewise.
33065         * tests/test-sprintf-posix.h (test_function): Likewise.
33066         * tests/test-fprintf-posix.h (NaN): Remove macro.
33067         (test_function): Remove all NaN related tests.
33068         * tests/test-printf-posix.h (NaN): Remove macro.
33069         (test_function): Remove all NaN related tests.
33070         * tests/test-printf-posix.output: Remove all NaN related results.
33071         Needed for IRIX 6.5.
33072
33073 2007-05-19  Bruno Haible  <bruno@clisp.org>
33074
33075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33077
33078 2007-05-19  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/float_.h: New file.
33081         * m4/float_h.m4: New file.
33082         * modules/float: New file.
33083         * modules/isnanl (Dependencies): Add float.
33084         * modules/isnanl-nolibm (Dependencies): Likewise.
33085         * modules/mathl (Dependencies): Likewise.
33086         * modules/printf-frexpl (Dependencies): Likewise.
33087         * modules/signbit (Dependencies): Likewise.
33088         * modules/vasnprintf (Dependencies): Likewise.
33089         * doc/headers/float.texi: Update.
33090
33091 2007-05-19  Jim Meyering  <jim@meyering.net>
33092
33093         * lib/utimens.c (gl_futimens): Rename from futimens,
33094         now that glibc-2.6 declares futimens.
33095         * lib/utimens.h: Likewise.
33096
33097 2007-05-19  Bruno Haible  <bruno@clisp.org>
33098
33099         Avoid test failures on mingw.
33100         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33101         * tests/test-printf-posix.sh: Likewise.
33102         * tests/test-vfprintf-posix.sh: Likewise.
33103         * tests/test-vprintf-posix.sh: Likewise.
33104
33105 2007-05-19  Bruno Haible  <bruno@clisp.org>
33106
33107         Fix *printf result for NaN, Inf, -0.0 on mingw.
33108         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33109         * lib/vasnprintf.c: Include math.h and isnan.h.
33110         (is_infinite_or_zero): New function.
33111         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33112         values in the %f, %F, %e, %E, %g, %G directives.
33113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33115         gl_PRINTF_INFINITE and test its result. Invoke
33116         gl_PREREQ_VASNPRINTF_INFINITE.
33117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33124         * doc/functions/fprintf.texi: Update.
33125         * doc/functions/printf.texi: Update.
33126         * doc/functions/snprintf.texi: Update.
33127         * doc/functions/sprintf.texi: Update.
33128         * doc/functions/vfprintf.texi: Update.
33129         * doc/functions/vprintf.texi: Update.
33130         * doc/functions/vsnprintf.texi: Update.
33131         * doc/functions/vsprintf.texi: Update.
33132
33133 2007-05-19  Bruno Haible  <bruno@clisp.org>
33134
33135         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33136         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33137         Instead of multiplying with 10^k, set extra_zeroes to k.
33138         (scale10_round_long_double): Remove function.
33139
33140 2007-05-18  Bruno Haible  <bruno@clisp.org>
33141
33142         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33143         introduced on 2007-05-06.
33144
33145 2007-05-18  Bruno Haible  <bruno@clisp.org>
33146
33147         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33148         %g directives.
33149         * tests/test-vasprintf-posix.c (test_function): Likewise.
33150         * tests/test-snprintf-posix.h (test_function): Likewise.
33151         * tests/test-sprintf-posix.h (test_function): Likewise.
33152
33153 2007-05-18  Bruno Haible  <bruno@clisp.org>
33154
33155         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33156         (strmatch): New function.
33157         (test_function): Test the %f directive on numbers of various exponents.
33158         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33159         (strmatch): New function.
33160         (test_function): Test the %f directive on numbers of various exponents.
33161         * tests/test-snprintf-posix.h (strmatch): New function.
33162         (test_function): Test the %f directive on numbers of various exponents.
33163         * tests/test-sprintf-posix.h (strmatch): New function.
33164         (test_function): Test the %f directive on numbers of various exponents.
33165         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33166         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33167         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33168         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33169
33170 2007-05-18  Bruno Haible  <bruno@clisp.org>
33171
33172         Add support for 'long double' number output.
33173         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33174         * lib/vasnprintf.c: Include math.h and float+.h.
33175         (mp_limb_t): New type.
33176         (GMP_LIMB_BITS): New macro.
33177         (mp_twolimb_t): New type.
33178         (GMP_TWOLIMB_BITS): New macro.
33179         (mpn_t): New type.
33180         (multiply, divide, convert_to_decimal, decode_long_double,
33181         scale10_round_long_double, scale10_round_decimal_long_double,
33182         floorlog10l): New functions.
33183         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33184         for the %f, %F, %e, %E, %g, %G directives.
33185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33187         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33188         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33196         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33197         * modules/snprintf-posix (Depends-on): Likewise.
33198         * modules/sprintf-posix (Depends-on): Likewise.
33199         * modules/vasnprintf-posix (Depends-on): Likewise.
33200         * modules/vasprintf-posix (Depends-on): Likewise.
33201         * modules/vfprintf-posix (Depends-on): Likewise.
33202         * modules/vsnprintf-posix (Depends-on): Likewise.
33203         * modules/vsprintf-posix (Depends-on): Likewise.
33204         * modules/vasnprintf (Files): Add lib/float+.h.
33205         * doc/functions/fprintf.texi: Update.
33206         * doc/functions/printf.texi: Update.
33207         * doc/functions/snprintf.texi: Update.
33208         * doc/functions/sprintf.texi: Update.
33209         * doc/functions/vfprintf.texi: Update.
33210         * doc/functions/vprintf.texi: Update.
33211         * doc/functions/vsnprintf.texi: Update.
33212         * doc/functions/vsprintf.texi: Update.
33213
33214 2007-05-18  Bruno Haible  <bruno@clisp.org>
33215
33216         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33217
33218 2007-05-18  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33221         for printing 64-bit integers. Needed for mingw.
33222
33223 2007-05-18  Bruno Haible  <bruno@clisp.org>
33224
33225         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33226         gl_FUNC_FREXPL_WORKS.
33227         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33228
33229 2007-05-18  Bruno Haible  <bruno@clisp.org>
33230
33231         * modules/frexpl-nolibm-tests: New file.
33232
33233         * modules/frexpl-nolibm: New file.
33234         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33235
33236 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33237
33238         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33239         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33240         GCC 4.2, which otherwise issues a lot of warnings.
33241         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33242         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33243         Likewise.
33244         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33245         * modules/iconv_open (iconv.h): Likewise.
33246         * modules/locale (locale.h): Likewise.
33247         * modules/netinet_in (netinet/in.h): Likewise.
33248         * modules/sys_select (sys_select.h): Likewise.
33249         * modules/sys_socket (sys/socket.h): Likewise.
33250         * modules/sys_stat (sys/stat.h): Likewise.
33251         * modules/sysexits (sysexits.h): Likewise.
33252         * modules/unistd (unistd.h): Likewise.
33253
33254 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33255
33256         * modules/closein-tests (Makefile.am): Distribute
33257         `test-closein.sh'.
33258
33259 2007-05-17  Bruno Haible  <bruno@clisp.org>
33260
33261         * tests/test-printf-posix.output: Renamed from
33262         tests/test-fprintf-posix.out.
33263         * modules/fprintf-posix-tests: Update.
33264         * modules/printf-posix-tests: Update.
33265         * modules/vfprintf-posix-tests: Update.
33266         * modules/vprintf-posix-tests: Update.
33267         * tests/test-fprintf-posix.sh: Update.
33268         * tests/test-printf-posix.sh: Update.
33269         * tests/test-vfprintf-posix.sh: Update.
33270         * tests/test-vprintf-posix.sh: Update.
33271         Reported by Ralf Wildenhues.
33272
33273 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33274
33275         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33276         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33277         GCC 4.2, which otherwise issues a lot of warnings.
33278         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33279         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33280         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33281         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33282         it should no longer be needed.
33283         * lib/string_.h: Likewise.
33284         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33285         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33286         * modules/inttypes (inttypes.h): Likewise.
33287         * modules/math (math.h): Likewise.
33288         * modules/search (search.h): Likewise.
33289         * modules/signal (signal.h): Likewise.
33290         * modules/stdint (stdint.h): Likewise.
33291         * modules/stdio (stdio.h): Likewise.
33292         * modules/stdlib (stdlib.h): Likewise.
33293         * modules/string (string.h): Likewise.
33294         * modules/sys_time (sys/time.h): Likewise.
33295         * modules/time (time.h): Likewise.
33296         * modules/wchar (wchar.h): Likewise.
33297         * modules/wctype (wtype.h): Likewise.
33298
33299 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33300
33301         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33302
33303 2007-05-13  Bruno Haible  <bruno@clisp.org>
33304
33305         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33306         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33307         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33308         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33309         (gl_PREREQ_STRTOK_R): Don't require it here.
33310
33311 2007-05-13  Bruno Haible  <bruno@clisp.org>
33312
33313         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33314         when used in C++ mode.
33315
33316 2007-05-12  Bruno Haible  <bruno@clisp.org>
33317
33318         * lib/linebuffer.h: Tweak doc.
33319         * lib/linebuffer.c: Likewise.
33320
33321 2007-05-12  James Youngman  <jay@gnu.org>
33322
33323         * lib/linebuffer.c (readlinebuffer_delim): New function,
33324         like readlinebuffer, but use a caller-specified delimiter.
33325         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33326         as the delimiter.
33327         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33328
33329 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33330
33331         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33332         * modules/openat (Files): Remove openat-die.c.
33333         (Depends-on): Add openat-die.
33334         * modules/openat-die: New module.
33335
33336 2007-05-06  Bruno Haible  <bruno@clisp.org>
33337
33338         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33339         Update with info about Cygwin.
33340         * doc/functions/fprintf.texi: Update.
33341         * doc/functions/printf.texi: Update.
33342         * doc/functions/snprintf.texi: Update.
33343         * doc/functions/sprintf.texi: Update.
33344         * doc/functions/vfprintf.texi: Update.
33345         * doc/functions/vprintf.texi: Update.
33346         * doc/functions/vsnprintf.texi: Update.
33347         * doc/functions/vsprintf.texi: Update.
33348         Reported by Eric Blake.
33349
33350 2007-05-06  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33353         padding ourselves for the floating-point directives.
33354         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33357         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33358         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33366         * tests/test-snprintf-posix.h (test_function): Also check the width
33367         and some flags in the %f directive.
33368         * tests/test-sprintf-posix.h (test_function): Likewise.
33369         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33370         * tests/test-vasprintf-posix.c (test_function): Likewise.
33371         * doc/functions/fprintf.texi: Update.
33372         * doc/functions/printf.texi: Update.
33373         * doc/functions/snprintf.texi: Update.
33374         * doc/functions/sprintf.texi: Update.
33375         * doc/functions/vfprintf.texi: Update.
33376         * doc/functions/vprintf.texi: Update.
33377         * doc/functions/vsnprintf.texi: Update.
33378         * doc/functions/vsprintf.texi: Update.
33379
33380 2007-05-06  Bruno Haible  <bruno@clisp.org>
33381
33382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33383         pass the ' flag character to sprintf or snprintf.
33384         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33387         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33388         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33396         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33397         flag.
33398         * tests/test-sprintf-posix.h (test_function): Likewise.
33399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33400         * tests/test-vasprintf-posix.c (test_function): Likewise.
33401         * doc/functions/fprintf.texi: Update.
33402         * doc/functions/printf.texi: Update.
33403         * doc/functions/snprintf.texi: Update.
33404         * doc/functions/sprintf.texi: Update.
33405         * doc/functions/vfprintf.texi: Update.
33406         * doc/functions/vprintf.texi: Update.
33407         * doc/functions/vsnprintf.texi: Update.
33408         * doc/functions/vsprintf.texi: Update.
33409
33410 2007-05-01  Bruno Haible  <bruno@clisp.org>
33411
33412         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33413
33414 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33415
33416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33417         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33418
33419 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33420
33421         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33422         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33424
33425 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33426
33427         * lib/argp-help.c (struct hol_entry): New member `ord'.
33428         (HOL_ENTRY_PTRCMP): Use ord for comparison
33429         (hol_sort): Initialize ord.
33430
33431 2007-05-01  Bruno Haible  <bruno@clisp.org>
33432
33433         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33434         Reported by Eric Blake.
33435         * doc/gnulib.texi (Function Substitutes): Update.
33436
33437 2007-05-01  Bruno Haible  <bruno@clisp.org>
33438
33439         * doc/functions.texi: Remove file, now redundant through
33440         doc/functions/*.texi.
33441
33442 2007-05-01  Bruno Haible  <bruno@clisp.org>
33443
33444         * modules/argp (Depends-on): Add sleep.
33445
33446 2007-05-01  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/sleep-tests: New file.
33449         * tests/test-sleep.c: New file.
33450
33451         * modules/sleep: New file.
33452         * lib/sleep.c: New file.
33453         * m4/sleep.m4: New file.
33454         * lib/unistd_.h (sleep): New declaration.
33455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33456         HAVE_SLEEP.
33457         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33458         * doc/functions/sleep.texi: Document the sleep module.
33459
33460 2007-05-01  Bruno Haible  <bruno@clisp.org>
33461
33462         * lib/sigprocmask.h: Remove file.
33463         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33464         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33465         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33466         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33467         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33468         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33469         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33470         HAVE_SIGSET_T as a shell variable.
33471         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33472         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33473         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33474         (Depends-on): Add signal. Remove verify.
33475         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33476         (Include): Mention <signal.h> instead of sigprocmask.h.
33477         * NEWS: Mention the change.
33478         * lib/fatal-signal.c: Don't include sigprocmask.h.
33479
33480 2007-05-01  Bruno Haible  <bruno@clisp.org>
33481
33482         * modules/signal: New file.
33483         * lib/signal_.h: New file.
33484         * m4/signal_h.m4: New file.
33485
33486 2007-05-01  Bruno Haible  <bruno@clisp.org>
33487
33488         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33489         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33490         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33491         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33492
33493 2007-05-01  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33496         configure time.
33497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33498         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33499         * modules/sys_stat (Makefile.am): Substitute their values into
33500         sys/stat.h.
33501
33502 2007-05-01  Bruno Haible  <bruno@clisp.org>
33503
33504         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33505         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33506         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33507
33508 2007-05-01  Bruno Haible  <bruno@clisp.org>
33509
33510         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33511         'assert' module here.
33512
33513 2007-05-01  Bruno Haible  <bruno@clisp.org>
33514
33515         * doc/functions/*.texi: New files.
33516         * doc/functions/google-ranking.txt: New file.
33517         * doc/gnulib.texi (Function Substitutes): New chapter.
33518         (ctime, inet_ntoa): Remove sections.
33519         * doc/ctime.texi: Remove file.
33520         * doc/inet_ntoa.texi: Remove file.
33521         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33522         dependencies.
33523         (%.info): New rule, specifying a --reference-limit.
33524
33525 2007-05-01  Bruno Haible  <bruno@clisp.org>
33526
33527         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33528
33529 2007-05-01  Bruno Haible  <bruno@clisp.org>
33530
33531         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33532         the portability of 'mkdir' to mingw systems.
33533
33534 2007-05-01  Bruno Haible  <bruno@clisp.org>
33535
33536         * doc/headers/google-ranking.txt: New file.
33537
33538 2007-04-30  Eric Blake  <ebb9@byu.net>
33539
33540         Prefer fseeko to fseek.
33541         * modules/getpass (Depends-on): Add fseeko.
33542         * lib/getpass.c (getpass): Use fseeko, not fseek.
33543
33544 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33545
33546         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33547         assumes the sorting is stable, while most qsort implementations
33548         are not.  Use argument addresses to ensure they never compare as
33549         equal.
33550
33551         * tests/test-argp-2.sh (usage-indent test): Fix output
33552         (func_compare): Restore diff options
33553         * tests/test-argp.c: Restore #include "progname.h"
33554
33555 2007-04-29  Bruno Haible  <bruno@clisp.org>
33556
33557         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33559         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33561         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33562         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33563         (TESTS, check_PROGRAMS): Add test-snprintf.
33564         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33565         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33566         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33567         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33568         assertions that fail on HP-UX, OSF/1, or IRIX.
33569         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33570
33571 2007-04-29  Bruno Haible  <bruno@clisp.org>
33572
33573         * MODULES.html.sh (posix_functions): Remove 'contents'.
33574
33575 2007-04-29  Karl Berry  <karl@gnu.org>
33576
33577         * config/srclist.txt (gendocs_template_min): new entry.
33578
33579 2007-04-29  Bruno Haible  <bruno@clisp.org>
33580
33581         Work around fpurge bug on BSD systems.
33582         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33584         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33585         fpurge to rpl_fpurge if the system already has this function.
33586         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33587         the case where the system already has this function. Correct invariants
33588         on BSD systems.
33589         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33590         BSD systems.
33591
33592 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33593
33594         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33595         proposed by Sven Verdoolaege.
33596
33597         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33598         options.
33599         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33600         (usage and help tests): Update
33601
33602 2007-04-29  Bruno Haible  <bruno@clisp.org>
33603
33604         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33605         Print more information in case of failure. Disable a test on BeOS.
33606
33607 2007-04-29  Bruno Haible  <bruno@clisp.org>
33608
33609         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33610         This helps debugging on systems on which no gdb is available.
33611
33612 2007-04-29  Bruno Haible  <bruno@clisp.org>
33613
33614         * lib/freading.h: Improve comments.
33615         * lib/fwriting.h: Likewise.
33616         * tests/test-freading.c (main): Don't check freading immediately after
33617         repositioning. Needed for glibc.
33618
33619 2007-04-29  Bruno Haible  <bruno@clisp.org>
33620
33621         * lib/freading.c (freading): Trivial simplification.
33622
33623 2007-04-28  Bruno Haible  <bruno@clisp.org>
33624
33625         * tests/test-fwriting.c (main): Also test the interaction between
33626         fflush and fwriting.
33627         * modules/fwriting-tests (Depends-on): Add fflush.
33628
33629         * tests/test-freading.c (main): Also test the interaction between
33630         fflush and freading.
33631         * modules/freading-tests (Depends-on): Add fflush.
33632
33633 2007-04-28  Bruno Haible  <bruno@clisp.org>
33634
33635         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33636         fseeko and ftello.
33637         Suggested by Eric Blake.
33638
33639 2007-04-28  Jim Meyering  <jim@meyering.net>
33640
33641         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33642         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33643         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33644
33645 2007-04-27  Eric Blake  <ebb9@byu.net>
33646
33647         * doc/headers/assert.texi (assert.h): Document assert module use.
33648
33649 2007-04-27  Bruno Haible  <bruno@clisp.org>
33650
33651         * doc/headers/*.texi: New files.
33652         * doc/gnulib.texi (Header File Substitutes): New chapter.
33653         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33654         dependencies.
33655         (standards.info ,standards.html, standards.dvi): Update dependencies.
33656         (mostlyclean, clean): New targets.
33657
33658 2007-04-27  Bruno Haible  <bruno@clisp.org>
33659
33660         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33661         * modules/sysexits (Files, Makefile.am): Update.
33662
33663         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33664         * modules/sys_socket (Files, Makefile.am): Update.
33665
33666         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33667         * modules/sys_stat (Files, Makefile.am): Update.
33668
33669 2007-04-27  Eric Blake  <ebb9@byu.net>
33670
33671         * lib/freading.h: Improve comments.
33672         * lib/fwriting.h: Likewise.
33673         * lib/fflush.c: Likewise.
33674
33675         Fix closein for mingw.
33676         * modules/closein-tests: Add tests for closein.
33677         * tests/test-closein.c: New file.
33678         * tests/test-closein.sh: Likewise.
33679         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33680         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33681
33682 2007-04-27  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33685         version is < 6.
33686         * lib/math_.h [__DECC]: Likewise.
33687         * lib/stdio_.h [__DECC]: Likewise.
33688         * lib/stdlib_.h [__DECC]: Likewise.
33689         * lib/string_.h [__DECC]: Likewise.
33690         * lib/time_.h [__DECC]: Likewise.
33691         * lib/wchar_.h [__DECC]: Likewise.
33692         * lib/wctype_.h [__DECC]: Likewise.
33693
33694 2007-04-27  Bruno Haible  <bruno@clisp.org>
33695
33696         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33697
33698 2007-04-27  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/fflush.c: Add comments.
33701         * modules/fpurge-tests (Depends-on): Add fflush.
33702         * modules/freadable-tests (Depends-on): Likewise.
33703         * modules/fwritable-tests (Depends-on): Likewise.
33704
33705 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33706
33707         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33708         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33709         Report by Bruno Haible <bruno@clisp.org>.
33710
33711 2007-04-26  Eric Blake  <ebb9@byu.net>
33712
33713         Fix fflush on mingw.
33714         * modules/fflush (Depends-on): Add freading.
33715         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33716         but unread data.
33717
33718 2007-04-26  Eric Blake  <ebb9@byu.net>
33719         and Bruno Haible  <bruno@clisp.org>
33720
33721         Implement freading and fwriting.
33722         * lib/freading.c: New file.
33723         * lib/freading.h: Likewise.
33724         * m4/freading.m4: Likewise.
33725         * modules/freading: Likewise.
33726         * modules/freading-tests: Likewise.
33727         * tests/test-freading.c: Likewise.
33728         * lib/fwriting.c: New file.
33729         * lib/fwriting.h: Likewise.
33730         * m4/fwriting.m4: Likewise.
33731         * modules/fwriting: Likewise.
33732         * modules/fwriting-tests: Likewise.
33733         * tests/test-fwriting.c: Likewise.
33734         * MODULES.html.sh (File stream based Input/Output): Mention them.
33735
33736 2007-04-26  Bruno Haible  <bruno@clisp.org>
33737
33738         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33739         'long' when we assume it.
33740         Suggested by Eric Blake.
33741
33742 2007-04-26  Bruno Haible  <bruno@clisp.org>
33743
33744         Ensure fseeko, ftello are declared on glibc systems.
33745         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33746         * modules/fseeko (configure.ac-early): Likewise.
33747         * modules/ftello (configure.ac-early): Likewise.
33748         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33749         AC_FUNC_FSEEKO for this.
33750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33751         (gl_CHECK_FSEEKO): Remove macro.
33752
33753 2007-04-26  Bruno Haible  <bruno@clisp.org>
33754
33755         * tests/test-fflush.c (main): Also check the ftell result after
33756         fflush and fseek/fseeko.
33757         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33758         file descriptor position cache in the stream.
33759         * lib/fseeko.c (rpl_fseeko): Likewise.
33760
33761 2007-04-26  Bruno Haible  <bruno@clisp.org>
33762
33763         * modules/fflush-tests (Depends-on): Add fseeko.
33764
33765 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33766             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33767
33768         * lib/argz_.h: ensure error_t definition is obtained in same
33769         mechanism system argz.h would have.
33770         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33771         argz facilities are known bad.  Err on the side of caution if
33772         cross-compiling.
33773
33774 2007-04-25  Eric Blake  <ebb9@byu.net>
33775
33776         * lib/fpurge.c (includes): Use stdlib.h for free.
33777         * tests/test-fflush.c (main): Also test fflush-fseeko.
33778
33779 2007-04-25  Bruno Haible  <bruno@clisp.org>
33780
33781         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33782         * lib/fseeko.c: New file.
33783         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33784         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33785         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33786         gl_FUNC_FSEEKO.
33787         (gl_FUNC_FSEEKO): Invoke it.
33788         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33789         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33790         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33791
33792 2007-04-25  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/fflush (Depends-on): Add ftello.
33795
33796 2007-04-25  Bruno Haible  <bruno@clisp.org>
33797
33798         * modules/ftello-tests: New file.
33799         * tests/test-ftello.c: New file.
33800
33801         * modules/ftello: New file.
33802         * m4/ftello.m4: New file.
33803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33804         HAVE_FTELLO.
33805         * lib/stdio_.h (ftello): New declaration.
33806         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33807         HAVE_FTELLO.
33808
33809 2007-04-25  Bruno Haible  <bruno@clisp.org>
33810
33811         * modules/fseeko-tests: New file.
33812         * tests/test-fseeko.c: New file.
33813
33814         * modules/fseeko: New file.
33815         * m4/fseeko.m4: New file.
33816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33817         HAVE_FSEEKO.
33818         * lib/stdio_.h (fseeko): New declaration.
33819         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33820         HAVE_FSEEKO.
33821
33822 2007-04-25  Bruno Haible  <bruno@clisp.org>
33823
33824         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33825
33826 2007-04-25  Bruno Haible  <bruno@clisp.org>
33827
33828         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33829         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33830         * tests/test-unistd.c: Likewise.
33831         * tests/test-fcntl.c: Likewise.
33832
33833 2007-04-23  Eric Blake  <ebb9@byu.net>
33834
33835         * lib/fflush.c: Fix missing include.
33836         Reported by Bruno Haible.
33837
33838 2007-04-23  Bruno Haible  <bruno@clisp.org>
33839
33840         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33841         Reported by Eric Blake.
33842
33843 2007-04-23  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33846
33847 2007-04-23  Bruno Haible  <bruno@clisp.org>
33848
33849         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33850
33851 2007-04-23  Bruno Haible  <bruno@clisp.org>
33852
33853         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33854         Needed on HP-UX 11.
33855
33856 2007-04-16  Eric Blake  <ebb9@byu.net>
33857
33858         Make fflush rely on fpurge.
33859         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33860         open coding all variants.
33861         * modules/fflush (Depends-on): Add fpurge and unistd.
33862         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33864
33865         Fix --with-tests compilation on cygwin.
33866         * modules/argmatch-tests (Makefile.am): List gnulib library first
33867         in LDADD.
33868         * modules/argp-tests (Makefile.am): Likewise.
33869         * modules/array-list-tests (Makefile.am): Likewise.
33870         * modules/array-oset-tests (Makefile.am): Likewise.
33871         * modules/avltree-list-tests (Makefile.am): Likewise.
33872         * modules/avltree-oset-tests (Makefile.am): Likewise.
33873         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33874         * modules/carray-list-tests (Makefile.am): Likewise.
33875         * modules/dirname-tests (Makefile.am): Likewise.
33876         * modules/frexp-tests (Makefile.am): Likewise.
33877         * modules/isnanl-tests (Makefile.am): Likewise.
33878         * modules/linked-list-tests (Makefile.am): Likewise.
33879         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33880         * modules/lock-tests (Makefile.am): Likewise.
33881         * modules/rbtree-list-tests (Makefile.am): Likewise.
33882         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33883         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33884         * modules/tls-tests (Makefile.am): Likewise.
33885         * modules/tsearch-tests (Makefile.am): Likewise.
33886         * modules/xvasprintf-tests (Makefile.am): Likewise.
33887
33888         Fix fpurge for cygwin.
33889         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33890         value.
33891         * modules/fpurge-tests (Depends-on): Clean up trash.
33892
33893 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33894
33895         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33896
33897         * m4/autobuild.m4: Re-indent.
33898
33899 2007-04-13  Bruno Haible  <bruno@clisp.org>
33900
33901         * modules/fpurge-tests: New file.
33902         * tests/test-fpurge.c: New file.
33903
33904         * modules/fpurge: New file.
33905         * lib/fpurge.h: New file.
33906         * lib/fpurge.c: New file.
33907         * m4/fpurge.m4: New file.
33908
33909 2007-04-13  Bruno Haible  <bruno@clisp.org>
33910
33911         * modules/fbufmode-tests: New file.
33912         * tests/test-fbufmode.c: New file.
33913
33914         * modules/fbufmode: New file.
33915         * lib/fbufmode.h: New file.
33916         * lib/fbufmode.c: New file.
33917         * m4/fbufmode.m4: New file.
33918
33919 2007-04-13  Bruno Haible  <bruno@clisp.org>
33920
33921         * modules/fwritable-tests: New file.
33922         * tests/test-fwritable.c: New file.
33923
33924         * modules/fwritable: New file.
33925         * lib/fwritable.h: New file.
33926         * lib/fwritable.c: New file.
33927         * m4/fwritable.m4: New file.
33928
33929 2007-04-13  Bruno Haible  <bruno@clisp.org>
33930
33931         * modules/freadable-tests: New file.
33932         * tests/test-freadable.c: New file.
33933
33934         * modules/freadable: New file.
33935         * lib/freadable.h: New file.
33936         * lib/freadable.c: New file.
33937         * m4/freadable.m4: New file.
33938
33939 2007-04-13  Bruno Haible  <bruno@clisp.org>
33940
33941         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33942         MOSTLYCLEANFILES.
33943
33944 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33945
33946         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33947         gzip bootstrap.conf to avoid dragging in i18n machinery.
33948         (gnulib_tool_option): Use it.
33949
33950 2007-04-13  Bruno Haible  <bruno@clisp.org>
33951
33952         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33953         %F directives.
33954         * tests/test-vasprintf-posix.c (test_function): Likewise.
33955         * tests/test-snprintf-posix.h (test_function): Likewise.
33956         * tests/test-sprintf-posix.h (test_function): Likewise.
33957         * tests/test-fprintf-posix.h (test_function): Likewise.
33958         * tests/test-printf-posix.h (test_function): Likewise.
33959         * tests/test-fprintf-posix.out: Likewise.
33960
33961 2007-04-13  Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33964         * modules/tls-tests (configure.ac): Likewise.
33965         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33966
33967 2007-04-13  Bruno Haible  <bruno@clisp.org>
33968
33969         * lib/tls.c (glthread_tls_get): Fix return type.
33970         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33971
33972 2007-04-12  Eric Blake  <ebb9@byu.net>
33973
33974         * modules/gettime (Depends-on): Remove gettime.
33975         Reported by Dmitry V. Levin.
33976
33977 2007-04-12  Bruno Haible  <bruno@clisp.org>
33978
33979         * modules/fflush (Include): Mention <stdio.h>.
33980         * modules/strtoimax (Include): Mention <inttypes.h>.
33981         * modules/strtoumax (Include): Likewise.
33982
33983 2007-04-12  Eric Blake  <ebb9@byu.net>
33984
33985         * .cvsignore: New file.
33986         * .gitignore: Likewise.
33987
33988 2007-04-12  Bruno Haible  <bruno@clisp.org>
33989
33990         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33991         not before, since $(LDADD) often contains libgnu.a.
33992         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33993         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33994         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33995         Needed on Cygwin.
33996
33997 2007-04-12  Eric Blake  <ebb9@byu.net>
33998
33999         Work around glibc's failure to flush stdin on fclose.
34000         * lib/closein.c (close_stdin): Flush stdin before closing.
34001
34002         Work around glibc's failure to reset seekable stdin on exit.
34003         * modules/closein: New module.
34004         * lib/closein.c: New file.
34005         * lib/closein.h: Likewise.
34006         * m4/closein.m4: Likewise.
34007         * MODULES.html.sh (File stream based Input/Output): Document it.
34008
34009 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34010
34011         * gnulib-tool: Rename generated 'autobuild' script to
34012         'do-autobuild' in --create-megatestdir output.
34013
34014         * doc/gnulib.texi (Build robot for gnulib): Fix.
34015
34016 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34017
34018         * modules/sysexits (Depends-on): Add absolute-header.
34019
34020 2007-04-12  Eric Blake  <ebb9@byu.net>
34021
34022         No need to preserve errno on success.
34023         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34024         Reported by Bruno Haible.
34025
34026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34027
34028         * MODULES.html.sh (Support for maintaining and releasing
34029         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34030
34031 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34032
34033         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34034
34035 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34036
34037         * modules/autobuild: New module.
34038
34039         * m4/autobuild.m4: New file.
34040
34041 2007-04-11  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34044         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34048         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34049         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34051         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34052         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34054         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34055         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34057         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34058         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34060         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34061         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34063         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34064         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34066         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34067         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34071         Reported by Eric Blake.
34072
34073 2007-04-11  Bruno Haible  <bruno@clisp.org>
34074
34075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34076
34077 2007-04-10  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34080         for NaN and Infinity. Needed on FreeBSD 6.1.
34081         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34082         regarding results for "%010a" of Infinity and NaN.
34083         * tests/test-vasprintf-posix.c (test_function): Likewise.
34084         * tests/test-snprintf-posix.h (test_function): Likewise.
34085         * tests/test-sprintf-posix.h (test_function): Likewise.
34086         * tests/test-fprintf-posix.h (test_function): Likewise.
34087         * tests/test-printf-posix.h (test_function): Likewise.
34088         * tests/test-fprintf-posix.out: Likewise.
34089
34090 2007-04-10  Bruno Haible  <bruno@clisp.org>
34091
34092         * modules/locale-tests: New file.
34093         * tests/test-locale.c: New file.
34094
34095         * modules/locale: New file.
34096         * lib/locale_.h: New file.
34097         * m4/locale_h.m4: New file.
34098
34099 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34100             Bruno Haible  <bruno@clisp.org>
34101
34102         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34103         be determined, test for availability of the copysignf, copysign,
34104         copysignl functions.
34105         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34106         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34107         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34108
34109 2007-04-09  Eric Blake  <ebb9@byu.net>
34110
34111         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34112         * modules/stdio (Makefile.am): Support fflush.
34113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34114         * modules/fflush: New file.
34115         * lib/fflush.c: Likewise.
34116         * m4/fflush.m4: Likewise.
34117         * modules/fflush-tests: New test.
34118         * tests/test-fflush.c: Likewise.
34119         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34120
34121 2007-04-06  Bruno Haible  <bruno@clisp.org>
34122
34123         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34124         (VASNPRINTF): Use signbit for faster determination whether to print a
34125         minus sign.
34126         * modules/vasnprintf (Files): Remove lib/float+.h.
34127         * modules/fprintf-posix (Depends-on): Add signbit.
34128         * modules/snprintf-posix (Depends-on): Likewise.
34129         * modules/sprintf-posix (Depends-on): Likewise.
34130         * modules/vasnprintf-posix (Depends-on): Likewise.
34131         * modules/vasprintf-posix (Depends-on): Likewise.
34132         * modules/vfprintf-posix (Depends-on): Likewise.
34133         * modules/vsnprintf-posix (Depends-on): Likewise.
34134         * modules/vsprintf-posix (Depends-on): Likewise.
34135
34136 2007-04-06  Bruno Haible  <bruno@clisp.org>
34137
34138         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34139         * tests/test-frexpl.c (main): Likewise.
34140         * tests/test-ldexpl.c (main): Likewise.
34141         * modules/frexp-tests (Depends-on): Add signbit.
34142         * modules/frexpl-tests (Depdends-on): Likewise.
34143         * modules/ldexpl-tests (Depdends-on): Likewise.
34144
34145 2007-04-06  Bruno Haible  <bruno@clisp.org>
34146
34147         * modules/signbit-tests: New file.
34148         * tests/test-signbit.c: New file.
34149
34150         * modules/signbit: New file.
34151         * lib/signbitf.c: New file.
34152         * lib/signbitd.c: New file.
34153         * lib/signbitl.c: New file.
34154         * m4/signbit.m4: New file.
34155         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34156         (signbit): New macro.
34157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34158         REPLACE_SIGNBIT.
34159         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34160         REPLACE_FREXPL into math.h.
34161
34162 2007-04-06  Bruno Haible  <bruno@clisp.org>
34163
34164         * modules/isnanf-nolibm-tests: New file.
34165         * tests/test-isnanf.c: New file.
34166
34167         * modules/isnanf-nolibm: New file.
34168         * lib/isnanf.h: New file.
34169         * lib/isnanf.c: New file.
34170         * lib/isnan.c: Consider the USE_FLOAT macro.
34171         * m4/isnanf.m4: New file.
34172
34173 2007-04-06  Bruno Haible  <bruno@clisp.org>
34174
34175         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34176         (Link): New section.
34177
34178         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34179
34180 2007-04-06  Bruno Haible  <bruno@clisp.org>
34181
34182         Assume the 'long double' type.
34183         * m4/longdouble.m4: Remove file.
34184         * config/srclist.txt: Don't mention longdouble.m4.
34185         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34186         * lib/float+.h: Likewise.
34187         * lib/frexp.c: Likewise.
34188         * lib/printf-args.h: Likewise.
34189         * lib/printf-args.c: Likewise.
34190         * lib/printf-frexp.c: Likewise.
34191         * lib/printf-parse.c: Likewise.
34192         * lib/vasnprintf.c: Likewise.
34193         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34194         * m4/intl.m4: Likewise.
34195         * m4/isnanl.m4: Likewise.
34196         * m4/printf.m4: Likewise.
34197         * m4/printf-frexpl.m4: Likewise.
34198         * m4/vasnprintf.m4: Likewise.
34199         * modules/allocsa (Files): Remove m4/longdouble.m4.
34200         * modules/gettext (Files): Likewise.
34201         * modules/relocatable-prog-wrapper (Files): Likewise.
34202         * modules/vasnprintf (Files): Likewise.
34203         * modules/isnanl (Files): Likewise.
34204         (Include): Simplify.
34205         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34206         (Include): Simplify.
34207         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34208         (Include): Simplify.
34209         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34210         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34211         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34212         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34213         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34214         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34215         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34216         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34217         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34219         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34221         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34222         * tests/test-isnanl.c: Likewise.
34223         * tests/test-snprintf-posix.h: Likewise.
34224         * tests/test-sprintf-posix.h: Likewise.
34225         * tests/test-vasnprintf-posix.c: Likewise.
34226         * tests/test-vasnprintf-posix2.c: Likewise.
34227         * tests/test-vasprintf-posix.c: Likewise.
34228
34229 2007-04-06  Bruno Haible  <bruno@clisp.org>
34230
34231         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34232         * lib/math_.h [__DECC]: Include the overridden include file through
34233         #include_next, outside the double-inclusion guard.
34234         * lib/stdio_.h [__DECC]: Likewise.
34235         * lib/stdlib_.h [__DECC]: Likewise.
34236         * lib/string_.h [__DECC]: Likewise.
34237         * lib/time_.h [__DECC]: Likewise.
34238         * lib/wchar_.h [__DECC]: Likewise.
34239         * lib/wctype_.h [__DECC]: Likewise.
34240         * lib/inttypes_.h [__DECC]: Likewise.
34241         Reported by Albert Chin <china@thewrittenword.com> in
34242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34243
34244 2007-04-04  Eric Blake  <ebb9@byu.net>
34245
34246         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34247         1.5.x.
34248
34249 2007-04-04  Bruno Haible  <bruno@clisp.org>
34250
34251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34252         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34253
34254 2007-04-04  Bruno Haible  <bruno@clisp.org>
34255
34256         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34257         results for "%010a" of Infinity and NaN.
34258         * tests/test-vasprintf-posix.c (test_function): Likewise.
34259         * tests/test-snprintf-posix.h (test_function): Likewise.
34260         * tests/test-sprintf-posix.h (test_function): Likewise.
34261         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34262         * tests/test-printf-posix.h (test_function): Likewise.
34263         * tests/test-fprintf-posix.out: Update.
34264         Needed for FreeBSD 6.1.
34265
34266 2007-04-04  Bruno Haible  <bruno@clisp.org>
34267
34268         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34269         directly used by the gnulib modules nor by gnulib-tool.
34270
34271 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34272
34273         * DEPENDENCIES: Give overall description of version dependency
34274         desirability.  Use more-typical names for apps.
34275         Add shell, coreutils, diffutils, grep, tar, gzip.
34276
34277 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34278
34279         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34280
34281 2007-04-04  Karl Berry  <karl@gnu.org>
34282
34283         * MODULES.html.sh (func_module): missing '.
34284
34285 2007-04-03  Bruno Haible  <bruno@clisp.org>
34286
34287         * modules/argmatch-tests (Makefile.am): New variable
34288         test_argmatch_LDADD.
34289         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34290         * modules/array-list-tests (Makefile.am): New variable
34291         test_array_list_LDADD.
34292         * modules/array-oset-tests (Makefile.am): New variable
34293         test_array_oset_LDADD.
34294         * modules/avltree-list-tests (Makefile.am): New variable
34295         test_avltree_list_LDADD.
34296         * modules/avltree-oset-tests (Makefile.am): New variable
34297         test_avltree_oset_LDADD.
34298         * modules/avltreehash-list-tests (Makefile.am): New variable
34299         test_avltreehash_list_LDADD.
34300         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34301         test_canonicalize_lgpl_LDADD.
34302         * modules/carray-list-tests (Makefile.am): New variable
34303         test_carray_list_LDADD.
34304         * modules/dirname-tests (Makefile.am): New variable
34305         test_dirname_LDADD.
34306         * modules/linked-list-tests (Makefile.am): New variable
34307         test_linked_list_LDADD.
34308         * modules/linkedhash-list-tests (Makefile.am): New variable
34309         test_linkedhash_list_LDADD.
34310         * modules/rbtree-list-tests (Makefile.am): New variable
34311         test_rbtree_list_LDADD.
34312         * modules/rbtree-oset-tests (Makefile.am): New variable
34313         test_rbtree_oset_LDADD.
34314         * modules/rbtreehash-list-tests (Makefile.am): New variable
34315         test_rbtreehash_list_LDADD.
34316         * modules/xvasprintf-tests (Makefile.am): New variable
34317         test_xvasprintf_LDADD.
34318         Reported by Eric Blake.
34319
34320 2007-04-03  Eric Blake  <ebb9@byu.net>
34321
34322         * DEPENDENCIES: Weaken m4 requirements.
34323
34324 2007-04-03  Bruno Haible  <bruno@clisp.org>
34325
34326         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34327         * modules/isnanl-tests (configure.ac): Likewise.
34328
34329 2007-04-03  Ben Pfaff  <blp@gnu.org>
34330
34331         * modules/iconv_open: Add $(srcdir)/ to source directory
34332         references in Makefile fragments that call gperf, to fix VPATH
34333         builds.
34334
34335 2007-04-03  Bruno Haible  <bruno@clisp.org>
34336
34337         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34338         * lib/ldexpl.c: Undo last change.
34339
34340 2007-04-03  Bruno Haible  <bruno@clisp.org>
34341
34342         * modules/printf-frexpl (Depends-on): Undo last change.
34343         (Files): Add m4/ldexpl.m4.
34344
34345 2007-04-03  Bruno Haible  <bruno@clisp.org>
34346
34347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34348         * modules/isnanl (Link): New section.
34349
34350         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34351         * modules/frexp (Link): New section.
34352
34353         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34354         * modules/frexpl (Link): New section.
34355
34356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34357         * modules/ldexpl (Link): New section.
34358
34359 2007-04-03  Bruno Haible  <bruno@clisp.org>
34360
34361         * modules/TEMPLATE-EXTENDED: New file.
34362         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34363
34364 2007-04-03  Bruno Haible  <bruno@clisp.org>
34365
34366         * DEPENDENCIES: New file.
34367         Suggested by Simon Josefsson.
34368
34369 2007-04-03  Bruno Haible  <bruno@clisp.org>
34370
34371         * doc/gnulib.texi: Escape @.
34372
34373 2007-04-03  James Youngman  <jay@gnu.org>
34374         and Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34377         birthtime on all systems that have birthtime, not just those which
34378         use st_birthtimensec rather than st_birthtim.  Putting zero in
34379         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34380         that the birth time is not available for files on an NFS mount.
34381
34382 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34383
34384         * modules/memxor: Move back from crypto/, suggested by Bruno.
34385         * modules/crypto/hmac-sha1: Fix memxor dependency.
34386
34387         * modules/crypto/gc: Moved from ../.
34388
34389 2007-04-02  Eric Blake  <ebb9@byu.net>
34390
34391         * lib/ldexpl.c (includes): Avoid libm.
34392
34393         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34394
34395 2007-04-02  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34398         on IRIX.
34399
34400 2007-04-02  Bruno Haible  <bruno@clisp.org>
34401
34402         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34403         x86 or x86_64 platforms running MacOS X.
34404         Reported by Ryan Schmidt <@ryandesign.com>.
34405
34406 2007-04-02  Bruno Haible  <bruno@clisp.org>
34407
34408         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34409         i386.
34410
34411 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34412
34413         * modules/crypto/arcfour: Moved from ../.
34414         * modules/crypto/arcfour-tests: Moved from ../.
34415         * modules/crypto/arctwo: Moved from ../.
34416         * modules/crypto/arctwo-tests: Moved from ../.
34417         * modules/crypto/des: Moved from ../.
34418         * modules/crypto/des-tests: Moved from ../.
34419         * modules/crypto/gc-arcfour: Moved from ../.
34420         * modules/crypto/gc-arcfour-tests: Moved from ../.
34421         * modules/crypto/gc-arctwo: Moved from ../.
34422         * modules/crypto/gc-arctwo-tests: Moved from ../.
34423         * modules/crypto/gc-des: Moved from ../.
34424         * modules/crypto/gc-des-tests: Moved from ../.
34425         * modules/crypto/gc-hmac-md5: Moved from ../.
34426         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34427         * modules/crypto/gc-hmac-sha1: Moved from ../.
34428         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34429         * modules/crypto/gc-md2: Moved from ../.
34430         * modules/crypto/gc-md2-tests: Moved from ../.
34431         * modules/crypto/gc-md4: Moved from ../.
34432         * modules/crypto/gc-md4-tests: Moved from ../.
34433         * modules/crypto/gc-md5: Moved from ../.
34434         * modules/crypto/gc-md5-tests: Moved from ../.
34435         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34436         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34437         * modules/crypto/gc-random: Moved from ../.
34438         * modules/crypto/gc-rijndael: Moved from ../.
34439         * modules/crypto/gc-rijndael-tests: Moved from ../.
34440         * modules/crypto/gc-sha1: Moved from ../.
34441         * modules/crypto/gc-sha1-tests: Moved from ../.
34442         * modules/crypto/gc-tests: Moved from ../.
34443         * modules/crypto/hmac-md5: Moved from ../.
34444         * modules/crypto/hmac-md5-tests: Moved from ../.
34445         * modules/crypto/hmac-sha1: Moved from ../.
34446         * modules/crypto/hmac-sha1-tests: Moved from ../.
34447         * modules/crypto/md2: Moved from ../.
34448         * modules/crypto/md2-tests: Moved from ../.
34449         * modules/crypto/md4: Moved from ../.
34450         * modules/crypto/md4-tests: Moved from ../.
34451         * modules/crypto/md5: Moved from ../.
34452         * modules/crypto/md5-tests: Moved from ../.
34453         * modules/crypto/memxor: Moved from ../.
34454         * modules/crypto/rijndael: Moved from ../.
34455         * modules/crypto/rijndael-tests: Moved from ../.
34456         * modules/crypto/sha1: Moved from ../.
34457
34458 2007-03-30  James Youngman  <jay@gnu.org>
34459
34460         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34461         rename() to change the ctime of a file (because ctime is unaffected
34462         by rename on jfs2 on AIX 5.1).
34463         (main): Start by doing cleanup, in case a previous run failed leaving
34464         test files behind.
34465
34466 2007-03-31  Bruno Haible  <bruno@clisp.org>
34467
34468         Support old proprietary implementations of iconv.
34469         * modules/iconv_open: New file.
34470         * lib/iconv_.h: New file.
34471         * m4/iconv_h.m4: New file.
34472         * lib/iconv_open.c: New file.
34473         * lib/iconv_open-aix.gperf: New file.
34474         * lib/iconv_open-hpux.gperf: New file.
34475         * lib/iconv_open-irix.gperf: New file.
34476         * lib/iconv_open-osf.gperf: New file.
34477         * m4/iconv_open.m4: New file.
34478         * modules/linebreak (Depends-on): Add iconv_open.
34479         * modules/striconv (Depends-on): Likewise.
34480         * modules/striconveh (Depends-on): Likewise.
34481         * modules/unicodeio (Depends-on): Likewise.
34482         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34483         (iconv_t)(-1).
34484         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34485         conversion if cd is (iconv_t)(-1).
34486         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34487         is not possible.
34488
34489 2007-03-31  Bruno Haible  <bruno@clisp.org>
34490
34491         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34492         work on Solaris either. Protect also second use of "autodetect_jp".
34493
34494 2007-03-31  Bruno Haible  <bruno@clisp.org>
34495
34496         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34497         the function is not present.
34498
34499 2007-03-31  Bruno Haible  <bruno@clisp.org>
34500
34501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34502         the function is not present.
34503
34504 2007-03-31  Bruno Haible  <bruno@clisp.org>
34505
34506         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34507         a bug in HP-UX iconv_open().
34508
34509 2007-03-31  Bruno Haible  <bruno@clisp.org>
34510
34511         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34512         (Mathematics <math.h>): New section, add fpieee.
34513         (Input/output <stdio.h>): Add fseterr.
34514         (Mathematics <math.h>): New section, add printf-frexp.
34515         (Container data structures): Add sublist.
34516         (Core language properties): Add fpucw, inline.
34517         (Functions for greatest-width integer types <inttypes.h>): Add
34518         imaxabs, imaxdiv, inttypes.
34519         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34520         isnanl-nolibm, ldexp.
34521         (Mathematics <math.h>): New section, add printf-frexpl.
34522         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34523         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34524         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34525         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34526         (Unicode string functions): Add unistr/u*-mbtoucr.
34527         (Java): Add javacomp-script, javaexec-script.
34528         (C#): Add csharpcomp-script, csharpexec-script.
34529         (Support for building libraries and executables): Add havelib,
34530         relocatable-*.
34531         (Support for maintaining and releasing projects): Renamed from
34532         'Support for maintaining and release projects'. Add announce-gen.
34533
34534 2007-03-31  Bruno Haible  <bruno@clisp.org>
34535
34536         * README: Talk primarily about git.
34537         (git and CVS): Renamed from CVS.
34538         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34539         gnulib is available through git.
34540         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34541
34542 2007-03-30  Bruno Haible  <bruno@clisp.org>
34543
34544         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34545         * lib/poll_.h: Likewise.
34546         * lib/stat_.h: Likewise.
34547         * lib/sys_time_.h: Likewise.
34548         * lib/sysexit_.h: Likewise.
34549         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34550         * lib/stdbool_.h: Likewise.
34551         * lib/byteswap_.h: Add double-inclusion guard.
34552
34553 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34554
34555         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34556
34557 2007-03-30  Karl Berry  <karl@gnu.org>
34558
34559         * config/srclist-update: double space after USA in the license
34560         substitution, since that's how it's usually (?) written.
34561
34562 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34563
34564         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34565         reported by Bruno Haible.
34566
34567 2007-03-29  Bruno Haible  <bruno@clisp.org>
34568
34569         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34570         a bug in AIX iconv().
34571
34572 2007-03-29  Bruno Haible  <bruno@clisp.org>
34573
34574         * modules/ldexpl-tests: New file.
34575         * tests/test-ldexpl.c: New file.
34576
34577 2007-03-29  Bruno Haible  <bruno@clisp.org>
34578
34579         * lib/ldexpl.c: Include fpucw.h.
34580         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34581         multiplication.
34582         * modules/ldexpl (Depends-on): Add fpucw.
34583
34584 2007-03-29  Bruno Haible  <bruno@clisp.org>
34585
34586         * modules/ldexpl: New file.
34587         * m4/ldexpl.m4: New file.
34588         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34589         set.
34590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34591         REPLACE_LDEXPL.
34592         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34593         REPLACE_LDEXPL.
34594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34595         gl_FUNC_LDEXPL_WORKS.
34596         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34597         * modules/mathl (Files): Remove lib/ldexpl.c.
34598         (Depends-on): Add ldexpl.
34599
34600 2007-03-29  Bruno Haible  <bruno@clisp.org>
34601
34602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34603
34604 2007-03-29  Bruno Haible  <bruno@clisp.org>
34605
34606         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34607         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34608         and possibly also HP-UX.
34609         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34610         work on AIX, IRIX, HP-UX, OSF/1.
34611         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34612         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34613         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34614         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34615         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34616         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34617
34618 2007-03-29  Bruno Haible  <bruno@clisp.org>
34619
34620         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34621
34622 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34623
34624         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34625         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34626
34627 2007-03-29  Eric Blake  <ebb9@byu.net>
34628
34629         * lib/acl-internal.h: Remove redundant include.
34630         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34631         Cygwin when a file is locked.
34632
34633 2007-03-29  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34636         file.
34637         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34638
34639 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34640
34641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34642         try to remove a parent directory if the child couldn't be removed
34643         (except for the first rmdir, which could fail because the child
34644         doesn't exist).  Problem reported by Jeff Blaine in
34645         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34646
34647 2007-03-28  Bruno Haible  <bruno@clisp.org>
34648
34649         * lib/striconveh.c (utf8conv_carefully): New function.
34650         (mem_cd_iconveh_internal): Invoke it.
34651
34652 2007-03-28  Bruno Haible  <bruno@clisp.org>
34653
34654         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34655         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34656         input.
34657         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34658         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34659         unistr/u8-uctomb.
34660
34661 2007-03-28  Bruno Haible  <bruno@clisp.org>
34662
34663         * modules/unistr/u8-mbtoucr: New file.
34664         * lib/unistr/u8-mbtoucr.c: New file.
34665         * modules/unistr/u16-mbtoucr: New file.
34666         * lib/unistr/u16-mbtoucr.c: New file.
34667         * modules/unistr/u16-mbtoucr: New file.
34668         * lib/unistr/u16-mbtoucr.c: New file.
34669         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34670
34671 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34672             Bruno Haible  <bruno@clisp.org>
34673
34674         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34675         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34676         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34677
34678         * m4/stdio_h.m4: Add stubs for vasprintf too.
34679
34680         * modules/stdio: Support vasprintf in sed command.
34681
34682         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34683         vasprintf.h.  Add stdio module indicator.
34684
34685         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34686         vasprintf.h.
34687
34688         * lib/vasprintf.h: File removed.
34689
34690         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34691         * lib/vasprintf.c: Ditto.
34692         * lib/xvasprintf.c: Ditto.
34693         * tests/test-vasprintf-posix.c: Ditto.
34694         * tests/test-vasprintf.c: Ditto.
34695
34696 2007-03-27  Bruno Haible  <bruno@clisp.org>
34697
34698         Make vasnprintf multithread-safe.
34699         * lib/vasnprintf.c (decimal_point_char): New function.
34700         (VASNPRINTF): Use it.
34701         Suggested by Simon Josefsson.
34702
34703 2007-03-27  Eric Blake  <ebb9@byu.net>
34704
34705         Support sub-second birthtime on cygwin.
34706         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34707         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34708         (get_stat_birthtime): Also work with st_birthtim.
34709
34710 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34711
34712         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34713         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34714         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34715         (get_stat_birthtime_ns): Simplify compile-time tests.
34716         (get_stat_birthtime): Change the API to look like
34717         get_stat_mtime etc., except return a negative tv_nsec on error.
34718         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34719         Don't check for "spare" fields.
34720         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34721         or for struct stat.st_birthtime, as these tests aren't used.
34722         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34723
34724 2007-03-27  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/stat-time.h: Include <sys/stat.h>.
34727
34728 2007-03-27  James Youngman  <jay@gnu.org>
34729
34730         * lib/stat-time.h (get_stat_birthtime): New function for
34731           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34732         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34733           and its variants.
34734         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34735         * modules/stat-time-test: New file.
34736         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34737
34738 2007-03-26  Bruno Haible  <bruno@clisp.org>
34739
34740         Better support of signalling NaNs.
34741         * lib/atanl.c: Include isnanl.h.
34742         (atanl): Perform test for NaN at the beginning of the function and
34743         through a call to isnanl.
34744         * lib/cosl.c: Include isnanl.h.
34745         (cosl): Perform test for NaN at the beginning of the function and
34746         through a call to isnanl.
34747         * lib/ldexpl.c: Include isnanl.h.
34748         (ldexpl): Perform test for NaN through a call to isnanl.
34749         * lib/logl.c: Include isnanl.h.
34750         (logl): Perform test for NaN at the beginning of the function and
34751         through a call to isnanl.
34752         * lib/sinl.c: Include isnanl.h.
34753         (sinl): Perform test for NaN at the beginning of the function and
34754         through a call to isnanl.
34755         * lib/sqrtl.c: Include isnanl.h.
34756         (sqrtl): Perform test for NaN at the beginning of the function and
34757         through a call to isnanl.
34758         * lib/tanl.c: Include isnanl.h.
34759         (tanl): Perform test for NaN at the beginning of the function and
34760         through a call to isnanl.
34761         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34762         * modules/mathl (Depends-on): Add isnanl.
34763
34764 2007-03-26  Eric Blake  <ebb9@byu.net>
34765
34766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34767         regression in logic sense of previous patch.
34768
34769 2007-03-26  Bruno Haible  <bruno@clisp.org>
34770
34771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34772         unportable shell command "if ! ...".
34773         Reported by Ralf Wildenhues.
34774
34775 2007-03-25  Bruno Haible  <bruno@clisp.org>
34776
34777         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34778         <sysexits.h> file, and only add EX_CONFIG.
34779         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34780         absolute file name and whether it is sufficient. Substitute also
34781         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34782         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34783         ABSOLUTE_SYSEXITS_H into sysexits.h.
34784
34785 2007-03-25  Bruno Haible  <bruno@clisp.org>
34786
34787         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34788         hints is NULL.
34789
34790 2007-03-25  Bruno Haible  <bruno@clisp.org>
34791
34792         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34793         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34794
34795 2007-03-25  Bruno Haible  <bruno@clisp.org>
34796
34797         * lib/vasnprintf.c: Include langinfo.h.
34798         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34799         multithread-safe.
34800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34809         Reported by Simon Josefsson.
34810
34811 2007-03-25  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34814         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34815         * modules/vasnprintf (Depends-on): Add stdint.
34816
34817 2007-03-25  Bruno Haible  <bruno@clisp.org>
34818
34819         * modules/fpieee: New file.
34820         * m4/fpieee.m4: New file.
34821         * modules/isnan-nolibm (Depends-on): Add fpieee.
34822         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34823         * modules/isnanl (Depends-on): Add fpieee.
34824
34825 2007-03-25  Bruno Haible  <bruno@clisp.org>
34826
34827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34828
34829 2007-03-25  Bruno Haible  <bruno@clisp.org>
34830
34831         Avoid test failures on IRIX 6.5.
34832         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34833         (main): Use it.
34834         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34835         macros.
34836         (main): Use them.
34837
34838 2007-03-25  Bruno Haible  <bruno@clisp.org>
34839
34840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34841         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34842         exists but doesn't work.
34843         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34844         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34846         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34847
34848 2007-03-25  Bruno Haible  <bruno@clisp.org>
34849
34850         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34851         returns inf. Needed on IRIX 6.5.
34852
34853 2007-03-25  Bruno Haible  <bruno@clisp.org>
34854
34855         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34856         (main): Use isnanl instead of x != x idiom.
34857         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34858
34859         * tests/test-frexp.c: Include isnan.h.
34860         (main): Use isnan instead of x != x idiom.
34861         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34862
34863 2007-03-25  Bruno Haible  <bruno@clisp.org>
34864
34865         * tests/test-frexp.c (NaN): New function/macro.
34866         (main): Use it instead of 0.0 / 0.0.
34867         * tests/test-isnan.c (NaN): New function/macro.
34868         (main): Use it instead of 0.0 / 0.0.
34869         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34870         (test_function): Use it instead of 0.0 / 0.0.
34871         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34872         (test_function): Use it instead of 0.0 / 0.0.
34873         * tests/test-snprintf-posix.h (NaN): New function/macro.
34874         (test_function): Use it instead of 0.0 / 0.0.
34875         * tests/test-sprintf-posix.h (NaN): New function/macro.
34876         (test_function): Use it instead of 0.0 / 0.0.
34877         * tests/test-fprintf-posix.h (NaN): New function/macro.
34878         (test_function): Use it instead of 0.0 / 0.0.
34879         * tests/test-printf-posix.h (NaN): New function/macro.
34880         (test_function): Use it instead of 0.0 / 0.0.
34881
34882         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34883
34884 2007-03-25  Bruno Haible  <bruno@clisp.org>
34885
34886         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34887
34888 2007-03-25  Bruno Haible  <bruno@clisp.org>
34889
34890         * lib/regexec.c (merge_state_with_log): Make static.
34891
34892 2007-03-25  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/trigl.c (kernel_rem_pio2): Make static.
34895
34896 2007-03-25  Bruno Haible  <bruno@clisp.org>
34897
34898         * lib/sincosl.c (sincosl_table): Make static.
34899
34900 2007-03-25  Bruno Haible  <bruno@clisp.org>
34901
34902         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34903         if the compiler does not support C99.
34904
34905 2007-03-25  Bruno Haible  <bruno@clisp.org>
34906
34907         * modules/time (Makefile.am): Ensure all rule action lines start with a
34908         tab.
34909
34910 2007-03-24  Bruno Haible  <bruno@clisp.org>
34911
34912         * modules/tsearch-tests: New file.
34913         * tests/test-tsearch.sh: New file.
34914         * tests/test-tsearch.c: New file, mostly copied from glibc.
34915
34916         * modules/search-tests: New file.
34917         * tests/test-search.c: New file.
34918
34919         * modules/search: New file.
34920         * lib/search_.h: New file, incorporating lib/tsearch.h.
34921         * m4/search_h.m4: New file.
34922         * lib/tsearch.h: Remove file.
34923         * lib/tsearch.c: Include search.h instead of tsearch.h.
34924         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34925         HAVE_TSEARCH.
34926         * modules/tsearch (Files): Remove lib/tsearch.h.
34927         (Depends-on): Add search.
34928         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34929         (Include): Change tsearch.h into search.h.
34930
34931 2007-03-24  Bruno Haible  <bruno@clisp.org>
34932
34933         * modules/fpucw: New file.
34934         * lib/fpucw.h: New file.
34935         * lib/frexp.c: Include fpucw.h.
34936         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34937         (FUNC): Use them.
34938         * lib/printf-frexp.c: Include fpucw.h.
34939         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34940         (FUNC): Use them.
34941         * lib/vasnprintf.c: Include fpucw.h.
34942         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34943         'long double' calculations.
34944         * tests/test-frexpl.c: Include fpucw.h.
34945         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34946         * tests/test-printf-frexpl.c: Include fpucw.h.
34947         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34948         * modules/frexpl (Depends-on): Add fpucw.
34949         * modules/printf-frexpl (Depends-on): Likewise.
34950         * modules/fprintf-posix (Depends-on): Likewise.
34951         * modules/snprintf-posix (Depends-on): Likewise.
34952         * modules/sprintf-posix (Depends-on): Likewise.
34953         * modules/vasnprintf-posix (Depends-on): Likewise.
34954         * modules/vasprintf-posix (Depends-on): Likewise.
34955         * modules/vfprintf-posix (Depends-on): Likewise.
34956         * modules/vsnprintf-posix (Depends-on): Likewise.
34957         * modules/vsprintf-posix (Depends-on): Likewise.
34958         * modules/frexpl-tests (Depends-on): Likewise.
34959         * modules/printf-frexpl-tests (Depends-on): Likewise.
34960
34961 2007-03-24  Bruno Haible  <bruno@clisp.org>
34962
34963         * lib/float+.h: New file.
34964         * lib/isnan.c: Include float+.h.
34965         (SIZE): New macro.
34966         (FUNC): Compare only SIZE bytes of the value.
34967         * lib/vasnprintf.c: Include float+.h.
34968         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34969         SIZEOF_LDBL or SIZEOF_DBL bytes.
34970         * modules/isnan-nolibm (Files): Add lib/float+.h.
34971         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34972         * modules/isnanl (Files): Add lib/float+.h.
34973         * modules/vasnprintf (Files): Add lib/float+.h.
34974
34975 2007-03-24  Bruno Haible  <bruno@clisp.org>
34976
34977         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34978         include isnanl-nolibm.h.
34979
34980 2007-03-24  Bruno Haible  <bruno@clisp.org>
34981
34982         * tests/test-read-file.c (main): Don't produce spurious output for
34983         expected situations. Make the test fail if it encountered unexpected
34984         results.
34985
34986 2007-03-24  Bruno Haible  <bruno@clisp.org>
34987
34988         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34989         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34990
34991 2007-03-24  Bruno Haible  <bruno@clisp.org>
34992
34993         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34994
34995 2007-03-24  Bruno Haible  <bruno@clisp.org>
34996
34997         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34998         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34999
35000         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35001         * modules/utf8-ucs4: Turn into a symbolic link to module
35002         unistr/u8-mbtouc.
35003
35004         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35005         utf8-ucs4-unsafe.
35006         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35007         unistr/u8-mbtouc-unsafe.
35008
35009         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35010         * modules/utf16-ucs4: Turn into a symbolic link to module
35011         unistr/u16-mbtouc.
35012
35013         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35014         utf16-ucs4-unsafe.
35015         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35016         unistr/u16-mbtouc-unsafe.
35017
35018         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35019         * modules/ucs4-utf8: Turn into a symbolic link to module
35020         unistr/u8-ubtomb.
35021
35022         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35023         * modules/ucs4-utf16: Turn into a symbolic link to module
35024         unistr/u16-ubtomb.
35025
35026 2007-03-24  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35029         Enable the function only if HAVE_INLINE.
35030         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35031         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35032         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35033         Enable the function only if HAVE_INLINE.
35034         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35035         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35036         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35037         Enable the function only if HAVE_INLINE.
35038         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35039         Enable the function only if HAVE_INLINE.
35040         * modules/utf8-ucs4: Update.
35041         * modules/utf8-ucs4-unsafe: Update.
35042         * modules/utf16-ucs4: Update.
35043         * modules/utf16-ucs4-unsafe: Update.
35044         * modules/ucs4-utf8: Update.
35045         * modules/ucs4-utf16: Update.
35046
35047 2007-03-24  Bruno Haible  <bruno@clisp.org>
35048
35049         * lib/utf8-ucs4.h: Remove file.
35050         * lib/utf8-ucs4-unsafe.h: Remove file.
35051         * lib/utf16-ucs4.h: Remove file.
35052         * lib/utf16-ucs4-unsafe.h: Remove file.
35053         * lib/ucs4-utf8.h: Remove file.
35054         * lib/ucs4-utf16.h: Remove file.
35055         * lib/unistr.h: Include their previous contents.
35056         * m4/utf-ucs4.m4: Remove file.
35057         * m4/ucs4-utf.m4: Remove file.
35058         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35059         (Depends-on): Add unistr/base.
35060         (configure.ac): Remove gl_UTF_UCS4.
35061         (Makefile.am): Update.
35062         (Include): Change to unistr.h.
35063         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35064         (Depends-on): Add unistr/base.
35065         (configure.ac): Remove gl_UTF_UCS4.
35066         (Makefile.am): Update.
35067         (Include): Change to unistr.h.
35068         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35069         (Depends-on): Add unistr/base.
35070         (configure.ac): Remove gl_UTF_UCS4.
35071         (Makefile.am): Update.
35072         (Include): Change to unistr.h.
35073         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35074         (Depends-on): Add unistr/base.
35075         (configure.ac): Remove gl_UTF_UCS4.
35076         (Makefile.am): Update.
35077         (Include): Change to unistr.h.
35078         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35079         (Depends-on): Add unistr/base.
35080         (configure.ac): Remove gl_UCS4_UTF.
35081         (Makefile.am): Update.
35082         (Include): Change to unistr.h.
35083         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35084         (Depends-on): Add unistr/base.
35085         (configure.ac): Remove gl_UCS4_UTF.
35086         (Makefile.am): Update.
35087         (Include): Change to unistr.h.
35088         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35089         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35090         utf8-ucs4-unsafe.h.
35091         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35092         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35093         utf16-ucs4-unsafe.h.
35094         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35095         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35096         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35097         * lib/unistr/u8-strchr.c: Likewise.
35098         * lib/unistr/u8-strrchr.c: Likewise.
35099         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35100         * lib/unistr/u16-strchr.c: Likewise.
35101         * lib/unistr/u16-strrchr.c: Likewise.
35102         * lib/striconveh.c: Update.
35103         * lib/linebreak.c: Update.
35104
35105 2007-03-24  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35108         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35109
35110 2007-03-22  Bruno Haible  <bruno@clisp.org>
35111
35112         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35113
35114 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35115
35116         * MODULES.html.sh (File system functions): New module write-any-file.
35117         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35118         * m4/write-any-file.m4: New files.
35119
35120 2007-03-23  Eric Blake  <ebb9@byu.net>
35121
35122         * gnulib-tool: Rearrange space-tab sequences, since some editors
35123         like to eat them.
35124
35125 2007-03-23  Eric Blake  <ebb9@byu.net>
35126
35127         * lib/version-etc.c (version_etc_va): Update license wording to
35128         be more concise.  Recommended by Richard Stallman.
35129
35130 2007-03-22  Bruno Haible  <bruno@clisp.org>
35131
35132         * lib/poll.c (MSG_PEEK): New fallback definition.
35133
35134 2007-03-22  Bruno Haible  <bruno@clisp.org>
35135
35136         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35137         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35138         (main): Update.
35139         Fixes a compilation error on BeOS.
35140
35141 2007-03-22  Bruno Haible  <bruno@clisp.org>
35142
35143         * modules/frexpl-tests: New file.
35144         * tests/test-frexpl.c: New file.
35145
35146         * modules/frexpl: New file.
35147         * m4/frexpl.m4: New file.
35148         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35149         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35151         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35152         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35153         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35154
35155 2007-03-22  Bruno Haible  <bruno@clisp.org>
35156
35157         * lib/frexpl.c: Share code with lib/frexp.c.
35158         * modules/mathl (Files): Add lib/frexp.c.
35159         (Depends-on): Add isnanl-nolibm.
35160
35161 2007-03-22  Bruno Haible  <bruno@clisp.org>
35162
35163         * modules/printf-frexp (Files): Add m4/frexp.m4.
35164         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35165         only if the found frexp function actually works.
35166
35167 2007-03-22  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/frexp.c: Remove older implementation that uses divisions.
35170
35171 2007-03-21  Bruno Haible  <bruno@clisp.org>
35172
35173         * modules/frexp-tests: New file.
35174         * tests/test-frexp.c: New file.
35175
35176         * modules/frexp: New file.
35177         * lib/frexp.c: New file.
35178         * m4/frexp.m4: New file.
35179         * lib/math_.h (frexp): New declaration.
35180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35181         REPLACE_FREXP.
35182         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35183
35184 2007-03-21  Bruno Haible  <bruno@clisp.org>
35185
35186         * modules/isnanl-tests: New file.
35187         * tests/test-isnanl.c: New file.
35188
35189         * modules/isnanl: New file.
35190         * lib/isnanl.h: New file.
35191         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35192         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35193         gl_FUNC_ISNANL_WORKS.
35194         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35195         New macros.
35196
35197 2007-03-21  Bruno Haible  <bruno@clisp.org>
35198
35199         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35200         lib/isnanl.h.
35201         (Include): Update.
35202         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35203         * lib/vasnprintf.c: Update.
35204         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35205         tests/test-isnanl.h, remove tests/test-isnanl.c.
35206         (Makefile.am): Update.
35207         * tests/test-isnanl-nolibm.c: New file.
35208         * tests/test-isnanl.h: New file.
35209         * tests/test-isnanl.c: Remove file.
35210
35211 2007-03-21  Jim Meyering  <jim@meyering.net>
35212
35213         When trying to open ".", treat ESTALE like EACCES.
35214         * lib/savewd.c (savewd_save): Resort to forking not just upon
35215         failure with EACCES, but also when errno is ESTALE.
35216
35217 2007-03-20  Bruno Haible  <bruno@clisp.org>
35218
35219         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35220         Needed on AIX 5.1. Reported by Matthew Woehlke.
35221
35222 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35223
35224         Suggestions by Bruno Haible:
35225         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35226         our own.
35227         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35228         * modules/acl (Depends-on): Add gettext.
35229
35230 2007-03-19  Bruno Haible  <bruno@clisp.org>
35231
35232         * modules/iconvme: Remove file.
35233         * lib/iconvme.h: Remove file.
35234         * lib/iconvme.c: Remove file.
35235         * m4/iconvme.m4: Remove file.
35236
35237 2007-03-19  Bruno Haible  <bruno@clisp.org>
35238
35239         * doc/relocatable-maint.texi: Break long shell script line.
35240         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35241
35242 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35243
35244         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35245         handle file_has_acl.
35246         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35247         * lib/acl.c: Move header inclusions and related macro defns into
35248         lib/acl-internal.h.
35249         (S_ISLNK): Remove defn, since that's now done for us.
35250         (file_has_acl): Move to lib/file-has-acl.c.
35251         Call acl_trivial if available.  This is the crucial part of the fix.
35252         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35253         shared within the library.  Rewrite a bit, partly to make it compatible
35254         with the GNU coding style.
35255         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35256         Remove unnecessary double-quotes.
35257         Don't test for acl_to_text; the build will catch that.
35258         Replace acl_entries if it doesn't exist and it is needed.
35259         Check for -lsec and acl_trivial (as used on Solaris 10).
35260         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35261         lib/file-has-acl.c.
35262         (Depends-on): Add sys_stat, for S_ISLNK.
35263
35264 2007-03-19  Ben Pfaff  <blp@gnu.org>
35265
35266         * doc/gnulib.texi: Fix typos.
35267         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35268
35269 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35270
35271         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35272         If size is zero here, buf must be zero.
35273
35274 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35275
35276         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35277         <bruno@clisp.org>.
35278
35279 2007-03-18  Bruno Haible  <bruno@clisp.org>
35280
35281         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35282         Suggested by Eric Blake.
35283
35284 2007-03-18  Ben Pfaff  <blp@gnu.org>
35285
35286         * doc/relocatable.texi: Recommend using as prefix a directory
35287         that does not exist and will never be created.  Based on
35288         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35289         and others.
35290
35291 2007-03-17  Bruno Haible  <bruno@clisp.org>
35292
35293         * lib/fchownat.c: Include lchown.h.
35294
35295 2007-03-17  Bruno Haible  <bruno@clisp.org>
35296
35297         Fix endless loop when the given allocated size was > INT_MAX.
35298         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35299         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35300         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35301         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35302         * lib/sprintf.c (sprintf): Likewise.
35303
35304 2007-03-17  Bruno Haible  <bruno@clisp.org>
35305
35306         * tests/test-argp-2.sh (func_compare): Output a context diff.
35307
35308 2007-03-17  Bruno Haible  <bruno@clisp.org>
35309
35310         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35311         locale's decimal-point character.
35312
35313 2007-03-17  Bruno Haible  <bruno@clisp.org>
35314
35315         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35316         before comparing it. Needed because on some platforms (e.g. x86) a
35317         'long double' occupies less bytes than sizeof (long double).
35318
35319 2007-03-17  Bruno Haible  <bruno@clisp.org>
35320
35321         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35322         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35323         * tests/test-getaddrinfo.c (simple): Likewise.
35324         * tests/test-read-file.c (main): Likewise.
35325
35326 2007-03-17  Bruno Haible  <bruno@clisp.org>
35327
35328         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35329
35330 2007-03-17  Bruno Haible  <bruno@clisp.org>
35331
35332         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35333         unused variable.
35334
35335 2007-03-17  Bruno Haible  <bruno@clisp.org>
35336
35337         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35338         * tests/test-c-strncasecmp.c: Likewise.
35339
35340 2007-03-17  Bruno Haible  <bruno@clisp.org>
35341
35342         * modules/stdlib (Depends-on): Add unistd.
35343         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35344         Needed for MacOS X 10.3.
35345
35346 2007-03-17  Bruno Haible  <bruno@clisp.org>
35347
35348         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35349
35350 2007-03-17  Bruno Haible  <bruno@clisp.org>
35351
35352         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35353
35354 2007-03-17  Bruno Haible  <bruno@clisp.org>
35355
35356         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35357         to reflect files copied from gnulib (with or without modifications).
35358         Suggested by Jim Meyering.
35359
35360 2007-03-17  Eric Blake  <ebb9@byu.net>
35361
35362         * NEWS: Document stdlib change from 2007-02-18.
35363
35364 2007-03-17  Jim Meyering  <jim@meyering.net>
35365
35366         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35367         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35368         someone uses a name containing shell meta-characters.
35369         Reported by Alfred M. Szmidt.
35370
35371         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35372
35373 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35374
35375         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35376         and copy gettext configuration files only if configure.ac contains
35377         a use of AM_GNU_GETTEXT_VERSION.
35378
35379 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35380
35381         * build-aux/bootstrap (gnulib_name): New variable.
35382         (gnulib_tool_options): Use it.
35383
35384 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35385
35386         * tests/test-des.c: Use new namespace.
35387
35388 2007-03-15  Bruno Haible  <bruno@clisp.org>
35389
35390         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35391         Reported by James Youngman <jay@gnu.org>.
35392
35393 2007-03-15  Bruno Haible  <bruno@clisp.org>
35394
35395         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35396         declared prototype. Needed with cc on OSF/1 5.1.
35397
35398 2007-03-15  Bruno Haible  <bruno@clisp.org>
35399
35400         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35401         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35402         (struct gl_list_implementation): Add dispose_fn argument to the
35403         'create_empty', 'create' methods.
35404         (struct gl_list_impl_base): Add field 'dispose_fn'.
35405         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35406         argument.
35407         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35408         dispose_fn argument.
35409         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35410         dispose_fn on the dropped values.
35411         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35412         dispose_fn argument.
35413         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35414         dropped values.
35415         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35416         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35417         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35418         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35419         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35420         argument.
35421         (gl_tree_list_free): Call dispose_fn on the dropped values.
35422         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35423         the dropped values.
35424         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35425         Add dispose_fn argument.
35426         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35427         Call dispose_fn on the dropped values.
35428         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35429         Add dispose_fn argument.
35430         (gl_sublist_create): Initialize the 'dispose_fn' field.
35431         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35432         * tests/test-array_list.c (main): Update.
35433         * tests/test-carray_list.c (main): Update.
35434         * tests/test-avltree_list.c (main): Update.
35435         * tests/test-rbtree_list.c (main): Update.
35436         * tests/test-avltreehash_list.c (main): Update.
35437         * tests/test-rbtreehash_list.c (main): Update.
35438         * tests/test-linked_list.c (main): Update.
35439         * tests/test-linkedhash_list.c (main): Update.
35440         * tests/test-array_oset.c (main): Update.
35441
35442 2007-03-15  Bruno Haible  <bruno@clisp.org>
35443
35444         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35445         (gl_oset_create_empty): Add dispose_fn argument.
35446         (struct gl_oset_implementation): Add dispose_fn argument to
35447         'create_empty' method.
35448         (struct gl_oset_impl_base): Add dispose_fn field.
35449         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35450         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35451         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35452         values.
35453         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35454         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35455         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35456         dropped value.
35457         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35458         dropped value.
35459         * tests/test-array_oset.c (main): Update.
35460         * tests/test-avltree_oset.c (main): Update.
35461         * tests/test-rbtree_oset.c (main): Update.
35462         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35463
35464 2007-03-13  Bruno Haible  <bruno@clisp.org>
35465
35466         * tests/test-stdbool.c (i): Update after last patch.
35467
35468 2007-03-12  Bruno Haible  <bruno@clisp.org>
35469
35470         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35471         the iswprint macro. Needed on Solaris 2.5.1.
35472
35473 2007-03-12  Bruno Haible  <bruno@clisp.org>
35474
35475         * tests/test-printf-frexp.c (main): Declare x as volatile.
35476
35477 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35478
35479         * doc/gnulib.texi (Build robot for gnulib): New section.
35480
35481 2007-03-12  Jim Meyering  <jim@meyering.net>
35482
35483         * build-aux/bootstrap: New file.
35484         * build-aux/bootstrap.conf: New file, from coreutils.
35485
35486 2007-03-11  Bruno Haible  <bruno@clisp.org>
35487
35488         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35489
35490 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35491
35492         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35493         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35494         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35495
35496 2007-03-11  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35499         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35500
35501 2007-03-11  Bruno Haible  <bruno@clisp.org>
35502
35503         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35504         formula. Needed for SunPRO C 5.0.
35505
35506 2007-03-11  Bruno Haible  <bruno@clisp.org>
35507
35508         * modules/long-options (Depends-on): Add getopt.
35509
35510 2007-03-11  Bruno Haible  <bruno@clisp.org>
35511
35512         * modules/modechange (Depends-on): Add stdbool.
35513
35514 2007-03-11  Bruno Haible  <bruno@clisp.org>
35515
35516         * modules/i-ring (Depends-on): Add stdbool.
35517
35518 2007-03-11  Bruno Haible  <bruno@clisp.org>
35519
35520         * modules/gc-des (Depends-on): Add stdbool.
35521
35522 2007-03-11  Bruno Haible  <bruno@clisp.org>
35523
35524         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35525
35526 2007-03-11  Bruno Haible  <bruno@clisp.org>
35527
35528         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35529
35530 2007-03-11  Bruno Haible  <bruno@clisp.org>
35531
35532         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35533
35534 2007-03-11  Bruno Haible  <bruno@clisp.org>
35535
35536         * lib/vasnprintf.c (sprintf): Undefine.
35537
35538 2007-03-11  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35541         initializers in SunPRO C and Compaq C compilers.
35542
35543 2007-03-11  Bruno Haible  <bruno@clisp.org>
35544
35545         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35546         decrementing code ANSI C compliant.
35547
35548 2007-03-11  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35551         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35552
35553 2007-03-11  Bruno Haible  <bruno@clisp.org>
35554
35555         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35556         <stdbool.h> substitute doesn't pass.
35557
35558 2007-03-11  Bruno Haible  <bruno@clisp.org>
35559
35560         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35561
35562 2007-03-11  Bruno Haible  <bruno@clisp.org>
35563
35564         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35565         script, for submission to autobuild.josefsson.org.
35566
35567 2007-03-10  Bruno Haible  <bruno@clisp.org>
35568
35569         * modules/canonicalize-lgpl-tests: New file.
35570         * tests/test-canonicalize-lgpl.sh: New file.
35571         * tests/test-canonicalize-lgpl.c: New file.
35572
35573         * modules/c-strcase-tests: New file.
35574         * tests/test-c-strcase.sh: New file.
35575         * tests/test-c-strcasecmp.c: New file.
35576         * tests/test-c-strncasecmp.c: New file.
35577
35578         * modules/atexit-tests: New file.
35579         * tests/test-atexit.sh: New file.
35580         * tests/test-atexit.c: New file.
35581
35582 2007-03-10  Bruno Haible  <bruno@clisp.org>
35583
35584         * tests/test-binary-io.sh: Use temporary filenames that are not so
35585         likely to clash with those of other tests (in a parallel make).
35586         * tests/test-binary-io.c: Likewise.
35587
35588 2007-03-10  Bruno Haible  <bruno@clisp.org>
35589
35590         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35591         fallback; use #error instead.
35592         Suggested by Simon Josefsson.
35593
35594 2007-03-10  Bruno Haible  <bruno@clisp.org>
35595
35596         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35597         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35598         first and the last.
35599
35600 2007-03-10  Bruno Haible  <bruno@clisp.org>
35601
35602         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35603
35604 2007-03-10  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35607         "make distcheck".
35608         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35609         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35610         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35611
35612 2007-03-10  Bruno Haible  <bruno@clisp.org>
35613
35614         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35615         variable.
35616         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35617         variable.
35618
35619 2007-03-09  Eric Blake  <ebb9@byu.net>
35620         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35621
35622         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35623         types are not being provided by gnulib.
35624         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35625         types are supported.
35626
35627 2007-03-10  Bruno Haible  <bruno@clisp.org>
35628
35629         * lib/stdio_.h (__attribute__): New macro.
35630         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35631         vsprintf): Specify __attribute__ __format__ for GCC.
35632         Suggested by Eric Blake.
35633
35634 2007-03-09  Bruno Haible  <bruno@clisp.org>
35635
35636         * modules/printf-posix-tests: New file.
35637         * tests/test-printf-posix.sh: New file.
35638         * tests/test-printf-posix.c: New file.
35639
35640         * modules/printf-posix: New file.
35641         * lib/printf.c: New file.
35642         * m4/printf-posix-rpl.m4: New file.
35643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35644         REPLACE_PRINTF.
35645         * lib/stdio_.h (printf): New declaration.
35646         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35647         ____strfmon____): New macros.
35648         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35649         REPLACE_PRINTF.
35650
35651 2007-03-09  Bruno Haible  <bruno@clisp.org>
35652
35653         * tests/test-vasnprintf-posix2.sh: New file.
35654         * tests/test-vasnprintf-posix2.c: New file.
35655         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35656         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35657         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35658
35659         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35660         a locale dependent decimal point, rather than always '.'.
35661
35662 2007-03-09  Eric Blake  <ebb9@byu.net>
35663
35664         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35665         spite of platforms like Tandem/NSK that define it to -1.
35666
35667 2007-03-08  Bruno Haible  <bruno@clisp.org>
35668
35669         * modules/vprintf-posix-tests: New file.
35670         * tests/test-vprintf-posix.sh: New file.
35671         * tests/test-vprintf-posix.c: New file.
35672         * tests/test-printf-posix.h: New file.
35673
35674         * modules/vprintf-posix: New file.
35675         * lib/vprintf.c: New file.
35676         * m4/vprintf-posix.m4: New file.
35677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35678         REPLACE_VPRINTF.
35679         * lib/stdio_.h (vprintf): New declaration.
35680         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35681         REPLACE_VPRINTF.
35682
35683 2007-03-08  Bruno Haible  <bruno@clisp.org>
35684
35685         * modules/fprintf-posix-tests: New file.
35686         * tests/test-fprintf-posix.sh: New file.
35687         * tests/test-fprintf-posix.c: New file.
35688
35689         * modules/fprintf-posix: New file.
35690         * lib/fprintf.c: New file.
35691         * m4/fprintf-posix.m4: New file.
35692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35693         REPLACE_FPRINTF.
35694         * lib/stdio_.h (fprintf): New declaration.
35695         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35696         REPLACE_FPRINTF.
35697
35698 2007-03-08  Bruno Haible  <bruno@clisp.org>
35699
35700         * modules/vfprintf-posix-tests: New file.
35701         * tests/test-vfprintf-posix.sh: New file.
35702         * tests/test-vfprintf-posix.c: New file.
35703         * tests/test-fprintf-posix.h: New file.
35704         * tests/test-fprintf-posix.out: New file.
35705
35706         * modules/vfprintf-posix: New file.
35707         * lib/vfprintf.c: New file.
35708         * m4/vfprintf-posix.m4: New file.
35709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35710         REPLACE_VFPRINTF.
35711         * lib/stdio_.h (vfprintf): New declaration.
35712         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35713         REPLACE_VFPRINTF.
35714
35715 2007-03-08  Bruno Haible  <bruno@clisp.org>
35716
35717         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35718
35719 2007-03-08  Bruno Haible  <bruno@clisp.org>
35720
35721         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35722         instead of 'expr' invocations.
35723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35726         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35727         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35728         Suggested by Paul Eggert.
35729
35730 2007-03-08  Bruno Haible  <bruno@clisp.org>
35731
35732         * modules/fseterr-tests: New file.
35733         * tests/test-fseterr.c: New file.
35734
35735         * modules/fseterr: New file.
35736         * lib/fseterr.h: New file.
35737         * lib/fseterr.c: New file.
35738
35739 2007-03-08  Bruno Haible  <bruno@clisp.org>
35740
35741         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35742         * lib/getopt_.h: Likewise.
35743         * lib/mbswidth.h: Likewise.
35744         * lib/setenv.h: Likewise.
35745         * lib/vasnprintf.h: Likewise.
35746         * lib/vasprintf.h: Likewise.
35747         * lib/verror.h: Likewise.
35748         * lib/xsetenv.h: Likewise.
35749         * lib/xvasprintf.h: Likewise.
35750
35751 2007-03-08  Jim Meyering  <jim@meyering.net>
35752
35753         * users.txt: Add parted.
35754
35755         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35756
35757 2007-03-07  Bruno Haible  <bruno@clisp.org>
35758
35759         * m4/printf.m4: Make the shell script snippets copy&pastable.
35760
35761 2007-03-02  Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/netinet_in_.h: New file.
35764         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35765         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35766         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35767         (Depends-on): Add absolute-header.
35768         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35769         into netinet/in.h.
35770
35771 2007-03-03  Bruno Haible  <bruno@clisp.org>
35772
35773         * lib/sys_select_.h: New file.
35774         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35775         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35776         * modules/sys_select (Files): Add lib/sys_select_.h.
35777         (Depends-on): Add absolute-header.
35778         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35779         into sys/select.h.
35780
35781 2007-03-02  Bruno Haible  <bruno@clisp.org>
35782
35783         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35784         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35785         values.
35786         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35787         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35788         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35789         * modules/sys_socket (Depends-on): Add absolute-header.
35790         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35791         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35792         (Include): Remove requirement of inclusion of <sys/types.h>.
35793
35794 2007-03-02  Bruno Haible  <bruno@clisp.org>
35795
35796         * lib/byteswap_.h (bswap_32): Fix formula.
35797
35798 2007-03-06  Bruno Haible  <bruno@clisp.org>
35799
35800         * modules/sprintf-posix-tests: New file.
35801         * tests/test-sprintf-posix.c: New file.
35802
35803         * modules/sprintf-posix: New file.
35804         * lib/sprintf.c: New file.
35805         * m4/sprintf-posix.m4: New file.
35806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35807         REPLACE_SPRINTF.
35808         * lib/stdio_.h (sprintf): New declaration.
35809         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35810         REPLACE_SPRINTF.
35811
35812 2007-03-06  Bruno Haible  <bruno@clisp.org>
35813
35814         * modules/vsprintf-posix-tests: New file.
35815         * tests/test-vsprintf-posix.c: New file.
35816         * tests/test-sprintf-posix.h: New file.
35817
35818         * modules/vsprintf-posix: New file.
35819         * lib/vsprintf.c: New file.
35820         * m4/vsprintf-posix.m4: New file.
35821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35822         REPLACE_VSPRINTF.
35823         * lib/stdio_.h (vsprintf): New declaration.
35824         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35825         REPLACE_VSPRINTF.
35826
35827 2007-03-06  Bruno Haible  <bruno@clisp.org>
35828
35829         * modules/vsnprintf (Depend-on): Remove minmax.
35830
35831 2007-03-06  Bruno Haible  <bruno@clisp.org>
35832
35833         * modules/snprintf-posix-tests: New file.
35834         * tests/test-snprintf-posix.c: New file.
35835
35836         * modules/snprintf-posix: New file.
35837         * m4/snprintf-posix.m4: New file.
35838         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35839         gl_FUNC_SNPRINTF.
35840         (gl_FUNC_SNPRINTF): Invoke it.
35841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35842         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35843         is set.
35844         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35845
35846 2007-03-06  Bruno Haible  <bruno@clisp.org>
35847
35848         * modules/vsnprintf-posix-tests: New file.
35849         * tests/test-vsnprintf-posix.c: New file.
35850         * tests/test-snprintf-posix.h: New file.
35851
35852         * modules/vsnprintf-posix: New file.
35853         * m4/vsnprintf-posix.m4: New file.
35854         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35855         gl_FUNC_VSNPRINTF.
35856         (gl_FUNC_VSNPRINTF): Invoke it.
35857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35858         * lib/stdio_.h (vsnprintf): Define as a replacement if
35859         REPLACE_VSNPRINTF is set.
35860         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35861
35862 2007-03-06  Bruno Haible  <bruno@clisp.org>
35863
35864         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35865         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35866
35867 2007-03-06  Bruno Haible  <bruno@clisp.org>
35868
35869         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35870         (asinl): Declare also if HAVE_DECL_ASINL is set.
35871         (atanl): Declare also if HAVE_DECL_ATANL is set.
35872         (ceill): Declare also if HAVE_DECL_CEILL is set.
35873         (cosl): Declare also if HAVE_DECL_COSL is set.
35874         (expl): Declare also if HAVE_DECL_EXPL is set.
35875         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35876         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35877         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35878         (logl): Declare also if HAVE_DECL_LOGL is set.
35879         (sinl): Declare also if HAVE_DECL_SINL is set.
35880         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35881         (tanl): Declare also if HAVE_DECL_TANL is set.
35882         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35885         declaration of frexpl, ldexpl.
35886         * modules/printf-frexpl (Depends-on): Add math.
35887         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35888
35889 2007-03-05  Bruno Haible  <bruno@clisp.org>
35890
35891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35892         frexpl and ldexpl are declared.
35893         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35894
35895 2007-03-05  Bruno Haible  <bruno@clisp.org>
35896
35897         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35898         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35899
35900 2007-03-05  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/stdio_.h: Include <stddef.h>.
35903
35904 2007-03-05  Bruno Haible  <bruno@clisp.org>
35905
35906         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35907
35908 2007-03-05  Bruno Haible  <bruno@clisp.org>
35909
35910         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35911         NetBSD 4, from Ralf Wildenhues.
35912
35913 2007-03-04  Bruno Haible  <bruno@clisp.org>
35914
35915         * lib/vasprintf.h: Update #if logic for the case when the functions
35916         exist but are overridden.
35917
35918 2007-03-04  Bruno Haible  <bruno@clisp.org>
35919
35920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35921         implementations: glibc-2.4 and MacOS X 10.3.
35922         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35923         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35924         * tests/test-vasprintf-posix.c (test_function): Likewise.
35925
35926 2007-03-04  Bruno Haible  <bruno@clisp.org>
35927
35928         * modules/vasprintf-posix-tests: New file.
35929         * tests/test-vasprintf-posix.c: New file.
35930
35931         * modules/vasprintf-posix: New file.
35932         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35933         defined.
35934         * m4/vasprintf-posix.m4: New file.
35935         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35936         gl_FUNC_VASPRINTF.
35937         (gl_FUNC_VASPRINTF): Invoke it.
35938         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35939         here.
35940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35941
35942 2007-03-04  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35945         REPLACE_GETTIMEOFDAY.
35946         * modules/sys_time (Makefile.am): Likewise.
35947         * m4/sys_time_h.m4: Likewise.
35948         * m4/gettimeofday.m4: Likewise.
35949
35950 2007-03-04  Bruno Haible  <bruno@clisp.org>
35951
35952         * modules/vasnprintf-posix-tests: New file.
35953         * tests/test-vasnprintf-posix.c: New file.
35954
35955         * modules/vasnprintf-posix: New file.
35956         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35957         printf-frexpl.h.
35958         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35959         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35960         REPLACE_VASNPRINTF is defined.
35961         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35962         gl_FUNC_VASNPRINTF.
35963         (gl_FUNC_VASNPRINTF): Invoke it.
35964         * m4/vasnprintf-posix.m4: New file.
35965         * m4/printf.m4: New file.
35966
35967 2007-03-04  Bruno Haible  <bruno@clisp.org>
35968
35969         Compile progreloc.c only if --enable-relocatable is specified.
35970         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35971         if --enable-relocatable was specified.
35972         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35973         lib_SOURCES.
35974
35975 2007-03-04  Jim Meyering  <jim@meyering.net>
35976
35977         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35978         Use it consistently, rather than enumerating errno constants.
35979
35980 2007-03-04  Bruno Haible  <bruno@clisp.org>
35981
35982         * modules/xvasprintf-tests: New file.
35983         * tests/test-xvasprintf.c: New file.
35984
35985         * modules/vasprintf-tests: New file.
35986         * tests/test-vasprintf.c: New file.
35987
35988         * modules/vasnprintf-tests: New file.
35989         * tests/test-vasnprintf.c: New file.
35990
35991         * modules/vsnprintf-tests: New file.
35992         * tests/test-vsnprintf.c: New file.
35993
35994         * modules/snprintf-tests: New file.
35995         * tests/test-snprintf.c: New file.
35996
35997 2007-03-04  Bruno Haible  <bruno@clisp.org>
35998
35999         Compile relocatable.c only if --enable-relocatable is specified.
36000         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36001         gl_RELOCATABLE_LIBRARY.
36002         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36003         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36004         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36005         gl_RELOCATABLE_LIBRARY.
36006         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36007         (Makefile.am): Remove lib_SOURCES.
36008         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36009         gl_RELOCATABLE_LIBRARY.
36010         (Makefile.am): Remove lib_SOURCES.
36011         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36012         always.
36013         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36014         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36015
36016 2007-03-04  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/argmatch-tests: New file.
36019         * tests/test-argmatch.c: New file.
36020
36021         * tests/test-allocsa.c (main): Halve the number of loop runs.
36022
36023         * modules/alloca-opt-tests: New file.
36024         * tests/test-alloca-opt.c: New file.
36025
36026 2007-03-04  Jim Meyering  <jim@meyering.net>
36027
36028         Work around difference between Linux ACLs and Solaris 10 ZFS.
36029         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36030         for EINVAL.
36031
36032 2007-03-03  Bruno Haible  <bruno@clisp.org>
36033
36034         * modules/relocatable-prog (Depends-on): Add back progreloc's
36035         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36036
36037 2007-03-03  Bruno Haible  <bruno@clisp.org>
36038
36039         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36040         * modules/relocatable-lib: New file.
36041
36042 2007-03-03  Bruno Haible  <bruno@clisp.org>
36043
36044         * modules/relocatable-prog: Renamed from modules/relocatable.
36045         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36046
36047 2007-03-03  Bruno Haible  <bruno@clisp.org>
36048
36049         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36050         m4/relocatable-lib.m4.
36051         (Depends-on): Remove 'relocatable'.
36052         (configure.ac): Add gl_RELOCATABLE_NOP.
36053
36054 2007-03-03  Bruno Haible  <bruno@clisp.org>
36055
36056         * modules/relocatable-prog-wrapper: New file.
36057         * modules/relocatable (Depends-on): Add it. Remove all other
36058         dependencies except progname.
36059         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36060
36061         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36062         (gl_FUNC_STRERROR): Nop.
36063         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36064
36065         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36066         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36067
36068         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36069         (gl_FUNC_READLINK): Update.
36070
36071         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36072
36073 2007-03-03  Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36076         * modules/xreadlink (Depends-on): Add unistd.
36077         * modules/xreadlink-with-size (Depends-on): Likewise.
36078
36079 2007-03-03  Bruno Haible  <bruno@clisp.org>
36080
36081         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36082         extracted from gt_FUNC_SETENV.
36083         (gt_FUNC_SETENV): Remove macro.
36084         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36085         remove gt_FUNC_SETENV.
36086
36087 2007-03-03  Bruno Haible  <bruno@clisp.org>
36088
36089         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36090         ENABLE_RELOCATABLE here.
36091         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36092
36093 2007-03-03  Bruno Haible  <bruno@clisp.org>
36094
36095         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36096         * tests/test-rbtreehash_list.c: Include progname.h.
36097         (main): Call set_program_name.
36098
36099         * modules/rbtree-oset-tests (Depends-on): Add progname.
36100         * tests/test-rbtree_oset.c: Include progname.h.
36101         (main): Call set_program_name.
36102
36103         * modules/rbtree-list-tests (Depends-on): Add progname.
36104         * tests/test-rbtree_list.c: Include progname.h.
36105         (main): Call set_program_name.
36106
36107         * modules/linked-list-tests (Depends-on): Add progname.
36108         * tests/test-linked_list.c: Include progname.h.
36109         (main): Call set_program_name.
36110
36111 2007-03-03  Bruno Haible  <bruno@clisp.org>
36112
36113         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36114         All uses of __restrict changed to _Restrict_.
36115         * lib/glob_.h (__restrict): Remove macro.
36116
36117 2007-03-02  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/gettext (configure.ac): Require gettext infrastructure
36120         from version 0.16.1.
36121
36122 2007-03-02  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/linkedhash-list-tests (Depends-on): Add progname.
36125         * tests/test-linkedhash_list.c: Include progname.h.
36126         (main): Call set_program_name.
36127
36128         * modules/carray-list-tests (Depends-on): Add progname.
36129         * tests/test-carray_list.c: Include progname.h.
36130         (main): Call set_program_name.
36131
36132         * modules/avltreehash-list-tests (Depends-on): Add progname.
36133         * tests/test-avltreehash_list.c: Include progname.h.
36134         (main): Call set_program_name.
36135
36136         * modules/avltree-oset-tests (Depends-on): Add progname.
36137         * tests/test-avltree_oset.c: Include progname.h.
36138         (main): Call set_program_name.
36139
36140         * modules/avltree-list-tests (Depends-on): Add progname.
36141         * tests/test-avltree_list.c: Include progname.h.
36142         (main): Call set_program_name.
36143
36144         * modules/array-oset-tests (Depends-on): Add progname.
36145         * tests/test-array_oset.c: Include progname.h.
36146         (main): Call set_program_name.
36147
36148         * modules/array-list-tests (Depends-on): Add progname.
36149         * tests/test-array_list.c: Include progname.h.
36150         (main): Call set_program_name.
36151
36152         * modules/argp-tests (Depends-on): Add progname.
36153         * tests/test-argp.c: Include argp.h first. Include progname.h.
36154         (main): Call set_program_name.
36155
36156 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36157
36158         * doc/gnulib-tool.texi (Initial import): Reword description of
36159         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36160         limited effect even if defined after the first system include.
36161
36162 2007-03-01  Bruno Haible  <bruno@clisp.org>
36163
36164         * build-aux/config.libpath: Update to libtool-1.5.22.
36165         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36166
36167 2007-03-01  Bruno Haible  <bruno@clisp.org>
36168
36169         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36170         foo_CFLAGS.
36171         Reported by Ralf Wildenhues.
36172
36173 2007-03-01  Bruno Haible  <bruno@clisp.org>
36174
36175         * build-aux/install-reloc: Remove object files left over by some
36176         compilers.
36177         Reported by Ralf Wildenhues.
36178
36179 2007-03-01  Bruno Haible  <bruno@clisp.org>
36180
36181         * build-aux/install-reloc: Break long lines.
36182
36183 2007-03-01  Bruno Haible  <bruno@clisp.org>
36184
36185         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36186         Reported by Ralf Wildenhues.
36187
36188 2007-03-01  Bruno Haible  <bruno@clisp.org>
36189
36190         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36191         include ordering constraints.
36192
36193 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36194
36195         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36197         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36198         as another example.
36199         * lib/time_.h: Fix misspelling.
36200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36201         Require gl_HEADER_TIME_H_DEFAULTS.
36202         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36203         * m4/time_r.m4 (gl_TIME_R): Likewise.
36204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36205
36206 2007-03-01  Bruno Haible  <bruno@clisp.org>
36207
36208         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36209         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36210
36211 2007-03-01  Jim Meyering  <jim@meyering.net>
36212
36213         * modules/xreadlink (Maintainer): Add my name.
36214         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36215
36216 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36217             Bruno Haible  <bruno@clisp.org>
36218
36219         * build-aux/install-reloc: Compile also c-ctype.c.
36220         * build-aux/relocatable.sh.in: New file.
36221         * doc/relocatable.texi: New file.
36222         * doc/relocatable-maint.texi: New file.
36223         * doc/gnulib.texi: Include relocatable-maint.texi.
36224         * lib/progreloc.c: Include unistd.h unconditionally.
36225         * lib/relocwrapper.c: Include unistd.h unconditionally.
36226         Include c-ctype.h.
36227         (add_dotbin): Use c_tolower.
36228         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36229         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36230         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36231         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36232         to m4/relocatable-lib.m4.
36233         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36234         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36235         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36236         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36237         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36238         * modules/relocatable: New file.
36239         * modules/relocatable-lib: New file.
36240         * modules/relocatable-script: New file.
36241
36242 2007-02-28  Bruno Haible  <bruno@clisp.org>
36243
36244         Import --enable-relocatable infrastructure.
36245         * build-aux/config.libpath: New file, from GNU gettext.
36246         * build-aux/install-reloc: New file, from GNU gettext.
36247         * build-aux/reloc-ldflags: New file, from GNU gettext.
36248         * lib/relocatable.h: New file, from GNU gettext.
36249         * lib/relocatable.c: New file, from GNU gettext.
36250         * lib/relocwrapper.c: New file, from GNU gettext.
36251         * m4/relocatable.m4: New file, from GNU gettext.
36252
36253 2007-02-28  Bruno Haible  <bruno@clisp.org>
36254
36255         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36256
36257         * modules/xreadlink: New file, from GNU gettext with modifications.
36258         * lib/xreadlink.c: New file, from GNU gettext.
36259         * lib/xreadlink.h: Add comments.
36260         (xreadlink): New declaration.
36261
36262         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36263         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36264         lib/xreadlink-with-size.c.
36265         (configure.ac): Remove gl_XREADLINK invocation.
36266         (Makefile.am): Augment lib_SOURCES.
36267         * m4/xreadlink.m4: Remove file.
36268         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36269         (xreadlink_with_size): Renamed from xreadink.
36270         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36271         * modules/canonicalize (Depends-on): Replace xreadlink with
36272         xreadlink-with-size.
36273         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36274
36275 2007-02-25  Jim Meyering  <jim@meyering.net>
36276
36277         * build-aux/announce-gen: When complaining about excess arguments,
36278         list them.
36279
36280 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36281
36282         * README: Document signed integer overflow situation more
36283         accurately.
36284
36285 2007-02-25  Bruno Haible  <bruno@clisp.org>
36286
36287         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36288         'a' or 'A' conversion.
36289
36290 2007-02-25  Bruno Haible  <bruno@clisp.org>
36291
36292         * modules/filename: Renamed from modules/pathname.
36293         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36294         lib/concatpath.c with lib/concat-filename.c.
36295         (Makefile.am): Update.
36296         (Include): Replace pathname.h with filename.h.
36297         * lib/filename.h: Renamed from lib/pathname.h.
36298         (concatenated_filename): Renamed from concatenated_pathname.
36299         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36300         (concatenated_filename): Renamed from concatenated_pathname.
36301         * lib/findprog.c: Include filename.h instead of pathname.h.
36302         (find_in_path): Update.
36303         * lib/javacomp.c: Include filename.h instead of pathname.h.
36304         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36305         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36306         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36307         is_oldgcj_14_13_usable, is_javac_usable): Update.
36308         * lib/javaexec.c: Include filename.h instead of pathname.h.
36309         (execute_java_class): Update.
36310         * modules/findprog: Update.
36311         * modules/javacomp: Update.
36312         * modules/javaexec: Update.
36313         * MODULES.html.sh (File system functions): Add 'filename', remove
36314         'pathname'.
36315
36316 2007-02-25  Bruno Haible  <bruno@clisp.org>
36317
36318         * modules/printf-frexpl-tests: New file.
36319         * tests/test-printf-frexpl.c: New file.
36320
36321         * modules/printf-frexpl: New file.
36322         * lib/printf-frexpl.h: New file.
36323         * lib/printf-frexpl.c: New file.
36324         * m4/printf-frexpl.m4: New file.
36325
36326 2007-02-25  Bruno Haible  <bruno@clisp.org>
36327
36328         * modules/printf-frexp-tests: New file.
36329         * tests/test-printf-frexp.c: New file.
36330
36331         * modules/printf-frexp: New file.
36332         * lib/printf-frexp.h: New file.
36333         * lib/printf-frexp.c: New file.
36334         * m4/printf-frexp.m4: New file.
36335
36336 2007-02-25  Bruno Haible  <bruno@clisp.org>
36337
36338         Assume automake >= 1.10 for the tests.
36339         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36340         * modules/arctwo-tests: Likewise.
36341         * modules/argp-tests: Likewise.
36342         * modules/avltree-list-tests: Likewise.
36343         * modules/avltree-oset-tests: Likewise.
36344         * modules/avltreehash-list-tests: Likewise.
36345         * modules/carray-list-tests: Likewise.
36346         * modules/crc-tests: Likewise.
36347         * modules/des-tests: Likewise.
36348         * modules/gc-arcfour-tests: Likewise.
36349         * modules/gc-arctwo-tests: Likewise.
36350         * modules/gc-des-tests: Likewise.
36351         * modules/gc-hmac-md5-tests: Likewise.
36352         * modules/gc-hmac-sha1-tests: Likewise.
36353         * modules/gc-md2-tests: Likewise.
36354         * modules/gc-md4-tests: Likewise.
36355         * modules/gc-md5-tests: Likewise.
36356         * modules/gc-pbkdf2-sha1-tests: Likewise.
36357         * modules/gc-rijndael-tests: Likewise.
36358         * modules/gc-sha1-tests: Likewise.
36359         * modules/gc-tests: Likewise.
36360         * modules/getaddrinfo-tests: Likewise.
36361         * modules/hmac-md5-tests: Likewise.
36362         * modules/hmac-sha1-tests: Likewise.
36363         * modules/linked-list-tests: Likewise.
36364         * modules/linkedhash-list-tests: Likewise.
36365         * modules/lock-tests: Likewise.
36366         * modules/md2-tests: Likewise.
36367         * modules/md4-tests: Likewise.
36368         * modules/md5-tests: Likewise.
36369         * modules/rbtree-list-tests: Likewise.
36370         * modules/rbtree-oset-tests: Likewise.
36371         * modules/rbtreehash-list-tests: Likewise.
36372         * modules/read-file-tests: Likewise.
36373         * modules/rijndael-tests: Likewise.
36374         * modules/stdint-tests: Likewise.
36375         * modules/tls-tests: Likewise.
36376
36377 2007-02-24  Bruno Haible  <bruno@clisp.org>
36378
36379         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36380         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36381         function; instead check whether isnan with a double argument links.
36382         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36383         function; instead check whether isnan with a 'long double' argument
36384         links.
36385         Reported by Eric Blake <ebb9@byu.net>.
36386
36387 2007-02-24  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36390         defined.
36391         * lib/isnanl.c: Remove all code. Just include isnan.c.
36392         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36393
36394 2007-02-25  Jim Meyering  <jim@meyering.net>
36395
36396         Avoid conflicting types for 'unsetenv' on FreeBSD.
36397         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36398         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36399         in stdlib.h.
36400
36401 2007-02-24  Bruno Haible  <bruno@clisp.org>
36402
36403         * modules/isnanl-nolibm-tests: New file.
36404         * tests/test-isnanl.c: New file.
36405
36406         * modules/isnanl-nolibm: New file.
36407         * lib/isnanl.h: New file.
36408         * lib/isnanl.c: New file.
36409         * m4/isnanl.m4: New file.
36410
36411 2007-02-24  Bruno Haible  <bruno@clisp.org>
36412
36413         * modules/isnan-nolibm-tests: New file.
36414         * tests/test-isnan.c: New file.
36415
36416         * modules/isnan-nolibm: New file.
36417         * lib/isnan.h: New file.
36418         * lib/isnan.c: New file.
36419         * m4/isnan.m4: New file.
36420
36421 2007-02-24  Bruno Haible  <bruno@clisp.org>
36422
36423         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36424         assume that an exponent fits in 20 bits.
36425
36426 2007-02-24  Jim Meyering  <jim@meyering.net>
36427
36428         * m4/regex.m4: Update the description of the configure-time option,
36429         --without-included-regex, to state accurately what the defaults are,
36430         and perhaps to give people an idea why using this option is risky.
36431
36432 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36433
36434         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36435         loops on small arguments.  This attempts to avoid the problem
36436         Bruno Haible reported for AIX 4.3.2 in
36437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36438
36439 2007-02-23  Bruno Haible  <bruno@clisp.org>
36440
36441         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36442         Needed for help2man.
36443
36444 2007-02-23  Karl Berry  <karl@gnu.org>
36445
36446         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36447         exists, foo.h should be cvs-ignored, not committed.
36448
36449 2007-02-23  Eric Blake  <ebb9@byu.net>
36450
36451         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36452         * lib/stat-time.h (includes): Likewise.
36453         * lib/utimecmp.c (includes): Likewise.
36454         * lib/utimens.h (includes): Likewise.
36455         * lib/getdate.y (includes): Also include "timespec.h" for use
36456         internal to the module.
36457         * modules/utimens (Depends-on): Revert yesterday's patch.
36458         * modules/nanosleep (Depends-on): Add missing dependency.
36459
36460 2007-02-22  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/glob.c: Don't include getlogin_r.h.
36463
36464 2007-02-22  Jim Meyering  <jim@meyering.net>
36465
36466         * modules/utimens (Depends-on): Add timespec, required for
36467         utimens.h's inclusion of timespec.h.
36468
36469 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36470
36471         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36472         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36473         Schwab in
36474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36475         I'll try to think of a better way to fix the Solaris problem.
36476
36477         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36478         like glibc; on Solaris 10, it fails with errno == EINVAL.
36479         POSIX says the behavior is unspecified if the first argument is NULL,
36480         so play it safe and never pass NULL to the system getcwd.
36481
36482 2007-02-21  Jim Meyering  <jim@meyering.net>
36483
36484         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36485         of gettimeofday.  It would conflict with the one now always
36486         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36487         an IRIX 6.5 build failure.
36488
36489 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36490
36491         Minor fixups to port to Solaris 10 with Sun C 5.8.
36492         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36493         * modules/getcwd (Depends-on): Add dirfd.
36494         * lib/putenv.c (putenv): #undef it.
36495         (rpl_putenv): New decl.
36496         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36497
36498 2007-02-20  Bruno Haible  <bruno@clisp.org>
36499
36500         * modules/stdio-tests: New file.
36501         * tests/test-stdio.c: New file.
36502
36503         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36504         (Depends-on): Add stdio.
36505         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36506         (Include): Use <stdio.h> instead of vsnprintf.h.
36507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36508         HAVE_DECL_VSNPRINTF.
36509         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36510
36511         * modules/snprintf (Files): Remove lib/snprintf.h.
36512         (Depends-on): Add stdio.
36513         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36514         (Include): Use <stdio.h> instead of snprintf.h.
36515         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36516         HAVE_DECL_SNPRINTF.
36517         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36518         * lib/getaddrinfo.c: Likewise.
36519
36520         * modules/stdio: New file.
36521         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36522         * lib/snprintf.h: Remove file.
36523         * lib/vsnprintf.h: Remove file.
36524         * lib/.cppi-disable: Remove snprintf.h.
36525         * m4/stdio_h.m4: New file.
36526         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36527
36528 2007-02-20  Jim Meyering  <jim@meyering.net>
36529
36530         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36531         used by e.g., mingw.  From Bruno Haible.
36532
36533 2007-02-19  Bruno Haible  <bruno@clisp.org>
36534
36535         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36536         warnings.
36537         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36538
36539 2007-02-19  Bruno Haible  <bruno@clisp.org>
36540
36541         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36542         from mingw users.
36543
36544 2007-02-19  Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36547         warnings.
36548         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36549
36550 2007-02-19  Jim Meyering  <jim@meyering.net>
36551
36552         Don't use FD after a successful "fdopendir (fd)".
36553         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36554         Reset it by calling dirfd on the just-obtained DIR*.
36555
36556         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36557         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36558
36559 2007-02-18  Bruno Haible  <bruno@clisp.org>
36560
36561         * lib/readlink.c: Include <unistd.h>.
36562         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36563         HAVE_READLINK.
36564         * modules/readlink (Depends-on): Add unistd.
36565         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36566         (Include): Add <unistd.h>.
36567
36568         * lib/getlogin_r.h: Remove file.
36569         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36570         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36571         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36572         HAVE_DECL_GETLOGIN_R.
36573         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36574         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36575         (Include): Use <unistd.h> instead of getlogin_r.h.
36576
36577         * lib/getcwd.h: Remove file.
36578         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36579         * lib/xgetcwd.c: Likewise.
36580         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36581         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36582         * modules/getcwd (Files): Remove lib/getcwd.h.
36583         (Depends-on): Add unistd.
36584         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36585         (Include): Use <unistd.h> instad of getcwd.h.
36586
36587         * lib/ftruncate.c: Include <unistd.h> first.
36588         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36589         Set HAVE_FTRUNCATE.
36590         * modules/ftruncate (Depends-on): Add unistd.
36591         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36592
36593         * lib/fchdir.c: Include <unistd.h> first.
36594         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36596         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36597         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36598         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36599
36600         * lib/dup2.c: Include <unistd.h> first.
36601         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36602         HAVE_DUP2.
36603         * modules/dup2 (Depends-on): Add unistd.
36604         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36605
36606         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36607         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36608         REPLACE_CHOWN. Don't define chown as a macro here.
36609         * modules/chown (Depends-on): Add unistd.
36610         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36611
36612         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36613         Add definition for GL_LINK_WARNING.
36614         (chown, dup2): New declarations.
36615         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36616         link warning.
36617         (ftruncate): New declaration.
36618         (getcwd): New declaration, taken from old getcwd.h.
36619         (getlogin_r): New declaration, taken from old getlogin_r.h.
36620         (readlink): New declaration.
36621         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36622         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36623         (gl_PREREQ_UNISTD): Remove macro.
36624         (gl_UNISTD_MODULE_INDICATOR): New macro.
36625         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36626         many new variables. Don't set UNISTD_H.
36627         * modules/unistd (Description): Change.
36628         (Depends-on): Add link-warning.
36629         (configure.ac): Update.
36630         (Makefile.am): Create unistd.h always. Substitute many new variables
36631         into it.
36632
36633 2007-02-18  Bruno Haible  <bruno@clisp.org>
36634
36635         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36636         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36637         HAVE_GETSUBOPT.
36638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36639         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36640         * lib/getsubopt.h: Remove file.
36641         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36642         (Depends-on): Add stdlib.
36643         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36644         (Includes): Use <stdlib.h> instead of getsubopt.h.
36645         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36646         Set HAVE_GETSUBOPT.
36647         * lib/getsubopt.c: Don't include getsubopt.h.
36648
36649 2007-02-18  Bruno Haible  <bruno@clisp.org>
36650
36651         * modules/fchdir (Depends-on): Add dup2.
36652
36653 2007-02-18  Bruno Haible  <bruno@clisp.org>
36654
36655         * lib/stdlib_.h: Handle glibc's special invocation convention
36656         specially.
36657
36658 2007-02-18  Bruno Haible  <bruno@clisp.org>
36659
36660         * modules/stdlib-tests: New file.
36661         * tests/test-stdlib.c: New file.
36662
36663         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36664         (Depends-on): Add stdlib.
36665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36666         (Includes): Use <stdlib.h> instead of mkstemp.h.
36667         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36668         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36669         * lib/mkstemp.c: Don't include mkstemp.h.
36670         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36671         * lib/stdlib--.h: Don't include mkstemp.h.
36672
36673         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36674         (Depends-on): Add stdlib.
36675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36676         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36677         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36678         HAVE_MKDTEMP.
36679         * lib/mkdtemp.c: Don't include mkdtemp.h.
36680         * lib/clean-temp.c: Don't include mkdtemp.h.
36681
36682         * modules/exit (Files): Remove lib/exit.h.
36683         (Depends-on): Add stdlib.
36684         (Makefile.am): Remove lib_SOURCES.
36685         (Include): Use <stdlib.h> instead of exit.h.
36686         * lib/argmatch.c: Don't include exit.h.
36687         * lib/execute.c: Likewise.
36688         * lib/pagealign_alloc.c: Likewise.
36689         * lib/pipe.c: Likewise.
36690         * lib/wait-process.c: Likewise.
36691         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36692         * lib/exitfail.c: Likewise.
36693         * lib/savewd.c: Likewise.
36694         * lib/xsetenv.c: Likewise.
36695
36696         * modules/stdlib: New file.
36697         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36698         and extra comments about mkstemp().
36699         * lib/exit.h: Remove file.
36700         * lib/mkdtemp.h: Remove file.
36701         * lib/mkstemp.h: Remove file.
36702         * m4/stdlib_h.m4: New file.
36703         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36704
36705 2007-02-18  Bruno Haible  <bruno@clisp.org>
36706
36707         * modules/math-tests: New file.
36708         * tests/test-math.c: New file.
36709
36710         * modules/math: New file.
36711         * modules/mathl (Files): Remove lib/mathl.h.
36712         (Depends-on): Add math.
36713         (Makefile.am): Don't mention mathl.h.
36714         (Include): Use <math.h> instead of mathl.h.
36715         * lib/math_.h: New file.
36716         * lib/mathl.h: Remove file.
36717         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36718         mathl.h.
36719         * lib/asinl.c: Likewise.
36720         * lib/atanl.c: Likewise.
36721         * lib/ceill.c: Likewise.
36722         * lib/cosl.c: Likewise.
36723         * lib/expl.c: Likewise.
36724         * lib/floorl.c: Likewise.
36725         * lib/frexpl.c: Likewise.
36726         * lib/ldexpl.c: Likewise.
36727         * lib/logl.c: Likewise.
36728         * lib/sincosl.c: Likewise.
36729         * lib/sinl.c: Likewise.
36730         * lib/sqrtl.c: Likewise.
36731         * lib/tanl.c: Likewise.
36732         * lib/trigl.c: Likewise.
36733         * m4/math_h.m4: New file.
36734         * MODULES.html.sh (Mathematics): Add math.
36735
36736 2007-02-17  Bruno Haible  <bruno@clisp.org>
36737
36738         * modules/wctype-tests: New file.
36739         * tests/test-wctype.c: New file.
36740
36741         * modules/wchar-tests: New file.
36742         * tests/test-wchar.c: New file.
36743
36744         * modules/unistd-tests: New file.
36745         * tests/test-unistd.c: New file.
36746
36747         * modules/time-tests: New file.
36748         * tests/test-time.c: New file.
36749
36750         * modules/sysexits-tests: New file.
36751         * tests/test-sysexits.c: New file.
36752
36753         * modules/sys_time-tests: New file.
36754         * tests/test-sys_time.c: New file.
36755
36756         * modules/sys_stat-tests: New file.
36757         * tests/test-sys_stat.c: New file.
36758
36759         * modules/sys_socket-tests: New file.
36760         * tests/test-sys_socket.c: New file.
36761
36762         * modules/sys_select-tests: New file.
36763         * tests/test-sys_select.c: New file.
36764
36765         * modules/string-tests: New file.
36766         * tests/test-string.c: New file.
36767
36768         * modules/stdbool-tests: New file.
36769         * tests/test-stdbool.c: New file.
36770
36771         * modules/netinet_in-tests: New file.
36772         * tests/test-netinet_in.c: New file.
36773
36774         * modules/inttypes-tests: New file.
36775         * tests/test-inttypes.c: New file.
36776
36777         * modules/fcntl-tests: New file.
36778         * tests/test-fcntl.c: New file.
36779
36780         * modules/byteswap-tests: New file.
36781         * tests/test-byteswap.c: New file.
36782
36783         * modules/arpa_inet-tests: New file.
36784         * tests/test-arpa_inet.c: New file.
36785
36786 2007-02-17  Bruno Haible  <bruno@clisp.org>
36787
36788         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36789         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36790         if the corresponding module is not enabled. Emit link warnings if
36791         the function is used nevertheless.
36792         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36793         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36794         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36795         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36796         * modules/inttypes (Depends-on): Add link-warning.
36797         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36798         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36799         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36800         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36801         * modules/imaxdiv (configure.ac): Likewise.
36802         * modules/strtoimax (configure.ac): Likewise.
36803         * modules/strtoumax (configure.ac): Likewise.
36804
36805 2007-02-17  Bruno Haible  <bruno@clisp.org>
36806
36807         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36808         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36809         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36810         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36811
36812 2007-02-17  Bruno Haible  <bruno@clisp.org>
36813
36814         * modules/link-warning: New file.
36815         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36816         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36817         * modules/string (Depends-on): Add link-warning.
36818         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36819         string.h.
36820         * MODULES.html.sh (Support for building libraries and executables): Add
36821         link-warning.
36822
36823 2007-02-17  Bruno Haible  <bruno@clisp.org>
36824
36825         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36826         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36827         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36828         long lines.
36829
36830 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36831             Bruno Haible  <bruno@clisp.org>
36832
36833         * modules/tmpfile: New file.
36834         * lib/tmpfile.c: New file.
36835         * m4/tmpfile.m4: New file.
36836         * MODULES.html.sh (func_all_modules): New section "Input/output".
36837
36838 2007-02-15  Bruno Haible  <bruno@clisp.org>
36839
36840         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36841         (supports_delete_on_close): New function.
36842         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36843
36844 2007-02-14  Bruno Haible  <bruno@clisp.org>
36845
36846         * modules/mbspcasecmp-tests: New file.
36847         * tests/test-mbspcasecmp.sh: New file.
36848         * tests/test-mbspcasecmp.c: New file.
36849
36850         New module mbspcasecmp.
36851         * modules/mbspcasecmp: New file.
36852         * lib/mbspcasecmp.c: New file.
36853         * lib/string_.h (strncasecmp): Change warning message.
36854         (mbspcasecmp): New declaration.
36855         * m4/mbspcasecmp.m4: New file.
36856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36857         GNULIB_MBSPCASECMP.
36858         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36859         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36860
36861 2007-02-14  Bruno Haible  <bruno@clisp.org>
36862
36863         * modules/mbsncasecmp-tests: New file.
36864         * tests/test-mbsncasecmp.sh: New file.
36865         * tests/test-mbsncasecmp.c: New file.
36866
36867         New module mbsncasecmp.
36868         * modules/mbsncasecmp: New file.
36869         * lib/mbsncasecmp.c: New file.
36870         * lib/string_.h (mbsncasecmp): New declaration.
36871         * m4/mbsncasecmp.m4: New file.
36872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36873         GNULIB_MBSNCASECMP.
36874         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36875         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36876
36877 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36878
36879         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36880         Verify that it doesn't overlap with our flags.
36881         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36882         do not have the desired effect in multibyte locales; instead, use
36883         mbscasecmp.
36884         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36885         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36886         we don't require GNU fnmatch ourselves (if our users require it, they
36887         should do so explicitly).
36888
36889         Fix regex code so it doesn't rely on strcasecmp.
36890         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36891         Otherwise, include gnulib's langinfo.h.
36892         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36893         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36894         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36895         * modules/regex (FILES): Remove m4/codeset.m4.
36896         (Depends-on): Add localcharset.  Remove strcase.
36897
36898 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36899
36900         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36901         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36902
36903 2007-02-13  Bruno Haible  <bruno@clisp.org>
36904
36905         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36906         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36907
36908 2007-02-12  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36911         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36912         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36913         time warning rather than a link error.
36914
36915 2007-02-12  Bruno Haible  <bruno@clisp.org>
36916
36917         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36920
36921 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36922
36923         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36924         args, not 2.
36925
36926 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36927
36928         New module 'time', so that apps can include <time.h> as per
36929         POSIX and GNU instead of separate include files like time_r.h
36930         and timegm.h.  This implementation tries out a simpler approach
36931         for replacing decls in standard include files (as compared to
36932         the string module), somewhat as an experiment.
36933
36934         * config/srclist.txt: Comment out mktime.c for now.
36935         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36936         since it doesn't apply any more.  Use generic wording instead.
36937         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36938         'time'.
36939         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36940         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36941         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36942         Don't include <sys/types.h>; no longer needed since we assume C89.
36943         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36944         * lib/strftime.c: Likewise.
36945         * lib/time_r.c: Likewise.
36946         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36947         * lib/nanosleep.c: Include <time.h> first, to check interface.
36948         * lib/strptime.c: Likewise.
36949         * lib/time_r.c: Likewise.
36950         * lib/timegm.c: Likewise.
36951         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36952         needed.
36953         * lib/timegm.c: Don't include timegm.h; no longer needed.
36954         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36955         time.h now handles any problems in that area.
36956         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36957         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36958         that time.h defines struct timespec.
36959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36960         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36961         handles that.
36962         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36963         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36964         needed.  Set REPLACE_LOCALTIME.
36965         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36966         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36967         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36968         nanosleep; time_h.m4 now does that.  Don't require
36969         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36970         module handles this now.
36971         * modules/getdate (Depends-on): Remove timespec.  Add time.
36972         * modules/nanosleep (Depends-on): Likewise.
36973         * modules/stat-time (Depends-on): Likewise.
36974         * modules/nanosleep (Include): Include time.h, not timespec.h.
36975         * modules/strptime (Files): Remove lib/strptime.h.
36976         (Depends-on): Add extensions, time.
36977         (Include): Include time.h, not strptime.h.
36978         * modules/time_r (Files): Remove lib/time_r.h.
36979         (Depends-on): Add time.
36980         (Include): Include time.h, not time_r.h.
36981         * modules/timegm: Likewise.
36982         * modules/timespec (Description): Now does timespec-related decls
36983         of our own, instead of struct timespec itself.
36984         (Depends-on): Add time; remove extensions.
36985         (Maintainer): Add self.
36986         * modules/utimecmp (Depends-on): Add time; remove timespec.
36987         * modules/utimens (Depends-on): Likewise.
36988         * modules/xnanosleep (Depends-on): Likewise.
36989
36990 2007-02-11  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/c-strstr.c: Include allocsa.h.
36993         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36994         * lib/c-strcasestr.c: Include allocsa.h.
36995         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36996         * lib/strcasestr.c: Include allocsa.h.
36997         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36998         * lib/mbsstr.c: Include allocsa.h.
36999         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37000         allocsa/freesa instead of malloc/free.
37001         * lib/mbscasestr.c: Include allocsa.h.
37002         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37003         allocsa/freesa instead of malloc/free.
37004         * modules/c-strstr (Depends-on): Add allocsa.
37005         * modules/c-strcasestr (Depends-on): Likewise.
37006         * modules/strcasestr (Depends-on): Likewise.
37007         * modules/mbsstr (Depends-on): Likewise.
37008         * modules/mbscasestr (Depends-on): Likewise.
37009
37010 2007-02-11  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37013
37014         * modules/mbsspn-tests: New file.
37015         * tests/test-mbsspn.sh: New file.
37016         * tests/test-mbsspn.c: New file.
37017
37018 2007-02-11  Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37021
37022         * modules/mbspbrk-tests: New file.
37023         * tests/test-mbspbrk.sh: New file.
37024         * tests/test-mbspbrk.c: New file.
37025
37026 2007-02-11  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37029         unneeded cast.
37030
37031         * modules/mbscspn-tests: New file.
37032         * tests/test-mbscspn.sh: New file.
37033         * tests/test-mbscspn.c: New file.
37034
37035 2007-02-11  Bruno Haible  <bruno@clisp.org>
37036
37037         * modules/mbscasecmp-tests: New file.
37038         * tests/test-mbscasecmp.sh: New file.
37039         * tests/test-mbscasecmp.c: New file.
37040
37041 2007-02-11  Bruno Haible  <bruno@clisp.org>
37042
37043         Ensure O(n) worst-case complexity of mbscasestr.
37044         * lib/mbscasestr.c: Include stdbool.h.
37045         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37046         functions.
37047         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37048         the bookkeeping indicates that it's worth it.
37049         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37050
37051         * modules/mbscasestr-tests: New file.
37052         * tests/test-mbscasestr1.c: New file.
37053         * tests/test-mbscasestr2.sh: New file.
37054         * tests/test-mbscasestr2.c: New file.
37055         * tests/test-mbscasestr3.sh: New file.
37056         * tests/test-mbscasestr3.c: New file.
37057         * tests/test-mbscasestr4.sh: New file.
37058         * tests/test-mbscasestr4.c: New file.
37059         * m4/locale-tr.m4: New file.
37060
37061 2007-02-11  Bruno Haible  <bruno@clisp.org>
37062
37063         Ensure O(n) worst-case complexity of mbsstr.
37064         * lib/mbsstr.c: Include stdbool.h.
37065         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37066         functions.
37067         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37068         bookkeeping indicates that it's worth it.
37069         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37070
37071         * modules/mbsstr-tests: New file.
37072         * tests/test-mbsstr1.c: New file.
37073         * tests/test-mbsstr2.sh: New file.
37074         * tests/test-mbsstr2.c: New file.
37075         * tests/test-mbsstr3.sh: New file.
37076         * tests/test-mbsstr3.c: New file.
37077         * m4/locale-fr.m4: New file.
37078
37079 2007-02-11  Bruno Haible  <bruno@clisp.org>
37080
37081         * lib/mbsrchr.c (mbsrchr): Fix bug.
37082
37083         * modules/mbsrchr-tests: New file.
37084         * tests/test-mbsrchr.sh: New file.
37085         * tests/test-mbsrchr.c: New file.
37086
37087 2007-02-11  Bruno Haible  <bruno@clisp.org>
37088
37089         * lib/mbschr.c (mbschr): Fix bug.
37090
37091         * modules/mbschr-tests: New file.
37092         * tests/test-mbschr.sh: New file.
37093         * tests/test-mbschr.c: New file.
37094         * m4/locale-zh.m4: New file.
37095
37096 2007-02-11  Bruno Haible  <bruno@clisp.org>
37097
37098         Support for copying multibyte string iterators.
37099         * lib/mbiter.h: Include <string.h>.
37100         (mbiter_multi_copy): New function.
37101         (mbi_copy): New macro.
37102         * lib/mbuiter.h: Include <string.h>.
37103         (mbuiter_multi_copy): New function.
37104         (mbui_copy): New macro.
37105
37106 2007-02-11  Bruno Haible  <bruno@clisp.org>
37107
37108         New module mbslen.
37109         * modules/mbslen: New file.
37110         * lib/mbslen.c: New file.
37111         * lib/string_.h (mbslen): New declaration.
37112         * m4/mbslen.m4: New file.
37113         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37114         GNULIB_MBSLEN.
37115         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37116         * MODULES.html.sh (Internationalization functions): Add mbslen.
37117
37118 2007-02-11  Bruno Haible  <bruno@clisp.org>
37119
37120         Ensure O(n) worst-case complexity of strcasestr substitute.
37121         * lib/strcasestr.c: Include stdbool.h.
37122         (knuth_morris_pratt): New function.
37123         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37124         bookkeeping indicates that it's worth it.
37125         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37126
37127         * modules/strcasestr-tests: New file.
37128         * tests/test-strcasestr.c: New file.
37129
37130 2007-02-11  Bruno Haible  <bruno@clisp.org>
37131
37132         Ensure O(n) worst-case complexity of c_strcasestr.
37133         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37134         (knuth_morris_pratt): New function.
37135         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37136         the bookkeeping indicates that it's worth it.
37137         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37138
37139         * modules/c-strcasestr-tests: New file.
37140         * tests/test-c-strcasestr.c: New file.
37141
37142 2007-02-11  Bruno Haible  <bruno@clisp.org>
37143
37144         Ensure O(n) worst-case complexity of c_strstr.
37145         * lib/c-strstr.c: Include stdbool.h, string.h.
37146         (knuth_morris_pratt): New function.
37147         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37148         bookkeeping indicates that it's worth it.
37149         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37150
37151         * lib/c-strstr.c: Complete rewrite for maintainability.
37152
37153         * modules/c-strstr-tests: New file.
37154         * tests/test-c-strstr.c: New file.
37155
37156 2007-02-11  Bruno Haible  <bruno@clisp.org>
37157
37158         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37159         5.2.1 and earlier, whereby \055 was treated just like the range
37160         delimiter '-'.
37161         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37162
37163 2007-02-08  Bruno Haible  <bruno@clisp.org>
37164
37165         * modules/regex (Depends-on): Add stdbool.
37166         Reported by Dalibor Topic <robilad@kaffe.org>.
37167
37168 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37169
37170         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37171         Prefer returning from main to exiting from it.
37172         Remove unnecessary parens after sizeof.
37173
37174 2007-02-05  Bruno Haible  <bruno@clisp.org>
37175
37176         New module mbssep.
37177         * modules/mbssep: New file.
37178         * lib/mbssep.c: New file.
37179         * lib/string_.h (strsep): Add a conditional link warning.
37180         (mbssep): New declaration.
37181         * m4/mbssep.m4: New file.
37182         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37183         GNULIB_MBSSEP.
37184         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37185         * MODULES.html.sh (Internationalization functions): Add mbssep.
37186
37187 2007-02-05  Bruno Haible  <bruno@clisp.org>
37188
37189         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37190         Optimize search in case of 1 delimiter.
37191
37192 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37193
37194         * lib/acl.h: Include sys/types.h before sys/acl.h.
37195
37196 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37197
37198         Merge upstream fix for glibc bugzilla #3957:
37199
37200         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37201
37202         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37203         bit for RE_HAT_LISTS_NOT_NEWLINE.
37204         (build_charclass_op): Remove bogus comment.
37205
37206 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37207
37208         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37209
37210 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37211
37212         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37213         * lib/memmem.c [!defined _LIBC]: Include config.h.
37214
37215 2007-02-04  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37218         warning message.
37219
37220 2007-02-04  Bruno Haible  <bruno@clisp.org>
37221
37222         New module mbstok_r.
37223         * modules/mbstok_r: New file.
37224         * lib/mbstok_r.c: New file.
37225         * lib/string_.h (strtok_r): Change argument names to match the
37226         comments. Add a conditional link warning.
37227         (mbstok_r): New declaration.
37228         * m4/mbstok_r.m4: New file.
37229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37230         GNULIB_MBSTOK_R.
37231         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37232         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37233
37234 2007-02-04  Bruno Haible  <bruno@clisp.org>
37235
37236         New module mbsspn.
37237         * modules/mbsspn: New file.
37238         * lib/mbsspn.c: New file.
37239         * lib/string_.h (strspn): Add a conditional link warning.
37240         (mbsspn): New declaration.
37241         * m4/mbsspn.m4: New file.
37242         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37243         GNULIB_MBSSPN.
37244         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37245         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37246
37247 2007-02-04  Bruno Haible  <bruno@clisp.org>
37248
37249         New module mbspbrk.
37250         * modules/mbspbrk: New file.
37251         * lib/mbspbrk.c: New file.
37252         * lib/string_.h (strpbrk): Add a conditional link warning.
37253         (mbspbrk): New declaration.
37254         * m4/mbspbrk.m4: New file.
37255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37256         GNULIB_MBSPBRK.
37257         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37258         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37259
37260 2007-02-04  Bruno Haible  <bruno@clisp.org>
37261
37262         New module mbscspn.
37263         * modules/mbscspn: New file.
37264         * lib/mbscspn.c: New file.
37265         * lib/string_.h (strcspn): Add a conditional link warning.
37266         (mbscspn): New declaration.
37267         * m4/mbscspn.m4: New file.
37268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37269         GNULIB_MBSCSPN.
37270         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37271         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37272
37273 2007-02-04  Bruno Haible  <bruno@clisp.org>
37274
37275         New module mbscasestr, reduced goal of strcasestr.
37276         * modules/mbscasestr: New file.
37277         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37278         (mbscasestr): Renamed from strcasestr.
37279         * lib/strcasestr.c: Don't include mbuiter.h.
37280         (strcasestr): Remove support for multibyte locales.
37281         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37282         Change the conditional link warning.
37283         (mbscasestr): New declaration.
37284         * m4/mbscasestr.m4: New file.
37285         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37286         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37287         REPLACE_STRCASESTR.
37288         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37290         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37291         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37292         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37293         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37294         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37295         (Depends-on): Remove mbuiter.
37296         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37297
37298 2007-02-04  Bruno Haible  <bruno@clisp.org>
37299
37300         Simplify handling of strncasecmp.
37301         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37302         the conditional link warning.
37303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37304         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37305         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37306         * modules/strcase (configure.ac): Don't invoke
37307         gl_STRING_MODULE_INDICATOR.
37308         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37309
37310 2007-02-04  Bruno Haible  <bruno@clisp.org>
37311
37312         New module mbscasecmp, reduced goal of strcasecmp.
37313         * modules/mbscasecmp: New file.
37314         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37315         (mbscasecmp): Renamed from strcasecmp.
37316         * lib/strcasecmp.c: Don't include mbuiter.h.
37317         (strcasecmp): Remove support for multibyte locales.
37318         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37319         Change the conditional link warning.
37320         (mbscasecmp): New declaration.
37321         * m4/mbscasecmp.m4: New file.
37322         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37323         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37324         REPLACE_STRCASECMP.
37325         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37327         GNULIB_MBSCASECMP.
37328         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37329         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37330         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37331         (Depends-on): Remove mbuiter.
37332         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37333
37334 2007-02-04  Bruno Haible  <bruno@clisp.org>
37335
37336         New module mbsstr. Remove module strstr.
37337         * modules/mbsstr: New file.
37338         * modules/strstr: Remove file.
37339         * lib/mbsstr.c: Renamed from lib/strstr.c.
37340         (mbsstr): Renamed from strstr.
37341         * lib/string_.h (strstr): Remove declaration. Change the conditional
37342         link warning.
37343         (mbsstr): New declaration.
37344         * m4/mbsstr.m4: New file.
37345         * m4/strstr.m4: Remove file.
37346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37347         REPLACE_STRSTR.
37348         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37349         Don't initialize GNULIB_STRSTR.
37350         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37351         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37352         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37353         (Support for systems lacking ANSI C 89): Remove strstr.
37354
37355 2007-02-04  Bruno Haible  <bruno@clisp.org>
37356
37357         New module mbsrchr.
37358         * modules/mbsrchr: New file.
37359         * lib/mbsrchr.c: New file.
37360         * lib/string_.h (strrchr): Add a conditional link warning.
37361         (mbsrchr): New declaration.
37362         * m4/mbsrchr.m4: New file.
37363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37364         GNULIB_MBSRCHR.
37365         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37366         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37367
37368 2007-02-04  Bruno Haible  <bruno@clisp.org>
37369
37370         New module mbschr.
37371         * modules/mbschr: New file.
37372         * lib/mbschr.c: New file.
37373         * lib/string_.h (strchr): Add a conditional link warning.
37374         (mbschr): New declaration.
37375         * m4/mbschr.m4: New file.
37376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37377         GNULIB_MBSCHR.
37378         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37379         * MODULES.html.sh (Internationalization functions): Add mbschr.
37380
37381 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37382
37383         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37384
37385         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37386
37387 2007-02-04  Bruno Haible  <bruno@clisp.org>
37388
37389         New module description section 'configure.ac-early'.
37390         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37391         (func_get_autoconf_early_snippet): New function.
37392         (func_import, func_create_testdir): Use it. Remove special cases for
37393         modules 'extensions' and 'lock'.
37394         * modules/extensions (configure.ac-early): Require
37395         gl_USE_SYSTEM_EXTENSIONS.
37396         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37397
37398 2007-02-04  Bruno Haible  <bruno@clisp.org>
37399
37400         Make use of gcj-4.3's -fsource and -ftarget option.
37401         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37402         and if so try the options -fsource and -ftarget.
37403         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37404         source_version, ftarget_option, target_version arguments.
37405         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37406         (is_envjavac_oldgcj_14_14_usable): Renamed from
37407         is_envjavac_gcj_14_14_usable.
37408         (is_envjavac_oldgcj_14_13_usable): Renamed from
37409         is_envjavac_gcj_14_13_usable.
37410         (is_gcj_present): Update.
37411         (is_gcj_43, is_gcj43_usable): New functions.
37412         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37413         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37414         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37415         try the options -fsource and -ftarget.
37416
37417 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37418
37419         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37420         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37421         larger value.
37422
37423 2007-02-03  Jim Meyering  <jim@meyering.net>
37424
37425         Give tools a better chance to allocate space for very large buffers.
37426         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37427
37428         Make pwd and readlink work also when run with an unreadable parent dir
37429         on systems with openat support.
37430         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37431         provided getcwd function, even when we have openat support.
37432         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37433
37434 2007-02-02  Bruno Haible  <bruno@clisp.org>
37435
37436         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37437         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37438         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37439         portability problems if one of these functions is only used on specific
37440         platforms.
37441         Reported by Paul Eggert.
37442
37443 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37444
37445         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37446         is causing more trouble than it's curing.
37447         * lib/regex_internal.h (__mempcpy): Remove.
37448         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37449         (and make the code a tad smaller to boot).
37450         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37451
37452 2007-02-02  Jim Meyering  <jim@meyering.net>
37453
37454         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37455         section, not in the Makefile.am: one.
37456
37457 2007-02-02  Eric Blake  <ebb9@byu.net>
37458
37459         * lib/strchrnul.c: Always include config.h first.
37460
37461         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37462         gnulib strstr is not necessary here.
37463
37464 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37465
37466         * m4/socklen.m4: Fix typo.
37467
37468 2007-02-02  Eric Blake  <ebb9@byu.net>
37469
37470         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37471         * modules/netinet_in (Makefile.am): Likewise.
37472
37473 2007-02-01  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/string_.h (GL_LINK_WARNING): New macro.
37476         (strcasecmp, strstr, strcasestr): If provided by the system,
37477         conditionally define as a macro that leads to a warning instead of to
37478         an error.
37479         (strncasecmp): Conditionally define as a macro that leads to a warning.
37480
37481 2007-02-01  Karl Berry  <karl@gnu.org>
37482
37483         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37484
37485 2007-02-01  Bruno Haible  <bruno@clisp.org>
37486
37487         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37488         renamings.
37489
37490 2007-02-01  Eric Blake  <ebb9@byu.net>
37491
37492         * modules/regex (Depends-on): Revert dependence on mempcpy.
37493         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37494         module's definition of mempcpy.
37495         Reported by Paul Eggert.
37496
37497 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37498
37499         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37500         the symbol XYZ before redefining it.  This fixes a problem with
37501         programs that don't use XYZ, when compiled on systems that define
37502         XYZ to something else.
37503
37504 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37505
37506         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37507         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37508         writeable to group or other and (2) is intended to have a special
37509         mode bit that is set or cleared.  In such a case, the directory
37510         should be neither group- nor other-writeable until the special
37511         mode bits are right.
37512
37513 2007-01-31  Eric Blake  <ebb9@byu.net>
37514
37515         * modules/mountlist (Depends-on): Add strstr.
37516
37517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37518         bug.
37519         * modules/string (Makefile.am): Remove redundant replacement.
37520         * modules/regex (Depends-on): Add mempcpy.
37521
37522 2007-01-31  Bruno Haible  <bruno@clisp.org>
37523
37524         New module description field 'Link'.
37525         * gnulib-tool (func_usage): Document --extract-link-directive.
37526         (sed_extract_prog): Recognize 'Link' directive.
37527         (func_get_link_directive): New function.
37528         (func_import): Show summary of link directives.
37529         Handle --extract-link-directive option.
37530         * modules/acl (Link): New section.
37531         * modules/clock-time (Link): New section.
37532         * modules/euidaccess (Link): New section.
37533         * modules/gettext (Link): New section.
37534         * modules/iconv (Link): New section.
37535         * modules/lock (Link): New section.
37536         * modules/nanosleep (Link): New section.
37537         * modules/readline (Link): New section.
37538
37539 2007-01-27  Bruno Haible  <bruno@clisp.org>
37540
37541         Enforce the use of gnulib modules for unportable <string.h> functions.
37542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37543         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37544         (gl_HEADER_STRING_H_BODY): Require it.
37545         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37546         the symbol XYZ to one that gives a link error.
37547         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37548         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37549         * modules/mempcpy (configure.ac): Likewise.
37550         * modules/memrchr (configure.ac): Likewise.
37551         * modules/stpcpy (configure.ac): Likewise.
37552         * modules/stpncpy (configure.ac): Likewise.
37553         * modules/strcase (configure.ac): Likewise.
37554         * modules/strcasestr (configure.ac): Likewise.
37555         * modules/strchrnul (configure.ac): Likewise.
37556         * modules/strdup (configure.ac): Likewise.
37557         * modules/strndup (configure.ac): Likewise.
37558         * modules/strnlen (configure.ac): Likewise.
37559         * modules/strpbrk (configure.ac): Likewise.
37560         * modules/strsep (configure.ac): Likewise.
37561         * modules/strstr (configure.ac): Likewise.
37562         * modules/strtok_r (configure.ac): Likewise.
37563
37564 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37565
37566         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37567
37568 2007-01-30  Jim Meyering  <jim@meyering.net>
37569
37570         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37571
37572 2007-01-29  Bruno Haible  <bruno@clisp.org>
37573
37574         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37575         * lib/execute.c: Likewise.
37576         * lib/pipe.c: Likewise.
37577         * lib/printf-args.h: Likewise.
37578         * lib/printf-args.c: Likewise.
37579         * lib/printf-parse.c: Likewise.
37580         * lib/vasnprintf.c: Likewise.
37581
37582 2007-01-29  Eric Blake  <ebb9@byu.net>
37583
37584         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37585         declaration.
37586
37587 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37588
37589         * lib/strptime.h (strptime): Use 'restrict' for args where
37590         POSIX requires this.
37591         * lib/strptime.c (strptime): Likewise.
37592         Change license notice from LGPL to GPL, since gnulib-tool will
37593         change this as needed.
37594         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37595         defined.
37596         Include "strptime.h" first, to check interface.
37597         Do not #undef _LIBC and _NL_CURRENT.
37598         Do not include <stdlib.h>; no longer needed.
37599         Include "time_r.h" and declare ptime_locale_status
37600         only if _LIBC is not defined.
37601         (__P): Remove unused macro.
37602         (match_string): Bring back glibc version, but use it only if _LIBC
37603         is defined.
37604         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37605         Remove unnecessary assertion and abort() call.
37606         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37607         * m4/strptime.m4: Fix serial number comment.
37608         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37609         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37610         (Depends-on): Add time_r.
37611
37612 2007-01-29  Bruno Haible  <bruno@clisp.org>
37613
37614         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37615         strptime.
37616         * modules/strptime (Depends-on): Add stdbool.
37617         * lib/strptime.h: Include <time.h> always. Add comments.
37618
37619 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37620
37621         * modules/strptime: New file.
37622         * lib/strptime.h: New file.
37623         * lib/strptime.c: New file.
37624         * m4/strptime.m4: New file.
37625
37626 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37627
37628         * MODULES.html.sh: New module mpsort.
37629         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37630
37631         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37632         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37634         All uses changed.
37635         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37636         All uses changed.
37637         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37638         to _Restrict_.
37639         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37640         the parameter matches the prototype.
37641
37642 2007-01-28  Jim Meyering  <jim@meyering.net>
37643
37644         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37645         sys/time.h here, reverting that part of the previous patch:
37646         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37647
37648 2007-01-28  Bruno Haible  <bruno@clisp.org>
37649
37650         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37651         value of $(SYS_TIME_H).
37652         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37653         remove it conditionally, too. [added by Jim Meyering]
37654         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37656         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37657         GETTIMEOFDAY_REPLACEMENT to 1.
37658
37659 2007-01-28  Bruno Haible  <bruno@clisp.org>
37660
37661         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37662         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37664         Set UNISTD_H instead of UNISTD_H2.
37665         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37666
37667 2007-01-28  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37670         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37671
37672 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37673
37674         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37675         (func_create_testdir): Ensure C locale for `grep' and `tr'
37676         character ranges.
37677         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37678         ACLOCAL_AMFLAGS parsing state machine.
37679
37680 2007-01-27  Bruno Haible  <bruno@clisp.org>
37681
37682         * modules/unistr/base: Update.
37683
37684 2007-01-27  Bruno Haible  <bruno@clisp.org>
37685
37686         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37687         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37688         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37689         modules/unistr/u32-mbtouc.
37690         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37691         * lib/unistr.h: Update.
37692         * lib/linebreak.c: Update.
37693         * modules/unistr/u32-mbtouc: Renamed from
37694         modules/unistr/u32-mbtouc-safe.
37695         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37696         * lib/unistr.h: Update.
37697         * lib/unistr/u32-to-u8.c: Update.
37698         * lib/unistr/u32-to-u16.c: Update.
37699
37700 2007-01-27  Bruno Haible  <bruno@clisp.org>
37701
37702         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37703         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37704         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37705         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37706         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37707         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37708         modules/unistr/u16-mbtouc.
37709         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37710         * lib/unistr.h: Update.
37711         * lib/linebreak.c: Update.
37712         * modules/linebreak: Update.
37713         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37714         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37715         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37716         * modules/unistr/u16-mbtouc: Renamed from
37717         modules/unistr/u16-mbtouc-safe.
37718         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37719         * lib/unistr.h: Update.
37720         * lib/unistr/u16-to-u8.c: Update.
37721         * modules/unistr/u16-to-u8: Update.
37722         * lib/unistr/u16-to-u32.c: Update.
37723         * modules/unistr/u16-to-u32: Update.
37724
37725 2007-01-27  Bruno Haible  <bruno@clisp.org>
37726
37727         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37728         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37729         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37730         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37731         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37732         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37733         modules/unistr/u8-mbtouc.
37734         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37735         * lib/unistr.h: Update.
37736         * lib/striconveh.c: Update.
37737         * modules/striconveh: Update.
37738         * lib/linebreak.c: Update.
37739         * modules/linebreak: Update.
37740         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37741         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37742         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37743         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37744         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37745         * lib/unistr.h: Update.
37746         * lib/striconveh.c: Update.
37747         * modules/striconveh: Update.
37748         * lib/unistr/u8-to-u16.c: Update.
37749         * modules/unistr/u8-to-u16: Update.
37750         * lib/unistr/u8-to-u32.c: Update.
37751         * modules/unistr/u8-to-u32: Update.
37752
37753 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37754
37755         Sync from Libtool.
37756         * lib/argz.c: Do not include strings.h nor memory.h, include
37757         string.h unconditionally.  Patch by Simon Josefsson.
37758
37759 2007-01-27  Bruno Haible  <bruno@clisp.org>
37760
37761         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37762         from gl_HEADER_STRING_H_BODY.
37763         (gl_HEADER_STRING_H_BODY): Require it.
37764         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37765         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37766         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37767         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37769         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37772         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37773         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37775         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37776         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37777         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37778         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37779
37780 2007-01-27  Bruno Haible  <bruno@clisp.org>
37781
37782         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37783         check_PROGRAMS into noinst_PROGRAMS.
37784         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37785         check_PROGRAMS in this case.
37786         (func_import): Set for_test to false.
37787         (func_create_testdir): Set for_test to true.
37788
37789 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37790             Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37793         (Depends-on): Add string.
37794         (Includes): Use <string.h> instead of strcasestr.h.
37795         * modules/string (Makefile.am): Also substitute the value of
37796         REPLACE_STRCASESTR.
37797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37798         assume strcasestr is declared in <string.h> not <strings.h>. Also
37799         set REPLACE_STRCASESTR.
37800         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37801         REPLACE_STRCASESTR.
37802         * lib/strcasestr.h: Remove file.
37803         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37804         * lib/string_.h (strcasestr): New declaration.
37805
37806 2007-01-27  Bruno Haible  <bruno@clisp.org>
37807
37808         * lib/string_.h: Use 'extern'.
37809
37810 2007-01-27  Jim Meyering  <jim@meyering.net>
37811
37812         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37813         of set-but-not-used local, "q".
37814
37815         * lib/mempcpy.c: Include <config.h> before <string.h>.
37816         This fixes a compilation error on HP-UX, due to the system's
37817         "restrict"-using mempcpy prototype.
37818
37819 2007-01-26  Bruno Haible  <bruno@clisp.org>
37820
37821         Small optimization.
37822         * lib/javacomp.c: Include c-strstr.h.
37823          (is_envjavac_gcj): Use c_strstr instead of strstr.
37824         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37825
37826 2007-01-26  Bruno Haible  <bruno@clisp.org>
37827
37828         * MODULES.html.sh (Unicode string functions): Add the new modules.
37829
37830         * modules/uniconv/u32-strconv-to-locale: New file.
37831         * lib/uniconv/u32-strconv-to-locale.c: New file.
37832
37833         * modules/uniconv/u16-strconv-to-locale: New file.
37834         * lib/uniconv/u16-strconv-to-locale.c: New file.
37835
37836         * modules/uniconv/u8-strconv-to-locale: New file.
37837         * lib/uniconv/u8-strconv-to-locale.c: New file.
37838
37839         * modules/uniconv/u32-strconv-from-locale: New file.
37840         * lib/uniconv/u32-strconv-from-locale.c: New file.
37841
37842         * modules/uniconv/u16-strconv-from-locale: New file.
37843         * lib/uniconv/u16-strconv-from-locale.c: New file.
37844
37845         * modules/uniconv/u8-strconv-from-locale: New file.
37846         * lib/uniconv/u8-strconv-from-locale.c: New file.
37847
37848         * modules/uniconv/u32-strconv-to-enc: New file.
37849         * lib/uniconv/u32-strconv-to-enc.c: New file.
37850         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37851         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37852
37853         * modules/uniconv/u16-strconv-to-enc: New file.
37854         * lib/uniconv/u16-strconv-to-enc.c: New file.
37855         * lib/uniconv/u-strconv-to-enc.h: New file.
37856         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37857         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37858
37859         * modules/uniconv/u8-strconv-to-enc: New file.
37860         * lib/uniconv/u8-strconv-to-enc.c: New file.
37861         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37862         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37863
37864         * modules/uniconv/u32-strconv-from-enc: New file.
37865         * lib/uniconv/u32-strconv-from-enc.c: New file.
37866         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37867         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37868
37869         * modules/uniconv/u16-strconv-from-enc: New file.
37870         * lib/uniconv/u16-strconv-from-enc.c: New file.
37871         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37872         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37873
37874         * modules/uniconv/u8-strconv-from-enc: New file.
37875         * lib/uniconv/u8-strconv-from-enc.c: New file.
37876         * lib/uniconv/u-strconv-from-enc.h: New file.
37877         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37878         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37879
37880         * modules/uniconv/u32-conv-from-enc: New file.
37881         * lib/uniconv/u32-conv-from-enc.c: New file.
37882         * modules/uniconv/u32-conv-from-enc-tests: New file.
37883         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37884
37885         * modules/uniconv/u16-conv-from-enc: New file.
37886         * lib/uniconv/u16-conv-from-enc.c: New file.
37887         * lib/uniconv/u-conv-from-enc.h: New file.
37888         * modules/uniconv/u16-conv-from-enc-tests: New file.
37889         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37890
37891         * modules/uniconv/u8-conv-from-enc: New file.
37892         * lib/uniconv/u8-conv-from-enc.c: New file.
37893         * modules/uniconv/u8-conv-from-enc-tests: New file.
37894         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37895
37896         * modules/uniconv/base: New file.
37897         * lib/uniconv.h: New file.
37898
37899 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37900
37901         * doc/gnulib-tool.texi (Initial import): Update to match current
37902         behavior with strdup module.
37903         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37904         * lib/memmem.h: Remove; all uses removed.  This is now done
37905         by <string.h>.
37906         * lib/mempcpy.h: Likewise.
37907         * lib/memrchr.h: Likewise.
37908         * lib/stpcpy.h: Likewise.
37909         * lib/stpncpy.h: Likewise.
37910         * lib/strcase.h: Likewise.
37911         * lib/strchrnul.h: Likewise.
37912         * lib/strdup.h: Likewise.
37913         * lib/strndup.h: Likewise.
37914         * lib/strnlen.h: Likewise.
37915         * lib/strpbrk.h: Likewise.
37916         * lib/strsep.h: Likewise.
37917         * lib/strstr.h: Likewise.
37918         * lib/strtok_r.h: Likewise.
37919         * lib/string_.h: New file.
37920         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37921         Rely on <string.h> instead.
37922         * lib/canon-host.c: Likewise.
37923         * lib/chdir-long.c: Likewise.
37924         * lib/concatpath.c: Likewise.
37925         * lib/exclude.c: Likewise.
37926         * lib/fchdir.c: Likewise.
37927         * lib/getaddrinfo.c: Likewise.
37928         * lib/getcwd.c: Likewise.
37929         * lib/getsubopt.c: Likewise.
37930         * lib/glob.c: Likewise.
37931         * lib/hard-locale.c: Likewise.
37932         * lib/iconvme.c: Likewise.
37933         * lib/javacomp.c: Likewise.
37934         * lib/mempcpy.c: Likewise.
37935         * lib/memrchr.c: Likewise.
37936         * lib/regex_internal.h: Likewise.
37937         * lib/stpncpy.c: Likewise.
37938         * lib/strcasecmp.c: Likewise.
37939         * lib/strchrnul.c: Likewise.
37940         * lib/strdup.c: Likewise.
37941         * lib/striconv.c: Likewise.
37942         * lib/striconveh.c: Likewise.
37943         * lib/striconveha.c: Likewise.
37944         * lib/strncasecmp.c: Likewise.
37945         * lib/strndup.c: Likewise.
37946         * lib/strnlen.c: Likewise.
37947         * lib/strsep.c: Likewise.
37948         * lib/strstr.c: Likewise.
37949         * lib/strtok_r.c: Likewise.
37950         * lib/userspec.c: Likewise.
37951         * lib/w32spawn.h: Likewise.
37952         * lib/xstrndup.c: Likewise.
37953         * lib/mountlist.c (strstr): Remove decl.
37954         * m4/string_h.m4: New file.
37955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37956         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37958         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37959         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37960         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37961         Set REPLACE_STRCASECMP if necessary.
37962         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37963         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37964         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37965         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37966         HAVE_DECL_STRDUP if necessary.
37967         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37968         since gl_FUNC_STRNDUP does that now.
37969         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37970         Check for decl here...
37971         (gl_PREREQ_STRNLEN): ... not here.
37972         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37973         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37974         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37975         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37976         necessary.
37977         * modules/string: New file.
37978         * modules/memmem (Files): Remove special-purpose include file.
37979         (Depends-on): Add string.
37980         (Include): Include <string.h>, not the removed file.
37981         * modules/mempcpy: Likewise.
37982         * modules/memrchr: Likewise.
37983         * modules/stpcpy: Likewise.
37984         * modules/stpncpy: Likewise.
37985         * modules/strcase: Likewise.
37986         * modules/strchrnul: Likewise.
37987         * modules/strdup: Likewise.
37988         * modules/strndup: Likewise.
37989         * modules/strnlen: Likewise.
37990         * modules/strpbrk: Likewise.
37991         * modules/strsep: Likewise.
37992         * modules/strstr: Likewise.
37993         * modules/strtok_r: Likewise.
37994         * tests/test-dirname.c: Don't include "strdup.h", since
37995         <string.h> now suffices.
37996         * tests/test-memmem.c: Don't include "memmem.h", since
37997         <string.h> now suffices.
37998
37999 2007-01-25  Bruno Haible  <bruno@clisp.org>
38000
38001         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38002         *resultp is 0.
38003
38004         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38005         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38006         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38007         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38008
38009         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38010         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38011         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38012         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38013         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38014         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38015
38016 2007-01-24  Bruno Haible  <bruno@clisp.org>
38017
38018         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38020         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38021         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38022         gl_FUNC_FTS_CORE.
38023         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38024         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38025         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38026         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38027         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38028         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38029         gl_FUNC_FCHOWNAT.
38030         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38031         gl_FUNC_STRFTIME.
38032         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38033         Reported by Ralf Wildenhues.
38034
38035 2007-01-24  Bruno Haible  <bruno@clisp.org>
38036
38037         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38038         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38039         gl_GETADDRINFO.
38040         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38041         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38042         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38043
38044 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38047         Don't use 'exit'; just return from 'main'.
38048         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38049
38050         * lib/fnmatch_.h: Readjust white space and comments to match
38051         glibc, to avoid spurious diffs.
38052
38053 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38054
38055         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38056         2004-12-01 change by Jakub Jelinek, since this code won't compile
38057         if !LIBC.  Problem reported by Bob Proulx.
38058
38059 2007-01-23  Bruno Haible  <bruno@clisp.org>
38060
38061         * lib/striconveh.c: Include c-strcaseeq.h.
38062         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38063         * modules/striconveh (Depends-on): Add c-strcaseeq.
38064
38065 2007-01-23  Bruno Haible  <bruno@clisp.org>
38066
38067         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38068
38069         * modules/c-strcaseeq: New file.
38070         * lib/c-strcaseeq.h: New file.
38071
38072         * modules/streq: New file.
38073         * lib/streq.h: New file.
38074
38075 2007-01-23  Bruno Haible  <bruno@clisp.org>
38076
38077         * modules/striconveha-tests: New file.
38078         * tests/test-striconveha.c: New file.
38079
38080         * lib/striconveha.h: Include <stdbool.h>.
38081         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38082         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38083         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38084         (mem_iconveha): New function.
38085         (str_iconveha_notranslit): Renamed from str_iconveha.
38086         (str_iconveha): New function.
38087         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38088         c-strcase.
38089
38090 2007-01-23  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38093         encodings without forgiving before trying any encoding with handler.
38094         (str_iconveha): Try all encodings without forgiving before trying any
38095         encoding with handler.
38096
38097 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38098
38099         Import the following changes from libc.
38100
38101         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38102
38103         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38104
38105         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38106
38107         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38108         normal_bracket label.
38109
38110         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38111
38112         [BZ #361]
38113         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38114         to normal_bracket after fetching the next character.
38115
38116 2007-01-22  Bruno Haible  <bruno@clisp.org>
38117
38118         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38119         argument.
38120         * lib/striconveh.c (iconv_carefully_1): New function.
38121         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38122         argument.
38123         (str_cd_iconveh): Update.
38124         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38125         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38126         * tests/test-striconveh.c (MAGIC): New macro.
38127         (new_offsets): New function.
38128         (main): Test call with and without offsets.
38129
38130 2007-01-22  Bruno Haible  <bruno@clisp.org>
38131
38132         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38133         * modules/sys_select (Makefile.am): Likewise.
38134         * modules/sys_socket (Makefile.am): Likewise.
38135         * modules/sys_time (Makefile.am): Likewise.
38136
38137 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38138
38139         * modules/gettimeofday (License): Change from GPL to LGPL, since
38140         gettimeofday is a library function.
38141
38142 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38143
38144         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38145
38146 2007-01-21  Bruno Haible  <bruno@clisp.org>
38147
38148         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38149
38150 2007-01-21  Bruno Haible  <bruno@clisp.org>
38151
38152         * modules/striconveha: New file.
38153         * lib/striconveha.h: New file.
38154         * lib/striconveha.c: New file.
38155         * MODULES.html.sh (Internationalization functions): Add striconveha.
38156         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38157         string.
38158         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38159
38160 2007-01-21  Bruno Haible  <bruno@clisp.org>
38161
38162         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38163         * lib/striconveh.c (str_iconveh): Likewise.
38164
38165 2007-01-21  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/striconveh.h (mem_iconveh): New declaration.
38168         * lib/striconveh.c (mem_iconveh): New function.
38169         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38170
38171 2007-01-21  Bruno Haible  <bruno@clisp.org>
38172
38173         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38174
38175         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38176         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38177         original result buffer.
38178         (str_cd_iconveh): Update.
38179         * tests/test-striconveh.c (main): Update.
38180
38181         * lib/striconv.h (mem_cd_iconv): Change specification.
38182         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38183         result buffer.
38184         (str_cd_iconv): Update.
38185         * tests/test-striconv.c (main): Update.
38186
38187 2007-01-21  Bruno Haible  <bruno@clisp.org>
38188
38189         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38190
38191 2007-01-20  Jim Meyering  <jim@meyering.net>
38192
38193         * lib/userspec.c (parse_with_separator): If a user or group string
38194         starts with "+", skip the corresponding name-to-ID look-up, since
38195         such a look-up must fail: user and group names may not include "+".
38196
38197 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38198
38199         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38200         since we now assume the sys_time module.
38201         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38202         check for sys/time.h; no longer needed.
38203         * modules/poll (Depends-on): Depend on sys_time.
38204
38205 2007-01-18  Bruno Haible  <bruno@clisp.org>
38206
38207         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38208         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38209
38210         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38211         gettimeofday.
38212
38213         * tests/test-gettimeofday.c: Include <time.h>.
38214         (dummy): Remove variable.
38215
38216         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38217         gl_HEADER_SYS_TIME_H.
38218         (gl_HEADER_SYS_TIME_H): New macro.
38219
38220         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38221         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38223         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38224         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38225         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38226         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38227         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38228         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38229         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38230         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38231
38232         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38233         last change; it caused a compilation error when cross-compiling to
38234         Cygwin.
38235
38236 2007-01-18  Jim Meyering  <jim@meyering.net>
38237
38238         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38239         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38240         than the race-prone "test -d sys || mkdir sys".
38241         (configure.ac): Use AC_PROG_MKDIR_P.
38242         * modules/sys_select: Likewise.
38243         * modules/sys_socket: Likewise.
38244         * modules/sys_time: Likewise.
38245
38246 2007-01-18  Eric Blake  <ebb9@byu.net>
38247
38248         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38249         replace gettimeofday.
38250         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38251         name, to avoid infinite recursion.
38252
38253 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38254
38255         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38256         module sys_time.
38257         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38258         assume timespec.h defines struct timeval.
38259         * lib/settime.c: Likewise.
38260         * lib/utimens.c: Likewise.
38261         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38262         since we now assume the gettimeofday module.
38263         * lib/tempname.c (__gen_tempname): Likewise.
38264         * lib/gettimeofday.h: Remove.
38265         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38266         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38267         Include <time.h>, for 'time()'.
38268         (localtime_buffer_addr): Also use this workaround if
38269         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38270         to simplify the uses.  All uses changed.
38271         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38272         that #undef is inside {}, and 'const' follows type name consistently.
38273         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38274         (gettimeofday): Do not use the maximum possible value for
38275         tv->tv_usec, since that might break usages other than ls.c.
38276         Instead, we'll leave ls.c alone.  This undoes today's patch
38277         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38278         we've never observed the problem but might as well keep the
38279         canary.
38280         * lib/nanosleep.c: Include timespec.h first, for interface check.
38281         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38282         now assume the sys_time module.
38283         * lib/tempname.c: Likewise.
38284         * lib/timespec.h: Likewise.
38285         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38286         needed.
38287         * lib/strftime.c: Likewise.
38288         * lib/timespec.h: Likewise.
38289         * lib/posixtm.c: Include posixtm.h first, for interface check.
38290         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38291         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38292         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38293         * lib/sys_time_.h: New file.
38294         * lib/timespec.h (struct timespec): Use long int, not long.
38295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38296         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38297         Remove obsolescent call to AC_HEADER_TIME.
38298         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38300         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38301         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38302         Likewise.
38303         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38304         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38305         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38306         into the sys_time module.  Check for gettimeofday just once.
38307         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38308         for gettimeofday signature to just check the signature.  Merely
38309         compile it, since linking doesn't test signature.  Improve test for
38310         whether gettimeofday.o is actually needed.
38311         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38312         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38313         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38314         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38315         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38316         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38317         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38318         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38319         than worrying about sys/time.h.
38320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38321         Don't bother worrying about TIME_WITH_SYS_TIME.
38322         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38323         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38324         * m4/sys_time_h.m4: New file.
38325         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38326         Don't include sys/time.h.  Return from main rather than exiting.
38327         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38328         all uses changed.
38329         * modules/gethrxtime (Depends-on): Add sys_time.
38330         * modules/gettime (Depends-on): Likewise.
38331         * modules/gettimeofday (Depends-on): Likewise.
38332         * modules/nanosleep (Depends-on): Likewise.
38333         * modules/settime (Depends-on): Likewise.
38334         * modules/tempname (Depends-on): Likewise.
38335         * modules/utimens (Depends-on): Likewise.
38336         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38337         (Include:) Change back to <sys/time.h>.
38338         (Maintainer:) Add self.
38339         * modules/sys_time: New file.
38340         * modules/tempname (Depends-on): Add gettimeofday.
38341         * tests/test-gettimeofday.c: Include <sys/time.h>
38342         rather than gettimeofday.h.
38343
38344 2007-01-17  Bruno Haible  <bruno@clisp.org>
38345
38346         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38347         the license default to GPL.
38348         (func_create_testdir): Don't complain if a module is LGPL and its
38349         tests module depends on GPLed modules.
38350
38351 2007-01-17  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/gettimeofday.c (gettimeofday): Add code for the case
38354         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38355         maximum possible value for tv->tv_usec, rather than the minimum one.
38356
38357 2005-10-08  Martin Lambers  <marlam@marlam.de>
38358 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38359 2007-01-16  Bruno Haible  <bruno@clisp.org>
38360
38361         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38362         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38363         gl_FUNC_GETTIMEOFDAY.
38364         (Include): Add gettimeofday.h.
38365         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38366         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38367         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38368         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38369         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38370         * lib/gettimeofday.h: New file.
38371         * lib/gettimeofday.c: Include <sys/timeb.h>.
38372         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38373         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38374         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38375         fall back on time().
38376
38377         * tests/test-gettimeofday.c: New file.
38378         * modules/gettimeofday-tests: New file.
38379
38380 2007-01-16  Eric Blake  <ebb9@byu.net>
38381
38382         * modules/fnmatch (Depends-on): Depend on wchar.
38383         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38384         * m4/fnmatch.m4: Likewise.
38385         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38386         * m4/mbchar.m4: Likewise.
38387         * modules/mbswidth (Depends-on): Depend on wchar.
38388         * lib/mbswidth.c: Assume <wchar.h>.
38389         * m4/mbswidth.m4: Likewise.
38390         * modules/quotearg (Depends-on): Depend on wchar.
38391         * lib/quotearg.c: Assume <wchar.h>.
38392         * m4/quotearg.m4: Likewise.
38393         * modules/regex (Depends-on): Depend on wchar.
38394         * lib/regex_internal.h: Assume <wchar.h>.
38395         * m4/regex.m4: Likewise.
38396         * modules/stdint (Depends-on): Depend on wchar.
38397         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38398         * m4/stdint.m4: Likewise.
38399         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38400         * modules/strftime (Depends-on): Depend on wchar.
38401         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38402         * modules/strtol (Depends-on): Depend on wchar.
38403         * lib/strtol.c: Assume <wchar.h>.
38404         * modules/wcwidth (Depends-on): Depend on wchar.
38405         * lib/wcwidth.h: Assume <wchar.h>.
38406         * m4/wcwidth.m4: Likewise.
38407
38408 2007-01-16  Bruno Haible  <bruno@clisp.org>
38409
38410         * modules/csharpexec-script: New, created from...
38411         * modules/csharpexec: ... this.
38412
38413 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38414
38415         * modules/javaexec-script: New, created from...
38416         * modules/javaexec: ... this.
38417
38418 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38419
38420         * modules/poll (Dependencies): Add sys_select.
38421
38422 2007-01-15  Jim Meyering  <jim@meyering.net>
38423
38424         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38425         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38426         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38427         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38428
38429 2007-01-15  Bruno Haible  <bruno@clisp.org>
38430
38431         * modules/striconveh: New file.
38432         * lib/striconveh.h: New file.
38433         * lib/striconveh.c: New file.
38434         * MODULES.html.sh (Internationalization functions): Add striconveh.
38435
38436         * modules/striconveh-tests: New file.
38437         * tests/test-striconveh.c: New file.
38438
38439 2007-01-15  Bruno Haible  <bruno@clisp.org>
38440
38441         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38442         not from GNU libiconv or GNU libc.
38443
38444 2007-01-15  Bruno Haible  <bruno@clisp.org>
38445
38446         * doc/gnulib-intro.texi (Copyright): Explain the different license
38447         terms for module descriptions, autoconf macros, tests, documentation.
38448
38449 2007-01-14  Bruno Haible  <bruno@clisp.org>
38450
38451         * modules/striconv-tests: New file.
38452         * tests/test-striconv.c: New file.
38453
38454 2007-01-14  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/iconv-tests: New file.
38457         * tests/test-iconv.c: New file.
38458
38459 2007-01-14  Bruno Haible  <bruno@clisp.org>
38460
38461         * gnulib-tool (func_get_license): For test modules, use the license of
38462         the main module.
38463
38464 2007-01-14  Bruno Haible  <bruno@clisp.org>
38465
38466         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38467         if iconv is found to exist.
38468
38469 2007-01-14  Bruno Haible  <bruno@clisp.org>
38470
38471         * modules/c-ctype-tests: New file.
38472         * tests/test-c-ctype.c: New file.
38473
38474 2007-01-14  Bruno Haible  <bruno@clisp.org>
38475
38476         * modules/binary-io-tests: New file.
38477         * tests/test-binary-io.sh: New file.
38478         * tests/test-binary-io.c: New file.
38479
38480 2007-01-14  Bruno Haible  <bruno@clisp.org>
38481
38482         * modules/array-oset-tests: New file.
38483         * tests/test-array_oset.c: New file.
38484
38485 2007-01-14  Bruno Haible  <bruno@clisp.org>
38486
38487         * modules/array-list-tests: New file.
38488         * tests/test-array_list.c: New file.
38489
38490 2007-01-14  Bruno Haible  <bruno@clisp.org>
38491
38492         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38493         and make.
38494         Reported by Simon Josefsson in
38495         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38496
38497 2007-01-14  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/allocsa-tests: New file.
38500         * tests/test-allocsa.c: New file.
38501
38502 2007-01-14  Bruno Haible  <bruno@clisp.org>
38503
38504         * modules/fchdir (Depends-on): Add absolute-header.
38505         * modules/unistd (Depends-on): Likewise.
38506
38507 2006-12-30  Bruno Haible  <bruno@clisp.org>
38508
38509         * modules/fchdir: New file.
38510         * modules/unistd (Files): Add lib/unistd_.h.
38511         (Makefile.am): Generate unistd.h from unistd_.h.
38512         * lib/fchdir.c: New file.
38513         * lib/dirent_.h: New file.
38514         * lib/unistd_.h: New file.
38515         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38516         * m4/fchdir.m4: New file.
38517         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38518         (gl_HEADER_UNISTD): Invoke it.
38519         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38520         function.
38521         * lib/backupfile.c (opendir, closedir): Undefine.
38522         * lib/chown.c (open, close): Undefine.
38523         * lib/clean-temp.c (open, close): Undefine.
38524         * lib/copy-file.c (open, close): Undefine.
38525         * lib/execute.c (open, close): Undefine.
38526         * lib/fsusage.c (open, close): Undefine.
38527         * lib/gc-gnulib.c (open, close): Undefine.
38528         * lib/getcwd.c (opendir, closedir): Undefine.
38529         * lib/glob.c (opendir, closedir): Undefine.
38530         * lib/javacomp.c (open, close): Undefine.
38531         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38532         * lib/openat-proc.c (open, close): Undefine.
38533         * lib/pagealign_alloc.c (open, close): Undefine.
38534         * lib/pipe.c (open, close): Undefine.
38535         * lib/progreloc.c (open, close): Undefine.
38536         * lib/savedir.c (opendir, closedir): Undefine.
38537         * lib/utime.c (open, close): Undefine.
38538         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38539
38540 2007-01-10  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38543
38544 2007-01-12  Eric Blake  <ebb9@byu.net>
38545
38546         Provide a robust <wchar.h>.  Further simplifications are now
38547         possible in other modules, but not included here.
38548         * modules/wchar: New module.
38549         * m4/wchar.m4: New file.
38550         * lib/wchar_.h: Likewise.
38551         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38552         of the new module.
38553         * MODULES.html.sh (Extended multibyte and wide character utilities):
38554         New section.
38555
38556 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38557
38558         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38559         to a reasonable default for memory allocation.
38560         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38561         file system that reports garbage st_size values for symlinks.
38562         Problem reported by Liyang Hu.
38563
38564 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38565
38566         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38567         Emacs .#* auto-save files).
38568
38569 2007-01-11  Bruno Haible  <bruno@clisp.org>
38570
38571         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38572         directory.
38573
38574 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38575
38576         Use @...@ consistently in lib/wctype_.h.
38577         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38578         on it being set to 1 or 0.
38579         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38580         go back to AC_SUBSTing it.
38581         * modules/wctype (Makefile.am): Undo previous change.
38582
38583 2007-01-10  Eric Blake  <ebb9@byu.net>
38584
38585         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38586         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38587         * modules/wctype (Makefile.am): Likewise.
38588         Reported by Chris McGuire.
38589
38590 2007-01-10  Jim Meyering  <jim@meyering.net>
38591
38592         fts.c: a small readability/maintainability improvement
38593         * lib/fts.c (fts_read): Make this code slightly more readable and
38594         maintainable by hoisting the "sp->fts_cur = p" assignments to
38595         immediately follow the statements that set P.  Derived from
38596         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38597
38598 2007-01-10  Eric Blake  <ebb9@byu.net>
38599
38600         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38601         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38603         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38604         Reported by Chris McGuire.
38605
38606 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38607
38608         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38609         in sed script.
38610
38611 2007-01-09  Bruno Haible  <bruno@clisp.org>
38612
38613         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38614         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38615         variables.
38616         (func_module): Use them.
38617
38618 2007-01-09  Bruno Haible  <bruno@clisp.org>
38619
38620         * modules/unistr/base: New file.
38621         * lib/unistr.h: New file.
38622
38623         * modules/unistr/u8-to-u16: New file.
38624         * lib/unistr/u8-to-u16.c: New file.
38625
38626         * modules/unistr/u8-to-u32: New file.
38627         * lib/unistr/u8-to-u32.c: New file.
38628
38629         * modules/unistr/u16-to-u8: New file.
38630         * lib/unistr/u16-to-u8.c: New file.
38631
38632         * modules/unistr/u16-to-u32: New file.
38633         * lib/unistr/u16-to-u32.c: New file.
38634
38635         * modules/unistr/u32-to-u8: New file.
38636         * lib/unistr/u32-to-u8.c: New file.
38637
38638         * modules/unistr/u32-to-u16: New file.
38639         * lib/unistr/u32-to-u16.c: New file.
38640
38641         * modules/unistr/u8-check: New file.
38642         * modules/unistr/u16-check: New file.
38643         * modules/unistr/u32-check: New file.
38644         * lib/unistr/u8-check.c: New file.
38645         * lib/unistr/u16-check.c: New file.
38646         * lib/unistr/u32-check.c: New file.
38647
38648         * modules/unistr/u8-chr: New file.
38649         * modules/unistr/u16-chr: New file.
38650         * modules/unistr/u32-chr: New file.
38651         * lib/unistr/u8-chr.c: New file.
38652         * lib/unistr/u16-chr.c: New file.
38653         * lib/unistr/u32-chr.c: New file.
38654
38655         * modules/unistr/u8-cmp: New file.
38656         * modules/unistr/u16-cmp: New file.
38657         * modules/unistr/u32-cmp: New file.
38658         * lib/unistr/u8-cmp.c: New file.
38659         * lib/unistr/u16-cmp.c: New file.
38660         * lib/unistr/u32-cmp.c: New file.
38661
38662         * modules/unistr/u8-cpy: New file.
38663         * modules/unistr/u16-cpy: New file.
38664         * modules/unistr/u32-cpy: New file.
38665         * lib/unistr/u8-cpy.c: New file.
38666         * lib/unistr/u16-cpy.c: New file.
38667         * lib/unistr/u32-cpy.c: New file.
38668         * lib/unistr/u-cpy.h: New file.
38669
38670         * modules/unistr/u8-cpy-alloc: New file.
38671         * modules/unistr/u16-cpy-alloc: New file.
38672         * modules/unistr/u32-cpy-alloc: New file.
38673         * lib/unistr/u8-cpy-alloc.c: New file.
38674         * lib/unistr/u16-cpy-alloc.c: New file.
38675         * lib/unistr/u32-cpy-alloc.c: New file.
38676         * lib/unistr/u-cpy-alloc.h: New file.
38677
38678         * modules/unistr/u8-endswith: New file.
38679         * modules/unistr/u16-endswith: New file.
38680         * modules/unistr/u32-endswith: New file.
38681         * lib/unistr/u8-endswith.c: New file.
38682         * lib/unistr/u16-endswith.c: New file.
38683         * lib/unistr/u32-endswith.c: New file.
38684         * lib/unistr/u-endswith.h: New file.
38685
38686         * modules/unistr/u8-mblen: New file.
38687         * modules/unistr/u16-mblen: New file.
38688         * modules/unistr/u32-mblen: New file.
38689         * lib/unistr/u8-mblen.c: New file.
38690         * lib/unistr/u16-mblen.c: New file.
38691         * lib/unistr/u32-mblen.c: New file.
38692
38693         * modules/unistr/u8-mbtouc: New file.
38694         * modules/unistr/u16-mbtouc: New file.
38695         * modules/unistr/u32-mbtouc: New file.
38696         * lib/unistr/u8-mbtouc.c: New file.
38697         * lib/unistr/u16-mbtouc.c: New file.
38698         * lib/unistr/u32-mbtouc.c: New file.
38699
38700         * modules/unistr/u8-mbtouc-safe: New file.
38701         * modules/unistr/u16-mbtouc-safe: New file.
38702         * modules/unistr/u32-mbtouc-safe: New file.
38703         * lib/unistr/u8-mbtouc-safe.c: New file.
38704         * lib/unistr/u16-mbtouc-safe.c: New file.
38705         * lib/unistr/u32-mbtouc-safe.c: New file.
38706
38707         * modules/unistr/u8-move: New file.
38708         * modules/unistr/u16-move: New file.
38709         * modules/unistr/u32-move: New file.
38710         * lib/unistr/u8-move.c: New file.
38711         * lib/unistr/u16-move.c: New file.
38712         * lib/unistr/u32-move.c: New file.
38713         * lib/unistr/u-move.h: New file.
38714
38715         * modules/unistr/u8-next: New file.
38716         * modules/unistr/u16-next: New file.
38717         * modules/unistr/u32-next: New file.
38718         * lib/unistr/u8-next.c: New file.
38719         * lib/unistr/u16-next.c: New file.
38720         * lib/unistr/u32-next.c: New file.
38721
38722         * modules/unistr/u8-prev: New file.
38723         * modules/unistr/u16-prev: New file.
38724         * modules/unistr/u32-prev: New file.
38725         * lib/unistr/u8-prev.c: New file.
38726         * lib/unistr/u16-prev.c: New file.
38727         * lib/unistr/u32-prev.c: New file.
38728
38729         * modules/unistr/u8-set: New file.
38730         * modules/unistr/u16-set: New file.
38731         * modules/unistr/u32-set: New file.
38732         * lib/unistr/u8-set.c: New file.
38733         * lib/unistr/u16-set.c: New file.
38734         * lib/unistr/u32-set.c: New file.
38735         * lib/unistr/u-set.h: New file.
38736
38737         * modules/unistr/u8-startswith: New file.
38738         * modules/unistr/u16-startswith: New file.
38739         * modules/unistr/u32-startswith: New file.
38740         * lib/unistr/u8-startswith.c: New file.
38741         * lib/unistr/u16-startswith.c: New file.
38742         * lib/unistr/u32-startswith.c: New file.
38743         * lib/unistr/u-startswith.h: New file.
38744
38745         * modules/unistr/u8-stpcpy: New file.
38746         * modules/unistr/u16-stpcpy: New file.
38747         * modules/unistr/u32-stpcpy: New file.
38748         * lib/unistr/u8-stpcpy.c: New file.
38749         * lib/unistr/u16-stpcpy.c: New file.
38750         * lib/unistr/u32-stpcpy.c: New file.
38751         * lib/unistr/u-stpcpy.h: New file.
38752
38753         * modules/unistr/u8-stpncpy: New file.
38754         * modules/unistr/u16-stpncpy: New file.
38755         * modules/unistr/u32-stpncpy: New file.
38756         * lib/unistr/u8-stpncpy.c: New file.
38757         * lib/unistr/u16-stpncpy.c: New file.
38758         * lib/unistr/u32-stpncpy.c: New file.
38759         * lib/unistr/u-stpncpy.h: New file.
38760
38761         * modules/unistr/u8-strcat: New file.
38762         * modules/unistr/u16-strcat: New file.
38763         * modules/unistr/u32-strcat: New file.
38764         * lib/unistr/u8-strcat.c: New file.
38765         * lib/unistr/u16-strcat.c: New file.
38766         * lib/unistr/u32-strcat.c: New file.
38767         * lib/unistr/u-strcat.h: New file.
38768
38769         * modules/unistr/u8-strchr: New file.
38770         * modules/unistr/u16-strchr: New file.
38771         * modules/unistr/u32-strchr: New file.
38772         * lib/unistr/u8-strchr.c: New file.
38773         * lib/unistr/u16-strchr.c: New file.
38774         * lib/unistr/u32-strchr.c: New file.
38775
38776         * modules/unistr/u8-strcmp: New file.
38777         * modules/unistr/u16-strcmp: New file.
38778         * modules/unistr/u32-strcmp: New file.
38779         * lib/unistr/u8-strcmp.c: New file.
38780         * lib/unistr/u16-strcmp.c: New file.
38781         * lib/unistr/u32-strcmp.c: New file.
38782
38783         * modules/unistr/u8-strcpy: New file.
38784         * modules/unistr/u16-strcpy: New file.
38785         * modules/unistr/u32-strcpy: New file.
38786         * lib/unistr/u8-strcpy.c: New file.
38787         * lib/unistr/u16-strcpy.c: New file.
38788         * lib/unistr/u32-strcpy.c: New file.
38789         * lib/unistr/u-strcpy.h: New file.
38790
38791         * modules/unistr/u8-strcspn: New file.
38792         * modules/unistr/u16-strcspn: New file.
38793         * modules/unistr/u32-strcspn: New file.
38794         * lib/unistr/u8-strcspn.c: New file.
38795         * lib/unistr/u16-strcspn.c: New file.
38796         * lib/unistr/u32-strcspn.c: New file.
38797         * lib/unistr/u-strcspn.h: New file.
38798
38799         * modules/unistr/u8-strdup: New file.
38800         * modules/unistr/u16-strdup: New file.
38801         * modules/unistr/u32-strdup: New file.
38802         * lib/unistr/u8-strdup.c: New file.
38803         * lib/unistr/u16-strdup.c: New file.
38804         * lib/unistr/u32-strdup.c: New file.
38805         * lib/unistr/u-strdup.h: New file.
38806
38807         * modules/unistr/u8-strlen: New file.
38808         * modules/unistr/u16-strlen: New file.
38809         * modules/unistr/u32-strlen: New file.
38810         * lib/unistr/u8-strlen.c: New file.
38811         * lib/unistr/u16-strlen.c: New file.
38812         * lib/unistr/u32-strlen.c: New file.
38813         * lib/unistr/u-strlen.h: New file.
38814
38815         * modules/unistr/u8-strmblen: New file.
38816         * modules/unistr/u16-strmblen: New file.
38817         * modules/unistr/u32-strmblen: New file.
38818         * lib/unistr/u8-strmblen.c: New file.
38819         * lib/unistr/u16-strmblen.c: New file.
38820         * lib/unistr/u32-strmblen.c: New file.
38821
38822         * modules/unistr/u8-strmbtouc: New file.
38823         * modules/unistr/u16-strmbtouc: New file.
38824         * modules/unistr/u32-strmbtouc: New file.
38825         * lib/unistr/u8-strmbtouc.c: New file.
38826         * lib/unistr/u16-strmbtouc.c: New file.
38827         * lib/unistr/u32-strmbtouc.c: New file.
38828
38829         * modules/unistr/u8-strncat: New file.
38830         * modules/unistr/u16-strncat: New file.
38831         * modules/unistr/u32-strncat: New file.
38832         * lib/unistr/u8-strncat.c: New file.
38833         * lib/unistr/u16-strncat.c: New file.
38834         * lib/unistr/u32-strncat.c: New file.
38835         * lib/unistr/u-strncat.h: New file.
38836
38837         * modules/unistr/u8-strncmp: New file.
38838         * modules/unistr/u16-strncmp: New file.
38839         * modules/unistr/u32-strncmp: New file.
38840         * lib/unistr/u8-strncmp.c: New file.
38841         * lib/unistr/u16-strncmp.c: New file.
38842         * lib/unistr/u32-strncmp.c: New file.
38843
38844         * modules/unistr/u8-strncpy: New file.
38845         * modules/unistr/u16-strncpy: New file.
38846         * modules/unistr/u32-strncpy: New file.
38847         * lib/unistr/u8-strncpy.c: New file.
38848         * lib/unistr/u16-strncpy.c: New file.
38849         * lib/unistr/u32-strncpy.c: New file.
38850         * lib/unistr/u-strncpy.h: New file.
38851
38852         * modules/unistr/u8-strnlen: New file.
38853         * modules/unistr/u16-strnlen: New file.
38854         * modules/unistr/u32-strnlen: New file.
38855         * lib/unistr/u8-strnlen.c: New file.
38856         * lib/unistr/u16-strnlen.c: New file.
38857         * lib/unistr/u32-strnlen.c: New file.
38858         * lib/unistr/u-strnlen.h: New file.
38859
38860         * modules/unistr/u8-strpbrk: New file.
38861         * modules/unistr/u16-strpbrk: New file.
38862         * modules/unistr/u32-strpbrk: New file.
38863         * lib/unistr/u8-strpbrk.c: New file.
38864         * lib/unistr/u16-strpbrk.c: New file.
38865         * lib/unistr/u32-strpbrk.c: New file.
38866         * lib/unistr/u-strpbrk.h: New file.
38867
38868         * modules/unistr/u8-strrchr: New file.
38869         * modules/unistr/u16-strrchr: New file.
38870         * modules/unistr/u32-strrchr: New file.
38871         * lib/unistr/u8-strrchr.c: New file.
38872         * lib/unistr/u16-strrchr.c: New file.
38873         * lib/unistr/u32-strrchr.c: New file.
38874
38875         * modules/unistr/u8-strspn: New file.
38876         * modules/unistr/u16-strspn: New file.
38877         * modules/unistr/u32-strspn: New file.
38878         * lib/unistr/u8-strspn.c: New file.
38879         * lib/unistr/u16-strspn.c: New file.
38880         * lib/unistr/u32-strspn.c: New file.
38881         * lib/unistr/u-strspn.h: New file.
38882
38883         * modules/unistr/u8-strstr: New file.
38884         * modules/unistr/u16-strstr: New file.
38885         * modules/unistr/u32-strstr: New file.
38886         * lib/unistr/u8-strstr.c: New file.
38887         * lib/unistr/u16-strstr.c: New file.
38888         * lib/unistr/u32-strstr.c: New file.
38889         * lib/unistr/u-strstr.h: New file.
38890
38891         * modules/unistr/u8-strtok: New file.
38892         * modules/unistr/u16-strtok: New file.
38893         * modules/unistr/u32-strtok: New file.
38894         * lib/unistr/u8-strtok.c: New file.
38895         * lib/unistr/u16-strtok.c: New file.
38896         * lib/unistr/u32-strtok.c: New file.
38897         * lib/unistr/u-strtok.h: New file.
38898
38899         * modules/unistr/u8-uctomb: New file.
38900         * modules/unistr/u16-uctomb: New file.
38901         * modules/unistr/u32-uctomb: New file.
38902         * lib/unistr/u8-uctomb.c: New file.
38903         * lib/unistr/u16-uctomb.c: New file.
38904         * lib/unistr/u32-uctomb.c: New file.
38905
38906         * MODULES.html.sh (Unicode string functions): Add the new modules.
38907
38908 2007-01-08  Bruno Haible  <bruno@clisp.org>
38909
38910         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38911         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38912         subdirectories.
38913
38914 2007-01-08  Karl Berry  <karl@gnu.org>
38915
38916         * doc/error.texi: mention that main() fns must set program_name
38917         when progname is used.
38918
38919 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38920
38921         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38922         WCTYPE_H is empty, for the benefit of builds from non-distclean
38923         directories.  Problem reported by Eric Blake in
38924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38925
38926 2007-01-08  Bruno Haible  <bruno@clisp.org>
38927
38928         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38929         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38930         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38931         PROVIDE_CANONICALIZE_FILENAME_MODE.
38932         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38933
38934 2007-01-08  Bruno Haible  <bruno@clisp.org>
38935
38936         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38937         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38938         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38939         * lib/fts.c: Likewise.
38940         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38941
38942 2006-12-25  Bruno Haible  <bruno@clisp.org>
38943
38944         * modules/utf8-ucs4-safe: New file.
38945         * lib/utf8-ucs4-safe.h: New file.
38946         * lib/unistr/utf8-ucs4-safe.c: New file.
38947
38948         * modules/utf16-ucs4-safe: New file.
38949         * lib/utf16-ucs4-safe.h: New file.
38950         * lib/unistr/utf16-ucs4-safe.c: New file.
38951
38952         * MODULES.html.sh (Unicode string functions): Add the new modules.
38953
38954 2007-01-08  Bruno Haible  <bruno@clisp.org>
38955
38956         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38957         (Depends-on): Add unitypes.
38958         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38959         (u8_mbtouc_aux): Move out to separate file.
38960         (u8_mbtouc): Use ucs4_t, uint8_t types.
38961         * lib/unistr/utf8-ucs4.c: New file.
38962
38963         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38964         (Depends-on): Add unitypes.
38965         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38966         (u16_mbtouc_aux): Move out to separate file.
38967         (u16_mbtouc): Use ucs4_t, uint16_t types.
38968         * lib/unistr/utf16-ucs4.c: New file.
38969
38970         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38971         (Depends-on): Add unitypes.
38972         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38973         (u8_uctomb_aux): Move out to separate file.
38974         (u8_uctomb): Use ucs4_t, uint8_t types.
38975         * lib/unistr/ucs4-utf8.c: New file.
38976
38977         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38978         (Depends-on): Add unitypes.
38979         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38980         (u16_uctomb_aux): Move out to separate file.
38981         (u16_uctomb): Use ucs4_t, uint16_t types.
38982         * lib/unistr/ucs4-utf16.c: New file.
38983
38984 2006-12-25  Bruno Haible  <bruno@clisp.org>
38985
38986         * modules/unitypes: New file.
38987         * lib/unitypes.h: New file.
38988         * MODULES.html.sh (func_all_modules): New section "Unicode string
38989         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38990         this section. Add unitypes.
38991
38992 2007-01-08  Bruno Haible  <bruno@clisp.org>
38993
38994         Avoid variable names that conflict with those from libtool.
38995         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38996         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38997         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38998         library_names_spec to acl_library_names_spec, hardcode_* to
38999         acl_hardcode_*.
39000         Reported by Ralf Wildenhues.
39001
39002 2007-01-08  Bruno Haible  <bruno@clisp.org>
39003
39004         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39005         definition.
39006         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39007         definition.
39008         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39009         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39010         definition.
39011         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39012         definition.
39013         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39014         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39015         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39016         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39017         definition.
39018         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39019         definition.
39020         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39021         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39022         GC_USE_<algorithm>.
39023         * lib/gc-libgcrypt.c: Likewise.
39024         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39025         * modules/gc-arctwo (configure.ac): Likewise.
39026         * modules/gc-des (configure.ac): Likewise.
39027         * modules/gc-hmac-md5 (configure.ac): Likewise.
39028         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39029         * modules/gc-md2 (configure.ac): Likewise.
39030         * modules/gc-md4 (configure.ac): Likewise.
39031         * modules/gc-md5 (configure.ac): Likewise.
39032         * modules/gc-random (configure.ac): Likewise.
39033         * modules/gc-rijndael (configure.ac): Likewise.
39034         * modules/gc-sha1 (configure.ac): Likewise.
39035
39036 2007-01-08  Bruno Haible  <bruno@clisp.org>
39037
39038         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39039         macro definition.
39040         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39041         definition.
39042         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39043         definition.
39044         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39045         * modules/fcntl-safer (configure.ac): Likewise.
39046         * modules/fopen-safer (configure.ac): Likewise.
39047         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39048         GNULIB_FWRITEERROR macro definition.
39049
39050 2007-01-08  Bruno Haible  <bruno@clisp.org>
39051
39052         * m4/gnulib-common.m4: New file.
39053         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39054         (func_get_filelist): Add m4/gnulib-common.m4.
39055
39056 2007-01-08  Bruno Haible  <bruno@clisp.org>
39057
39058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39059         command.
39060
39061 2007-01-08  Jim Meyering  <jim@meyering.net>
39062
39063         Use a more robust test for a "can't happen" condition.
39064         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39065         narrowed the st_size value.  Presuming the "can't happen" condition
39066         is true, that narrowing could conceivably convert an invalid st_size
39067         value into a valid one.  Instead, use a change based on Matthew
39068         Woehlke's original patch.
39069
39070         Slight readability improvement: use an assert-like macro
39071         in place of literal "abort ()" uses.
39072         * lib/fts.c (fts_assert): Define.
39073         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39074         Use this macro instead of a bare 'abort'.
39075
39076 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39077
39078         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39079         simply work around them.
39080         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39081         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39082         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39083         declaring.
39084         Don't bother to define as macros, since the standard doesn't require it.
39085         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39086         longer worry about IRIX 5.3.
39087         (HAVE_WCTYPE_CTMP_BUG): Remove.
39088
39089 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39090
39091         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39092         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39093         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39094         Problems reported by Georg Schwarz for IRIX 5.3.
39095
39096         * gnulib-tool (autoconf_minversion): Take the maximum version number
39097         found, not the minimum.  Problem reported by James Youngman.
39098
39099 2007-01-03  Karl Berry  <karl@gnu.org>
39100
39101         * doc/error.texi: new file, explaining interaction with progname.
39102         * doc/gnulib.texi: include it.  Update copyright.
39103
39104 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39105
39106         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39107         AC_CANONICAL_HOST, to improve autobuild outputs.
39108
39109 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39110             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39111
39112         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39113         sockets, server sockets, and other file descriptors.  Count errors
39114         to compute the return value.  Reorder the code a bit to be easier
39115         to follow.  Don't set event bits that were not requested (except
39116         POLLERR and POLLHUP).
39117
39118 2007-01-01  Bruno Haible  <bruno@clisp.org>
39119
39120         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39121
39122 2007-01-03  Jim Meyering  <jim@meyering.net>
39123
39124         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39125
39126 2007-01-02  Bruno Haible  <bruno@clisp.org>
39127
39128         * modules/settime (Include): Require timespec.h.
39129         * modules/nanosleep (Include): Likewise.
39130
39131 2007-01-01  Bruno Haible  <bruno@clisp.org>
39132
39133         * gnulib-tool (func_emit_copyright_notice): Bump year.
39134         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39135
39136 2007-01-01  Bruno Haible  <bruno@clisp.org>
39137
39138         Improve support for OpenBSD.
39139         * build-aux/config.rpath (libname_spec): Export.
39140         (library_names_spec): New variable. Export.
39141         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39142         library_names_spec from the config.rpath output. Locate shared library
39143         through the name pattern in library_names_spec.
39144
39145 2007-01-01  Eric Blake  <ebb9@byu.net>
39146
39147         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39148
39149 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39150
39151         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39152         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39153         assume the C locale, and avoid an "eval" that could cause trouble.
39154         Problem with SORT reported by Bob Proulx.
39155
39156         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39157         Define.  Trivial patch from Henning Nielsen Lund, originally
39158         sent to bug-grep@gnu.org today.
39159
39160 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39161
39162         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39163         struct stat.  Problem reported by Henning Nielsen Lund.
39164         * lib/acl.c: Include acl.h first, to check interface.  Don't
39165         bother to include sys/types.h and sys/stat.h again.
39166
39167 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39168
39169         Import the following change from libc; problem reported by
39170         Sven Verdoolaege.
39171
39172         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39173
39174         [BZ #1373]
39175         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39176
39177 2006-12-28  Jim Meyering  <jim@meyering.net>
39178
39179         * build-aux/announce-gen: Do not assume that the package
39180         builds any of tar.gz, tar.bz2, and .xdelta files.
39181         Suggestion from Simon Josefsson.
39182
39183 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39184
39185         * modules/announce-gen: New file.
39186
39187 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39188
39189         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39190         handles its gotchas now.
39191         * lib/mbswidth.c: Likewise.
39192         * lib/wcwidth.h: Likewise.
39193         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39194         and iswcntrl; the wctype module does this stuff now.
39195         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39197         * modules/mbchar (Depends-on): Add wctype.
39198         * modules/mbswidth (Depends-on): Likewise.
39199         * modules/wcwidth (Depends-on): Likewise.
39200
39201 2006-12-27  Eric Blake  <ebb9@byu.net>
39202
39203         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39204         module uses more than what <wctype.h> is required to provide.
39205
39206 2006-12-26  Eric Blake  <ebb9@byu.net>
39207
39208         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39209
39210 2006-12-26  Eric Blake  <ebb9@byu.net>
39211
39212         * modules/absolute-header: New module.
39213         * modules/fcntl (Depends-on): Depend on it.
39214         * modules/inttypes (Depends-on): Likewise.
39215         * modules/stdint (Depends-on): Likewise.
39216         * modules/sys_stat (Depends-on): Likewise.
39217         * modules/wctype (Depends-on): Likewise.
39218         * MODULES.html.sh (Support for building libraries and
39219         executables): Document it.
39220
39221 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39222
39223         * gnulib-tool (SED): Remove, undoing previous change.
39224         The problem was that it broke coreutils on Solaris, because
39225         "sed --posix" leaked into a makefile.
39226         (sed): New alias, if 'alias' and GNU sed.
39227
39228 2006-12-24  Jim Meyering  <jim@meyering.net>
39229
39230         Work around an fchownat bug in glibc-2.4:
39231         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39232         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39233         in spite of the -P option.
39234         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39235         New macros.
39236         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39237         * modules/openat (Files): Add lib/fchownat.c.
39238         * lib/openat.c (fchownat): Don't define here.  Move to...
39239         * lib/fchownat.c: ...this new file.
39240
39241 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39242
39243         Fix bug reported by Bruno Haible in
39244         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39245         where quotearg.c didn't compile on Mac OS X 10.2 because it
39246         lacks <wchar.h> and wint_t.
39247         * lib/wctype_.h (__wctype_wint_t): New type.
39248         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39249         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39250         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39251         Arg is now of type __wctype_wint_t, not wint_t.
39252         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39253         substitute HAVE_WINT_T.
39254         * modules/wctype (Files): Add m4/wint_t.m4.
39255         (wctype.h): Substitute HAVE_WINT_T.
39256
39257 2006-12-23  Bruno Haible  <bruno@clisp.org>
39258
39259         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39260
39261 2006-12-23  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39264         S_ISLNK.
39265         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39266         mingw.
39267
39268 2006-12-22  Bruno Haible  <bruno@clisp.org>
39269
39270         * lib/copy-file.c: Include acl.h.
39271         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39272         Close the file descriptors only after being done with copy_acl.
39273         * modules/copy-file (Depends-on): Add acl.
39274
39275 2006-12-22  Bruno Haible  <bruno@clisp.org>
39276
39277         * gnulib-tool (SED): New variable.
39278         Use $SED instead of sed everywhere.
39279
39280 2006-12-22  Bruno Haible  <bruno@clisp.org>
39281
39282         * modules/no-c++: New file.
39283         * m4/no-c++.m4: New file.
39284         * MODULES.html.sh (Support for building libraries and executables):
39285         Add no-c++.
39286
39287 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39288
39289         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39290         Include <limits.h>, and use its INT_MAX to rewrite the
39291         j loop so that it does not overflow 'int'.  Problem reported by
39292         Ralf Wildenhues in
39293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39294         Play it safe by shifting left by 1 rather than multiplying by 2,
39295         as GCC is less likely to optimize this away when the value
39296         is signed (when it assumes overflow leads to undefined behavior).
39297         Also, don't assume time_t uses two's complement.
39298
39299 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         * MODULES.html.sh: New module wctype.
39302         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39303         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39304         <wctype.h>, since the new wctype module should fix this.
39305         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39306         the wctype module should arrange for it.
39307         * lib/regex_internal.h: Likewise.
39308         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39309         since the wctype module should handle this now.
39310         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39311         * modules/fnmatch (Depends-on): Add wctype.
39312         * modules/quotearg (Depends-on): Likewise.
39313         * modules/regex (Depends-on): Likewise.
39314
39315 2006-12-19  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39318         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39319
39320 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39321
39322         * modules/savewd (Depends-on): Fix dependency on fcntl.
39323
39324 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39325
39326         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39327         conforms to C99, rather than relying on the user's environment
39328         setting of STDINT_H.
39329
39330 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39331         and Eric Blake  <ebb9@byu.net>
39332
39333         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39334         This is more consistent with the other defines here.
39335         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39336         Port to z/OS.  Problem reported by Paul Gilmartin.
39337         Change local vars to use gl_ prefix rather than ac_.
39338         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39339         with other defines.
39340         * modules/double-slash-root: New module.
39341         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39342         (Depends-on): Add double-slash-root.
39343         * MODULES.html.sh (File system functions): Mention new module.
39344
39345 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39346
39347         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39348         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39349         This is for the benefit of gzip, which doesn't do i18n.
39350
39351 2006-12-12  Jim Meyering  <jim@meyering.net>
39352
39353         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39354         Reported by Andreas Schwab <schwab@suse.de>.
39355
39356 2006-12-12  Bruno Haible  <bruno@clisp.org>
39357
39358         Merge these changes.
39359         2006-09-05  Bruno Haible  <bruno@clisp.org>
39360         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39361         iconv_alloc succeeded.
39362         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39363         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39364         test for " && dest " at the end - dest is always != NULL there. Call
39365         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39366         with 2xNULL arguments, also to flush the state storage. Handle the
39367         IRIX iconv behaviour. Realloc the final result, to throw away unused
39368         memory.
39369
39370 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39371
39372         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39373         and fchmodat unconditionally, since glibc 2.4 has them.
39374         Problem reported by Arkadiusz Miskiewicz.
39375
39376 2006-12-10  Bruno Haible  <bruno@clisp.org>
39377
39378         * gnulib-tool (func_import): Show the include files only for those
39379         modules that are copied and specified.
39380         Reported by Karl Berry.
39381
39382 2006-12-08  Jim Meyering  <jim@meyering.net>
39383
39384         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39385         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39386
39387         * build-aux/announce-gen: Add two new options, both optional:
39388         --bootstrap-tools=TOOL_LIST
39389               a comma-separated list of tools, e.g.,
39390               autoconf,automake,bison,gnulib
39391         --gnulib-snapshot-date=DATE
39392               if gnulib is in the bootstrap tool list,
39393               then report this as the snapshot date.
39394               If not specified, use the current date/time.
39395               If you specify a date here, be sure it's UTC.
39396
39397 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39398
39399         * tests/test-argp-2.sh: Fix test to match actual output.
39400         (func_compare): Fix sed script to be portable.
39401
39402 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39403
39404         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39405         workaround for this case.  It is not autoconfigured now; offhand
39406         it's hard to see how to autoconfigure it.
39407
39408 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39409
39410         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39411         a directory that is about to be chowned.  Such a directory's
39412         initial file permissions should permit the owner only and this
39413         should not be changed until after the chown, since the group and
39414         other bits would be incorrect if they granted permission before
39415         the chown.
39416
39417         Fix porting problem for iswctype reported by Georg Schwarz in:
39418         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39419         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39420         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39421         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39422         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39423
39424 2006-12-03  Jim Meyering  <jim@meyering.net>
39425
39426         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39427         p->fts_statp may not yet be defined.
39428         (fts_read): Instead, set it in the caller, once p->fts_statp is
39429         sure to be defined, and corresponds to a top-level directory.
39430         This bug made du -x fail.  Here's the coreutils test case:
39431         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39432         Reported by Mike Frysinger.
39433
39434 2006-12-01  Jim Meyering  <jim@meyering.net>
39435
39436         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39437         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39438         Reported by Simon Josefsson.
39439
39440 2006-11-30  Jim Meyering  <jim@meyering.net>
39441
39442         * m4/warning.m4: Use the all-permissive copyright notice
39443         recommended by RMS (rather than LGPL).
39444         * m4/vararrays.m4: Likewise.
39445         * m4/flexmember.m4: Likewise.
39446
39447 2006-11-29  Bruno Haible  <bruno@clisp.org>
39448
39449         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39450         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39451         using +=.
39452         Reported by Simon Josefsson <simon@josefsson.org>.
39453
39454 2006-11-28  James Youngman <jay@gnu.org>
39455
39456         * README: Advise users that they might find the bug-gnulib@gnu.org
39457         and autotools-announce@gnu.org mailing lists useful.
39458
39459 2006-11-28  Bruno Haible  <bruno@clisp.org>
39460
39461         * m4/ptrdiff_max.m4: Remove file.
39462
39463 2006-11-21  Bruno Haible  <bruno@clisp.org>
39464
39465         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39466         _AC_COMPUTE_INT.
39467         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39468         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39469         _AC_COMPUTE_INT.
39470         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39471         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39472         _AC_COMPUTE_INT.
39473         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39474
39475 2006-11-28  Jim Meyering  <jim@meyering.net>
39476
39477         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39478         warning from "gcc -Wshadow" about shadowing the builtin.
39479
39480 2006-11-27  Bruno Haible  <bruno@clisp.org>
39481
39482         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39483         _AC_COMPUTE_INT.
39484         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39485
39486 2006-11-27  Bruno Haible  <bruno@clisp.org>
39487             Paul Eggert  <eggert@cs.ucla.edu>
39488
39489         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39490
39491 2006-11-26  Bruno Haible  <bruno@clisp.org>
39492
39493         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39494         noinst_LTLIBRARIES.
39495
39496 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39497             Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39500         if compiling with "gcc -ansi".
39501
39502 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39503
39504         Fix some incompatibilities with gcc -ansi -pedantic.
39505         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39506         if compiling pedantically with GCC, unless it's C99 or later.
39507         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39508         it mishandles gcc -ansi -pedantic as well.
39509         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39510         if gcc -pedantic.
39511         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39512         initializers for struct if -pedantic, unless it's C99 or later.
39513
39514 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39515
39516         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39517         Don't close an fd more than once. Identical atimes indicate
39518         success, not failure.
39519
39520 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39521
39522         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39523
39524 2006-11-23  Jim Meyering  <jim@meyering.net>
39525
39526         * build-aux/announce-gen: New file.  From coreutils.
39527
39528 2006-11-22  Jim Meyering  <jim@meyering.net>
39529
39530         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39531         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39532         (fts_read): Use a temporary to narrow the overused st_size member
39533         before using it in a switch statement.  Reported by Matthew Woehlke.
39534
39535         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39536         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39537
39538 2006-11-20  Bruno Haible  <bruno@clisp.org>
39539
39540         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39541         changequote instead of pairs of brackets.
39542         Reported by Andreas Schwab <schwab@suse.de>.
39543
39544 2006-11-21  Jim Meyering  <jim@meyering.net>
39545
39546         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39547         so as to remain compatible with older compilers.
39548         Patch from Michael Deutschmann.
39549
39550 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39551
39552         * MODULES.html.sh (File system functions): Add openat.
39553
39554         * lib/openat.h (rpl_fstatat): New macro, if
39555         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39556         (fstatat): Define to rpl_fstatat under the same conditions,
39557         unless COMPILING_FSTATAT.
39558         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39559         seems to have the bug.
39560         * lib/fstatat.c: New file.
39561         * modules/openat (Files): Add it.
39562
39563 2006-11-20  Bruno Haible  <bruno@clisp.org>
39564
39565         * Makefile: New file.
39566
39567 2006-11-20  Jim Meyering  <jim@meyering.net>
39568
39569         The beginnings of syntax-related checks for gnulib.
39570         * lib/Makefile: New file.
39571         * lib/t-idcache: New script.  Ensure that the two halves of
39572         idcache.c stay in sync.
39573
39574         * lib/idcache.c: Adjust comments in user- and group- portions to
39575         be more accurate, and to be consistent with one another.
39576
39577 2006-11-20  Jim Meyering  <jim@meyering.net>
39578
39579         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39580         continue using the flexible array member (thus, this module performs
39581         half as many malloc calls), with the addition that...
39582         (getgroup, getuser): Consistently record a non-match via an empty
39583         "name" string, and map an empty string match to a NULL return value.
39584         * modules/idcache (Depends-on): Re-add flexmember.
39585
39586         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39587         (getuidbyname, getgroup, getgidbyname): Likewise.
39588
39589         Use cleaner syntax: NULL rather than 0.
39590         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39591
39592 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39593
39594         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39595         It mishandled the case where the group was missing.
39596         Problem reported by Greg Schafer.
39597         * modules/idcache: Likewise.
39598
39599 2006-11-18  Jim Meyering  <jim@meyering.net>
39600
39601         * check-module (%exempt_header): Add exception for some
39602         conditionally-included headers.
39603
39604         * modules/i-ring (Depends-on): Add verify.
39605         (License): Change to LGPL.
39606
39607 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39608
39609         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39610         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39611         and inttostr.h.  Use snprintf rather than uinttostr, so that
39612         LGPLed code doesn't depend on GPLed.
39613
39614 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39615
39616         * modules/inline (License): Change from GPL to LGPL.
39617
39618 2006-11-17  Jim Meyering  <jim@meyering.net>
39619
39620         * modules/d-type (License): Switch to LGPL.
39621
39622 2006-11-15  Bruno Haible  <bruno@clisp.org>
39623
39624         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39625
39626 2006-11-15  Eric Blake  <ebb9@byu.net>
39627
39628         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39629         the module dependency.
39630
39631 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39632             Bruno Haible  <bruno@clisp.org>
39633
39634         * gnulib-tool (func_create_testdir): Add license consistency check.
39635
39636 2006-11-15  Eric Blake  <ebb9@byu.net>
39637
39638         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39639         random "(cached)" in configure output.
39640
39641 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39642
39643         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39644         test for conforming inttypes.h is both announced and cached.
39645
39646         * MODULES.html.sh (seen_modules, seen_files): New variables.
39647         (func_module): Rewrite to use a few less gnulib-tool and sed
39648         invocations.  Avoid a couple of quadratic algorithms for ...
39649         (missed_modules, missed_files): ... these, with ...
39650         (func_append, func_tmpdir): ... these new functions, from
39651         gnulib-tool.  Analogously, install traps for cleanup.
39652
39653         * tests/test-gc.c (main): Remove unused variables.
39654         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39655
39656 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39657
39658         * modules/inttostr (License): Change to LGPL.
39659
39660 2006-11-14  Eric Blake  <ebb9@byu.net>
39661
39662         * modules/tempname (License): Change to LGPL.
39663
39664 2006-11-14  Eric Blake  <ebb9@byu.net>
39665
39666         * doc/functions.texi (Function Portability): *printf functions on
39667         Cygwin now understand all POSIX size specifiers.
39668
39669 2006-11-14  Bruno Haible  <bruno@clisp.org>
39670
39671         * modules/c-ctype (License): Change to LGPL.
39672
39673 2006-11-12  Bruno Haible  <bruno@clisp.org>
39674
39675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39676         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39677         for GNOME libraries, for which the include files are installed in
39678         subdirectories of $prefix/include.
39679
39680 2006-11-12  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/lib-link.m4: Require at least autoconf-2.54.
39683         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39684         name to underscores for the --with option.
39685
39686 2006-11-13  Bruno Haible  <bruno@clisp.org>
39687
39688         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39689         the tests directory.
39690         Reported by Ralf Wildenhues.
39691
39692 2006-11-13  Bruno Haible  <bruno@clisp.org>
39693
39694         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39695         (func_emit_initmacro_end): Undo the override here.
39696         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39697         Works around the famous automake error in coreutils.
39698
39699 2006-11-13  Eric Blake  <ebb9@byu.net>
39700
39701         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39702         element, not its node.
39703
39704 2006-11-12  Bruno Haible  <bruno@clisp.org>
39705
39706         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39707         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39708
39709 2006-11-12  Bruno Haible  <bruno@clisp.org>
39710
39711         * gnulib-tool: New option --local-symlink.
39712         (func_usage): Document it.
39713         (lsymbolic): New variable.
39714         (func_import, func_create_testdir): If --symlink was not specified,
39715         test whether --local-symlink was specified and the file comes from
39716         the local_gnulib_dir.
39717
39718 2006-11-12  Bruno Haible  <bruno@clisp.org>
39719
39720         * gnulib-tool (func_ln): New function.
39721         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39722
39723 2006-11-12  Bruno Haible  <bruno@clisp.org>
39724
39725         Finish support for source files in subdirectories.
39726         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39727         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39728         AUTOMAKE_OPTIONS.
39729         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39730
39731 2006-11-12  Bruno Haible  <bruno@clisp.org>
39732
39733         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39734         EXTRA_lib_SOURCES augmentation.
39735         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39736
39737 2006-11-12  Jim Meyering  <jim@meyering.net>
39738
39739         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39740         file descriptors.  This also averts a failure on systems with
39741         native openat support when a traversed directory lacks "x" access.
39742         * lib/fts_.h: Include "i-ring.h"
39743         (struct FTS) [fts_fd_ring]: New member.
39744         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39745         (FCHDIR): Add parentheses.
39746         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39747         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39748         When descending, rather than simply closing the previous
39749         fts_cwd_fd value, push that file descriptor onto the ring.
39750         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39751         (fts_open): Initialize the new fd_ring member.
39752         (fts_close): Clear the ring.
39753         (fts_safe_changedir): When possible, use our new fd_ring to skip
39754         the diropen and fstat and dev/ino comparison that would normally
39755         accompany a virtual `chdir ("..")'.
39756
39757         * modules/fts (Depends-on): Add i-ring.
39758         * modules/i-ring: New module.
39759         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39760         * m4/i-ring.m4: New file.
39761
39762 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39763
39764         * gnulib-tool (func_create_testdir): Fix replacement of
39765         `build-aux' in configure.ac.  Run autotools in gltests
39766         subdirectory.
39767         (func_create_testdir, func_create_megatestdir, test): There is
39768         no need for '--force' in most autotool invocations in a new
39769         tree.  Actually fail the whole test if any of the tools, or the
39770         configure or make stages fail.
39771
39772         Sync from Automake.
39773         * build-aux/gnupload: Revert last change.  Add pointer to upload
39774         instructions of the GNU Maintenance Instructions.
39775         Suggestion by Karl Berry.
39776
39777 2006-11-10  Jim Meyering  <jim@meyering.net>
39778
39779         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39780
39781 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39782
39783         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39784         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39785         (bind_textdomain_codeset) [! ENABLE_NLS]:
39786         Evaluate all the arguments.  That way, callers get compatible behavior
39787         if the arguments have side effects.  Also, it avoids some GCC
39788         diagnostics in some cases; Joel E. Denny reported problems when Bison
39789         was configured with --enable-gcc-warnigs.
39790
39791 2006-11-10  Jim Meyering  <jim@meyering.net>
39792
39793         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39794         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39795         account.
39796
39797 2006-11-10  Jim Meyering  <jim@meyering.net>
39798
39799         * modules/inline: New file/module.
39800         * modules/xalloc (Files): Remove m4/inline.m4.
39801         (Depends-on): Add inline, instead.
39802         * modules/oset: Likewise.
39803         * modules/list: Likewise.
39804
39805 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39806
39807         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39808         Problem reported by Matthew Woehlke.
39809
39810 2006-11-09  Bruno Haible  <bruno@clisp.org>
39811
39812         * lib/tempname.c (gen_tempname): Remove variant that invokes
39813         __gen_tempname.
39814         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39815         __gen_tempname.
39816
39817 2006-11-08  Bruno Haible  <bruno@clisp.org>
39818
39819         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39820         to 'yes' instead of 'cross-compiling'.
39821
39822 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39823
39824         * lib/quotearg.h (quotearg_free): New decl.
39825         * lib/quotearg.c (quotearg_free): New function.
39826         (slot0, nslots, slotvec0, slotvec):
39827         Now file-scope so that quotearg_free can get at them.
39828
39829 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39830
39831         Sync from Automake.
39832         * build-aux/gnupload: Add missing 'gnu' to example URL.
39833         Report by Karl Berry.
39834
39835 2006-11-08  Bruno Haible  <bruno@clisp.org>
39836
39837         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39838         Suggested by Paul Eggert.
39839
39840 2006-11-08  Jim Meyering  <jim@meyering.net>
39841
39842         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39843         It's already included if !_LIBC.
39844         (fts_safe_changedir): Add a comment.
39845
39846 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39847
39848         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39849         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39850         Matthew Woehlke.
39851
39852         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39853         definitions up, to avoid colliding with change below.
39854         (static_inline) [HAVE_INLINE]: New macro.
39855         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39856         Provide extern decls when !HAVE_INLINE.  Do not define unless
39857         static_inline is defined, either by us or by xmalloc.c.  Use
39858         static_inline rather than static inline.
39859         (XCALLOC): Optimize sizeof(T) = 1 case.
39860         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39861
39862 2006-11-07  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39865         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39866         AC_C_INLINE.
39867         * modules/xalloc (Files): Add m4/inline.m4.
39868
39869 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39870
39871         * README: Fix typo.
39872         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39873         (Miscellanous Notes): ...from this.
39874
39875 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39876
39877         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39878         Mention that offsetof should be used instead of sizeof.
39879         From Bruno Haible.
39880
39881 2006-11-07  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39884
39885 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39886
39887         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39888         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39889         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39890         (gl_tree_add_before, gl_tree_add_after):
39891         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39892         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39893         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39894         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39895         (gl_linked_add_after, gl_linked_add_at): Likewise.
39896         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39897         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39898         (gl_tree_add_before, gl_tree_add_after): Likewise.
39899         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39900         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39901         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39902
39903 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39904
39905         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39906
39907 2006-11-06  Bruno Haible  <bruno@clisp.org>
39908
39909         * m4/inline.m4: New file.
39910         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39911         * modules/list (Files): Add m4/inline.m4.
39912         * modules/oset (Files): Likewise.
39913
39914 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39915
39916         * lib/idcache.c: Include <stddef.h>, for offsetof.
39917         (struct userid.name): Change from char * to a flexible array member.
39918         All uses changed.
39919         * modules/idcache (Depends-on): Add flexmember.
39920
39921         * MODULES.html.sh (Core language properties): New module flexmember.
39922         * modules/flexmember, m4/flexmember.m4: New files.
39923
39924         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39925         inline functions that are identical with the old xnmalloc_inline,
39926         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39927         that we can avoid some unnecessary integer multiplications and
39928         divisions in the common case where the element size is known at
39929         compile time.
39930         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39931         needed.
39932         (xnboundedmalloc): Remove.
39933         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39934         arguments, for consistency with rest of this header.
39935         (xcharalloc): Rewrite using XNMALLOC.
39936         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39937         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39938         versions have been moved to lib/xalloc.h and renamed to be the
39939         non-*_inline versions.
39940         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39941         and xnrealloc functions, since those functions are now inline and
39942         now call us.
39943         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39944         renaming described above.
39945         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39946         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39947         captures the dependency in AC_C_INLINE.
39948
39949         New module canonicalize-lgpl, proposed by Charles Wilson in
39950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39951         with a few small changes afterwards.
39952         * MODULES.html.sh (File system functions): New module
39953         canonicalize-lgpl.
39954         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39955         and canonicalize_file_name.
39956         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39957         * modules/canonicalize-lgpl: New files.
39958
39959 2006-11-05  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (func_import, func_create_testdir): Create directories
39962         also for files in subdirectories of lib/.
39963
39964 2006-11-05  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39967         ANSI C compliant.
39968
39969 2006-11-03  Bruno Haible  <bruno@clisp.org>
39970
39971         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39972         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39973         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39974         (xnboundedmalloc): New inline function.
39975         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39976         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39977         xmalloc.
39978         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39979         xmalloc.
39980         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39981         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39982         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39983         xmalloc.
39984         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39985         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39986         xmalloc.
39987         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39988         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39989         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39990         xmalloc.
39991         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39992         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39993         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39994         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39995         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39996         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39997         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39998
39999 2006-11-03  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/c-ctype.h [C++]: Define functions without name mangling.
40002         * lib/fwriteerror.h [C++]: Likewise.
40003         * lib/gcd.h [C++]: Likewise.
40004         * lib/linebreak.h [C++]: Likewise.
40005
40006 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40007
40008         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40009         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40010         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40011         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40012         Check for functions and headers just once.
40013         Check for declaration of canonicalize_file_name.
40014         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40015
40016 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40017
40018         * gnulib-tool (func_import): Fix typo in actioncmd.
40019
40020 2006-11-02  Bruno Haible  <bruno@clisp.org>
40021
40022         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40023         newline sequence in the Makefile.am snippet as a space, like "make"
40024         does.
40025         Reported by Roger Persson <perrog@gmail.com>.
40026
40027 2006-11-01  Bruno Haible  <bruno@clisp.org>
40028
40029         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40030         already declared in <string.h>.
40031         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40032
40033 2006-11-01  Bruno Haible  <bruno@clisp.org>
40034
40035         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40036         * lib/strcase.h: Include <string.h>.
40037         (strcasecmp): Define to rpl_strcasecmp here.
40038
40039 2006-11-01  Bruno Haible  <bruno@clisp.org>
40040
40041         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40042
40043 2006-11-01  Eric Blake  <ebb9@byu.net>
40044
40045         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40046
40047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40048
40049 2006-10-29  Bruno Haible  <bruno@clisp.org>
40050
40051         Make it compile in C++ mode.
40052         * lib/full-write.c (full_rw): Add a cast.
40053
40054 2006-11-01  Bruno Haible  <bruno@clisp.org>
40055
40056         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40057         be POSIX compliant.
40058         Reported by Roger Persson <perrog@gmail.com>.
40059
40060 2006-11-01  Eric Blake  <ebb9@byu.net>
40061
40062         * lib/getopt_.h: Fix comments.
40063
40064 2006-10-31  Eric Blake  <ebb9@byu.net>
40065
40066         * modules/tmpdir (Depends-on): Add sys_stat.
40067         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40068         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40069         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40070         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40071         tempname.
40072
40073 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40074
40075         Avoid some C++ diagnostics reported by Bruno Haible.
40076         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40077         xmalloc.
40078         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40079         (struct slotvec): Move to top level.
40080         (quotearg_n_options): Rewrite to avoid xmalloc.
40081         * lib/xalloc.h (xcharalloc): New function.
40082         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40083         [defined __cplusplus]: Add function template that provides result
40084         type propagation.  This part of the change is from Bruno Haible.
40085
40086 2006-10-29  Bruno Haible  <bruno@clisp.org>
40087
40088         Make it compile in C++ mode.
40089         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40090         * lib/strnlen1.c (strnlen1): Cast memchr result.
40091         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40092         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40093         (create_temp_dir): Rename local variable 'template'.
40094         (compile_csharp_using_sscli): Add cast.
40095         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40096         * lib/findprog.c (find_in_path): Likewise.
40097         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40098         * lib/wait-process.c (register_slave_subprocess): Likewise.
40099
40100 2006-10-22  Bruno Haible  <bruno@clisp.org>
40101
40102         * modules/tsearch: New file.
40103         * lib/tsearch.h: New file.
40104         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40105         * m4/tsearch.m4: New file.
40106         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40107
40108 2006-10-29  Eric Blake  <ebb9@byu.net>
40109
40110         * lib/arcfour.c: Assume config.h.
40111         * lib/arctwo.c: Likewise.
40112         * lib/base64.c: Likewise.
40113         * lib/check-version.c: Likewise.
40114         * lib/crc.c: Likewise.
40115         * lib/des.c: Likewise.
40116         * lib/gc-gnulib.c: Likewise.
40117         * lib/gc-libgcrypt.c: Likewise.
40118         * lib/gc-pbkdf2-sha1.c: Likewise.
40119         * lib/getaddrinfo.c: Likewise.
40120         * lib/getdelim.c: Likewise.
40121         * lib/getline.c: Likewise.
40122         * lib/hmac-md5.c: Likewise.
40123         * lib/hmac-sha1.c: Likewise.
40124         * lib/iconvme.c: Likewise.
40125         * lib/md2.c: Likewise.
40126         * lib/md4.c: Likewise.
40127         * lib/memxor.c: Likewise.
40128         * lib/read-file.c: Likewise.
40129         * lib/readline.c: Likewise.
40130         * lib/rijndael-alg-fst.c: Likewise.
40131         * lib/rijndael-api-fst.c: Likewise.
40132         * lib/xgetdomainname.c: Likewise.
40133
40134 2006-10-28  Eric Blake  <ebb9@byu.net>
40135
40136         * lib/xstrndup.c: Assume config.h.
40137
40138 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40139
40140         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40141         stat-macros.h is now for our own macros, whereas stat_h is for
40142         macros in the <sys/stat.h> name space.
40143         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40144         (STAT_MACROS_H): Remove.
40145         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40146         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40147         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40148         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40149         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40150         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40151         Move these macros to ...
40152         * lib/stat_.h: here.  Don't include stat-macros.h.
40153         * lib/canonicalize.c: Don't include stat-macros.h.
40154         * lib/chown.c: Likewise.
40155         * lib/euidaccess.c: Likewise.
40156         * lib/file-type.c: Likewise.
40157         * lib/filemode.c: Likewise.
40158         * lib/glob.c: Likewise.
40159         * lib/isapipe.c: Likewise.
40160         * lib/lchown.c: Likewise.
40161         * lib/lstat.c: Likewise.
40162         * lib/mkdir-p.c: Likewise.
40163         * lib/rmdir.c: Likewise.
40164         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40166         unless mkdir isn't declared, to speed up 'configure'.
40167         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40168         would define all the S_* symbols.
40169         * modules/canonicalize (Depends-on):
40170         Depend on sys_stat, not stat-macros.
40171         * modules/chown: Likewise.
40172         * modules/euidaccess: Likewise.
40173         * modules/filemode: Likewise.
40174         * modules/file-type: Likewise.
40175         * modules/glob: Likewise.
40176         * modules/isapipe: Likewise.
40177         * modules/lchown: Likewise.
40178         * modules/lstat: Likewise.
40179         * modules/mkancesdirs: Likewise.
40180         * modules/rmdir: Likewise.
40181         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40182         * modules/modechange: Likewise.
40183         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40184         (configure.ac): Remove gl_STAT_MACROS.
40185         * modules/sys_stat (Depends-on): Remove stat-macros.
40186
40187 2006-10-27  Bruno Haible  <bruno@clisp.org>
40188
40189         * m4/signed.m4: Remove file.
40190         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40191         invocation.
40192         * modules/vasnprintf (Files): Remove m4/signed.m4.
40193
40194 2006-10-27  Bruno Haible  <bruno@clisp.org>
40195
40196         Update to GNU gettext 0.16.
40197         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40198         m4/inttypes-h.m4, m4/signed.m4.
40199         * m4/gettext.m4: Update to GNU gettext 0.16.
40200         * m4/intl.m4: New file, from GNU gettext.
40201         * m4/intldir.m4: New file, from GNU gettext.
40202         * config/srclist.txt: Update
40203
40204 2006-10-27  Eric Blake  <ebb9@byu.net>
40205
40206         * MODULES.html.sh: Document tempname.
40207         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40208         dependencies.
40209         (Files): Move lib/tempname.c...
40210         * modules/tempname: ...to this new module.
40211         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40212         (gl_PREREQ_TEMPNAME): Move...
40213         * m4/tempname.m4: ...to this new file.
40214         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40215         * modules/sys_stat (Depends-on): Add stat-macros.
40216         * lib/stat_.h (includes): Pick up stat macros.
40217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40218         if stat macros are broken.
40219         * lib/tempname.c (includes): No need to include "stat-macros.h".
40220         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40221         (direxists, __path_search) [!_LIBC]: Don't compile these in
40222         gnulib; the tmpdir module covers that.
40223         * lib/tempname.h: New file.
40224
40225 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40226
40227         * COPYING: Explain how gnulib-tool converts licence headers.
40228         Almost all wording by Eric Blake.
40229
40230 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40231
40232         * lib/mbchar.h (is_basic_table): Make read-only.
40233         * lib/mbchar.c (is_basic_table): Likewise.
40234         Reported by John Darrington.
40235
40236 2006-10-25  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/progname.h (set_program_name): Undefine before defining.
40239
40240 2006-10-25  Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40243         false for non-gcc C++ compilers.
40244         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40245
40246 2006-10-24  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40249         iconv implementations like Irix iconv.
40250
40251 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         * modules/vararrays: New file.
40254         * m4/vararrays.m4: New file, taken from diffutils.
40255         * MODULES.html.sh: New module vararrays.
40256
40257 2006-10-24  Karl Berry  <karl@gnu.org>
40258
40259         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40260         Don't call GNU Unix.
40261
40262 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40263
40264         * users.txt: Add Libtool.
40265
40266         Sync from Libtool:
40267
40268         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40269
40270         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40271         to gnulib's policy of including config.h unconditionally.
40272
40273 2006-10-24  Bruno Haible  <bruno@clisp.org>
40274
40275         * modules/wcwidth (Files): Add m4/wint_t.m4.
40276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40277         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40278
40279 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40280
40281         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40282         to pacify GCC with some -W flags enabled.  Problem reported by
40283         Bruno Haible.
40284
40285 2006-10-24  Jim Meyering  <jim@meyering.net>
40286
40287         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40288         Reported by Karl Berry.
40289
40290 2006-10-23  Bruno Haible  <bruno@clisp.org>
40291
40292         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40293
40294 2006-10-24  Bruno Haible  <bruno@clisp.org>
40295
40296         * lib/gl_list.h: Use C comment style, not C++ comment style.
40297
40298 2006-10-23  Eric Blake  <ebb9@byu.net>
40299
40300         * lib/getaddrinfo.c (includes): Add missing include.
40301
40302 2006-10-23  Bruno Haible  <bruno@clisp.org>
40303             Paul Eggert  <eggert@cs.ucla.edu>
40304
40305         Ability to rename obstack_free.
40306         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40307         obstack_free.
40308         (obstack_free): Invoke the __obstack_free macro.
40309         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40310
40311 2006-10-23  Bruno Haible  <bruno@clisp.org>
40312             Paul Eggert  <eggert@cs.ucla.edu>
40313
40314         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40315         __argc, __argv from the declaration. (They are defined as macros on
40316         mingw.)
40317
40318 2006-10-22  Bruno Haible  <bruno@clisp.org>
40319
40320         * doc/gnulib-intro.texi: New file.
40321         * doc/gnulib.texi: Include it.
40322
40323 2006-10-21  Bruno Haible  <bruno@clisp.org>
40324
40325         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40326         "Introduction", "Miscellanous Notes", "Particular Modules".
40327
40328 2006-10-21  Bruno Haible  <bruno@clisp.org>
40329
40330         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40331         Change mostlyclean-local rule to avoid sh syntax error from bash
40332         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40333
40334 2006-10-23  Jim Meyering  <jim@meyering.net>
40335
40336         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40337         in place of snprintf.
40338
40339         * modules/inttostr (Files): Add lib/uinttostr.c.
40340         * lib/uinttostr.c (inttostr): New file/function.
40341         * lib/inttostr.h (uinttostr): Declare.
40342         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40343         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40344         Add uinttostr.
40345         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40346
40347 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40348
40349         * lib/canonicalize.c (ELOOP): Define if not already defined.
40350         Problem reported by Bruno Haible in
40351         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40352
40353 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40354
40355         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40356         Problem reported by Perry Smith and Ville Laurikari.
40357
40358         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40359         uses.
40360
40361 2006-10-19  Bruno Haible  <bruno@clisp.org>
40362
40363         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40364         for mingw.
40365
40366 2006-10-19  Bruno Haible  <bruno@clisp.org>
40367
40368         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40369         Needed for mingw.
40370
40371 2006-10-19  Bruno Haible  <bruno@clisp.org>
40372
40373         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40374
40375 2006-10-19  Bruno Haible  <bruno@clisp.org>
40376
40377         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40378         it.
40379
40380 2006-10-19  Bruno Haible  <bruno@clisp.org>
40381
40382         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40383         invocation.
40384
40385 2006-10-19  Bruno Haible  <bruno@clisp.org>
40386
40387         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40388         mountlist by default.
40389
40390 2006-10-16  Bruno Haible  <bruno@clisp.org>
40391
40392         * lib/c-strstr.c: Include c-strstr.h.
40393
40394 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40395
40396         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40397         in a slash.
40398
40399 2006-10-18  Bruno Haible  <bruno@clisp.org>
40400
40401         * lib/lock.h [C++]: Wrap definitions in extern "C".
40402
40403 2006-10-18  Bruno Haible  <bruno@clisp.org>
40404
40405         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40406         gl_LIBOBJS list.
40407
40408 2006-10-18  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40411
40412 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40413
40414         * lib/xstrtol.h: Include gettext.h.
40415         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40416         Problem reported by Eric Blake.
40417         * modules/xstrtol (Depends-on): Add gettext-h.
40418
40419 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40420
40421         * lib/strftime.c (advance): New macro.
40422         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40423         incomplete type, so you can't add 0 to it.  Problem and patch
40424         reported by Eelco Dolstra for dietlibc.
40425
40426 2006-10-18  Jim Meyering  <jim@meyering.net>
40427
40428         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40429         type for a local, and rename it: s/up/user_proc/.
40430
40431 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40432
40433         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40434         READ_UTMP_USER_PROCESS.
40435         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40436
40437 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40440         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40441
40442 2006-10-17  Eric Blake  <ebb9@byu.net>
40443
40444         * lib/sigprocmask.c (sigprocmask): Fix typo.
40445
40446         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40447
40448         * modules/clean-temp (Makefile.am): Don't add to make output...
40449         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40450         config.h.
40451
40452 2006-10-17  Bruno Haible  <bruno@clisp.org>
40453
40454         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40455         differently if DEFAULT_TEXT_DOMAIN is set.
40456
40457 2006-10-16  Bruno Haible  <bruno@clisp.org>
40458
40459         * lib/clean-temp.c: Include fwriteerror.h.
40460
40461 2006-10-16  Bruno Haible  <bruno@clisp.org>
40462
40463         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40464
40465 2006-10-16  Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40468         * lib/sigprocmask.h: Include <sys/types.h>.
40469         (sigset_t): Use the system's definition if present.
40470
40471 2006-10-17  Eric Blake  <ebb9@byu.net>
40472
40473         * lib/xvasprintf.c (includes): Assume config.h.
40474         * lib/xasprintf.c (includes): Likewise.
40475
40476 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40479         at least as wide as intmax_t.
40480
40481 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40482
40483         (Imported from Automake.)
40484         * build-aux/gnupload: Update to version 1.1 of directive file.
40485
40486 2006-10-16  Eric Blake  <ebb9@byu.net>
40487
40488         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40489         match Automake 1.10a.
40490
40491 2006-10-14  Bruno Haible  <bruno@clisp.org>
40492
40493         * modules/sigprocmask: New file.
40494         * lib/sigprocmask.h: New file.
40495         * lib/sigprocmask.c: New file.
40496         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40497         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40498         request sigprocmask.o.
40499         (gl_PREREQ_SIGPROCMASK): New macro.
40500         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40501         (Depends-on): Add sigprocmask.
40502         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40503         gt_SIGNALBLOCKING. Test for 'raise' only once.
40504         * lib/fatal-signal.c: Include sigprocmask.h.
40505         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40506         unblock_fatal_signals): Define always.
40507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40508         sigprocmask.
40509
40510 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40511
40512         Sync from Automake.
40513         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40514         which incorrectly sets the mode of an existing destination
40515         directory.  In some cases the unpatched install-sh could do the
40516         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40517         system.  We hope this is rare in practice, but it's clearly worth
40518         fixing.  Problem reported by Alex Unleashed in
40519         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40520         Also, don't bother to check for -m bugs unless we're using -m;
40521         suggested by Stepan Kasal.
40522
40523 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40524
40525         Sync from Automake.
40526         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40527         `-c' flag, so they appear at the same position as in %FASTDEP%
40528         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40529         which ignores unknown options only after the first non-option.
40530         Bug report against M4 by Nelson H. F. Beebe.
40531
40532 2006-10-13  Jim Meyering  <jim@meyering.net>
40533
40534         Fix a bug in yesterday's change.
40535         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40536         p->fts_statp->st_dev would be used uninitialized.
40537         Ensures that we always call fts_stat on the very first entry.
40538         Miklos Szeredi reported that find -xdev stopped working.
40539
40540 2006-10-12  Bruno Haible  <bruno@clisp.org>
40541
40542         * gnulib-tool (func_get_automake_snippet): Append an automatically
40543         computed EXTRA_DIST augmentation.
40544         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40545         * modules/alloca-opt (Makefile.am): Likewise.
40546         * modules/allocsa (Makefile.am): Likewise.
40547         * modules/arcfour (Makefile.am): Likewise.
40548         * modules/arctwo (Makefile.am): Likewise.
40549         * modules/argmatch (Makefile.am): Likewise.
40550         * modules/argz (Makefile.am): Likewise.
40551         * modules/atexit (Makefile.am): Likewise.
40552         * modules/backupfile (Makefile.am): Likewise.
40553         * modules/byteswap (Makefile.am): Likewise.
40554         * modules/c-strtod (Makefile.am): Likewise.
40555         * modules/c-strtold (Makefile.am): Likewise.
40556         * modules/calloc (Makefile.am): Likewise.
40557         * modules/canon-host (Makefile.am): Likewise.
40558         * modules/canonicalize (Makefile.am): Likewise.
40559         * modules/chdir-long (Makefile.am): Likewise.
40560         * modules/chdir-safer (Makefile.am): Likewise.
40561         * modules/check-version (Makefile.am): Likewise.
40562         * modules/chown (Makefile.am): Likewise.
40563         * modules/cloexec (Makefile.am): Likewise.
40564         * modules/close-stream (Makefile.am): Likewise.
40565         * modules/closeout (Makefile.am): Likewise.
40566         * modules/crc (Makefile.am): Likewise.
40567         * modules/csharpexec (Makefile.am): Likewise.
40568         * modules/cycle-check (Makefile.am): Likewise.
40569         * modules/des (Makefile.am): Likewise.
40570         * modules/dev-ino (Makefile.am): Likewise.
40571         * modules/dirfd (Makefile.am): Likewise.
40572         * modules/dirname (Makefile.am): Likewise.
40573         * modules/dup2 (Makefile.am): Likewise.
40574         * modules/eealloc (Makefile.am): Likewise.
40575         * modules/error (Makefile.am): Likewise.
40576         * modules/euidaccess (Makefile.am): Likewise.
40577         * modules/exclude (Makefile.am): Likewise.
40578         * modules/exitfail (Makefile.am): Likewise.
40579         * modules/fcntl-safer (Makefile.am): Likewise.
40580         * modules/fcntl (Makefile.am): Likewise.
40581         * modules/file-type (Makefile.am): Likewise.
40582         * modules/fileblocks (Makefile.am): Likewise.
40583         * modules/filemode (Makefile.am): Likewise.
40584         * modules/filenamecat (Makefile.am): Likewise.
40585         * modules/fnmatch (Makefile.am): Likewise.
40586         * modules/fopen-safer (Makefile.am): Likewise.
40587         * modules/fpending (Makefile.am): Likewise.
40588         * modules/fprintftime (Makefile.am): Likewise.
40589         * modules/free (Makefile.am): Likewise.
40590         * modules/fsusage (Makefile.am): Likewise.
40591         * modules/ftruncate (Makefile.am): Likewise.
40592         * modules/fts (Makefile.am): Likewise.
40593         * modules/gc-arcfour (Makefile.am): Likewise.
40594         * modules/gc-des (Makefile.am): Likewise.
40595         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40596         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40597         * modules/gc-md4 (Makefile.am): Likewise.
40598         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40599         * modules/gc-sha1 (Makefile.am): Likewise.
40600         * modules/gc (Makefile.am): Likewise.
40601         * modules/getaddrinfo (Makefile.am): Likewise.
40602         * modules/getcwd (Makefile.am): Likewise.
40603         * modules/getdelim (Makefile.am): Likewise.
40604         * modules/getdomainname (Makefile.am): Likewise.
40605         * modules/getgroups (Makefile.am): Likewise.
40606         * modules/gethostname (Makefile.am): Likewise.
40607         * modules/gethrxtime (Makefile.am): Likewise.
40608         * modules/getline (Makefile.am): Likewise.
40609         * modules/getloadavg (Makefile.am): Likewise.
40610         * modules/getlogin_r (Makefile.am): Likewise.
40611         * modules/getndelim2 (Makefile.am): Likewise.
40612         * modules/getopt (Makefile.am): Likewise.
40613         * modules/getpagesize (Makefile.am): Likewise.
40614         * modules/getpass-gnu (Makefile.am): Likewise.
40615         * modules/getpass (Makefile.am): Likewise.
40616         * modules/getsubopt (Makefile.am): Likewise.
40617         * modules/gettime (Makefile.am): Likewise.
40618         * modules/gettimeofday (Makefile.am): Likewise.
40619         * modules/getugroups (Makefile.am): Likewise.
40620         * modules/getusershell (Makefile.am): Likewise.
40621         * modules/glob (Makefile.am): Likewise.
40622         * modules/group-member (Makefile.am): Likewise.
40623         * modules/hard-locale (Makefile.am): Likewise.
40624         * modules/hash (Makefile.am): Likewise.
40625         * modules/hmac-md5 (Makefile.am): Likewise.
40626         * modules/hmac-sha1 (Makefile.am): Likewise.
40627         * modules/human (Makefile.am): Likewise.
40628         * modules/idcache (Makefile.am): Likewise.
40629         * modules/imaxabs (Makefile.am): Likewise.
40630         * modules/imaxdiv (Makefile.am): Likewise.
40631         * modules/inet_ntop (Makefile.am): Likewise.
40632         * modules/inet_pton (Makefile.am): Likewise.
40633         * modules/intprops (Makefile.am): Likewise.
40634         * modules/inttostr (Makefile.am): Likewise.
40635         * modules/inttypes (Makefile.am): Likewise.
40636         * modules/isapipe (Makefile.am): Likewise.
40637         * modules/javaversion (Makefile.am): Likewise.
40638         * modules/lchmod (Makefile.am): Likewise.
40639         * modules/lchown (Makefile.am): Likewise.
40640         * modules/localcharset (Makefile.am): Likewise.
40641         * modules/long-options (Makefile.am): Likewise.
40642         * modules/lstat (Makefile.am): Likewise.
40643         * modules/malloc (Makefile.am): Likewise.
40644         * modules/mathl (Makefile.am): Likewise.
40645         * modules/mbchar (Makefile.am): Likewise.
40646         * modules/md2 (Makefile.am): Likewise.
40647         * modules/md4 (Makefile.am): Likewise.
40648         * modules/md5 (Makefile.am): Likewise.
40649         * modules/memcasecmp (Makefile.am): Likewise.
40650         * modules/memchr (Makefile.am): Likewise.
40651         * modules/memcmp (Makefile.am): Likewise.
40652         * modules/memcoll (Makefile.am): Likewise.
40653         * modules/memcpy (Makefile.am): Likewise.
40654         * modules/memmem (Makefile.am): Likewise.
40655         * modules/memmove (Makefile.am): Likewise.
40656         * modules/mempcpy (Makefile.am): Likewise.
40657         * modules/memrchr (Makefile.am): Likewise.
40658         * modules/memset (Makefile.am): Likewise.
40659         * modules/memxor (Makefile.am): Likewise.
40660         * modules/mkancesdirs (Makefile.am): Likewise.
40661         * modules/mkdir-p (Makefile.am): Likewise.
40662         * modules/mkdir (Makefile.am): Likewise.
40663         * modules/mkdtemp (Makefile.am): Likewise.
40664         * modules/mkstemp (Makefile.am): Likewise.
40665         * modules/mktime (Makefile.am): Likewise.
40666         * modules/modechange (Makefile.am): Likewise.
40667         * modules/mountlist (Makefile.am): Likewise.
40668         * modules/nanosleep (Makefile.am): Likewise.
40669         * modules/obstack (Makefile.am): Likewise.
40670         * modules/openat (Makefile.am): Likewise.
40671         * modules/pagealign_alloc (Makefile.am): Likewise.
40672         * modules/pathmax (Makefile.am): Likewise.
40673         * modules/physmem (Makefile.am): Likewise.
40674         * modules/poll (Makefile.am): Likewise.
40675         * modules/posixtm (Makefile.am): Likewise.
40676         * modules/posixver (Makefile.am): Likewise.
40677         * modules/putenv (Makefile.am): Likewise.
40678         * modules/quote (Makefile.am): Likewise.
40679         * modules/quotearg (Makefile.am): Likewise.
40680         * modules/raise (Makefile.am): Likewise.
40681         * modules/read-file (Makefile.am): Likewise.
40682         * modules/readline (Makefile.am): Likewise.
40683         * modules/readlink (Makefile.am): Likewise.
40684         * modules/readtokens (Makefile.am): Likewise.
40685         * modules/readutmp (Makefile.am): Likewise.
40686         * modules/realloc (Makefile.am): Likewise.
40687         * modules/regex (Makefile.am): Likewise.
40688         * modules/rename-dest-slash (Makefile.am): Likewise.
40689         * modules/rename (Makefile.am): Likewise.
40690         * modules/rijndael (Makefile.am): Likewise.
40691         * modules/rmdir (Makefile.am): Likewise.
40692         * modules/rpmatch (Makefile.am): Likewise.
40693         * modules/safe-read (Makefile.am): Likewise.
40694         * modules/safe-write (Makefile.am): Likewise.
40695         * modules/same-inode (Makefile.am): Likewise.
40696         * modules/same (Makefile.am): Likewise.
40697         * modules/save-cwd (Makefile.am): Likewise.
40698         * modules/savedir (Makefile.am): Likewise.
40699         * modules/setenv (Makefile.am): Likewise.
40700         * modules/settime (Makefile.am): Likewise.
40701         * modules/sha1 (Makefile.am): Likewise.
40702         * modules/sig2str (Makefile.am): Likewise.
40703         * modules/snprintf (Makefile.am): Likewise.
40704         * modules/stat-macros (Makefile.am): Likewise.
40705         * modules/stat-time (Makefile.am): Likewise.
40706         * modules/stdbool (Makefile.am): Likewise.
40707         * modules/stdint (Makefile.am): Likewise.
40708         * modules/stdlib-safer (Makefile.am): Likewise.
40709         * modules/stpcpy (Makefile.am): Likewise.
40710         * modules/stpncpy (Makefile.am): Likewise.
40711         * modules/strcase (Makefile.am): Likewise.
40712         * modules/strcasestr (Makefile.am): Likewise.
40713         * modules/strchrnul (Makefile.am): Likewise.
40714         * modules/strcspn (Makefile.am): Likewise.
40715         * modules/strdup (Makefile.am): Likewise.
40716         * modules/strerror (Makefile.am): Likewise.
40717         * modules/strftime (Makefile.am): Likewise.
40718         * modules/strndup (Makefile.am): Likewise.
40719         * modules/strnlen (Makefile.am): Likewise.
40720         * modules/strpbrk (Makefile.am): Likewise.
40721         * modules/strsep (Makefile.am): Likewise.
40722         * modules/strstr (Makefile.am): Likewise.
40723         * modules/strtod (Makefile.am): Likewise.
40724         * modules/strtoimax (Makefile.am): Likewise.
40725         * modules/strtok_r (Makefile.am): Likewise.
40726         * modules/strtol (Makefile.am): Likewise.
40727         * modules/strtoll (Makefile.am): Likewise.
40728         * modules/strtoul (Makefile.am): Likewise.
40729         * modules/strtoull (Makefile.am): Likewise.
40730         * modules/strtoumax (Makefile.am): Likewise.
40731         * modules/strverscmp (Makefile.am): Likewise.
40732         * modules/sys_socket (Makefile.am): Likewise.
40733         * modules/sys_stat (Makefile.am): Likewise.
40734         * modules/sysexits (Makefile.am): Likewise.
40735         * modules/time_r (Makefile.am): Likewise.
40736         * modules/timegm (Makefile.am): Likewise.
40737         * modules/timespec (Makefile.am): Likewise.
40738         * modules/tmpfile-safer (Makefile.am): Likewise.
40739         * modules/trim (Makefile.am): Likewise.
40740         * modules/unistd-safer (Makefile.am): Likewise.
40741         * modules/unlinkdir (Makefile.am): Likewise.
40742         * modules/unlocked-io (Makefile.am): Likewise.
40743         * modules/userspec (Makefile.am): Likewise.
40744         * modules/utime (Makefile.am): Likewise.
40745         * modules/utimecmp (Makefile.am): Likewise.
40746         * modules/utimens (Makefile.am): Likewise.
40747         * modules/vasnprintf (Makefile.am): Likewise.
40748         * modules/vasprintf (Makefile.am): Likewise.
40749         * modules/vsnprintf (Makefile.am): Likewise.
40750         * modules/xalloc (Makefile.am): Likewise.
40751         * modules/xgetcwd (Makefile.am): Likewise.
40752         * modules/xnanosleep (Makefile.am): Likewise.
40753         * modules/xreadlink (Makefile.am): Likewise.
40754         * modules/xstrtod (Makefile.am): Likewise.
40755         * modules/xstrtol (Makefile.am): Likewise.
40756         * modules/xstrtold (Makefile.am): Likewise.
40757         * modules/yesno (Makefile.am): Likewise.
40758         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40759
40760 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40761
40762         * modules/error (Makefile.am): Distribute files through
40763         EXTRA_DIST, not lib_SOURCES.
40764
40765 2006-10-12  Eric Blake  <ebb9@byu.net>
40766
40767         * modules/error (Makefile.am): Distribute files in /lib.
40768         * modules/obstack (Makefile.am): Likewise.
40769
40770 2006-10-12  Bruno Haible  <bruno@clisp.org>
40771
40772         * modules/acl (Makefile.am): Distribute all files in lib/ through
40773         EXTRA_DIST.
40774         * modules/arcfour (Makefile.am): Likewise.
40775         * modules/arctwo (Makefile.am): Likewise.
40776         * modules/argmatch (Makefile.am): Likewise.
40777         * modules/argz (Makefile.am): Likewise.
40778         * modules/atexit (Makefile.am): Likewise.
40779         * modules/backupfile (Makefile.am): Likewise.
40780         * modules/c-strtod (Makefile.am): Likewise.
40781         * modules/c-strtold (Makefile.am): Likewise.
40782         * modules/calloc (Makefile.am): Likewise.
40783         * modules/canon-host (Makefile.am): Likewise.
40784         * modules/canonicalize (Makefile.am): Likewise.
40785         * modules/chdir-long (Makefile.am): Likewise.
40786         * modules/chdir-safer (Makefile.am): Likewise.
40787         * modules/check-version (Makefile.am): Likewise.
40788         * modules/chown (Makefile.am): Likewise.
40789         * modules/cloexec (Makefile.am): Likewise.
40790         * modules/close-stream (Makefile.am): Likewise.
40791         * modules/closeout (Makefile.am): Likewise.
40792         * modules/crc (Makefile.am): Likewise.
40793         * modules/cycle-check (Makefile.am): Likewise.
40794         * modules/des (Makefile.am): Likewise.
40795         * modules/dirfd (Makefile.am): Likewise.
40796         * modules/dirname (Makefile.am): Likewise.
40797         * modules/dup2 (Makefile.am): Likewise.
40798         * modules/euidaccess (Makefile.am): Likewise.
40799         * modules/exclude (Makefile.am): Likewise.
40800         * modules/exitfail (Makefile.am): Likewise.
40801         * modules/fcntl-safer (Makefile.am): Likewise.
40802         * modules/file-type (Makefile.am): Likewise.
40803         * modules/fileblocks (Makefile.am): Likewise.
40804         * modules/filemode (Makefile.am): Likewise.
40805         * modules/filenamecat (Makefile.am): Likewise.
40806         * modules/fnmatch (Makefile.am): Likewise.
40807         * modules/fopen-safer (Makefile.am): Likewise.
40808         * modules/fpending (Makefile.am): Likewise.
40809         * modules/fprintftime (Makefile.am): Likewise.
40810         * modules/free (Makefile.am): Likewise.
40811         * modules/fsusage (Makefile.am): Likewise.
40812         * modules/ftruncate (Makefile.am): Likewise.
40813         * modules/fts (Makefile.am): Likewise.
40814         * modules/gc (Makefile.am): Likewise.
40815         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40816         * modules/getaddrinfo (Makefile.am): Likewise.
40817         * modules/getcwd (Makefile.am): Likewise.
40818         * modules/getdelim (Makefile.am): Likewise.
40819         * modules/getdomainname (Makefile.am): Likewise.
40820         * modules/getgroups (Makefile.am): Likewise.
40821         * modules/gethostname (Makefile.am): Likewise.
40822         * modules/gethrxtime (Makefile.am): Likewise.
40823         * modules/getline (Makefile.am): Likewise.
40824         * modules/getloadavg (Makefile.am): Likewise.
40825         * modules/getlogin_r (Makefile.am): Likewise.
40826         * modules/getopt (Makefile.am): Likewise.
40827         * modules/getpass (Makefile.am): Likewise.
40828         * modules/getpass-gnu (Makefile.am): Likewise.
40829         * modules/getsubopt (Makefile.am): Likewise.
40830         * modules/gettime (Makefile.am): Likewise.
40831         * modules/gettimeofday (Makefile.am): Likewise.
40832         * modules/getugroups (Makefile.am): Likewise.
40833         * modules/getusershell (Makefile.am): Likewise.
40834         * modules/glob (Makefile.am): Likewise.
40835         * modules/group-member (Makefile.am): Likewise.
40836         * modules/hard-locale (Makefile.am): Likewise.
40837         * modules/hash (Makefile.am): Likewise.
40838         * modules/hmac-md5 (Makefile.am): Likewise.
40839         * modules/hmac-sha1 (Makefile.am): Likewise.
40840         * modules/human (Makefile.am): Likewise.
40841         * modules/idcache (Makefile.am): Likewise.
40842         * modules/imaxabs (Makefile.am): Likewise.
40843         * modules/imaxdiv (Makefile.am): Likewise.
40844         * modules/inet_ntop (Makefile.am): Likewise.
40845         * modules/inet_pton (Makefile.am): Likewise.
40846         * modules/inttostr (Makefile.am): Likewise.
40847         * modules/isapipe (Makefile.am): Likewise.
40848         * modules/lchown (Makefile.am): Likewise.
40849         * modules/long-options (Makefile.am): Likewise.
40850         * modules/lstat (Makefile.am): Likewise.
40851         * modules/malloc (Makefile.am): Likewise.
40852         * modules/mathl (Makefile.am): Likewise.
40853         * modules/mbchar (Makefile.am): Likewise.
40854         * modules/md2 (Makefile.am): Likewise.
40855         * modules/md4 (Makefile.am): Likewise.
40856         * modules/md5 (Makefile.am): Likewise.
40857         * modules/memcasecmp (Makefile.am): Likewise.
40858         * modules/memchr (Makefile.am): Likewise.
40859         * modules/memcmp (Makefile.am): Likewise.
40860         * modules/memcoll (Makefile.am): Likewise.
40861         * modules/memcpy (Makefile.am): Likewise.
40862         * modules/memmem (Makefile.am): Likewise.
40863         * modules/memmove (Makefile.am): Likewise.
40864         * modules/mempcpy (Makefile.am): Likewise.
40865         * modules/memrchr (Makefile.am): Likewise.
40866         * modules/memset (Makefile.am): Likewise.
40867         * modules/memxor (Makefile.am): Likewise.
40868         * modules/mkancesdirs (Makefile.am): Likewise.
40869         * modules/mkdir (Makefile.am): Likewise.
40870         * modules/mkdir-p (Makefile.am): Likewise.
40871         * modules/mkdtemp (Makefile.am): Likewise.
40872         * modules/mkstemp (Makefile.am): Likewise.
40873         * modules/mktime (Makefile.am): Likewise.
40874         * modules/modechange (Makefile.am): Likewise.
40875         * modules/mountlist (Makefile.am): Likewise.
40876         * modules/nanosleep (Makefile.am): Likewise.
40877         * modules/openat (Makefile.am): Likewise.
40878         * modules/pagealign_alloc (Makefile.am): Likewise.
40879         * modules/physmem (Makefile.am): Likewise.
40880         * modules/poll (Makefile.am): Likewise.
40881         * modules/posixtm (Makefile.am): Likewise.
40882         * modules/posixver (Makefile.am): Likewise.
40883         * modules/putenv (Makefile.am): Likewise.
40884         * modules/quote (Makefile.am): Likewise.
40885         * modules/quotearg (Makefile.am): Likewise.
40886         * modules/raise (Makefile.am): Likewise.
40887         * modules/read-file (Makefile.am): Likewise.
40888         * modules/readline (Makefile.am): Likewise.
40889         * modules/readlink (Makefile.am): Likewise.
40890         * modules/readtokens (Makefile.am): Likewise.
40891         * modules/readutmp (Makefile.am): Likewise.
40892         * modules/realloc (Makefile.am): Likewise.
40893         * modules/regex (Makefile.am): Likewise.
40894         * modules/rename (Makefile.am): Likewise.
40895         * modules/rename-dest-slash (Makefile.am): Likewise.
40896         * modules/rijndael (Makefile.am): Likewise.
40897         * modules/rmdir (Makefile.am): Likewise.
40898         * modules/rpmatch (Makefile.am): Likewise.
40899         * modules/safe-read (Makefile.am): Likewise.
40900         * modules/safe-write (Makefile.am): Likewise.
40901         * modules/same (Makefile.am): Likewise.
40902         * modules/save-cwd (Makefile.am): Likewise.
40903         * modules/savedir (Makefile.am): Likewise.
40904         * modules/setenv (Makefile.am): Likewise.
40905         * modules/settime (Makefile.am): Likewise.
40906         * modules/sha1 (Makefile.am): Likewise.
40907         * modules/sig2str (Makefile.am): Likewise.
40908         * modules/snprintf (Makefile.am): Likewise.
40909         * modules/stdlib-safer (Makefile.am): Likewise.
40910         * modules/stpcpy (Makefile.am): Likewise.
40911         * modules/stpncpy (Makefile.am): Likewise.
40912         * modules/strcase (Makefile.am): Likewise.
40913         * modules/strcasestr (Makefile.am): Likewise.
40914         * modules/strchrnul (Makefile.am): Likewise.
40915         * modules/strcspn (Makefile.am): Likewise.
40916         * modules/strdup (Makefile.am): Likewise.
40917         * modules/strerror (Makefile.am): Likewise.
40918         * modules/strftime (Makefile.am): Likewise.
40919         * modules/strndup (Makefile.am): Likewise.
40920         * modules/strnlen (Makefile.am): Likewise.
40921         * modules/strpbrk (Makefile.am): Likewise.
40922         * modules/strsep (Makefile.am): Likewise.
40923         * modules/strstr (Makefile.am): Likewise.
40924         * modules/strtod (Makefile.am): Likewise.
40925         * modules/strtoimax (Makefile.am): Likewise.
40926         * modules/strtok_r (Makefile.am): Likewise.
40927         * modules/strtol (Makefile.am): Likewise.
40928         * modules/strtoll (Makefile.am): Likewise.
40929         * modules/strtoul (Makefile.am): Likewise.
40930         * modules/strtoull (Makefile.am): Likewise.
40931         * modules/strtoumax (Makefile.am): Likewise.
40932         * modules/strverscmp (Makefile.am): Likewise.
40933         * modules/time_r (Makefile.am): Likewise.
40934         * modules/timegm (Makefile.am): Likewise.
40935         * modules/tmpfile-safer (Makefile.am): Likewise.
40936         * modules/unistd-safer (Makefile.am): Likewise.
40937         * modules/unlinkdir (Makefile.am): Likewise.
40938         * modules/userspec (Makefile.am): Likewise.
40939         * modules/utime (Makefile.am): Likewise.
40940         * modules/utimecmp (Makefile.am): Likewise.
40941         * modules/utimens (Makefile.am): Likewise.
40942         * modules/vasnprintf (Makefile.am): Likewise.
40943         * modules/vasprintf (Makefile.am): Likewise.
40944         * modules/vsnprintf (Makefile.am): Likewise.
40945         * modules/xalloc (Makefile.am): Likewise.
40946         * modules/xgetcwd (Makefile.am): Likewise.
40947         * modules/xnanosleep (Makefile.am): Likewise.
40948         * modules/xreadlink (Makefile.am): Likewise.
40949         * modules/xstrtod (Makefile.am): Likewise.
40950         * modules/xstrtol (Makefile.am): Likewise.
40951         * modules/xstrtold (Makefile.am): Likewise.
40952         * modules/yesno (Makefile.am): Likewise.
40953
40954 2006-10-12  Jim Meyering  <jim@meyering.net>
40955
40956         * m4/getloadavg.m4: Revert the change below.
40957
40958         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40959         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40960         fail with a symlink, which is what coreutils' ./bootstrap now
40961         creates by default.
40962
40963 2006-10-12  Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40966         mingw.
40967         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40968         MSVC and mingw explicitly.
40969
40970 2006-10-11  Simon Josefsson  <jas@extundo.com>
40971             Bruno Haible  <bruno@clisp.org>
40972
40973         Add support for multiple gnulib-tool invocations in the scope of a
40974         single configure.ac file.
40975         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40976         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40977         with the same contents as the _LIBADD variable.
40978         (func_emit_initmacro_start, func_emit_initmacro_end,
40979         func_emit_initmacro_done): New functions.
40980         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40981         gl_LIBOBJS and gl_LTLIBOBJS.
40982
40983 2006-10-11  Bruno Haible  <bruno@clisp.org>
40984
40985         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40986         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40987         autoreconf. Instead, invoke autopoint explicitly but move back the
40988         *.m4 files from gnulib.
40989
40990 2006-10-11  Bruno Haible  <bruno@clisp.org>
40991
40992         * gnulib-tool (func_usage): Make module names after --create-testdir
40993         optional.
40994         (func_create_testdir): If no module was specified, use nearly all
40995         modules.
40996
40997 2006-10-12  Jim Meyering  <jim@meyering.net>
40998
40999         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41000         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41001         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41002         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41003         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41004         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41005         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41006         (fts_set_stat_required): New function.
41007         (fts_open): Defer the calls to fts_stat, if possible or requested.
41008         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41009         into fts_stat itself.
41010         (fts_read): Perform any required (deferred) fts_stat call.
41011         (fts_build): Likewise, for the directory we're about to open and read.
41012         In the readdir loop, carefully decide whether each entry will require
41013         an eventual call to fts_stat, using dirent.d_type info if available.
41014         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41015         a command line argument into this function.  Update all callers.
41016         Map a return value of FTS_DOT to FTS_D for a command line argument.
41017         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41018         Thanks to Miklos Szeredi for his tenacity and for the initial
41019         bug report about "find" failing on a FUSE-based file system.
41020
41021         * lib/fts.c (fts_open): Use consistent indentation.
41022
41023 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41024
41025         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41026         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41027         reported by Jim Meyering.  All uses of cache variables renamed
41028         to match Autoconf's.
41029         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41030         the other one.
41031
41032         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41033         Fix misspelling in diagnostic.
41034
41035 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41036
41037         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41038         defined.  Problem reported by Matthew Woehlke.
41039
41040         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41041         Add support for Tandem NonStop R series.
41042         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41043         Use new macro.
41044
41045         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41046         (has_trailing_slash): Omit size arg; all callers changed.
41047         Omit 'inline', since it doesn't help performance and we'd
41048         need to configure it.
41049         Don't count //, ///, etc. as having a trailing slash.
41050         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41051         (rpl_rename_dest_slash): On failure, use rename's errno rather
41052         than (in some cases) an incorrect or junk errno.
41053         Simplify code by removing need to compute length; this does
41054         cause it to make two passes instead of one over the file name,
41055         but it's worth it.
41056
41057         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41058         change, since Autoconf's version may no longer be appropriate now
41059         that we are using CVS Autoconf's version.  Add support for Tandem.
41060
41061 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41062             Bruno Haible  <bruno@clisp.org>
41063
41064         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41065         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41066         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41067         gl_AC_TYPE_LONG_LONG.
41068
41069         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41070         instead of HAVE_LONG_LONG.
41071         * lib/printf-args.c (printf_fetchargs): Likewise.
41072         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41073         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41074         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41075         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41076         gl_AC_TYPE_LONG_LONG.
41077
41078 2006-10-11  Bruno Haible  <bruno@clisp.org>
41079
41080         * m4/longlong.m4: Add comments.
41081         * m4/ulonglong.m4: Likewise.
41082
41083 2006-10-10  Bruno Haible  <bruno@clisp.org>
41084
41085         Make it possible to #define stpcpy, strdup to aliases.
41086         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41087         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41088
41089 2006-10-10  Bruno Haible  <bruno@clisp.org>
41090
41091         Make it possible to #define gcd to an alias.
41092         * lib/gcd.c: Include config.h.
41093
41094 2006-10-10  Bruno Haible  <bruno@clisp.org>
41095
41096         Make it possible to #define c_isascii to an alias.
41097         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41098         defined. Undefine the macros before defining them, to avoid gcc
41099         warnings.
41100         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41101         define NO_C_CTYPE_MACROS early.
41102
41103 2006-10-10  Bruno Haible  <bruno@clisp.org>
41104
41105         Make it possible to #define set_program_name to an alias.
41106         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41107         ENABLE_RELOCATABLE early.
41108
41109 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41110
41111         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41112         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41113         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41114         More generally, don't assume that 64-bit signed int is available
41115         if unsigned int is, and vice versa.
41116         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41117         unsigned symbols, not on their signed counterparts.
41118         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41119         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41120         (UINT64_C, UINTMAX_C):
41121         Likewise.
41122         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41123         unsigned counterparts.
41124         (Have_long_long, Unsigned): New macros.
41125         (Int): Renamed from INT.
41126         (strtoimax): Use the new macros.
41127         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41128         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41129         * modules/inttypes (inttypes.h): Substitute
41130         HAVE_UNSIGNED_LONG_LONG_INT.
41131         * modules/stdint (stdint.h): Likewise.
41132         (Files): Add m4/ulonglong.m4.
41133
41134 2006-10-10  Bruno Haible  <bruno@clisp.org>
41135
41136         Fix a gcc -Wshadow warning.
41137         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41138         to 'bucket'.
41139         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41140         gl_linked_indexof_from_to): Likewise.
41141         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41142         Likewise.
41143         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41144         Likewise.
41145         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41146         Reported by Eric Blake.
41147
41148 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41149
41150         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41151         for NetBSD.  Problem reported by Bruno Haible.
41152
41153 2006-10-09  Jim Meyering  <jim@meyering.net>
41154
41155         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41156         Patch from Bruno Haible.
41157
41158 2006-10-09  Jim Meyering  <jim@meyering.net>
41159
41160         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41161         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41162         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41163
41164 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41165
41166         Don't include <config.h> twice; this doesn't work in some cases,
41167         e.g., when config.h has "#define intmax_t long long int" and
41168         we include <config.h>, <inttypes.h>, <config.h> in that order.
41169         Problem reported by Matthew Woehlke in:
41170         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41171         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41172         * lib/fts-cycle.c: Don't include config.h.
41173         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41174         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41175         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41176         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41177         inttypes.h.
41178         * lib/xstrtoumax.c: Likewise.
41179         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41180         __strtol and the like, so that this module is more like its siblings.
41181         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41182         Remove; no longer needed now that we assume gnulib inttypes.h.
41183
41184 2006-10-08  Bruno Haible  <bruno@clisp.org>
41185
41186         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41187         option.
41188
41189 2006-10-07  Jim Meyering  <jim@meyering.net>
41190
41191         * modules/inttypes (inttypes.h): Revert what seems to have been
41192         an inadvertent part of today's change: use "|", not "/" in the
41193         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41194
41195 2006-10-07  Bruno Haible  <bruno@clisp.org>
41196
41197         * modules/sublist: New file.
41198
41199 2006-10-07  Bruno Haible  <bruno@clisp.org>
41200
41201         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41202         * modules/argz (argz.h): Likewise.
41203         * modules/arpa_inet (arpa/inet.h): Likewise.
41204         * modules/byteswap (byteswap.h): Likewise.
41205         * modules/configmake (configmake.h): Likewise.
41206         * modules/fcntl (fcntl.h): Likewise.
41207         * modules/fnmatch (fnmatch.h): Likewise.
41208         * modules/getopt (getopt.h): Likewise.
41209         * modules/glob (glob.h): Likewise.
41210         * modules/inttypes (inttypes.h): Likewise.
41211         * modules/netinet_in (netinet/in.h): Likewise.
41212         * modules/poll (poll.h): Likewise.
41213         * modules/stdbool (stdbool.h): Likewise.
41214         * modules/stdint (stdint.h): Likewise.
41215         * modules/sys_select (sys/select.h): Likewise.
41216         * modules/sys_socket (sys/socket.h): Likewise.
41217         * modules/sys_stat (sys/stat.h): Likewise.
41218         * modules/sysexits (sysexits.h): Likewise.
41219         * modules/unistd (unistd.h): Likewise.
41220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41221         Add a "DO NOT EDIT" comment to the generated file.
41222         (func_import): Likewise for gnulib-comp.m4.
41223
41224 2006-10-07  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/gl_sublist.h: New file.
41227         * lib/gl_sublist.c: New file.
41228
41229 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41230
41231         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41232         name (relative to the original working directory) and the file
41233         name component (relative to the temporary working directory).  All
41234         callers changed.
41235         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41236         * lib/mkdir-p.c (make_dir_parents): Likewise.
41237         * lib/mkdir-p.h (make_dir_parents): Likewise.
41238
41239 2006-10-06  Eric Blake  <ebb9@byu.net>
41240
41241         Define several macros for use by the clean-temp module.
41242         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41243         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41244         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41245
41246         * lib/clean-temp.h (close_stream_temp): New declaration.
41247         * lib/clean-temp.c (includes): Pull in headers according to what
41248         other modules are in use.
41249         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41250
41251 2006-10-06  Bruno Haible  <bruno@clisp.org>
41252
41253         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41254         instead of fopen, fwriteerror.
41255
41256 2006-10-06  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41259         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41260         int.
41261         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41262         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41263         Return an error indicator.
41264         Suggested by Eric Blake.
41265
41266 2006-10-06  Bruno Haible  <bruno@clisp.org>
41267
41268         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41269         Reported by Eric Blake.
41270
41271 2006-10-06  Bruno Haible  <bruno@clisp.org>
41272
41273         * modules/closeout (Description): Mention stderr too.
41274
41275 2006-10-06  Bruno Haible  <bruno@clisp.org>
41276         and Paul Eggert  <eggert@cs.ucla.edu>
41277
41278         * lib/closeout.c (close_stdout): Also close stderr.
41279         * lib/closeout.h: Update comment.
41280
41281 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41282
41283         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41284         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41285         * lib/dirchownmod.c: Include lchown.h.
41286         * lib/lchown.c: Don't include files that lchown.h now includes.
41287         Don't declare chown, since lchown.h now does that.
41288         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41289         (lchown): Define to rpl_chown if lchown is declared but
41290         does not exist.  Declare using a prototype if lchown is not
41291         declared.  Add a copyright notice.
41292         * lib/mkstemp.h: Include <unistd.h>.
41293         * lib/openat.c: Include lchown.h.
41294
41295         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41296         we now test for that separately.
41297         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41298         rather than O_NOFOLLOW, when testing whether it's possible to
41299         avoid a race condition reliably.
41300         * lib/savewd.c (savewd_chdir): Likewise.
41301
41302         Remove macros that are no longer needed now that stdint.h is
41303         reliable.
41304         * lib/fsusage.c (UINTMAX_MAX): Remove.
41305         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41306         * lib/utimecmp.c (SIZE_MAX): Remove.
41307
41308         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41309
41310         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41311         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41312         O_NOATIME works.
41313
41314 2006-10-05  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/gl_list.h (gl_sortedlist_search_from_to,
41317         gl_sortedlist_indexof_from_to): New declarations.
41318         (gl_list_implementation): New fields sortedlist_search_from_to,
41319         sortedlist_indexof_from_to.
41320         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41321         inline functions.
41322         * lib/gl_list.c (gl_sortedlist_search_from_to,
41323         gl_sortedlist_indexof_from_to): New functions.
41324         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41325         function.
41326         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41327         (gl_array_sortedlist_search_from_to): New function.
41328         (gl_array_list_implementation): Update.
41329         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41330         function.
41331         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41332         (gl_carray_sortedlist_search_from_to): New function.
41333         (gl_carray_list_implementation): Update.
41334         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41335         gl_linked_sortedlist_indexof_from_to): New functions.
41336         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41337         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41338         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41339         gl_tree_sortedlist_indexof_from_to): New functions.
41340         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41342         Update.
41343         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41344         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41345         Update.
41346
41347 2006-10-05  Bruno Haible  <bruno@clisp.org>
41348
41349         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41350         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41351         (struct gl_list_implementation): Add fields search_from_to,
41352         indexof_from_to. Remove fields search, indexof.
41353         (gl_list_search): Use the search_from_to method.
41354         (gl_list_search_from, gl_list_search_from_to): New functions.
41355         (gl_list_indexof): Use the indexof_from_to method.
41356         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41357         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41358         (gl_list_search_from, gl_list_search_from_to): New functions.
41359         (gl_list_indexof): Use the indexof_from_to method.
41360         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41361         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41362         gl_array_indexof. Add start_index, end_index arguments.
41363         (gl_array_search_from_to): Renamed from gl_array_search. Add
41364         start_index, end_index arguments.
41365         (gl_array_remove, gl_array_list_implementation): Update.
41366         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41367         gl_carray_indexof. Add start_index, end_index arguments.
41368         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41369         start_index, end_index arguments.
41370         (gl_carray_remove, gl_carray_list_implementation): Update.
41371         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41372         gl_linked_search. Add start_index, end_index arguments.
41373         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41374         start_index, end_index arguments.
41375         (gl_linked_remove): Update.
41376         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41377         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41378         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41379         field to 'size_t'.
41380         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41381         gl_tree_search. Add start_index, end_index arguments.
41382         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41383         start_index, end_index arguments.
41384         (gl_tree_remove): Update.
41385         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41386         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41387         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41388         function.
41389         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41390         gl_tree_search. Add start_index, end_index arguments.
41391         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41392         start_index, end_index arguments.
41393         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41394         Update.
41395         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41396
41397 2006-10-05  Bruno Haible  <bruno@clisp.org>
41398
41399         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41400
41401         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41402         fwriteerror_temp): New declarations.
41403         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41404         (descriptors): New variable.
41405         (cleanup): First, close the descriptors.
41406         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41407         fclose_temp, fwriteerror_temp): New functions.
41408
41409 2006-10-04  Jim Meyering  <jim@meyering.net>
41410
41411         * lib/fts.c (fts_open): Tiny comment change.
41412
41413 2006-10-04  Bruno Haible  <bruno@clisp.org>
41414
41415         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41416         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41417         gl_LOCK_BODY.
41418         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41419         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41420         gl_LOCK_EARLY_BODY.
41421         (gl_LOCK): Require gl_LOCK_BODY.
41422
41423 2006-10-04  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41426         (gl_oset_search_atleast): New declaration.
41427         (struct gl_oset_implementation): Add field 'search_atleast'.
41428         (gl_oset_search_atleast): New inline function.
41429         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41430         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41431         (gl_array_oset_implementation): Update.
41432         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41433         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41434         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41435
41436 2006-10-04  Bruno Haible  <bruno@clisp.org>
41437
41438         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41439
41440 2006-10-03  Bruno Haible  <bruno@clisp.org>
41441
41442         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41443         from gl_avltreehash_list_implementation.
41444
41445 2006-10-03  Bruno Haible  <bruno@clisp.org>
41446
41447         * lib/gl_oset.c (gl_oset_add): Fix return type.
41448
41449 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41450
41451         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41452
41453 2006-10-02  Eric Blake  <ebb9@byu.net>
41454
41455         * modules/strnlen (Depends-on): Add extensions.
41456
41457 2006-10-02  Eric Blake  <ebb9@byu.net>
41458
41459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41460         definition in 2.60+.
41461
41462 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41463
41464         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41465         checks.
41466
41467 2006-10-02  Bruno Haible  <bruno@clisp.org>
41468
41469         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41470         to the AUTOMAKE_OPTIONS.
41471         Reported by Jim Meyering.
41472
41473 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41474
41475         Work around bug in Solaris 10 /proc file system:
41476         /proc/self/fd/NNN/.. isn't the parent directory of
41477         the directory whose file descriptor is NNN.  This needs to
41478         be worked around at run time, not compile time, since a
41479         program might be built on Solaris 8, where things work, and
41480         run on Solaris 10.
41481         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41482         to use the following interface instead:
41483         (OPENAT_BUFFER_SIZE): New macro.
41484         (openat_proc_name): New function.
41485         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41486         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41487         Likewise.
41488         * lib/openat-proc.c: New file.
41489         * modules/openat (Files): Add lib/openat-proc.c.
41490         (Depends-on): Add same-inode, stdbool.
41491         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41492
41493 2006-09-29  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41496         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41497         argument. Set stdout_closed before testing for ferror, not after.
41498         (fwriteerror, fwriteerror_no_ebadf): New functions.
41499
41500 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41501
41502         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41503
41504 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41505
41506         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41507         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41508
41509 2006-09-28  Jim Meyering  <jim@meyering.net>
41510
41511         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41512         Include <unistd.h>.
41513
41514 2006-09-28  Bruno Haible  <bruno@clisp.org>
41515
41516         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41517         * modules/linkedhash-list (Depends-on): Likewise.
41518         * modules/rbtreehash-list (Depends-on): Likewise.
41519
41520 2006-09-28  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/strndup.h: Simplify the redefinition of strndup.
41523         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41524         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41525
41526 2006-09-28  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41529         * lib/gl_linkedhash_list.c: Likewise.
41530         * lib/gl_rbtreehash_list.c: Likewise.
41531
41532 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41533
41534         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41535         getaddrinfo.
41536
41537         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41538         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41539         it causes <stdio_ext.h> to cause a compile-time error.
41540         Problem reported by Nelson H. F. Beebe.
41541         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41542         of HAVE_DECL___PENDING.
41543
41544         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41545         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41546         declaration.
41547
41548 2006-09-27  Jim Meyering  <jim@meyering.net>
41549
41550         This file could end up with a definition for a function
41551         named __strndup, rather than rpl_strndup on a system with
41552         incomplete weak_alias support.
41553         * lib/strndup.c (strndup): Rename from __strndup.
41554         Remove #defines that used to map __strndup to strndup.
41555         Don't use K&R prototypes.
41556         Remove LIBC-related code, since this file is not sync'd with glibc.
41557         * lib/strndup.h: Revamp, accordingly.
41558         * m4/strndup.m4: Modernize.
41559
41560 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41561
41562         * modules/savewd (Depends-on): Add 'raise'.
41563         * lib/savewd.c: Include <signal.h>, for 'raise'.
41564
41565 2006-09-26  Jim Meyering  <jim@meyering.net>
41566
41567         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41568         when we detect Darwin 8.7.0's acl_get_file bug.
41569         Rearrange to perform the new (below) run-test while $LIBS
41570         contains any acl-related library.  Set USE_ACL at the end.
41571         (gl_ACL_GET_FILE): New function.
41572
41573 2006-09-26  Eric Blake  <ebb9@byu.net>
41574
41575         * lib/verror.c: Include <config.h> unconditionally.
41576
41577 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41578
41579         * modules/clock-time (Maintainer): Add self.
41580         * modules/getlogin_r (Depends-on): Add extensions.
41581
41582 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41583
41584         * modules/clock-time: New module.
41585         * modules/nanosleep (Depends-on): Add clock-time.
41586         * modules/gethrxtime (Depends-on): Likewise.
41587         * modules/gettime (Depends-on): Likewise.
41588         * modules/settime (Depends-on): Likewise.
41589
41590         * modules/fts-lgpl: Depend on openat.
41591         * modules/mkancesdirs: Depend on savewd.
41592         * modules/mkdir-p: Likewise.
41593
41594 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41595
41596         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41597
41598         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41599         `gl_have_arbitrary_file_name_length_limit' to
41600         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41601         actually works between configure runs.
41602
41603 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41604             Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41607
41608 2006-09-25  Jim Meyering  <jim@meyering.net>
41609
41610         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41611         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41612
41613 2006-09-25  Eric Blake  <ebb9@byu.net>
41614
41615         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41616         exec's in 2006-09-18 patch when shuffling fds.
41617
41618 2006-09-25  Bruno Haible  <bruno@clisp.org>
41619
41620         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41621         Reported by Jim Meyering.
41622
41623 2006-09-24  Jim Meyering  <jim@meyering.net>
41624
41625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41626         compare a pointer against a literal "0".  That caused failures with
41627         at least HP-UX's hpcc.
41628
41629 2006-09-22  Simon Josefsson  <jas@extundo.com>
41630
41631         * modules/gc-sha1:
41632         * modules/gc-md4:
41633         * modules/gc-hmac-sha1:
41634         * modules/gc-hmac-md5:
41635         * modules/gc-des:
41636         * modules/gc-arcfour: Distribute more files.
41637
41638 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41639
41640         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41641         (gl_linked_iterator_from_to): Initialize struct completely.
41642         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41643         (gl_tree_iterator_from_to): Likewise
41644         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41645         * lib/gl_array_list.c [lint] (gl_array_iterator)
41646         (gl_array_iterator_from_to): Likewise.
41647         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41648         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41649         (gl_carray_iterator_from_to): Likewise.
41650
41651         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41652         * lib/md4.c (md4_process_block): Remove unused variable.
41653         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41654         parentheses for clarity.
41655
41656 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41657
41658         * modules/bison-i18n (Depends-on): Add gettext.
41659
41660 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41661
41662         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41663         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41664         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41665         also add missing comma that caused broken test.
41666         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41667         stdlib.h, for `abort'.
41668         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41669         variables.
41670         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41671         include unistd.h if present, for `rmdir'.
41672         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41673         variables.
41674         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41675         in the process include standard headers for prototypes.
41676         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41677         gets declared on GNU/Linux.
41678         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41679         unistd.h, for `rmdir'.
41680         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41681
41682         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41683         always true.
41684         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41685
41686         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41687
41688 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41689
41690         * gnulib-tool (func_version): Create output all at once.  This
41691         may help avoid triggering unnecessary SIGPIPEs, and at any
41692         rate it doesn't hurt.
41693
41694 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41695             Bruno Haible  <bruno@clisp.org>
41696
41697         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41698         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41699         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41700
41701         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41702         (gl_FUNC_VASPRINTF): Invoke it.
41703
41704 2006-09-22  Bruno Haible  <bruno@clisp.org>
41705
41706         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41707         getloadavg.c as first argument.
41708
41709 2006-09-22  Bruno Haible  <bruno@clisp.org>
41710
41711         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41712         at the beginning of the gl_INIT macro.
41713         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41714         gl_GETLOADAVG.
41715
41716 2006-09-22  Bruno Haible  <bruno@clisp.org>
41717
41718         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41719         module.
41720         Suggested by Ralf Wildenhues.
41721
41722 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         Import this patch from libc:
41725
41726         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41727
41728         * lib/regex_internal.c (re_string_reconstruct): Handle
41729         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41730         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41731         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41732         re_string_context_at.
41733
41734         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41735         now requires it.
41736         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41737         gl_REGEX now does it for us.
41738         (gl_REGEX): Add test taken from
41739         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41740
41741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41742         Check that large offsets work.  Modernize Autoconf usages.
41743         Prefer "yes" to mean a good thing rather than a bad.
41744         Don't put "#define mkstemp" in config.h, as this might interfere
41745         with standard system headers that "#define mkstemp mkstemp64".
41746
41747         * modules/mkstemp (Depends-on): Add extensions, so that
41748         mkstemp is visible on some platforms.
41749         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41750         (Include): Change to "mkstemp.h" from <stdlib.h>.
41751         (Files): Add mkstemp.h.
41752
41753         * lib/mkstemp.h: New file, since some standard headers
41754         #define mkstemp.
41755         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41756         Include "mkstemp.h".
41757         Make the _LIBC code resemble glibc original more,
41758         e.g., use K&R style.
41759         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41760         (mkstemp): Remove, since mkstemp.h does this for us.
41761         * lib/stdlib--.h: Include mkstemp.h.
41762
41763         Import this patch from libc:
41764
41765         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41766
41767         * lib/tempname.c (__gen_tempname): Change attempts_min
41768         into a macro.  Use preprocessor to decide how to initialize
41769         attempts [Coverity CID 67].
41770
41771 2006-09-20  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/mkdtemp.c: Import from libc.
41774         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41775                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41776                 attempts_min into a macro.  Use preprocessor to decide how to
41777                 initialize attempts [Coverity CID 67].
41778         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41779                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41780                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41781
41782 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41783
41784         * gnulib-tool (func_exit): New function, to allow to pass the
41785         exit status portably through the trap.  Use everywhere.
41786         (--help, --version): Signal a write error.
41787         (trap): catch SIGPIPE, for write errors.
41788         Exit at the end of the trap, with the correct exit status.
41789
41790 2006-09-19  Karl Berry  <karl@gnu.org>
41791
41792         * doc/gnulib.texi: note about the license texinfo files.
41793
41794 2006-09-19  Eric Blake  <ebb9@byu.net>
41795
41796         * gnulib-tool: Avoid space-tab.
41797
41798 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41799
41800         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41801         that prevented coreutils 6.1 from building.  Problem reported
41802         by Petter Reinholdtsen.
41803
41804 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41805
41806         * gnulib-tool (avoidlist): Fix typo that broke options like
41807         --avoid=lock that are used by coreutils bootstrap.
41808
41809 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41810
41811         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41812         more systematically.
41813
41814 2006-09-18  Jim Meyering  <jim@meyering.net>
41815
41816         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41817
41818 2006-09-18  Bruno Haible  <bruno@clisp.org>
41819
41820         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41821
41822 2006-09-18  Bruno Haible  <bruno@clisp.org>
41823
41824         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41825         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41826         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41827         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41828         * m4/gettext.m4: Require autoconf >= 2.52.
41829         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41830         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41831         of gl_cv_header_inttypes_h.
41832
41833 2006-09-18  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/javaversion.c: Include configmake.h.
41836
41837 2006-09-18  Bruno Haible  <bruno@clisp.org>
41838
41839         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41840         avoid that the while loops be executed in a subshell.
41841
41842 2006-09-18  Bruno Haible  <bruno@clisp.org>
41843
41844         * MODULES.html.sh (func_module): Break long lines.
41845         Suggested by Bruce Korb <bkorb@gnu.org>.
41846
41847 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41848
41849         Speed up by a factor of 1.12.
41850         * gnulib-tool (nl): New variable.
41851         (func_import): Rewrite include directive extraction to only read each
41852         directive once.
41853
41854 2006-09-17  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/javaversion (Makefile.am): Remove DEFS setting.
41857         (Depends-on): Add configmake, for PKGDATADIR definition.
41858
41859 2006-09-17  Bruno Haible  <bruno@clisp.org>
41860
41861         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41862
41863 2006-09-17  Bruno Haible  <bruno@clisp.org>
41864
41865         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41866         (func_modules_transitive_closure, func_modules_add_dummy,
41867         func_modules_to_filelist, func_import, func_create_testdir,
41868         func_create_megatestdir, ...): Use it wherever possible.
41869         Suggested by Ralf Wildenhues.
41870
41871 2006-09-16  Karl Berry  <karl@gnu.org>
41872
41873         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41874         to avoid sectioning errors.
41875         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41876         [ifinfo]: blank line after @center-ed titles.
41877         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41878         Spell FSF address consistently with others.
41879         (These changes approved by rms.)
41880
41881 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41882
41883         Speed up by a factor of 1.61.
41884         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41885         already checked module names again.
41886
41887 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41888
41889         Speed up by a factor of 1.13.
41890         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41891         for new_files, and the input to func_add_or_update.
41892
41893 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41894
41895         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41896         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41897
41898 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41899
41900         * modules/mkancesdirs (Depends-on): Add fcntl.
41901         * modules/savewd: New file.
41902         * MODULES.html.sh (File system functions): Add savewd.
41903
41904         * modules/configmake (Makefile.am): Add support for the
41905         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41906
41907 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41908
41909         * m4/savewd.m4: New file.
41910
41911 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41912
41913         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41914         (dirchownmod): New arg FD.  All callers changed.
41915         Use FD rather than opening the directory ourself, as opening is
41916         now the caller's responsibility.
41917         * lib/dirchownmod.h: Likewise.
41918         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41919         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41920         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41921         (test_dir): Remove.
41922         (mkancesdirs): Return length of prefix of FILE that has already
41923         been made, or -2 if there is a child doing the work.  Redo
41924         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41925         ".", and treat ".." specially since it might stray back into
41926         already-created areas.  Use a subprocess if necessary.  New arg
41927         WD; all users changed.  MAKE_DIR function should now return 1
41928         if it creates a directory that is not readable.  Return -2 if
41929         a child process is spun off.
41930         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41931         Adjust signature to match code.
41932         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41933         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41934         all users changed.
41935         * lib/savewd.c, lib/savewd.h: New files.
41936
41937 2006-09-15  Jim Meyering  <jim@meyering.net>
41938
41939         * modules/rename-dest-slash: New module.
41940         * MODULES.html.sh (posix_compat): Add it here.
41941
41942         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41943
41944 2006-09-15  Jim Meyering  <jim@meyering.net>
41945
41946         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41947         file.
41948
41949         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41950
41951 2006-09-15  Jim Meyering  <jim@meyering.net>
41952
41953         * lib/rename-dest-slash.c (has_trailing_slash): Use
41954         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41955         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41956         test before testing whether SRC is a directory.
41957         Suggestions from Bruno Haible.
41958
41959         Avoid a warning about an unused variable.
41960         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41961         into the #ifdef block where it's used.
41962
41963         * lib/rename-dest-slash.c: New file.
41964
41965 2006-09-14  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/allocsa.c: Include <config.h> unconditionally.
41968         * lib/asnprintf.c: Likewise.
41969         * lib/asprintf.c: Likewise.
41970         * lib/c-strcasecmp.c: Likewise.
41971         * lib/c-strcasestr.c: Likewise.
41972         * lib/c-strncasecmp.c: Likewise.
41973         * lib/c-strstr.c: Likewise.
41974         * lib/classpath.c: Likewise.
41975         * lib/clean-temp.c: Likewise.
41976         * lib/concatpath.c: Likewise.
41977         * lib/copy-file.c: Likewise.
41978         * lib/csharpcomp.c: Likewise.
41979         * lib/csharpexec.c: Likewise.
41980         * lib/execute.c: Likewise.
41981         * lib/fatal-signal.c: Likewise.
41982         * lib/findprog.c: Likewise.
41983         * lib/fwriteerror.c: Likewise.
41984         * lib/gl_array_list.c: Likewise.
41985         * lib/gl_array_oset.c: Likewise.
41986         * lib/gl_avltree_list.c: Likewise.
41987         * lib/gl_avltree_oset.c: Likewise.
41988         * lib/gl_avltreehash_list.c: Likewise.
41989         * lib/gl_carray_list.c: Likewise.
41990         * lib/gl_linked_list.c: Likewise.
41991         * lib/gl_linkedhash_list.c: Likewise.
41992         * lib/gl_list.c: Likewise.
41993         * lib/gl_oset.c: Likewise.
41994         * lib/gl_rbtree_list.c: Likewise.
41995         * lib/gl_rbtree_oset.c: Likewise.
41996         * lib/gl_rbtreehash_list.c: Likewise.
41997         * lib/imaxabs.c: Likewise.
41998         * lib/imaxdiv.c: Likewise.
41999         * lib/javacomp.c: Likewise.
42000         * lib/javaexec.c: Likewise.
42001         * lib/javaversion.c: Likewise.
42002         * lib/linebreak.c: Likewise.
42003         * lib/localcharset.c: Likewise.
42004         * lib/lock.c: Likewise.
42005         * lib/mbchar.c: Likewise.
42006         * lib/mbswidth.c: Likewise.
42007         * lib/mkdtemp.c: Likewise.
42008         * lib/pipe.c: Likewise.
42009         * lib/printf-args.c: Likewise.
42010         * lib/printf-parse.c: Likewise.
42011         * lib/progname.c: Likewise.
42012         * lib/progreloc.c: Likewise.
42013         * lib/readlink.c: Likewise.
42014         * lib/sh-quote.c: Likewise.
42015         * lib/stpcpy.c: Likewise.
42016         * lib/stpncpy.c: Likewise.
42017         * lib/strcasecmp.c: Likewise.
42018         * lib/strcasestr.c: Likewise.
42019         * lib/strcspn.c: Likewise.
42020         * lib/striconv.c: Likewise.
42021         * lib/strncasecmp.c: Likewise.
42022         * lib/strnlen1.c: Likewise.
42023         * lib/strstr.c: Likewise.
42024         * lib/strtok_r.c: Likewise.
42025         * lib/tls.c: Likewise.
42026         * lib/tmpdir.c: Likewise.
42027         * lib/unicodeio.c: Likewise.
42028         * lib/unsetenv.c: Likewise.
42029         * lib/vasnprintf.c: Likewise.
42030         * lib/vasprintf.c: Likewise.
42031         * lib/wait-process.c: Likewise.
42032         * lib/xallocsa.c: Likewise.
42033         * lib/xsetenv.c: Likewise.
42034         * lib/xstriconv.c: Likewise.
42035
42036 2006-09-13  Simon Josefsson  <jas@extundo.com>
42037
42038         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42039         that internally, suggested by Ralf Wildenhues
42040         <Ralf.Wildenhues@gmx.de>.
42041
42042 2006-09-13  Simon Josefsson  <jas@extundo.com>
42043
42044         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42045         @LIBOBJS@.
42046         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42047
42048 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42049
42050         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42051         longer worry about uses that don't define HAVE_CONFIG_H.
42052         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42053         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42054         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42055         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42056         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42057         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42058         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42059         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42060         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42061         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42062         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42063         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42064         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42065         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42066         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42067         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42068         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42069         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42070         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42071         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42072         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42073         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42074         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42075         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42076         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42077         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42078         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42079         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42080         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42081         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42082         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42083         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42084         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42085         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42086         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42087         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42088         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42089         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42090         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42091         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42092         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42093         Likewise.
42094
42095 2006-09-13  Eric Blake  <ebb9@byu.net>
42096
42097         * lib/getopt.c: Fix typo in last commit.
42098
42099 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42100
42101         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42102         dgettext.
42103
42104 2006-09-12  Jim Meyering  <jim@meyering.net>
42105
42106         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42107         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42108         Reported by Nelson H. F. Beebe.
42109
42110 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42111
42112         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42113         program_invocation_name and program_invocation_short_name are
42114         initialized.
42115         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42116         and program_invocation_short_name to argp.h, so they are visible
42117         to user programs.
42118         * lib/argp.h: Likewise
42119
42120 2006-09-10  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42123         m4/inttypes_h.m4, m4/uintmax_t.m4.
42124
42125 2006-09-10  Bruno Haible  <bruno@clisp.org>
42126
42127         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42128         gl_AC_TYPE_UINTMAX_T.
42129
42130 2006-09-10  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42133
42134 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42135
42136         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42137         convention.  Text proposed by Bruno Haible.
42138         (struct argp_option): Document the use of N_() wrappers.
42139
42140         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42141         '\v', and translate the two parts separately, instead of feeding
42142         the whole string to gettext.  This allows to exclude
42143         '\v' from the strings visible to the translator by writing doc
42144         strings as N_("..") "\v" N_("..").
42145
42146 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42147
42148         * config/srclist.txt: Undo latest change; the bug was fixed.
42149
42150 2006-09-09  Bruno Haible  <bruno@clisp.org>
42151
42152         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42153         assignments if building a library without libtool.
42154         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42155         in func_emit_lib_Makefile_am.
42156         (func_import): When building a static library libfoo.a, arrange to
42157         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42158         (func_create_testdir): Likewise.
42159         * modules/gc (configure.ac, Makefile.am): If building statically,
42160         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42161         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42162         * modules/striconv (configure.ac, Makefile.am): Likewise.
42163         Based on a suggestion by Ralf Wildenhues.
42164
42165 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42166
42167         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42168         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42169         Also:
42170
42171         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42172         Add year_2050_test to catch glibc bug 2821
42173         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42174
42175         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42176         Prefer #ifdef to #if.
42177
42178         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42179         Return from 'main' instead of calling 'exit'.
42180
42181 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42182
42183         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42184         returned the maximum time_t value rather than (time_t) -1.
42185         Problem originally reported by William Bardwell
42186         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42187
42188         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42189         Moved to here ...
42190         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42191         ... from here.
42192
42193 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42194
42195         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42196         2821 is fixed.
42197
42198 2006-09-08  Jim Meyering  <jim@meyering.net>
42199
42200         Don't make generated files read-only.  That would bother too many
42201         people.  However, do retain the ability to work when targets are
42202         read-only: remove the destination and temporary files before writing
42203         them (when generated via sed or echo), or by using the -f option for
42204         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42205         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42206         * modules/byteswap, modules/configmake, modules/fcntl:
42207         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42208         * modules/localcharset, modules/netinet_in, modules/poll:
42209         * modules/stdbool, modules/stdint, modules/sys_select:
42210         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42211
42212 2006-09-08  Jim Meyering  <jim@meyering.net>
42213
42214         Avoid new build failure on FreeBSD 6.0.
42215         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42216         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42217         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42218
42219 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42220
42221         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42222
42223 2006-09-07  Jim Meyering  <jim@meyering.net>
42224
42225         Fix global typo in last change: use chmod u-w, not chmod u-x.
42226         Spotted by Paul Eggert and Bruce Korb.
42227         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42228         * modules/byteswap, modules/configmake, modules/fcntl:
42229         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42230         * modules/localcharset, modules/netinet_in, modules/poll:
42231         * modules/stdbool, modules/stdint, modules/sys_select:
42232         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42233
42234 2006-09-06  Jim Meyering  <jim@meyering.net>
42235
42236         Make generated files be read-only.
42237         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42238         Ensure that each generated file is now read-only.
42239         * modules/argz: Likewise.
42240         * modules/arpa_inet: Likewise.
42241         * modules/byteswap: Likewise.
42242         * modules/configmake: Likewise.
42243         * modules/fcntl: Likewise.
42244         * modules/fnmatch: Likewise.
42245         * modules/getopt: Likewise.
42246         * modules/glob: Likewise.
42247         * modules/inttypes: Likewise.
42248         * modules/netinet_in: Likewise.
42249         * modules/poll: Likewise.
42250         * modules/stdbool: Likewise.
42251         * modules/stdint: Likewise.
42252         * modules/sys_select: Likewise.
42253         * modules/sys_socket: Likewise.
42254         * modules/sys_stat: Likewise.
42255         * modules/sysexits: Likewise.
42256         * modules/localcharset: Same as above, but continue using temporary
42257         file named "t-$@" (why different?) rather than the "$@-t" used
42258         everywhere else.
42259
42260         * modules/sysexits (Makefile.am): Replace literal occurrences
42261         of "sysexit.h" more readable, and more consistent, "$@".
42262
42263 2006-09-06  Bruno Haible  <bruno@clisp.org>
42264
42265         * modules/striconv: New file.
42266         * modules/xstriconv: New file.
42267         * MODULES.html.sh (Internationalization functions): Add striconv,
42268         xstriconv.
42269
42270 2006-09-06  Bruno Haible  <bruno@clisp.org>
42271
42272         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42273         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42274         not using libtool correctly.
42275
42276 2006-09-06  Bruno Haible  <bruno@clisp.org>
42277
42278         * lib/striconv.h: New file.
42279         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42280         iconvstring.c.
42281         * lib/xstriconv.h: New file.
42282         * lib/xstriconv.c: New file.
42283
42284 2006-09-06  Bruno Haible  <bruno@clisp.org>
42285
42286         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42287         lib_..._LDFLAGS.
42288
42289 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42290
42291         * lib/argz_.h: Sync from Libtool.
42292
42293         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42294                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42295
42296         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42297
42298 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42299
42300         * modules/trim: New file.
42301
42302 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42303
42304         * lib/trim.h: New file.
42305         * lib/trim.c: New file.
42306
42307 2006-09-05  Bruno Haible  <bruno@clisp.org>
42308
42309         * MODULES.html.sh (String handling): Add trim.
42310
42311 2006-09-04  Karl Berry  <karl@gnu.org>
42312
42313         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42314         until next release.
42315
42316 2006-09-03  Bruno Haible  <bruno@clisp.org>
42317
42318         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42319         correctly.
42320
42321 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42322
42323         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42324         not gl_GETLOADAVG.  Omit unneeded semicolons.
42325         Problems reported by Ralf Wildenhues in
42326         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42327         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42328         at the end, which is the usual gnulib style.
42329
42330         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42331         of doing all the work ourselves.
42332         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42333         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42334
42335 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42338         Problem reported by Ralf Wildenhues in
42339         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42340
42341         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42342         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42343
42344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42345
42346         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42347         yesterday's patch by changing test -n to test -z.
42348
42349 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42350
42351         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42352         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42353         the former is now obsolescent.
42354
42355         * modules/chdir-long (Depends-on): Add fcntl.
42356
42357 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42358
42359         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42360         obsolescent, and programs should use gnulib instead.
42361         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42362         but with prefixes changed.
42363
42364 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42365
42366         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42367         or stdbool.h, because they might not exist while configuring.
42368
42369         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42370         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42371         does that for us.
42372         (O_DIRECTORY): Remove.
42373
42374 2006-08-31  Eric Blake  <ebb9@byu.net>
42375
42376         * gnulib-tool: Don't let emacs change spaces to TAB.
42377
42378 2006-08-31  Bruno Haible  <bruno@clisp.org>
42379
42380         * gnulib-tool: When calling func_import more than once, do it in a
42381         subshell.
42382         Reported by Eric Blake <ebb9@byu.net>.
42383
42384 2006-08-31  Bruno Haible  <bruno@clisp.org>
42385
42386         * gnulib-tool (nl): Remove variable.
42387         (sed_transform_lib_file): Use more robust test for config-h module.
42388         (func_import): Fix typo in 2006-08-25 patch.
42389
42390 2006-08-31  Bruno Haible  <bruno@clisp.org>
42391
42392         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42393         specified, augment Makefile.am variables instead of assigning them.
42394
42395 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42396
42397         Work around a bug in both the Linux and SunOS 64-bit kernels:
42398         nanosleep mishandles sleeps for longer than 2**31 seconds.
42399         Problem reported by Frank v Waveren in
42400         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42402         Check for nanosleep bug.
42403         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42404
42405 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42406
42407         Work around a bug in both the Linux and SunOS 64-bit kernels:
42408         nanosleep mishandles sleeps for longer than 2**31 seconds.
42409         Problem reported by Frank v Waveren in
42410         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42411         * lib/nanosleep.c (BILLION): New constant.
42412         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42413         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42414         implementation.
42415
42416 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42417
42418         * modules/nanosleep (Depends-on): Add gettime.
42419
42420 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42421         and Simon Josefsson  <jas@extundo.com>
42422         and Oskar Liljeblad  <oskar@osk.mine.nu>
42423
42424         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42425         * gnulib-tool (func_import): New license type 'unmodifiable license
42426         text'.
42427         * modules/fdl: Use it.  Longer description.
42428         * module/gpl, module/lgpl: New files.
42429
42430 2006-08-30  Jim Meyering  <jim@meyering.net>
42431
42432         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42433         shadowing the parameter.
42434
42435 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42436
42437         Sync from Libtool:
42438
42439         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42440
42441         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42442         sharing with gnulib.  Report by Eric Blake.
42443
42444 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42445
42446         * modules/isapipe: New file.
42447         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42448
42449 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42450
42451         * modules/configmake (Makefile.am): Add a comment, and omit
42452         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42453         by Bruno Haible.
42454
42455 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42456
42457         * m4/isapipe.m4: New file.
42458
42459 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42460
42461         * lib/isapipe.c, lib/isapipe.h: New files.
42462
42463 2006-08-29  Jim Meyering  <jim@meyering.net>
42464
42465         * modules/configmake (Makefile.am): Make configmake.h depend on
42466         Makefile.  Otherwise, a stale configmake.h could hang around.
42467
42468 2006-08-29  Eric Blake  <ebb9@byu.net>
42469
42470         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42471         resolution of upstream bug 3044.
42472
42473 2006-08-29  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/localcharset (Depends-on): Add configmake.
42476         (Makefile.am): Remove setting of LIBDIR through DEFS.
42477
42478 2006-08-29  Bruno Haible  <bruno@clisp.org>
42479
42480         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42481         defined.
42482
42483 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42484
42485         * modules/fcntl: New file.
42486         * modules/chdir-safer (Depends-on): Add fcntl.
42487         * modules/fts: Likewise.
42488         * modules/mkdir-p: Likewise.
42489
42490         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42491         This undoes the most recent change, since we're now addressing the
42492         problem in a different way.
42493
42494         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42495         into output, since the output might be called Makefile.am even
42496         if $makefile_name is something different.
42497         (func_import): Use $makefile_am rather than
42498         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42499         empty.
42500
42501         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42502
42503 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42504
42505         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42506         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42507         recent change to stdint.m4, since we're now addressing the problem in a
42508         different way.
42509
42510 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42511
42512         * m4/fcntl_h.m4: New file.
42513
42514 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42515
42516         * lib/fcntl_.h: New file.
42517         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42518         the fcntl module.
42519         * lib/dirchownmod.c: Likewise.
42520         * lib/fts.c: Likewise.
42521
42522         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42523         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42524         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42525         just before including <inttypes.h>, to avoid circular inclusion.
42526
42527 2006-08-28  Jim Meyering  <jim@meyering.net>
42528
42529         * doc/visibility.texi: Actually read and correct the grammar of the
42530         sentence affected by yesterday's change.
42531
42532 2006-08-28  Eric Blake  <ebb9@byu.net>
42533
42534         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42535         needs wrapper.
42536
42537 2006-08-28  Eric Blake  <ebb9@byu.net>
42538
42539         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42540
42541 2006-08-28  Eric Blake  <ebb9@byu.net>
42542
42543         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42544
42545 2006-08-28  Bruno Haible  <bruno@clisp.org>
42546
42547         * modules/c-strstr: New file, from GNU gettext.
42548         * MODULES.html.sh (String handling): Add c-strstr.
42549
42550 2006-08-28  Bruno Haible  <bruno@clisp.org>
42551
42552         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42553         macros.
42554         Reported by Eric Blake.
42555
42556 2006-08-28  Bruno Haible  <bruno@clisp.org>
42557
42558         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42559         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42560         * lib/vasprintf.c: Include errno.h, limits.h.
42561         (EOVERFLOW): New fallback definition.
42562         (vasprintf): Test here whether the string length is > INT_MAX.
42563         * lib/vsnprintf.c: Include errno.h, limits.h.
42564         (EOVERFLOW): New fallback definition.
42565         (vsnprintf): Fix bug when generated string was too long for the buffer.
42566         Test here whether the string length is > INT_MAX.
42567
42568 2006-08-28  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/inttypes_.h (SCNX*): Remove definitions.
42571         Reported by Eric Blake.
42572
42573 2006-08-28  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/c-strstr.h: New file, from GNU gettext.
42576         * lib/c-strstr.c: New file, from GNU gettext.
42577
42578 2006-08-28  Bruno Haible  <bruno@clisp.org>
42579
42580         * gnulib-tool: Reorder some statements.
42581
42582 2006-08-28  Bruno Haible  <bruno@clisp.org>
42583
42584         * gnulib-tool: New option --makefile-name.
42585         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42586         $makefile_name.
42587         (func_import): Write $makefile_name to the cache file, and read it from
42588         there unless explicitly specified. Use $makefile_name as file name
42589         instead of Makefile.am. Adjust the recommendations accordingly.
42590
42591 2006-08-28  Bruno Haible  <bruno@clisp.org>
42592
42593         * gnulib-tool (func_verify_module): Check against misapplying patch.
42594
42595 2006-08-28  Bruno Haible  <bruno@clisp.org>
42596
42597         * gnulib-tool (func_relativize, func_relconcat): New functions.
42598         Give an error if --local-dir is given with --update.
42599         Remove trailing slashes from $local_gnulib_dir.
42600         (func_import): Store the relativized $local_gnulib_dir in
42601         gnulib-cache.m4, and read it from there if not specified explicitly.
42602
42603 2006-08-28  Bruno Haible  <bruno@clisp.org>
42604
42605         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42606         is the current directory. Respect also $local_gnulib_dir.
42607
42608 2006-08-28  Bruno Haible  <bruno@clisp.org>
42609             Simon Josefsson  <jas@extundo.com>
42610
42611         BeOS portability.
42612         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42613
42614 2006-08-27  Jim Meyering  <jim@meyering.net>
42615
42616         * doc/visibility.texi: Remove duplicate word: "pointer".
42617
42618 2006-08-26  Bruno Haible  <bruno@clisp.org>
42619
42620         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42621         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42622         (Makefile.am): Create inttypes.h from inttypes_.h.
42623         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42624
42625         * modules/imaxabs: New file.
42626
42627         * modules/imaxdiv: New file.
42628
42629 2006-08-26  Bruno Haible  <bruno@clisp.org>
42630
42631         * m4/inttypes.m4: New file.
42632         * m4/_inttypes_h.m4: Remove file.
42633         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42634         PRI_MACROS_BROKEN.
42635         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42636
42637         * m4/imaxabs.m4: New file.
42638
42639         * m4/imaxdiv.m4: New file.
42640
42641 2006-08-26  Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/inttypes_.h: New file.
42644         * lib/inttypes.h: Remove file.
42645         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42646
42647         * lib/imaxabs.c: New file.
42648
42649         * lib/imaxdiv.c: New file.
42650
42651 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42652
42653         New config-h module, so that "make" output needn't be cluttered
42654         by -DHAVE_CONFIG_H.
42655         * MODULES.html.sh (Support for building libraries and executables):
42656         Add config-h.
42657         * modules/config-h: New file.
42658         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42659         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42660         the config-h module is used.
42661
42662         New configmake module, so that "make" output needn't be cluttered
42663         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42664         * MODULES.html.sh (Support for building libraries and executables):
42665         Add configmake.
42666         * modules/configmake: New file.
42667
42668 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42669
42670         * m4/config-h.m4: New file.
42671
42672 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42673
42674         * config/srclist.txt: Add elisp-comp.
42675
42676 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42677
42678         * MODULES.html.sh (Support for building libraries and executables):
42679         Add elisp-comp.
42680         * build-aux/elisp-comp: New file.
42681         * modules/elisp-comp: New file.
42682
42683 2006-08-24  Bruno Haible  <bruno@clisp.org>
42684
42685         * gnulib-tool (func_create_testdir): Use non-default values of
42686         sourcebase and m4base.
42687
42688 2006-08-24  Bruno Haible  <bruno@clisp.org>
42689
42690         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42691         HTML structure.
42692
42693 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42694
42695         * modules/openat (Depends-on): Add lchown.
42696
42697 2006-08-23  Bruno Haible  <bruno@clisp.org>
42698
42699         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42700         of gl_LOCK_EARLY instead of gl_LOCK.
42701
42702 2006-08-23  Bruno Haible  <bruno@clisp.org>
42703
42704         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42705         on OSF/1 to no.
42706         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42707
42708 2006-08-23  Bruno Haible  <bruno@clisp.org>
42709
42710         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42711         as unusable.
42712
42713         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42714         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42715         (gl_LOCK): New macro.
42716
42717 2006-08-22  Simon Josefsson  <jas@extundo.com>
42718
42719         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42720         to md5 module.
42721
42722 2006-08-22  Simon Josefsson  <jas@extundo.com>
42723
42724         * MODULES.html.sh: Add "Support for maintaining and release
42725         projects".
42726
42727         * build-aux/gnupload: New file, from coreutils.
42728
42729 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42730
42731         Avoid the need for AC_LIBSOURCES in m4 macros.
42732         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42733         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42734         * modules/check-version (EXTRA_DIST): Add check-version.h.
42735         * modules/crc (EXTRA_DIST): Add crc.h.
42736         * modules/des (EXTRA_DIST): Add des.h.
42737         * modules/gc (EXTRA_DIST): Add gc.h.
42738         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42739         * modules/getline (EXTRA_DIST): Add getline.h.
42740         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42741         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42742         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42743         * modules/md2 (EXTRA_DIST): Add md2.h.
42744         * modules/md4 (EXTRA_DIST): Add md4.h.
42745         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42746         * modules/read-file (EXTRA_DIST): Add read-file.h.
42747         * modules/readline (EXTRA_DIST): Add readline.h.
42748         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42749         rijndael-api-fst.h.
42750
42751 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42752
42753         * m4/rijndael.m4 (gl_ARCFOUR):
42754         * m4/arctwo.m4 (gl_ARCTWO):
42755         * m4/check-version.m4 (gl_CHECK_VERSION):
42756         * m4/crc.m4 (gl_CRC):
42757         * m4/des.m4 (gl_DES):
42758         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42759         * m4/gc.m4 (gl_GC):
42760         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42761         * m4/getline.m4 (gl_FUNC_GETLINE):
42762         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42763         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42764         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42765         * m4/md2.m4 (gl_MD2):
42766         * m4/md4.m4 (gl_MD4):
42767         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42768         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42769         * m4/readline.m4 (gl_FUNC_READLINE):
42770         * m4/rijndael.m4 (gl_RIJNDAEL):
42771         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42772         to get the necessary .h files and whatnot.
42773
42774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42775
42776         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42777         gnulib rather than the other way around.
42778         * config/srclistvars.sh (COREUTILS): Remove.
42779
42780 2006-08-22  Jim Meyering  <jim@meyering.net>
42781
42782         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42783
42784         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42785
42786 2006-08-22  Eric Blake  <ebb9@byu.net>
42787
42788         * modules/regexprops-generic: New file.
42789         * MODULES.html.sh (Support for building documentation): List it.
42790
42791 2006-08-22  Eric Blake  <ebb9@byu.net>
42792
42793         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42794         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42795         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42796         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42797
42798 2006-08-22  Bruno Haible  <bruno@clisp.org>
42799
42800         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42801         and lib_LTLIBRARIES like the other lib_* variables.
42802
42803 2006-08-22  Bruno Haible  <bruno@clisp.org>
42804
42805         * build-aux/x-to-1.in: New file, from GNU gettext.
42806
42807 2006-08-22  Bruno Haible  <bruno@clisp.org>
42808
42809         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42810         <utmpx.h> exists.
42811
42812 2006-08-22  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42815         <utmpx.h> exists.
42816
42817 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         BeOS portability.
42820         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42821         exist.
42822         Problem reported by Bruno Haible.
42823
42824 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42825
42826         Avoid the need for AC_LIBSOURCES in m4 macros.
42827         * modules/acl (EXTRA_DIST): Add acl.h.
42828         * modules/argmatch (Files): Add m4/argmatch.m4.
42829         (configure.ac): Add gl_ARGMATCH.
42830         (EXTRA_DIST): Renamed from lib_SOURCES, for
42831         consistency with the other modules.  Remove argmatch.c.
42832         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42833         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42834         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42835         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42836         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42837         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42838         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42839         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42840         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42841         * modules/closeout (EXTRA_DIST): Add closeout.h.
42842         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42843         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42844         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42845         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42846         dirname.h; remove basename.c and stripslash.c.
42847         * modules/exclude (EXTRA_DIST): Add exclude.h.
42848         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42849         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42850         * modules/file-type (EXTRA_DIST): Add file-type.h.
42851         * modules/filemode (EXTRA_DIST): Add filemode.h.
42852         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42853         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42854         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42855         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42856         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42857         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42858         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42859         * modules/getdate (EXTRA_DIST): Add getdate.c.
42860         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42861         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42862         * modules/getpass (EXTRA_DIST): Add getpass.h.
42863         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42864         * modules/group-member (EXTRA_DIST): Add group-member.h.
42865         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42866         * modules/hash (EXTRA_DIST): Add hash.h.
42867         * modules/human (EXTRA_DIST): Add human.h.
42868         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42869         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42870         * modules/lchown (EXTRA_DIST): Add lchown.h.
42871         * modules/long-options (EXTRA_DIST): Add long-options.h.
42872         * modules/lstat (EXTRA_DIST): Add lstat.h.
42873         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42874         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42875         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42876         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42877         * modules/memxor (EXTRA_DIST): Add memxor.h.
42878         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42879         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42880         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42881         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42882         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42883         * modules/physmem (EXTRA_DIST): Add physmem.h.
42884         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42885         * modules/posixver (EXTRA_DIST): Add posixver.h.
42886         * modules/quote (EXTRA_DIST): Add quote.h.
42887         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42888         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42889         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42890         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42891         regex_internal.h regexec.c.
42892         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42893         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42894         * modules/same (EXTRA_DIST): Add same.h.
42895         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42896         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42897         * modules/savedir (EXTRA_DIST): Add savedir.h.
42898         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42899         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42900         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42901         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42902         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42903         * modules/strdup (EXTRA_DIST): Add strdup.h.
42904         * modules/strftime (EXTRA_DIST): Add strftime.h.
42905         * modules/strndup (EXTRA_DIST): Add strndup.h.
42906         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42907         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42908         * modules/time_r (EXTRA_DIST): Add time_r.h.
42909         * modules/timespec (EXTRA_DIST): Add timespec.h.
42910         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42911         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42912         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42913         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42914         * modules/userspec (EXTRA_DIST): Add userspec.h.
42915         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42916         * modules/utimens (EXTRA_DIST): Add utimens.h.
42917         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42918         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42919         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42920         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42921         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42922         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42923         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42924         * modules/yesno (EXTRA_DIST): Add yesno.h.
42925
42926 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42927
42928         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42929
42930         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42931         * m4/dev-ino.m4, same-inode.m4: Remove.
42932
42933         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42934         * m4/acl.m4 (AC_FUNC_ACL):
42935         * m4/backupfile.m4 (gl_BACKUPFILE):
42936         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42937         * m4/canon-host.m4 (gl_CANON_HOST):
42938         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42939         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42940         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42941         * m4/cloexec.m4 (gl_CLOEXEC):
42942         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42943         * m4/closeout.m4 (gl_CLOSEOUT):
42944         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42945         * m4/dirname.m4 (gl_DIRNAME):
42946         * m4/exclude.m4 (gl_EXCLUDE):
42947         * m4/exitfail.m4 (gl_EXITFAIL):
42948         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42949         * m4/file-type.m4 (gl_FILE_TYPE):
42950         * m4/filemode.m4 (gl_FILEMODE):
42951         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42952         * m4/fpending.m4 (gl_FUNC_FPENDING):
42953         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42954         * m4/fts.m4 (gl_FUNC_FTS):
42955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42956         * m4/getdate.m4 (gl_GETDATE):
42957         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42958         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42959         * m4/getpass.m4 (gl_FUNC_GETPASS):
42960         * m4/gettime.m4 (gl_GETTIME):
42961         * m4/getugroups.m4 (gl_GETUGROUPS):
42962         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42963         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42964         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42965         * m4/hash.m4 (gl_HASH):
42966         * m4/idcache.m4 (gl_IDCACHE):
42967         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42968         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42969         * m4/long-options.m4 (gl_LONG_OPTIONS):
42970         * m4/lstat.m4 (gl_FUNC_LSTAT):
42971         * m4/md5.m4 (gl_MD5):
42972         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42973         * m4/memcoll.m4 (gl_MEMCOLL):
42974         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42975         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42976         * m4/memxor.m4 (gl_MEMXOR):
42977         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42978         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42979         * m4/modechange.m4 (gl_MODECHANGE):
42980         * m4/mountlist.m4 (gl_MOUNTLIST):
42981         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42982         * m4/openat.m4 (gl_FUNC_OPENAT):
42983         * m4/pathmax.m4 (gl_PATHMAX):
42984         * m4/physmem.m4 (gl_PHYSMEM):
42985         * m4/posixtm.m4 (gl_POSIXTM):
42986         * m4/posixver.m4 (gl_POSIXVER):
42987         * m4/quote.m4 (gl_QUOTE):
42988         * m4/quotearg.m4 (gl_QUOTEARG):
42989         * m4/readtokens.m4 (gl_READTOKENS):
42990         * m4/readutmp.m4 (gl_READUTMP):
42991         * m4/regex.m4 (gl_REGEX):
42992         * m4/safe-read.m4 (gl_SAFE_READ):
42993         * m4/safe-write.m4 (gl_SAFE_WRITE):
42994         * m4/same.m4 (gl_SAME):
42995         * m4/save-cwd.m4 (gl_SAVE_CWD):
42996         * m4/savedir.m4 (gl_SAVEDIR):
42997         * m4/settime.m4 (gl_SETTIME):
42998         * m4/sha1.m4 (gl_SHA1):
42999         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43000         * m4/stat-macros.m4 (gl_STAT_MACROS):
43001         * m4/stat-time.m4 (gl_STAT_TIME):
43002         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43003         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43004         * m4/strdup.m4 (gl_FUNC_STRDUP):
43005         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43006         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43007         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43008         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43009         * m4/time_r.m4 (gl_TIME_R):
43010         * m4/timespec.m4 (gl_TIMESPEC):
43011         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43012         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43013         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43014         * m4/userspec.m4 (gl_USERSPEC):
43015         * m4/utimecmp.m4 (gl_UTIMECMP):
43016         * m4/utimens.m4 (gl_UTIMENS):
43017         * m4/xalloc.m4 (gl_XALLOC):
43018         * m4/xgetcwd.m4 (gl_XGETCWD):
43019         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43020         * m4/xreadlink.m4 (gl_XREADLINK):
43021         * m4/xstrtod.m4 (gl_XSTRTOD):
43022         * m4/yesno.m4 (gl_YESNO):
43023         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43024         to get the necessary .h files and whatnot.
43025
43026 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43027             Bruno Haible  <bruno@clisp.org>
43028
43029         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43030         /bin/sh understanding of '!' conditional negation.
43031
43032 2006-08-21  Jim Meyering  <jim@meyering.net>
43033
43034         * modules/openat (Depends-on): Really alphabetize.
43035
43036         * modules/acl (Depends-on): Add error and quote.
43037
43038         * check-module (find_included_lib_files): Add at-func.c to the
43039         ok-to-include-more-than-once white list.
43040
43041         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43042
43043 2006-08-21  Bruno Haible  <bruno@clisp.org>
43044
43045         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43046         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43047         Reported by Martin Lambers <marlam@marlam.de>.
43048
43049 2006-08-21  Bruno Haible  <bruno@clisp.org>
43050
43051         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43052         specify an installation location, don't emit a noinst_LIBRARIES or
43053         noinst_LTLIBRARIES assignment.
43054
43055 2006-08-21  Bruno Haible  <bruno@clisp.org>
43056
43057         BeOS portability.
43058         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43059         BeOS has mbrtowc() but no <wctype.h>.
43060
43061 2006-08-21  Bruno Haible  <bruno@clisp.org>
43062
43063         BeOS portability.
43064         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43065         exist.
43066
43067 2006-08-21  Bruno Haible  <bruno@clisp.org>
43068
43069         BeOS portability.
43070         * lib/mbchar.h: Include <wctype.h> only if it exists.
43071
43072 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43073
43074         Remove files that are no longer needed by their respective modules.
43075         * m4/obstack.m4: Remove.
43076         * m4/strerror_r.m4: Remove.
43077         * m4/uint32_t.m4: Remove.
43078         * m4/uintptr_t.m4: Remove.
43079         * m4/ullong_max.m4: Remove.
43080         * m4/xstrtoimax.m4: Remove.
43081         * m4/xstrtoumax.m4: Remove.
43082
43083         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43084         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43085         dependencies now capture this.
43086
43087         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43088         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43089         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43090         * m4/human.m4 (gl_HUMAN): Likewise.
43091         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43092         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43093
43094         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43095
43096         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43097         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43098         stdint.
43099         * m4/human.m4 (gl_HUMAN): Likewise.
43100         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43101         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43102         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43103         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43104         * m4/xstrtol (gl_XSTRTOL): Likewise.
43105
43106         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43107         AC_TYPE_LONG_LONG_INT.
43108         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43109         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43110         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43111         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43112
43113         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43114         on stdbool.
43115
43116         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43117         (gl_PREREQ_XSTRTOUL): Remove.
43118
43119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43120
43121         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43122         mode.
43123
43124 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43125
43126         Add and change modules to make it easier for coreutils to use
43127         gnulib-tool.
43128         * modules/backupfile (Files): Remove m4/d-ino.m4.
43129         (Depends-on): Add d-ino.
43130         * modules/cycle-check (Depends-on): Add stdint.
43131         (lib_SOURCES): Add cycle-check.h.
43132         * modules/d-ino: New module.
43133         * modules/d-type: New module.
43134         * modules/error (Files): Remove m4/strerror_r.m4.
43135         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43136         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43137         m4/inttypes_h.m4, m4/uintmax_t.m4.
43138         (Depends-on): Add stdint.
43139         (lib_SOURCES): Add fsusage.h.
43140         * modules/getcwd (Files): Remove d-ino.m4.
43141         (Depends-on): Add d-ino.
43142         * modules/getndelim2 (Depends-on): Add stdint.
43143         * modules/glob (Files): Remove m4/d-type.m4.
43144         (Depends-on): Add d-type.
43145         * modules/host-os: New module.
43146         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43147         m4/inttypes_h.m4, m4/uintmax_t.m4.
43148         * Depends-on: Add stdint.
43149         (lib_SOURCES): Add human.h.
43150         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43151         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43152         m4/uintmax_t.m4, m4/ulonglong.m4.
43153         (Depends-on): Add stdint.
43154         (EXTRA_DIST): Add inttostr.h.
43155         * modules/lchmod: New module.
43156         * modules/link-follow: New module.
43157         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43158         (Depends-on): Add lchmod.
43159         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43160         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43161         (Depends-on): Add stdint.
43162         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43163         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43164         (Depends-on): Add stdint.
43165         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43166         * modules/perl: New module.
43167         * modules/regex (Depends-on): Add stdint.
43168         * modules/rmdir-errno: New module.
43169         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43170         m4/intmax_t.m4.
43171         (Depends-on): Add stdint.
43172         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43173         m4/uintmax_t.m4.
43174         (Depends-on): Add stdint.
43175         * modules/unlink-busy: New module.
43176         * modules/utimecmp (Depends-on): Add stdint.
43177         * modules/uptime: New module.
43178         * modules/winsz-ioctl: New module.
43179         * modules/winsz-termios: New module.
43180         * modules/xnanosleep (Depends-on): Add nanosleep.
43181         * modules/ullong_max: Remove.
43182         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43183         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43184         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43185         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43186         (Depends-on): Add inttypes.
43187         (lib_SOURCES): Add xstrtol.h.
43188         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43189         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43190         * MODULES.html.sh: Move 'assert' into the assert section.
43191         Move 'dummy' into the linking section.
43192         Remove ullong_max.
43193         Add section for compatibility checks for POSIX:2001 functions,
43194         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43195         winsz-ioctl, and winsz-termios into it.
43196         Add lchmod.
43197         Add top-level Misc section and put host-os, perl, and uptime
43198         into it.
43199
43200 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43201
43202         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43203         now assume the stdint module.  Do not include inttypes.h.
43204         * lib/fsusage.h: Likewise.
43205         * lib/getndelim2.c: Likewise.
43206         * lib/human.h: Likewise.
43207         * lib/inttostr.h: Likewise.
43208         * lib/obstack.c: Likewise.
43209         * lib/regex_internal.h: Likewise.
43210         * lib/tempname.c: Likewise.
43211         * lib/utimecmp.c: Likewise.
43212         * lib/xstrtol.h: Likewise.
43213
43214         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43215
43216         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43217         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43218         * lib/xtime.h: Likewise.
43219
43220 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43221
43222         * modules/openat (Files): Add lib/fchmodat.c.
43223         Fixes problem reported by Jay Youngman.
43224
43225 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43226
43227         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43228         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43229
43230 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43231             Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43234         and is a script that invokes bison. Tighten the code. Add comments.
43235
43236 2006-08-18  Jim Meyering  <jim@meyering.net>
43237
43238         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43239         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43240         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43241         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43242
43243 2006-08-18  Bruno Haible  <bruno@clisp.org>
43244
43245         * modules/bison-i18n: New file.
43246         * MODULES.html.sh (Internationalization functions): Add it.
43247
43248 2006-08-18  Bruno Haible  <bruno@clisp.org>
43249
43250         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43251         sys/statvfs.h. When getmntinfo was found, check its declaration and
43252         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43253
43254 2006-08-18  Bruno Haible  <bruno@clisp.org>
43255
43256         * m4/bison-i18n.m4: New file, from bison.
43257
43258 2006-08-18  Bruno Haible  <bruno@clisp.org>
43259
43260         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43261         (ME_DUMMY): Treat "kernfs" as a dummy.
43262         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43263
43264 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43265
43266         Update from coreutils.
43267
43268         2006-08-15  Jim Meyering  <jim@meyering.net>
43269
43270         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43271
43272         2006-01-17  Jim Meyering  <jim@meyering.net>
43273
43274         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43275
43276         2006-01-11  Jim Meyering  <jim@meyering.net>
43277
43278         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43279         Check for the lchmod function.
43280
43281 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43282
43283         Update from coreutils.
43284
43285         * lib/__fpending.h: Add copyright notice.
43286         * lib/fprintftime.h: Likewise.
43287         * lib/savedir.c: Use (C) in copyright notice.
43288         * lib/savedir.h: Likewise.
43289
43290         2006-08-15  Jim Meyering  <jim@meyering.net>
43291
43292         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43293         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43294         in support of the EXPECTED_ERRNO macro.
43295         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43296         definitions.  Instead, define the appropriate symbols and include
43297         "at-func.c".
43298         * lib/mkdirat.c (mkdirat): Likewise.
43299         * lib/fchmodat.c (fchmodat): Likewise.
43300         (ENOSYS): Remove definition.
43301         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43302         it.  Don't include "unistd--.h" -- it wasn't ever used.
43303
43304         2006-01-17  Jim Meyering  <jim@meyering.net>
43305
43306         Rewrite fts.c not to change the current working directory,
43307         by using openat, fstatat, fdopendir, etc..
43308
43309         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43310         (HAVE_OPENAT_SUPPORT): Define.
43311         [_LIBC] (fchdir): Don't undef or define; no longer used.
43312         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43313         Now, this `function' always succeeds, and consumes its file descriptor
43314         parameter -- so callers must not close such FDs.  Update callers.
43315         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43316         (diropen): Add parameter, SP.  Adjust all callers.
43317         Implement using diropen_fd, rather than open.
43318         (fts_open): Initialize new member, fts_cwd_fd.
43319         Remove fts_rft-setting code.
43320         (fts_close): Close fts_cwd_fd, if necessary.
43321         (__opendir2): Define in terms of opendir or opendirat,
43322         depending on whether the FST_NOCHDIR flag is set.
43323         (fts_build): Since fts_safe_changedir consumes its FD, and since
43324         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43325         and close the dup'd file descriptor upon failure.
43326         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43327         (fts_safe_changedir): Tweak semantics to reflect that this function
43328         now calls cwd_advance_fd and hence consumes its FD argument.
43329         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43330         [struct FTS] (fts_rft): Remove now-unused member.
43331         [struct FTS] (fts_cycle.state): Improve comment.
43332
43333         * lib/openat.c (openat_needs_fchdir): New function.
43334         * lib/openat.h (openat_needs_fchdir): Declare it.
43335
43336 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43337
43338         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43339         Problem and fix reported by Pádraig Brady in
43340         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43341
43342 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43343
43344         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43345
43346 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43347
43348         * lib/memcoll.c (memcoll): Optimize for the common case where the
43349         arguments are bytewise equal.
43350
43351 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43352
43353         * doc/regexprops-generic.texi: Add a copyright notice.
43354
43355 2006-08-15  Bruno Haible  <bruno@clisp.org>
43356
43357         * modules/tmpdir (License): Change to LGPL.
43358
43359 2006-08-15  Bruno Haible  <bruno@clisp.org>
43360
43361         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43362         module.
43363
43364 2006-08-14  Simon Josefsson  <jas@extundo.com>
43365
43366         * config/srclist.txt: Add gnupload.
43367
43368 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43369
43370         Change copyright notice from LGPL 2 to GPL 2, since that's the
43371         standard form used in the gnulib repository.
43372         * tests/test-lock.c: Likewise.
43373         * tests/test-stdint.c: Likewise.
43374         * tests/test-tls.c: Likewise.
43375
43376         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43377         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43378         Add copyright notice.
43379
43380         * check-module: Add copyright notice.  Output a copyright
43381         notice if "--version" is specified.
43382         * modules/COPYING: New file.
43383         * tests/test-getaddrinfo.c: Add copyright notice.
43384         * tests/test-verify.c: Likewise.
43385
43386 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43387
43388         Change copyright notice from LGPL 2 to GPL 2, since that's the
43389         standard form used in the gnulib repository.
43390         * lib/lock.c: LGPL -> GPL.
43391         * lib/lock.h: Likewise.
43392         * lib/strnlen1.c: Likewise.
43393         * lib/strnlen1.h: Likewise.
43394         * lib/tls.c: Likewise.
43395         * lib/tls.h: Likewise.
43396         * lib/tmpdir.c: Likewise.
43397
43398         * lib/TODO: Remove; this belongs only in coreutils.
43399
43400 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43401
43402         Add copyright notices to long-enough files that lack them, since
43403         otherwise the files aren't clearly free.  Use the same notice that
43404         getdate.texi already uses.
43405         * doc/alloca-opt.texi: Add copyright notice.
43406         * doc/alloca.texi: Likewise.
43407         * doc/ctime.texi: Likewise.
43408         * doc/functions.texi: Likewise.
43409         * doc/gcd.texi: Likewise.
43410         * doc/gnulib-tool.texi: Likewise.
43411         * doc/inet_ntoa.texi: Likewise.
43412         * doc/visibility.texi: Likewise.
43413
43414         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43415         * doc/quote.texi: Add copyright notice.
43416
43417         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43418         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43419         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43420         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43421         is now obsolete, and give a pointer to the Sun list.
43422         Add copyright notice.
43423
43424 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43425
43426         * config/srclistvars.sh: Add copyright notice.
43427
43428 2006-08-14  Eric Blake  <ebb9@byu.net>
43429
43430         Import the following change from libc:
43431
43432         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43433
43434         Upstream bug 2997.
43435         * lib/misc/error.c: Add space between program name and message if file
43436         name is missing.
43437
43438 2006-08-12  Karl Berry  <karl@gnu.org>
43439
43440         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43441         remove, these originate in gnulib now.
43442
43443 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43444
43445         * doc/Makefile (standards.info standards.html standards.dvi):
43446         Also depend on make-stds.texi.
43447
43448 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43449
43450         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43451         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43452
43453         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43454         in wchar_t.  Problem reported by Eric Blake.
43455
43456         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43457         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43458         Also, help the compiler to keep LEN in a register.
43459
43460 2006-08-11  Eric Blake  <ebb9@byu.net>
43461
43462         * users.txt: Sort.  Add tar.
43463
43464 2006-08-11  Bruno Haible  <bruno@clisp.org>
43465
43466         * users.txt: New file.
43467
43468 2006-08-11  Bruno Haible  <bruno@clisp.org>
43469
43470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43471         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43472
43473 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43474
43475         * modules/snprintf (Depends-on): Remove minmax.
43476         (Maintainer): Add self and Bruno.
43477
43478 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43481         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43482         (EOVERFLOW): Define if the system does not.
43483         Do not include "minmax.h"; it wasn't used.
43484         (snprintf): Don't assume size_t promotes to an unsigned type.
43485         Fix bug when generated string was too long for the buffer: the
43486         buffer's contents are supposed to be the initial prefix of the
43487         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43488         exceeds INT_MAX; do the check ourselves.
43489
43490         Import the following changes from libc:
43491
43492         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43493
43494         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43495         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43496         set wc to the byte which couldn't be converted.
43497         (re_string_reconstruct): Don't clear valid_raw_len before calling
43498         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43499         tip_context using re_string_context_at.
43500
43501         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43502
43503         * lib/posix/regex.h: g++ still cannot handled [restrict].
43504
43505         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43506
43507         * lib/posix/regex.h: Remove special handling for VMS.
43508
43509 2006-08-10  Jim Meyering  <jim@meyering.net>
43510
43511         * modules/same-inode: New module.
43512         * modules/dev-ino: New module.
43513         * modules/cycle-check: Depend on these modules, rather than simply
43514         including their .h files.
43515         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43516         required via m4/cycle-check.m4.
43517         * modules/same: Depend on new same-inode module, rather than
43518         including same-inode.h.
43519         * modules/chdir-safer: New file.
43520
43521         * modules/chown (Depends-on): Add stat-macros.
43522
43523 2006-08-10  Jim Meyering  <jim@meyering.net>
43524
43525         * m4/cycle-check.m4: New file.
43526         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43527         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43528
43529 2006-08-10  Eric Blake  <ebb9@byu.net>
43530
43531         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43532         in from original proposal.
43533
43534 2006-08-10  Eric Blake  <ebb9@byu.net>
43535         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43536
43537         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43538         namespace.
43539
43540 2006-08-10  Bruno Haible  <bruno@clisp.org>
43541
43542         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43543         as well.
43544
43545 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43546
43547         Sync from coreutils.
43548
43549         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43550
43551         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43552         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43553
43554 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * modules/restrict: Remove; no longer needed now that we assume
43557         Autoconf 2.59 or later.
43558         * MODULES.html.sh: Remove 'restrict'.
43559         * modules/argp (Depends-on): Remove 'restrict'.
43560         * modules/base64 (Depends-on): Likewise.
43561         * modules/gc (Depends-on): Likewise.
43562         * modules/getaddrinfo (Depends-on): Likewise.
43563         * modules/glob (Depends-on): Likewise.
43564         * modules/inet_ntop (Depends-on): Likewise.
43565         * modules/inet_pton (Depends-on): Likewise.
43566         * modules/memxor (Depends-on): Likewise.
43567         * modules/regex (Depends-on): Likewise.
43568         * modules/strtok_r (Depends-on): Likewise.
43569         * modules/time_r (Depends-on): Likewise.
43570
43571 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43572
43573         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43574         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43575         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43576         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43577         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43578         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43579         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43580         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43581
43582         Merge from coreutils.
43583         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43584         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43585         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43586         * m4/time_r.m4 (gl_TIME_R): Likewise.
43587
43588 2006-08-09  Karl Berry  <karl@gnu.org>
43589
43590         * config/srclist.txt: no more gettext-tools, per Bruno.
43591
43592 2006-08-08  Eric Blake  <ebb9@byu.net>
43593
43594         * modules/verror: New module.
43595         * MODULES.html.sh: Document it.
43596
43597 2006-08-08  Eric Blake  <ebb9@byu.net>
43598
43599         * lib/verror.h, lib/verror.c: New files.
43600
43601 2006-08-08  Eric Blake  <ebb9@byu.net>
43602
43603         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43604         verror_at_line output complies with GNU Coding Standards even when
43605         file is NULL.
43606
43607 2006-08-07  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43610         versions of AIX.
43611         Reported by Ralf Wildenhues.
43612
43613 2006-08-07  Bruno Haible  <bruno@clisp.org>
43614
43615         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43616         in an AC_DEFUN. Needed so that the autoconf snippets can use
43617         AC_REQUIRE.
43618
43619 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43620
43621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43622         Initialize pkgdata_DATA.
43623         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43624         overriding it.
43625
43626 2006-08-06  Eric Blake  <ebb9@byu.net>
43627
43628         * lib/error.h: Fold in some upstream changes from glibc.
43629         * lib/error.c: Likewise.
43630
43631 2006-08-04  Bruno Haible  <bruno@clisp.org>
43632
43633         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43634         Make the mostlyclean-local rule depend on mostlyclean-generic.
43635         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43636
43637 2006-07-31  Bruno Haible  <bruno@clisp.org>
43638
43639         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43640         <stdlib.h>, <string.h>.
43641
43642 2006-07-30  Bruno Haible  <bruno@clisp.org>
43643
43644         * modules/readlink (License): Change to LGPL.
43645
43646 2006-07-30  Bruno Haible  <bruno@clisp.org>
43647
43648         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43649         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43650         set PKGDATADIR to point to it.
43651
43652 2006-07-30  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/csharpexec (configure.ac): Comment out macro invocation.
43655         * modules/javaexec (configure.ac): Likewise.
43656         * modules/javacomp-script (configure.ac): Likewise.
43657
43658         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43659
43660 2006-07-30  Bruno Haible  <bruno@clisp.org>
43661
43662         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43663         linked-list.
43664
43665 2006-07-30  Bruno Haible  <bruno@clisp.org>
43666
43667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43668
43669 2006-07-30  Bruno Haible  <bruno@clisp.org>
43670
43671         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43672         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43673         get removed.
43674
43675 2006-07-29  Bruno Haible  <bruno@clisp.org>
43676
43677         Make it possible for gnulib-tool to work with locally modified or
43678         augmented gnulib repositories.
43679         * gnulib-tool (func_usage): Document --local-dir option.
43680         (local_gnulib_dir): New variable.
43681         Handle --local-dir option.
43682         (func_lookup_file): New function.
43683         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43684         (func_get_description, func_get_filelist, func_get_description,
43685         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43686         func_get_automake_snippet, func_get_include_directive,
43687         func_get_license, func_get_maintainer): Use func_lookup_file.
43688         (func_import, func_create_testdir): Use func_lookup_file.
43689
43690 2006-07-29  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/setenv (Depends-on): Add unistd.
43693
43694 2006-07-29  Bruno Haible  <bruno@clisp.org>
43695
43696         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43697
43698 2006-07-29  Bruno Haible  <bruno@clisp.org>
43699
43700         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43701
43702 2006-07-29  Bruno Haible  <bruno@clisp.org>
43703
43704         * gnulib-tool (import, update): If there is no Makefile.am, look at
43705         aclocal.m4, instead of bailing out.
43706
43707 2006-07-29  Bruno Haible  <bruno@clisp.org>
43708
43709         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43710         Categorize the options by when they are useful.
43711
43712 2006-07-29  Bruno Haible  <bruno@clisp.org>
43713
43714         * gnulib-tool (func_usage): Document option --no-libtool.
43715         Handle option --no-libtool.
43716         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43717         for changed semantics of $libtool variable.
43718         (func_import): Likewise. If libtool is not used, show this through
43719         an option --no-libtool.
43720         (func_create_testdir): Update.
43721
43722 2006-07-29  Bruno Haible  <bruno@clisp.org>
43723
43724         * gnulib-tool (func_import): Extend error message about missing
43725         --doc-base.
43726
43727 2006-07-29  Bruno Haible  <bruno@clisp.org>
43728
43729         * gnulib-tool (func_import): Don't create the $docbase directory if
43730         there is no file to store there.
43731
43732 2006-07-29  Bruno Haible  <bruno@clisp.org>
43733
43734         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43735         relevant, look for configure.ac there, not in the current directory.
43736         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43737
43738 2006-07-29  Bruno Haible  <bruno@clisp.org>
43739
43740         * gnulib-tool (SORT): New variable.
43741         (func_usage): Undocument --assume-autoconf option.
43742         Remove --assume-autoconf option handling.
43743         (autoconf_minversion): Determine from the contents of configure.ac.
43744         (func_import): Remove autoconf_minversion handling.
43745         Suggested by Eric Blake.
43746
43747 2006-07-29  Bruno Haible  <bruno@clisp.org>
43748
43749         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43750
43751 2006-07-29  Bruno Haible  <bruno@clisp.org>
43752
43753         * config/srclist.txt (*setenv.[ch]): Remove rules.
43754
43755 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43756
43757         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43758
43759 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43760
43761         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43762         arpa/inet.h.
43763
43764 2006-07-28  Simon Josefsson  <jas@extundo.com>
43765
43766         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43767         * modules/inet_pton (Depends-on): Likewise.
43768
43769 2006-07-28  Simon Josefsson  <jas@extundo.com>
43770
43771         * m4/netinet_in_h.m4: New file.
43772
43773 2006-07-28  Simon Josefsson  <jas@extundo.com>
43774
43775         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43776         #include's.
43777
43778 2006-07-28  Simon Josefsson  <jas@extundo.com>
43779
43780         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43781         #include's.
43782
43783 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43786         setgid on directories only if they set these bits.
43787         * lib/modechange.h: Remove obsolete comment about masks.
43788
43789 2006-07-28  Eric Blake  <ebb9@byu.net>
43790
43791         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43792         macro expansion.
43793
43794 2006-07-28  Bruno Haible  <bruno@clisp.org>
43795
43796         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43797
43798 2006-07-28  Bruno Haible  <bruno@clisp.org>
43799
43800         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43801
43802 2006-07-28  Bruno Haible  <bruno@clisp.org>
43803
43804         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43805         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43806         Define fallbacks.
43807         Avoids link error on FreeBSD 4.x.
43808         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43809
43810         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43811         encoding.
43812         * lib/mbswidth.c (iswcntrl): Likewise.
43813
43814 2006-07-27  Bruno Haible  <bruno@clisp.org>
43815
43816         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43817         test.
43818
43819 2006-07-27  Bruno Haible  <bruno@clisp.org>
43820
43821         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43822         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43823         defined.
43824
43825 2006-07-26  Eric Blake  <ebb9@byu.net>
43826
43827         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43828
43829 2006-07-26  Eric Blake  <ebb9@byu.net>
43830
43831         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43832         like mingw that lack mkstemp.
43833         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43834         avoid compilation warning on mingw.
43835
43836 2006-07-26  Bruno Haible  <bruno@clisp.org>
43837
43838         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43839         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43840         INT_FAST*_MIN, INTPTR_MIN.
43841
43842 2006-07-25  Bruno Haible  <bruno@clisp.org>
43843
43844         * modules/version-etc (Depends-on): Add stdarg.
43845
43846 2006-07-25  Bruno Haible  <bruno@clisp.org>
43847
43848         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43849         complex commands.
43850
43851 2006-07-25  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43854         defined in <stdarg.h> or config.h.
43855
43856 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43859         (gl_STDIO_SAFER): Remove.
43860
43861 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43862
43863         * MODULES.html.sh (File stream based Input/Output):
43864         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43865         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43866         * modules/fopen-safer, modules/tmpfile-safer: New files.
43867         * modules/stdio-safer: Remove.
43868
43869 2006-07-24  Bruno Haible  <bruno@clisp.org>
43870
43871         * modules/tmpdir: New file.
43872         * MODULES.html.sh (File system functions): Add it.
43873
43874 2006-07-24  Bruno Haible  <bruno@clisp.org>
43875
43876         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43877         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43878
43879 2006-07-24  Bruno Haible  <bruno@clisp.org>
43880
43881         * modules/clean-temp: New file.
43882
43883 2006-07-24  Bruno Haible  <bruno@clisp.org>
43884
43885         * m4/tmpdir.m4: New file, from GNU gettext.
43886
43887 2006-07-24  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/tmpdir.h: New file, from GNU gettext.
43890         * lib/tmpdir.c: New file, from GNU gettext.
43891
43892 2006-07-24  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/clean-temp.h: New file, from GNU gettext.
43895         * lib/clean-temp.c: New file, from GNU gettext.
43896
43897 2006-07-23  Eric Blake  <ebb9@byu.net>
43898
43899         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43900         (Depends-on): Add binary-io.
43901
43902 2006-07-23  Eric Blake  <ebb9@byu.net>
43903
43904         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43905
43906 2006-07-23  Eric Blake  <ebb9@byu.net>
43907
43908         * lib/tmpfile-safer.c: New file.
43909         * lib/stdio-safer.h (fopen_safer): Add prototype.
43910         * lib/stdio--.h (tmpfile): Make safer.
43911
43912 2006-07-23  Bruno Haible  <bruno@clisp.org>
43913
43914         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43915         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43916         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43917         gl_linked_remove_at): Use it.
43918
43919 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43920         and Simon Josefsson <jas@extundo.com>
43921
43922         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43923
43924         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43925
43926 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         * modules/close-stream: New file.
43929         * modules/closeout (Description): Make it clear that it exits
43930         with a diagnostic on error.
43931         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43932         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43933
43934 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43935
43936         * m4/close-stream.m4: New file.
43937
43938 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43939
43940         * lib/close-stream.c, lib/close-stream.h: New files.
43941
43942 2006-07-22  Bruno Haible  <bruno@clisp.org>
43943
43944         Merge from GNU gettext 0.15.
43945
43946         2006-05-01  Bruno Haible  <bruno@clisp.org>
43947
43948                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43949
43950         2006-07-22  Bruno Haible  <bruno@clisp.org>
43951
43952                 * modules/javaversion: New file.
43953                 * MODULES.html.sh (Java): Add javaversion.
43954
43955         2006-03-12  Bruno Haible  <bruno@clisp.org>
43956
43957                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43958
43959         2005-12-04  Bruno Haible  <bruno@clisp.org>
43960
43961                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43962                 (untested).
43963
43964         2006-06-21  Bruno Haible  <bruno@clisp.org>
43965
43966                 Avoid warnings from recent versions of mcs.
43967                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43968                 -o, -L, -r any more. Use options documented since mcs-1.0
43969                 instead. Similarly for -g.
43970
43971         2005-12-04  Bruno Haible  <bruno@clisp.org>
43972
43973                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43974                 .resources, not .resource.
43975
43976         2005-07-09  Bruno Haible  <bruno@clisp.org>
43977
43978                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43979                 add a .dll suffix.
43980                 Reported by Mark Junker <mjscod@gmx.de>.
43981
43982         2006-07-22  Bruno Haible  <bruno@clisp.org>
43983
43984                 * modules/gettext: Upgrade to gettext-0.15.
43985                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43986                 m4/visibility.m4.
43987                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43988
43989 2006-07-22  Bruno Haible  <bruno@clisp.org>
43990
43991         Merge from GNU gettext 0.15.
43992
43993         2006-03-25  Bruno Haible  <bruno@clisp.org>
43994
43995                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43996
43997         2006-07-21  Bruno Haible  <bruno@clisp.org>
43998
43999                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44000                 "1.1".
44001
44002         2006-05-09  Bruno Haible  <bruno@clisp.org>
44003
44004                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44005                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44006                 for the conftestver execution.
44007
44008         2006-05-01  Bruno Haible  <bruno@clisp.org>
44009
44010                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44011                 optional target-version argument. Verify that the compiler
44012                 groks source of the specified source-version, or add -source
44013                 option as necessary. Verify that the compiler produces
44014                 bytecode in the specified target-version, or add -target and
44015                 -source options as necessary. Make the result of the test
44016                 available as variable CONF_JAVAC. Also log error output in
44017                 config.log.
44018
44019         2006-03-11  Bruno Haible  <bruno@clisp.org>
44020
44021                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44022
44023         2006-05-09  Bruno Haible  <bruno@clisp.org>
44024
44025                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44026                 CLASSPATH_SEPARATOR to a semicolon.
44027
44028         2006-03-12  Bruno Haible  <bruno@clisp.org>
44029
44030                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44031                 available as variable CONF_JAVA, for subsequent autoconf
44032                 tests. Also log error output in config.log.
44033
44034         2006-07-19  Bruno Haible  <bruno@clisp.org>
44035
44036                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44037                 that getline works on glibc2 systems. Needed to avoid trouble
44038                 in relocatable.c.
44039                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44040
44041         2005-12-04  Bruno Haible  <bruno@clisp.org>
44042
44043                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44044                 launcher (untested).
44045
44046         2005-12-04  Bruno Haible  <bruno@clisp.org>
44047
44048                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44049
44050         2006-07-22  Bruno Haible  <bruno@clisp.org>
44051
44052                 * gettext.m4: Update from GNU gettext-0.15.
44053                 * nls.m4: Likewise.
44054                 * po.m4: Likewise.
44055                 * inttypes-pri.m4: Likewise.
44056                 * inttypes-h.m4: Renamed from inttypes.m4.
44057                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44058
44059 2006-07-22  Bruno Haible  <bruno@clisp.org>
44060
44061         Merge from GNU gettext 0.15.
44062
44063         2005-07-05  Bruno Haible  <bruno@clisp.org>
44064
44065                 * printf-args.c (printf_fetchargs): Work around broken
44066                 definition of wint_t on mingw.
44067
44068         2005-02-12  Bruno Haible  <bruno@clisp.org>
44069
44070                 * xallocsa.h: Add extern "C" for C++.
44071
44072         2006-05-17  Bruno Haible  <bruno@clisp.org>
44073
44074                 Cygwin portability.
44075                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44076
44077         2006-04-30  Bruno Haible  <bruno@clisp.org>
44078
44079                 * progreloc.c: Include <mach-o/dyld.h> if available.
44080                 (find_executable): Use _NSGetExecutablePath when possible.
44081
44082         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44083
44084                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44085                 function.
44086
44087         2005-12-29  Bruno Haible  <bruno@clisp.org>
44088
44089                 * progreloc.c (set_program_name_and_installdir): Fix
44090                 compilation error.
44091
44092         2005-12-04  Bruno Haible  <bruno@clisp.org>
44093
44094                 Cygwin portability.
44095                 * progreloc.c: Include <windows.h> also on Cygwin.
44096                 (find_executable): Add support for Cygwin.
44097                 (set_program_name_and_installdir): Handle also platforms with
44098                 nonempty EXEEXT.
44099
44100         2006-07-11  Bruno Haible  <bruno@clisp.org>
44101
44102                 * javacomp.c: Fix a comment.
44103                 Reported by Jim Meyering.
44104
44105         2006-04-30  Bruno Haible  <bruno@clisp.org>
44106
44107                 * javacomp.h (compile_java_class): Add source_version,
44108                 target_version arguments.
44109                 * javacomp.c: Rewritten to choose only a compiler that
44110                 respects the specified source_version and target_version.
44111
44112         2006-06-27  Bruno Haible  <bruno@clisp.org>
44113
44114                 Assume correct S_ISDIR macro.
44115                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44116
44117         2006-07-22  Bruno Haible  <bruno@clisp.org>
44118
44119                 * javaversion.h: New file, from GNU gettext.
44120                 * javaversion.c: New file, from GNU gettext.
44121                 * javaversion.java: New file, from GNU gettext.
44122                 * javaversion.class: New file, from GNU gettext.
44123
44124         2006-05-17  Bruno Haible  <bruno@clisp.org>
44125
44126                 Cygwin portability.
44127                 * javaexec.c (execute_java_class): Test for jview program
44128                 also on Cygwin.
44129
44130         2006-04-09  Bruno Haible  <bruno@clisp.org>
44131
44132                 * fatal-signal.c: Don't include string.h.
44133                 (at_fatal_signal): Use a copying loop instead of memcpy.
44134
44135         2005-12-04  Bruno Haible  <bruno@clisp.org>
44136
44137                 * csharpexec.c: Add support for 'clix' launcher (untested).
44138                 (execute_csharp_using_sscli): New function.
44139                 (execute_csharp_program): Call it.
44140
44141         2006-06-21  Bruno Haible  <bruno@clisp.org>
44142
44143                 Avoid warnings from recent versions of mcs.
44144                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44145                 -o, -L, -r any more. Use options documented since mcs-1.0
44146                 instead. Similarly for -g.
44147
44148         2005-07-09  Bruno Haible  <bruno@clisp.org>
44149
44150                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44151                 add a .dll suffix.
44152                 Reported by Mark Junker <mjscod@gmx.de>.
44153
44154         2006-06-17  Bruno Haible  <bruno@clisp.org>
44155
44156                 * config.charset: Update for NetBSD 3.0.
44157
44158         2006-05-17  Bruno Haible  <bruno@clisp.org>
44159
44160                 Cygwin portability.
44161                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44162
44163         2006-05-16  Bruno Haible  <bruno@clisp.org>
44164
44165                 * localcharset.c [CYGWIN]: Include <windows.h>.
44166                 (get_charset_aliases): For Cygwin, return the same CPxxx
44167                 aliases list as under WIN32.
44168                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44169                 the environment variables. Fall back to GetACP().
44170
44171         2006-04-05  Bruno Haible  <bruno@clisp.org>
44172
44173                 * config.charset: Update Juan Manuel Guerrero's address.
44174
44175         2005-02-12  Bruno Haible  <bruno@clisp.org>
44176
44177                 * allocsa.h: Add extern "C" for C++.
44178
44179         2005-02-10  Bruno Haible  <bruno@clisp.org>
44180
44181                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44182                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44183
44184         2006-07-22  Bruno Haible  <bruno@clisp.org>
44185
44186                 * gettext.h: Update to GNU gettext-0.15.
44187
44188 2006-07-22  Bruno Haible  <bruno@clisp.org>
44189
44190         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44191         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44192         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44193
44194 2006-07-21  Eric Blake  <ebb9@byu.net>
44195
44196         * modules/stdlib-safer: New file.
44197         * MODULES.html.sh (File stream based Input/Output): Add
44198         stdlib-safer.
44199
44200 2006-07-21  Eric Blake  <ebb9@byu.net>
44201
44202         * lib/stdlib-safer.h: New file from coreutils, required by
44203         stdlib--.h.
44204
44205 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44206
44207         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44208
44209 2006-07-20  Bruno Haible  <bruno@clisp.org>
44210
44211         * gnulib-tool: Recognize new option --assume-autoconf.
44212         (autoconf_minversion): New variable.
44213         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44214
44215 2006-07-20  Bruno Haible  <bruno@clisp.org>
44216
44217         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44218
44219 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44220
44221         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44222         Reindent and repaginate.
44223
44224 2006-07-19  Derek Price  <derek@ximbiot.com>
44225
44226         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44227         Correct grammar.
44228
44229 2006-07-17  Bruno Haible  <bruno@clisp.org>
44230
44231         * modules/list: New file.
44232         * modules/array-list: New file.
44233         * modules/carray-list, modules/carray-list-tests: New files.
44234         * modules/linked-list, modules/linked-list-tests: New files.
44235         * modules/avltree-list, modules/avltree-list-tests: New files.
44236         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44237         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44238         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44239         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44240         * modules/oset: New file.
44241         * modules/array-oset: New file.
44242         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44243         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44244         * tests/test-carray_list.c: New file.
44245         * tests/test-linked_list.c: New file.
44246         * tests/test-avltree_list.c: New file.
44247         * tests/test-rbtree_list.c: New file.
44248         * tests/test-linkedhash_list.c: New file.
44249         * tests/test-avltreehash_list.c: New file.
44250         * tests/test-rbtreehash_list.c: New file.
44251         * tests/test-avltree_oset.c: New file.
44252         * tests/test-rbtree_oset.c: New file.
44253         * MODULES.html.sh (Container data structures): New section.
44254
44255 2006-07-17  Bruno Haible  <bruno@clisp.org>
44256
44257         * m4/gl_list.m4: New file.
44258
44259 2006-07-17  Bruno Haible  <bruno@clisp.org>
44260
44261         * lib/gl_list.h: New file.
44262         * lib/gl_list.c: New file.
44263         * lib/gl_array_list.h: New file.
44264         * lib/gl_array_list.c: New file.
44265         * lib/gl_carray_list.h: New file.
44266         * lib/gl_carray_list.c: New file.
44267         * lib/gl_linked_list.h: New file.
44268         * lib/gl_linked_list.c: New file.
44269         * lib/gl_anylinked_list1.h: New file.
44270         * lib/gl_anylinked_list2.h: New file.
44271         * lib/gl_avltree_list.h: New file.
44272         * lib/gl_avltree_list.c: New file.
44273         * lib/gl_anyavltree_list1.h: New file.
44274         * lib/gl_anyavltree_list2.h: New file.
44275         * lib/gl_rbtree_list.h: New file.
44276         * lib/gl_rbtree_list.c: New file.
44277         * lib/gl_anyrbtree_list1.h: New file.
44278         * lib/gl_anyrbtree_list2.h: New file.
44279         * lib/gl_anytree_list1.h: New file.
44280         * lib/gl_anytree_list2.h: New file.
44281         * lib/gl_linkedhash_list.h: New file.
44282         * lib/gl_linkedhash_list.c: New file.
44283         * lib/gl_anyhash_list1.h: New file.
44284         * lib/gl_anyhash_list2.h: New file.
44285         * lib/gl_avltreehash_list.h: New file.
44286         * lib/gl_avltreehash_list.c: New file.
44287         * lib/gl_rbtreehash_list.h: New file.
44288         * lib/gl_rbtreehash_list.c: New file.
44289         * lib/gl_anytreehash_list1.h: New file.
44290         * lib/gl_anytreehash_list2.h: New file.
44291
44292         * lib/gl_oset.h: New file.
44293         * lib/gl_oset.c: New file.
44294         * lib/gl_array_oset.h: New file.
44295         * lib/gl_array_oset.c: New file.
44296         * lib/gl_avltree_oset.h: New file.
44297         * lib/gl_avltree_oset.c: New file.
44298         * lib/gl_rbtree_oset.h: New file.
44299         * lib/gl_rbtree_oset.c: New file.
44300         * lib/gl_anytree_oset.h: New file.
44301
44302 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44303
44304         * m4/mkancesdirs.m4: New file.
44305         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44306         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44307         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44308         it.
44309
44310 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44313         * lib/mkancesdirs.h: New files.
44314         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44315         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44316         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44317         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44318         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44319         callers changed.  Revamp internals significantly, by not
44320         attempting to create directories that are temporarily more
44321         permissive than the final results.  Do not attempt to use
44322         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44323         This removes some race conditions, fixes some bugs, and simplifies
44324         things.  Use new dirchownmod function to do owner and mode changes.
44325         * lib/mkdir-p.h: Likewise.
44326         * lib/modechange.c (octal_to_mode): New function.
44327         (struct mode_change): New member mentioned.
44328         (make_node_op_equals): New arg mentioned.  All callers changed.
44329         (mode_compile): Keep track of which mode bits the user has explicitly
44330         mentioned.
44331         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44332         New arg PMODE_BITS, to keep track of which mode bits the user
44333         mentioned; it treats S_ISUID and S_ISGID speciall.
44334         All callers changed.
44335         * lib/modechange.h: Likewise.
44336
44337 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44338
44339         * MODULES.html.sh: Add mkancestors.
44340         * modules/mkancesdirs: New module.
44341         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44342         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44343         The chdir-safer and afs files are now orphans; I'll remove them
44344         unless someone speaks up.
44345         Add lib/dirchownmod.c, lib/dirchownmod.h.
44346         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44347         Add lchown, mkancesdirs.
44348         (Maintainer): Add self.
44349
44350 2006-07-15  Karl Berry  <karl@gnu.org>
44351
44352         * gnulib-tool: help message wording/arrangement.
44353
44354 2006-07-14  Simon Josefsson  <jas@extundo.com>
44355
44356         * doc/gnulib.texi (Libtool and Windows): New section.
44357
44358 2006-07-12  Simon Josefsson  <jas@extundo.com>
44359
44360         * modules/gendocs (License): Fix license, approved by Karl.
44361
44362 2006-07-12  Eric Blake  <ebb9@byu.net>
44363
44364         * MODULES.html.sh: Add gendocs.
44365
44366 2006-07-11  Eric Blake  <ebb9@byu.net>
44367
44368         * modules/fdl: New module, to install doc/fdl.texi.
44369         * MODULES.html.sh: Add new section for documentation modules.
44370         * gnulib-tool: Avoid space-tab.
44371         (--doc-base): New option, to manage files from doc.
44372
44373 2006-07-11  Eric Blake  <ebb9@byu.net>
44374
44375         * m4/absolute-header.m4: Fix comments to match recent change.
44376
44377 2006-07-11  Eric Blake  <ebb9@byu.net>
44378
44379         * gnulib-tool: List --doc-base before --tests-base.
44380
44381 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44382
44383         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44384
44385 2006-07-11  Bruno Haible  <bruno@clisp.org>
44386
44387         * README: Mention where to put documentation.
44388
44389 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44390
44391         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44392
44393 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44394
44395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44396         to stdint.m4.
44397
44398 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44399
44400         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44401         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44402         "no/such/file/stdint.h" when there is no such file, so that
44403         the resulting C code can be parsed by dodgy compilers.
44404         Problems reported by Bob Proulx.
44405
44406 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44407
44408         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44409         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44410         macros into the GNU _D_EXACT_NAMLEN.
44411         * lib/savedir.c:  Likewise.
44412         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44413
44414 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44415         and Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44418         * m4/savedir.m4:
44419         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44420         macros into the GNU _D_EXACT_NAMLEN.
44421
44422 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44423
44424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44425         around the absolute name, to work around a problem with the HP-UX
44426         11.23 native C compiler, reported by Bob Proulx.
44427
44428 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44429
44430         * doc/maintain.texi, make-stds.texi: Sync from
44431         <http://savannah.gnu.org/projects/gnustandards>.
44432
44433 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44434
44435         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44436
44437 2006-07-09  Jim Meyering  <jim@meyering.net>
44438
44439         * m4/glob.m4: Remove a doubled word in a comment.
44440
44441 2006-07-09  Jim Meyering  <jim@meyering.net>
44442
44443         * lib/argp-pv.c: Remove a doubled word in a comment.
44444         * lib/check-version.c (check_version): Likewise.
44445         * lib/javacomp.c (compile_java_class): Likewise.
44446
44447 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44448
44449         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44450         for the benefit of people using Autoconf 2.60.  If you want to
44451         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44452         (or m4/onceonly.m4, if pre-2.57) manually.
44453
44454 2006-07-08  Jim Meyering  <jim@meyering.net>
44455
44456         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44457         comment.
44458         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44459         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44460         comment.
44461
44462 2006-07-08  Jim Meyering  <jim@meyering.net>
44463
44464         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44465
44466 2006-07-07  Simon Josefsson  <jas@extundo.com>
44467
44468         * tests/test-crc.c: Change expected crc value, the test vector
44469         were probably computed using the old broken crc.c?
44470
44471 2006-07-06  Simon Josefsson  <jas@extundo.com>
44472
44473         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44474         now the canonical place for the M4 file).
44475
44476         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44477         from the sys_socket dependency now.
44478
44479         * modules/inet_pton (Files): Ditto.
44480
44481         * modules/inet_ntop (Files): Ditto.
44482
44483 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44484
44485         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44486         not gl_PREREQ_GETUSERSHELL.
44487
44488 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44489
44490         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44491         with only one argument, for Autoconf 2.60.
44492         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44493         expand to nothing, so add a shell command to avoid syntax error.
44494         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44495
44496 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44497
44498         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44499
44500 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44501
44502         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44503         no longer needed.  Check for isblank decl.
44504         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44505         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44506         of existence.
44507
44508 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44509
44510         * lib/getloadavg.c: Use __VMS, not VMS.
44511         * lib/getopt.c: Likewise.
44512         * lib/getpagesize.h: Likewise.
44513         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44514         and probably does not work.
44515
44516 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44517
44518         * lib/.cppi-disable: Add wcwidth.
44519         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44520         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44521         (ISGRAPH): Remove.  All uses changed to isgraph.
44522         (FOLD) [!defined _LIBC]: Remove special case.
44523         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44524         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44525         HAVE_ISBLANK.
44526         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44527         case.
44528
44529 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44530
44531         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44532         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44533         brackets.  Other minor changes to suppress some compiler
44534         warnings.
44535
44536 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44537         and Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44540         of invoking obsolescent AC_HEADER_DIRENT macro.
44541         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44542         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44543         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44544         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44545         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44546         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44547         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44548         * m4/readdir.m4: Remove; no longer needed.
44549
44550 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44551         and Paul Eggert  <eggert@cs.ucla.edu>
44552
44553         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44554         Don't worry about this obsolete case any more.
44555         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44556         directories.
44557         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44558         worry about this obsolete case any more.
44559         * lib/fts.c: Likewise.
44560         * lib/getcwd.c: Likewise.
44561         * lib/glob.h: Likewise.
44562         * lib/savedir.c: Likewise.
44563
44564 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44565
44566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44567         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44568         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44569         needed.
44570         All uses removed.
44571         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44572         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44573         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44574         needed.
44575         * m4/getdate.m4 (gl_GETDATE): Likewise.
44576         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44577         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44578         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44579         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44580         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44581         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44582         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44583         needed.
44584
44585 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44586
44587         * lib/memcasecmp.c: Include <limits.h>.
44588         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44589         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44590         Don't assume isdigit succeeds only on '0' through '9'.
44591
44592 2006-07-05  Eric Blake  <ebb9@byu.net>
44593
44594         * modules/getaddrinfo (Depends-on): Add snprintf.
44595
44596 2006-07-05  Eric Blake  <ebb9@byu.net>
44597
44598         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44599         to avoid 'header present but could not be compiled' on cygwin.
44600
44601 2006-07-05  Eric Blake  <ebb9@byu.net>
44602
44603         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44604         missing from netdb.h.
44605         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44606
44607 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44608
44609         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44610         no longer needed.
44611         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44612         * m4/getdate.m4 (gl_GETDATE): Likewise.
44613         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44614         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44615         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44616         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44618
44619 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44620
44621         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44622         All uses of is_space replaced by isspace.
44623         * lib/exit.h: Don't talk about STDC_HEADERS.
44624         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44625         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44626         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44627         replaced by isprint etc.
44628         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44629         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44630         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44631         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44632         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44633         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44634
44635 2006-07-05  Bruno Haible  <bruno@clisp.org>
44636
44637         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44638         the function exists, before testing against AIX.
44639         Reported by Martin Lambers <marlam@marlam.de>.
44640
44641 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44642
44643         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44644         From Mark D. Baushke.
44645
44646 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44647
44648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44649         to the absolute name, not just one, to bypass Sun C 5.8's
44650         "warning: #include of /usr/include/... may be non-portable".
44651
44652 2006-07-04  Eric Blake  <ebb9@byu.net>
44653
44654         * modules/dirname-tests: New test module.
44655         * tests/test-dirname.c: New file, replacing dirname.c
44656         TEST_DIRNAME section that was recently deleted.
44657
44658 2006-07-04  Bruno Haible  <bruno@clisp.org>
44659
44660         Assume ANSI C header files and <ctype.h> functions.
44661         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44662         (mbsnwidth): Use isprint, iscntrl instead.
44663
44664 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44665
44666         Merge from coreutils.
44667         * MODULES.html.sh: Add xstrtold.
44668         * modules/xstrtold: New file.
44669         * modules/cycle-check (Files): Add lib/same-inode.h.
44670         * modules/dirname (Files): Add m4/double-slash-root.m4.
44671         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44672         * modules/mkdir-p (Files): Add lib/same-inode.h.
44673         * modules/same (Files): Add lib/same-inode.h.
44674
44675 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44676
44677         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44678         This is to keep the terminology clean; POSIX talks about
44679         "absolute pathnames", not "full pathnames", but the GNU
44680         Coding Standards say to use "path" for something else;
44681         so use "absolute" to keep both sides happy.
44682         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44683         Set gl_absolute_header, not gl_full_header_path.
44684         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44685         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44686         All uses changed.
44687
44688         Merge from coreutils.
44689
44690         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44691
44692         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44693         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44694         want to require the building of c-strtod.o.
44695         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44696         needs -lm directly.
44697         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44698
44699         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44700
44701         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44702         --as-needed option if available.  Problem reported by Albert Chin in
44703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44704         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44705         cc merely issues a bunch of annoying warnings for --as-needed
44706         (this problem was reported by Bob Proulx).  Also, try linking with
44707         -lm to detect a bug in binutils 2.16 (this problem was reported
44708         by Ralf Wildenhues).
44709
44710         2006-06-18  Jim Meyering  <jim@meyering.net>
44711
44712         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44713         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44714         macro.
44715         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44716         also check for glibc-2.4's abort-inducing bug.
44717
44718         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44719         Low-probability clean-up should be to use rmdir to get rid of
44720         the just-created directory, not unlink.
44721
44722         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44723         configure fail, and request a bug report to inform us about it.
44724         Add a comment that, barring reports to the contrary, in 2007 we'll
44725         assume ftruncate is universally available.
44726
44727         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44728
44729         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44730
44731         2006-03-12  Jim Meyering  <jim@meyering.net>
44732
44733         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44734         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44735         * m4/same.m4 (gl_SAME): Likewise.
44736         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44737
44738         2006-03-11  Eric Blake  <ebb9@byu.net>
44739
44740         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44741         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44742         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44743         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44744
44745 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44746
44747         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44748         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44749         reported by Mark D. Baushke, one in
44750         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44751
44752         Merge from coreutils.
44753
44754         * lib/.cppi-disable: Add stdint_.h.
44755         * lib/.cvsignore: Add stdint.h.
44756
44757         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44758
44759         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44760         both double and long double versions.
44761         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44762         * lib/xstrtold.c: New file.
44763         * lib/xstrtod.h (xstrtold): New decl.
44764
44765         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44766
44767         * lib/filemode.c (setst): Remove.
44768         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44769         (arguably) clearer, and the generated code is a bit smaller on my
44770         Debian GNU/Linux stable x86 host.
44771
44772         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44773
44774         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44775         Assume that filemode.h includes sys/types.h and sys/stat.h.
44776         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44777         (ftypelet): Reorder to put common cases first, for efficiency.
44778         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44779         to do 'M'.
44780         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44781         of 10, for compatibility with FreeBSD.  All callers changed.
44782         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44783         types that can't be deduced solely from st_mode.  First arg is now a
44784         const pointer.
44785         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44786         (strmode): Renamed from mode_string.
44787         (filemodestring): New decl.
44788         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44789         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44790         needed.
44791         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44792
44793         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44794
44795         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44796         fsusage.h now does that.  Include fsusage.h first, to test interface.
44797         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44798         at most one method (the old code could have generated decls that
44799         didn't conform to C89, not that this was ever exercised).
44800         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44801
44802         2006-03-19  Jim Meyering  <jim@meyering.net>
44803
44804         Work even in a chroot where d_ino values for entries in "/"
44805         don't match the stat.st_ino values for the same names.
44806         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44807         number, iterate through all entries again, using lstat instead.
44808         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44809         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44810
44811         * lib/getcwd.c (__getcwd): Clarify a comment.
44812         Use memcpy in place of a call to strcpy.
44813
44814         2006-03-12  Jim Meyering  <jim@meyering.net>
44815
44816         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44817         matches that of the current directory (which we're about to chdir ".."
44818         out of), then save the dev-ino of the parent, instead.
44819
44820         * lib/same-inode.h (SAME_INODE): New file/macro.
44821         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44822         Include "same-inode.h", instead.
44823         * lib/same.c: Likewise.
44824         * lib/cycle-check.h: Include "same-inode.h".
44825         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44826         * lib/cycle-check.c (SAME_INODE): Remove definition.
44827         * lib/root-dev-ino.h: Include "same-inode.h".
44828
44829         2006-03-11  Eric Blake  <ebb9@byu.net>
44830
44831         * lib/same.c (same_name): s/base_name/last_component/
44832         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44833         * lib/filenamecat.c (file_name_concat): Likewise.
44834
44835         2006-03-11  Eric Blake  <ebb9@byu.net>,
44836                     Paul Eggert  <eggert@cs.ucla.edu>
44837
44838         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44839         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44840         drive prefix.
44841         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44842         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44843         (last_component): New method.
44844         * lib/dirname.c (dir_len): Determine when drive letters need a
44845         subsequent slash.  Preserve // when it is special.
44846         (dir_name): Don't append dot when drive letter is absolute.
44847         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44848         * lib/basename.c (base_name): New semantics - malloc the result.
44849         Preserve // when it is special.  Preserve relative files that look
44850         like drive letters.
44851         (base_len): Preserve // when it is special.
44852         (last_component): New method, similar to old base_name semantics.
44853         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44854         base_name.  Strip redundant slashes from ///.
44855
44856 2006-07-03  Jim Meyering  <jim@meyering.net>
44857
44858         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44859         macro is used before the first cycle_check call.
44860
44861 2006-07-03  Eric Blake  <ebb9@byu.net>
44862
44863         * modules/dirname (Depends-on): Add xstrndup.
44864
44865 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44866
44867         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44868         test cases, so that config.log is a bit easier to follow.
44869
44870 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44871
44872         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44873         both are 64 bits, since this seems to be the tradition, and this
44874         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44875         we ever run into a host that prefers long long to long in this
44876         case, we'll need another configure-time test.  Problem reported by
44877         Jim Meyering.
44878
44879 2006-07-02  Eric Blake  <ebb9@byu.net>
44880
44881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44882
44883 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44884
44885         * modules/inttypes (Depends-on): No longer depends on stdint.
44886         * modules/stdint (Description): Say more about assumptions.
44887         Say that the fast types might differ.  Say macros are used.
44888         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44889         (Makefile.am): Revise list of substituted symbols to match
44890         new stdint.m4.
44891         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44892         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44893         * tests/test-stdint.c (verify_same_types)
44894         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44895         the code conforms to C99/C89.
44896         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44897         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44898
44899 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44900
44901         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44902         but fix a bug, by requiring at least 64 bits.
44903         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44904         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44905         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44906         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44907
44908         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44909         changes.  Make 2.59 a prerequisite.  Check and substitute for
44910         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44911         inttypes.h.  Do not use special include files; just use the
44912         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44913         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44914         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44915         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44916         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44917         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44918         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44919         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44920         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44921         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44922         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44923         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44924         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44925         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44926         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44927         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44928         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44929         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44930         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44931         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44932         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44933         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44934         not check for things that C99 does not require, e.g., int8_t.  If
44935         a test isn't needed unless <stdint.h> isn't working, and is
44936         unlikely to be needed for any other reason, then don't do it
44937         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44938         size_t, since we assume C89 freestanding at least.  Do not check
44939         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44940         the right thing even if the types are not defined.  Instead use:
44941         (gl_STDINT_TYPE_PROPERTIES): New macro.
44942         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44943         testing whether <sys/types.h> clashes, as Autoconf does this for
44944         us now.  All uses removed.
44945         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44946         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44947         (gl_CHECK_TYPE_SAME):
44948         Remove; no longer needed.
44949         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44950         exists, since we'll return 0 anyway in that case.
44951         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44952
44953 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44954
44955         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44956         possible collision with system files.
44957         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44958         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44959         WCHAR_MIN and WCHAR_MAX in this case.
44960         (<stddef.h>): Do not include; no longer needed.
44961         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44962         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44963         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44964         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44965         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44966         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44967         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44968         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44969         !defined(__c99))]: Include in this case too, since it's harmless
44970         now.
44971         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44972         dangerous to do so.
44973         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44974         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44975         (_STDINT_MIN, _STDINT_MAX): New macros.
44976         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44977         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44978         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44979         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44980         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44981         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44982         macros, not typedefs; this simplifies things quite a bit.
44983         Use long int for all types narrower than int64_t.
44984         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44985         Define in terms of long long int or int64_t or long int,
44986         not int64_t or int32_t.  This saves some compile-time testing.
44987         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44988         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44989         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44990         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44991         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44992         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44993         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44994         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44995         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44996         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44997         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44998         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44999         undef any previous version and define our own version, for
45000         simplicity and consistency with the new macros for types.
45001         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45002         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45003         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45004         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45005         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45006         @WINT_T_SUFFIX@ to keep things simple here.
45007         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45008         Simplify by assuming typical 8/16/32/64 host, since we're
45009         already doing that elsewhere anyway.
45010         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45011         and assume long long int is 64 bits if available.  This
45012         speeds up 'configure'.
45013
45014 2006-07-01  Eric Blake  <ebb9@byu.net>
45015
45016         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45017         Reported by Andreas Buening.
45018
45019 2006-07-01  Eric Blake  <ebb9@byu.net>
45020
45021         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45022
45023 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45024
45025         * lib/getaddrinfo.c: fixed typo
45026
45027 2006-06-29  Jim Meyering  <jim@meyering.net>
45028
45029         * modules/strftime (Maintainer): Add my name, since with the
45030         FPRINTFTIME changes strftime.c has forked from glibc.
45031
45032 2006-06-29  Eric Blake  <ebb9@byu.net>
45033
45034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45035
45036 2006-06-29  Eric Blake  <ebb9@byu.net>
45037
45038         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45039
45040 2006-06-29  Eric Blake  <ebb9@byu.net>
45041
45042         * lib/stat_.h: New file.
45043
45044 2006-06-29  Eric Blake  <ebb9@byu.net>
45045
45046         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45047         unused static function.
45048
45049 2006-06-29  Eric Blake  <ebb9@byu.net>
45050
45051         * doc/functions.texi (Function Portability): Document missing lstat
45052         on mingw.
45053
45054 2006-06-29  Eric Blake  <ebb9@byu.net>
45055
45056         * MODULES.html.sh: Add sys_stat.
45057         * modules/sys_stat: New module.
45058         * modules/mkstemp (Depends-on): Add sys_stat.
45059
45060 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45061
45062         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45063
45064 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45065
45066         * m4/c-bs-a.m4: Removed.
45067
45068 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45069
45070         * lib/strftime.c: Assume strftime() exists.
45071
45072 2006-06-29  Derek Price  <derek@ximbiot.com>
45073
45074         * modules/c-bs-a: Removed - \a is C89.
45075         * MODULES.html.sh: Remove c-bs-a.
45076
45077 2006-06-29  Bruno Haible  <bruno@clisp.org>
45078
45079         * modules/wcwidth (License): Change to LGPL.
45080
45081 2006-06-28  Simon Josefsson  <jas@extundo.com>
45082
45083         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45084         on _WIN32.
45085
45086         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45087         getnameinfo.
45088
45089 2006-06-28  Simon Josefsson  <jas@extundo.com>
45090
45091         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45092
45093 2006-06-28  Simon Josefsson  <jas@extundo.com>
45094
45095         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45096         functions there.  It will succeed on Windows XP, but on Windows
45097         2000 and (presumably) earlier, it will fail, and use the internal
45098         re-implementation.
45099         (use_win32_p): New function.
45100         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45101         Support AI_NUMERICSERV to disable getservbyname.
45102         (getnameinfo): New function, only supports
45103         NI_NUMERICHOST|NI_NUMERICSERV for now.
45104
45105         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45106         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45107         getnameinfo.
45108
45109 2006-06-28  Eric Blake  <ebb9@byu.net>
45110
45111         * modules/wcwidth: New file.
45112         * modules/mbchar (Depends-on): Add wcwidth.
45113         * modules/mbswidth (Depends-on): Add wcwidth.
45114         * MODULES.html.sh: Add wcwidth.
45115
45116 2006-06-28  Eric Blake  <ebb9@byu.net>
45117
45118         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45119         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45120
45121 2006-06-28  Eric Blake  <ebb9@byu.net>
45122
45123         * lib/xvasprintf.h: Fix comments.
45124
45125 2006-06-28  Eric Blake  <ebb9@byu.net>
45126
45127         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45128         * lib/mbswidth.c (wcwidth): Move from here...
45129         * lib/wcwidth.h: ...to this new file.
45130
45131 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45132
45133         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45134
45135         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45136         it's obsolete.
45137         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45138
45139 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45140
45141         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45142         Autoconf 2.60 says this stuff was obsolete.
45143
45144 2006-06-28  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45147
45148 2006-06-28  Bruno Haible  <bruno@clisp.org>
45149
45150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45151         gt_TYPE_WCHAR_T.
45152
45153 2006-06-28  Bruno Haible  <bruno@clisp.org>
45154
45155         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45156         declaration for wcwidth.
45157         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45158
45159 2006-06-28  Bruno Haible  <bruno@clisp.org>
45160
45161         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45162         (mkdir): Define using _mkdir.
45163
45164 2006-06-28  Bruno Haible  <bruno@clisp.org>
45165
45166         * lib/getaddrinfo.h: Fix POSIX URL.
45167         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45168         _WIN32.
45169         (use_win32_p): Make static.
45170         (getaddrinfo): Reject service name if it is empty or does not consist
45171         solely of decimal digits, or if its value is > 65535.
45172         (getnameinfo): Remove useless casts.
45173
45174 2006-06-27  Simon Josefsson  <jas@extundo.com>
45175
45176         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45177         Eggert and Martin Lambers.
45178
45179 2006-06-27  Simon Josefsson  <jas@extundo.com>
45180
45181         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45182         Eggert and Martin Lambers.
45183
45184 2006-06-27  Bruno Haible  <bruno@clisp.org>
45185
45186         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45187         result to 0, not to empty.
45188         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45189
45190 2006-06-27  Bruno Haible  <bruno@clisp.org>
45191
45192         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45193
45194 2006-06-26  Simon Josefsson  <jas@extundo.com>
45195
45196         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45197         present.
45198
45199 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45200
45201         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45202         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45204
45205 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45206
45207         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45208
45209 2006-06-26  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45212
45213 2006-06-26  Bruno Haible  <bruno@clisp.org>
45214
45215         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45216
45217 2006-06-26  Bruno Haible  <bruno@clisp.org>
45218
45219         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45220         SGI C compiler in pre-C99 mode.
45221         Suggested by Mark D. Baushke and Larry Jones.
45222
45223 2006-06-26  Bruno Haible  <bruno@clisp.org>
45224
45225         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45226         WCHAR_MAX.
45227         Reported by Mark D. Baushke and Larry Jones.
45228
45229 2006-06-26  Bruno Haible  <bruno@clisp.org>
45230
45231         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45232         in pre-C99 mode.
45233         Suggested by Mark D. Baushke and Larry Jones.
45234
45235 2006-06-23  Simon Josefsson  <jas@extundo.com>
45236             Bruno Haible  <bruno@clisp.org>
45237
45238         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45239         Emit mostlyclean-local rule.
45240         (func_emit_tests_Makefile_am): Likewise.
45241         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45242
45243 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45244
45245         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45246
45247 2006-06-23  Bruno Haible  <bruno@clisp.org>
45248
45249         * tests/test-stdint.c: Update to match ISO C 99 Technical
45250         Corrigendum 1.
45251
45252 2006-06-23  Bruno Haible  <bruno@clisp.org>
45253
45254         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45255
45256 2006-06-23  Bruno Haible  <bruno@clisp.org>
45257
45258         * lib/stdint_.h: Treat IRIX like OpenBSD.
45259
45260 2006-06-23  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45263         ISO C 99 Technical Corrigendum 1.
45264
45265 2006-06-22  Simon Josefsson  <jas@extundo.com>
45266
45267         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45268         MinGW.
45269
45270 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45271
45272         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45273         needed.  Some compiler complained about some of them.  Problem reported
45274         by Larry Jones in
45275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45276
45277 2006-06-21  Simon Josefsson  <jas@extundo.com>
45278
45279         * tests/test-getaddrinfo.c: New file.
45280
45281         * modules/getaddrinfo-tests: New file.
45282
45283         * MODULES.html.sh: Add inet_pton.
45284
45285         * modules/inet_pton: New file.
45286
45287 2006-06-21  Simon Josefsson  <jas@extundo.com>
45288
45289         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45290         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45291         of using the (limited) gnulib implementation on Windows XP.
45292
45293         * m4/inet_pton.m4: New file.
45294
45295 2006-06-21  Simon Josefsson  <jas@extundo.com>
45296
45297         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45298         variable.
45299
45300         * lib/socket_.h: Don't define WINVER.
45301
45302         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45303         slightly modified to work in gnulib.
45304
45305 2006-06-21  Simon Josefsson  <jas@extundo.com>
45306
45307         * doc/gnulib.texi (Windows sockets): Add.
45308
45309 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45310
45311         * lib/read-file.c (fread_file): Start with buffer allocation of
45312         0 bytes rather than 1 byte; this simplifies the code.
45313         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45314         code to free buffer and save/restore errno.
45315         (internal_read_file): Remove unused local.
45316
45317 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45318
45319         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45320         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45321         Problem reported by Denis Excoffier in
45322         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45323
45324 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45325
45326         * modules/sys_socket, modules/socklen: Include sys/types since
45327         FreeBSD 4.x's sys/socket.h needs it.
45328
45329 2006-06-19  Simon Josefsson  <jas@extundo.com>
45330
45331         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45332
45333 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45334
45335         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45336
45337 2006-06-19  Bruno Haible  <bruno@clisp.org>
45338
45339         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45340         and FULL_PATH_INTTYPES_H in angle brackets.
45341         Reported by Mark D. Baushke <mdb@gnu.org>.
45342
45343 2006-06-17  Eric Blake  <ebb9@byu.net>
45344
45345         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45346         errno.
45347
45348 2006-06-17  Bruno Haible  <bruno@clisp.org>
45349
45350         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45351         <sys/inttypes.h>.
45352
45353 2006-06-17  Bruno Haible  <bruno@clisp.org>
45354
45355         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45356         whether errno is declared. Assume <errno.h> declares errno.
45357
45358 2006-06-17  Bruno Haible  <bruno@clisp.org>
45359
45360         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45361
45362 2006-06-17  Bruno Haible  <bruno@clisp.org>
45363
45364         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45365         problem on Solaris 2.5.1.
45366
45367 2006-06-16  Eric Blake  <ebb9@byu.net>
45368
45369         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45370         * lib/unicodeio.c [!defined errno]: Likewise.
45371         * lib/strtol.c [!defined errno]: Likewise.
45372         * lib/strtod.c [!defined errno]: Likewise.
45373
45374 2006-06-15  Eric Blake  <ebb9@byu.net>
45375
45376         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45377
45378 2006-06-15  Eric Blake  <ebb9@byu.net>
45379
45380         * config/srclist.txt (ssize_t.m4): Lose sync.
45381
45382 2006-06-15  Bruno Haible  <bruno@clisp.org>
45383
45384         * modules/stdint (Files): Include m4/full-header-path.m4,
45385         m4/size_max.m4, m4/wchar_t.m4.
45386         (Makefile.am): Many more substitutions.
45387         * modules/stdint-tests: New file.
45388         * tests/test-stdint.c: New file.
45389
45390 2006-06-15  Bruno Haible  <bruno@clisp.org>
45391
45392         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45393         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45394         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45395         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45396         gl_CHECK_TYPE_SAME): New macros.
45397
45398 2006-06-15  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45401
45402 2006-06-15  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/stdint_.h: Rewritten to be fully auto-configured.
45405         Fixes bug on HP-UX/IA64.
45406
45407 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45408
45409         * lib/getdate.y (__attribute__): Don't define if already defined.
45410         Problem reported by Larry Jones.
45411         * lib/utimens.c (__attribute__): Likewise.
45412
45413 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45414
45415         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45416         reported by Andreas Schwab.
45417
45418 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45419             Bruno Haible  <bruno@clisp.org>
45420
45421         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45422         check for the declaration of strnlen and a run test that exposes the
45423         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45424         rpl_strndup.
45425
45426 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45427             Bruno Haible  <bruno@clisp.org>
45428
45429         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45430
45431 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45432
45433         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45434         compile test, for Tru64 4.0D.
45435
45436 2006-05-28  Karl Berry  <karl@gnu.org>
45437
45438         * config/srclist.txt (printf-args.c): lose sync.
45439
45440 2006-05-26  Martin Lambers  <marlam@marlam.de>
45441
45442         * lib/getpass.c: Updates the test for the native W32 API, and adds
45443         missing includes, thus fixing compilation warnings.
45444
45445 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45446
45447         * lib/exclude.c (exclude_fnmatch): New function.
45448         (excluded_file_name): Call exclude_fnmatch.
45449         * lib/exclude.h (excluded_file_name): New prototype
45450
45451 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45452
45453         * lib/tempname.c (small_open, large_open): New macros.
45454         (__open, __open64) [!_LIBC]: Remove.
45455         (__gen_tempname): Use small_open and large_open instead of __open
45456         and __open64.  This fixes a portability bug on HP-UX 11.11i
45457         reported by Simon Wing-Tang in
45458         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45459
45460 2006-05-24  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45463         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45464         Reported by Thorsten Maerz <torte@netztorte.de> via
45465         Aaron Stone <aaron@serendipity.cx>.
45466
45467 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45468
45469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45470         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45471         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45472         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45473         not really conditional on the cache.
45474         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45475
45476 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45479         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45480         (my_usleep): Don't mishandle maximum value.
45481
45482 2006-05-19  Jim Meyering  <jim@meyering.net>
45483
45484         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45485
45486 2006-05-17  Bruno Haible  <bruno@clisp.org>
45487
45488         Cygwin portability.
45489         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45490
45491 2006-05-17  Bruno Haible  <bruno@clisp.org>
45492
45493         * lib/stdint_.h: Fix recognition of Cygwin.
45494
45495 2006-05-15  Bruno Haible  <bruno@clisp.org>
45496
45497         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45498         on libtool patch by Ralf Wildenhues.
45499
45500 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45501
45502         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45503         test for C99 conformance; (bool) 0.5 is an integer constant
45504         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45505         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45506
45507 2006-05-11  Simon Josefsson  <jas@extundo.com>
45508
45509         * m4/xvasprintf.m4: Fix obvious typo.
45510
45511 2006-05-11  Jim Meyering  <jim@meyering.net>
45512
45513         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45514         James Lemley.
45515
45516 2006-05-10  Simon Josefsson  <jas@extundo.com>
45517
45518         * lib/md4.c: Typo fix, update copyright years.
45519         (K1, K2): Don't use L because it turn computations into 64-bit on
45520         64-bit platforms.
45521
45522 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45523
45524         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45525         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45526         unwanted sign propagation, e.g., on hosts with 64-bit int.
45527         There still are some problems with reeelly weird theoretical hosts
45528         (e.g., 33-bit int) but it's not worth worrying about now.
45529         * lib/sha1.c (rol): Likewise.
45530         (K1, K2, K3, K4): Remove unnecessary L suffix.
45531
45532 2006-05-10  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/des.c: Cast to avoid warnings.
45535
45536 2006-05-09  Bruno Haible  <bruno@clisp.org>
45537
45538         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45539         (Depends-on): Depend also on xsize, stdarg.
45540         (configure.ac): Add gl_XVASPRINTF.
45541
45542 2006-05-09  Bruno Haible  <bruno@clisp.org>
45543
45544         * m4/xvasprintf.m4: New file.
45545
45546 2006-05-09  Bruno Haible  <bruno@clisp.org>
45547
45548         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45549         (EOVERFLOW): Define fallback value.
45550         (xstrcat): New function.
45551         (xvasprintf): Recognize the special case of a string concatenation.
45552
45553 2006-05-08  Eric Blake  <ebb9@byu.net>
45554
45555         * gnulib-tool (func_version): Base copyright year on CVS date.
45556         (func_emit_copyright_notice): New function.
45557         (func_emit_lib_Makefile_am): Use it.
45558         (func_emit_tests_Makefile_am): Likewise.
45559         (func_import): Likewise.
45560
45561 2006-05-08  Bruno Haible  <bruno@clisp.org>
45562
45563         * modules/stdarg: New file.
45564         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45565
45566 2006-05-08  Bruno Haible  <bruno@clisp.org>
45567
45568         * m4/stdarg.m4: New file, from GNU gettext.
45569
45570 2006-05-08  Bruno Haible  <bruno@clisp.org>
45571
45572         * config/srclist.txt (build-aux/config.rpath): different from latest
45573         release.
45574
45575 2006-05-08  Bruno Haible  <bruno@clisp.org>
45576
45577         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45578
45579 2006-05-05  Jim Meyering  <jim@meyering.net>
45580
45581         * m4/warning.m4: New file, derived from bison's file by the same name.
45582
45583 2006-05-03  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/stdint_.h: Shorter URL.
45586         * lib/inttypes.h: Likewise.
45587
45588 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45589
45590         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45591
45592 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45593
45594         * lib/verify.h: Document the internals better.  Most of this change
45595         was written by Bruno Haible.
45596
45597 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45598
45599         * doc/verify.texi: New file, partly based on a proposal by
45600         Bruno Haible.
45601
45602 2006-05-02  Bruno Haible  <bruno@clisp.org>
45603
45604         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45605         test from here...
45606         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45607
45608 2006-04-29  Bruno Haible  <bruno@clisp.org>
45609
45610         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45611         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45612
45613 2006-04-29  Bruno Haible  <bruno@clisp.org>
45614
45615         * gnulib-tool: Make --update option actually work.
45616
45617 2006-04-29  Bruno Haible  <bruno@clisp.org>
45618
45619         * doc/gcd.texi: New file.
45620         * doc/gnulib.texi: Include it.
45621
45622 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45623
45624         * lib/getdate.y (get_date): When adding relative date, start with the
45625         initial time, not with the result of the first mktime call.
45626
45627 2006-04-25  Bruno Haible  <bruno@clisp.org>
45628
45629         * gnulib-tool (func_import): Output the include directives in three
45630         blocks, sorted separately.
45631         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45632
45633 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45634
45635         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45636         to define main with arguments, for C++.  Reported by Eric Blake.
45637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45638         Prefer 'int main ()' to 'int main (void)', for C++.
45639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45641         for 'main', for C99 and C++.
45642
45643 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45644
45645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45646         Don't assume that exit status -1 is valid.
45647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45648         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45649         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45650         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45651         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45652         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45653         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45654         functions can be used without declaring them, or that you can
45655         exit with status -1.
45656         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45657
45658 2006-04-24  Karl Berry  <karl@gnu.org>
45659
45660         * config/srclist.txt (longdouble.m4): sync lost.
45661
45662 2006-04-24  Eric Blake  <ebb9@byu.net>
45663
45664         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45665
45666 2006-04-24  Bruno Haible  <bruno@clisp.org>
45667
45668         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45669         poll() implementation in AIX.
45670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45671
45672 2006-04-24  Bruno Haible  <bruno@clisp.org>
45673
45674         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45675         assigned exactly once.
45676
45677 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45678             Bruno Haible  <bruno@clisp.org>
45679
45680         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45681         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45682         for AM_CPPFLAGS.
45683
45684 2006-04-23  Bruno Haible  <bruno@clisp.org>
45685
45686         * modules/copy-file: Depend on unistd.
45687         * modules/execute: Likewise.
45688         * modules/fatal-signal: Likewise.
45689         * modules/findprog: Likewise.
45690         * modules/mkdtemp : Likewise.
45691         * modules/pipe: Likewise.
45692         * modules/wait-process: Likewise.
45693
45694 2006-04-23  Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45697         condition was already detected.
45698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45699
45700 2006-04-23  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/copy-file.c: Include <unistd.h> unconditionally.
45703         * lib/execute.c: Likewise.
45704         * lib/fatal-signal.c: Likewise.
45705         * lib/findprog.c: Likewise.
45706         * lib/mkdtemp.c: Likewise.
45707         * lib/pipe.h: Likewise.
45708         * lib/pipe.c: Likewise.
45709         * lib/wait-process.h: Likewise.
45710
45711 2006-04-23  Bruno Haible  <bruno@clisp.org>
45712
45713         * gnulib-tool (func_usage): Fix --import description. Document
45714         --update.
45715         (func_import): Create temporary file in a temporary directory, if
45716         --dry-run is specified. Silence errors from 'grep' when there are no
45717         m4 files in $m4dir.
45718         (func_create_testdir): Silence errors from 'grep' when there are no
45719         m4 files in $m4dir.
45720         Reported by Karl Berry <karl@freefriends.org>.
45721
45722 2006-04-20  Bruno Haible  <bruno@clisp.org>
45723
45724         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45725         one argument, so that the code will be portable to Autoconf 2.60.
45726         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45728         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45729
45730 2006-04-19  Derek Price  <derek@ximbiot.com>
45731             Eric Blake  <ebb9@byu.net>
45732
45733         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45734         rather than "/full/path.h".  Update comment to match.  Shorten &
45735         generalize m4_translit call via AS_TR_CPP.
45736
45737 2006-04-19  Derek Price  <derek@ximbiot.com>
45738             Eric Blake  <ebb9@byu.net>
45739
45740         * lib/inttypes.h: Correct grammar in comment.
45741
45742 2006-04-18  Derek Price  <derek@ximbiot.com>
45743             Paul Eggert  <eggert@cs.ucla.edu>
45744
45745         * modules/inttypes: New file.
45746         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45747
45748 2006-04-18  Derek Price  <derek@ximbiot.com>
45749             Paul Eggert  <eggert@cs.ucla.edu>
45750
45751         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45752         New files.
45753
45754 2006-04-18  Derek Price  <derek@ximbiot.com>
45755             Paul Eggert  <eggert@cs.ucla.edu>
45756
45757         * lib/inttypes.h: New file.
45758         * lib/strtoimax.c: Assume <inttypes.h>.
45759
45760 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45761
45762         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45763         isn't mounted.  Problem reported by Kir Kolyshkin.
45764
45765 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45766
45767         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45768         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45769         Derek R. Price.
45770         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45771         implementation.
45772
45773 2006-04-12  Eric Blake  <ebb9@byu.net>
45774
45775         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45776         is now done automatically by the corresponding Autoconf macro.
45777
45778 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45779
45780         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45781         time_r.h.
45782
45783 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45784
45785         Merge regex changes from libc, removing some of our
45786         POSIX-conformance changes that were rejected and redoing them in a
45787         less-intrusive way.
45788
45789         * lib/regcomp.c (re_compile_internal, init_dfa):
45790         Length arg is now size_t, not Idx.  All uses changed.
45791         (peek_token): Forward decl now says internal_function.
45792         (__re_error_msgid, __re_error_msgid_idx):
45793         Now static rather than extern with attribute_hidden.
45794         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45795         For some reason libc prefers K&R style defns for external functions.
45796         (regerror) [!defined _LIBC]: Likewise.
45797         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45798         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45799         (build_range_exp, build_collating_symbol):
45800         Use K&R-style defn.
45801         (re_compile_fastmap): Use '\0' to memset, not 0.
45802         (utf8_sb_map): Make the calculations more obvious.
45803         (init_dfa, parse_bracket_exp, build_charclass_op):
45804         Call calloc and cast result, as glibc does.
45805         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45806         (build_range_exp, build_collating_symbol):
45807         Now internal functions.
45808
45809         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45810
45811         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45812         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45813         Don't depend on VMS; depend on __VMS instead, for POSIX
45814         namespace cleanness.
45815         (regoff_t): Define to ssize_t, not long int.
45816
45817         Remove the REG_ macros named below.  Instead, make the old names
45818         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45819         __USE_GNU_REGEX.
45820         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45821         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45822         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45823         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45824         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45825         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45826         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45827         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45828         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45829         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45830         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45831         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45832         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45833         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45834         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45835         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45836         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45837         (REG_NREGS):
45838         Remove.  All uses replaced by the old RE_* names.
45839         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45840         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45841         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45842         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45843         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45844         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45845         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45846         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45847         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45848         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45849         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45850         Don't bother having these macros be independent of each others'
45851         values, since they no longer exist in the POSIX name space.
45852
45853         Rename the following member names back to their old names,
45854         unless !__USE_GNU_REGEX.  All uses changed back.
45855         (buffer): Renamed from re_buffer.
45856         (allocated): Renamed from re_allocated.
45857         (used): Renamed from re_used.
45858         (syntax): Renamed from re_syntax.
45859         (fastmap): Renamed from re_fastmap.
45860         (translate): Renamed from re_translate.
45861         (can_be_null): Renamed from re_can_be_null.
45862         (regs_allocated): Renamed from re_regs_allocated.
45863         (fastmap_accurate): Renamed from re_fastmap_accurate.
45864         (no_sub): Renamed from re_no_sub.
45865         (not_bol): Renamed from re_not_bol.
45866         (not_eol): Renamed from re_not_eol.
45867         (newline_anchor): Renamed from re_newline_anchor.
45868         (num_regs): Renamed from rm_num_regs.
45869         (start): Renamed from rm_start.
45870         (end): Renamed from rm_end.
45871
45872         (free_state): Move up a bit.
45873
45874         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45875         #define to be empty.
45876         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45877         when that is what is intended.
45878         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45879         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45880         (MAX): New macro.
45881         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45882         All uses changed back to re_malloc, etc.  It's now the caller's
45883         responsibility to check for overflow; all callers changed.
45884         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45885         (re_x2nrealloc): Remove.
45886         (free_state): Remove decl.
45887
45888         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45889         (re_set_registers, re_exec):
45890         Use K&R-style defn.
45891
45892         2006-01-31  Roland McGrath  <roland@redhat.com>
45893
45894         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45895         Reported by Mike Frysinger <vapier@gentoo.org>.
45896
45897         2006-01-15  Andreas Jaeger  <aj@suse.de>
45898
45899         [BZ #1950]
45900         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45901         build_wcs_upper_buffer change.
45902         (build_wcs_upper_buffer): Change return type.
45903
45904         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45905
45906         * lib/regex_internal.h: Include <stdint.h> if available.
45907
45908         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45909
45910         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45911
45912         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45913
45914         * lib/regcomp.c: Adjust for changed secondary hash function.
45915
45916         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45917
45918         * lib/regex.h: Pretty printing.
45919         Clean up namespace a bit.
45920
45921         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45922
45923         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45924         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45925
45926         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45927                     Ulrich Drepper  <drepper@redhat.com>
45928
45929         [BZ #1302]
45930         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45931         changed.
45932         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45933
45934         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45935
45936         [BZ #281]
45937         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45938         * lib/regcomp.c: Remove unnecessary uses of
45939         unsigned RE_TRANSLATE_TYPE.
45940         * lib/regex_internal.h: Likewise.
45941         * lib/regex_internal.c: Likewise.
45942         * lib/regexec.c: Likewise.
45943         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45944
45945         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45946
45947         * lib/regexec.c (find_recover_state): Remove unnecessary
45948         initialization.
45949         (transit_state_bkref): Make DFA a const pointer.
45950         (get_subexp): Likewise.
45951         (check_arrival): Likewise.
45952         (update_cur_sifted_state): Likewise.
45953         (re_search_internal): Likewise.
45954         (prune_impossible_nodes): Likewise.
45955         (acquire_init_state_context): Likewise.
45956         (proceed_next_node): Likewise.
45957         (set_regs): Likewise.
45958         (free_fail_stack_return): Likewise.
45959         (check_arrival_expand_ecl): Mark DFA parameter as const.
45960         (check_arrival_expand_ecl_sub): Likewise.
45961         (check_subexp_limits): Likewise.
45962         (sub_epsilon_src_nodes):  Likewise.
45963         (add_epsilon_src_nodes):  Likewise.
45964         (merge_state_array): Likewise.
45965         (update_regs): Likewise.
45966         (build_trtable): Likewise.
45967         (sift_states_backward): Mark MCTX parameter as const.
45968         (build_sifted_states): Likewise.
45969         (update_cur_sifted_state): Likewise.
45970         (sift_states_mkref): Likewise.
45971         (check_arrival_expand_ecl): Mark eclosure as const.
45972         (check_dst_limits_calc_pos_1): Likewise.
45973         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45974         pointer.
45975
45976         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45977
45978         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45979         (transit_state_sb): Likewise.
45980         (transit_state_mb): Likewise.
45981         (sift_states_iter_mb): Likewise.
45982         (check_arrival_add_next_nodes): Likewise.
45983         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45984         [_LIBC] (re_search_2_stub): Use mempcpy.
45985
45986         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45987         mbrtowc for very simple UTF-8 case.
45988
45989         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45990         a pointer-to-const.
45991         (re_acquire_state_context): Likewise.
45992         * lib/regex_internal.h: Adjust prototypes.
45993
45994         * lib/regex.c: Prevent using C++ compilers.
45995
45996         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45997         (re_acquire_state_context): Likewise.
45998
45999 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46000
46001         * modules/regex (Depends-on): Add ssize_t.
46002
46003 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46004
46005         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46006         translation table.
46007
46008 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46009
46010         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46011
46012 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46013             Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46016         <sys/types.h> and <inttypes.h>.
46017
46018 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46019
46020         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46021         `__error_t_defined', so argp.h will not typedef the former.
46022
46023 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46024
46025         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46026         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46027         glibc names.  Even if glibc is changed to conform to POSIX, the
46028         traditional names will be available anyway, since regex depends on
46029         the extensions module.  Also, fix a longstanding typo in the
46030         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46031         reported by Emanuele Giaquinta.  Also, change sense of cached
46032         variable, so that the message makes sense.
46033
46034 2006-03-24  Simon Josefsson  <jas@extundo.com>
46035
46036         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46037         including some doc fixes.
46038         (base64_encode_alloc): Fix +1 bug on allocation failures.
46039
46040 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46041
46042         * lib/base64.c (base64_encode): Do not read past end of array with
46043         unsanitized input on systems with CHAR_BIT > 8.
46044
46045 2006-03-24  Eric Blake  <ebb9@byu.net>
46046
46047         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46048
46049 2006-03-22  Karl Berry  <karl@gnu.org>
46050
46051         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46052         * config/srclistvars.sh (COREUTILS): new var.
46053
46054 2006-03-17  Jim Meyering  <jim@meyering.net>
46055
46056         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46057         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46058
46059 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46060
46061         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46062         no longer needs it.  Instead, check that regoff_t is as least
46063         as wide as ptrdiff_t.
46064
46065         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46066         so that our regex.h stays compatible with the installed regex.
46067         This is helpful for installers who configure --without-included-regex.
46068         Problem reported by Emanuele Giaquinta.
46069
46070 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46071
46072         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46073         Typedef to long int, not to off_, as POSIX will likely change
46074         in that direction.
46075
46076 2006-03-15  Eric Blake  <ebb9@byu.net>
46077
46078         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46079
46080 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46081
46082         * lib/argp-help.c (validate_uparams): Fix typo
46083         * lib/argp-parse.c (argp_default_options): Consistently begin help
46084         messages with a lowercase letter.
46085
46086 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46087
46088         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46089         overrun buffers and shouldn't be used (much as gets shouldn't be
46090         used).
46091         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46092
46093 2006-03-08  Simon Josefsson  <jas@extundo.com>
46094
46095         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46096         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46097
46098 2006-03-08  Simon Josefsson  <jas@extundo.com>
46099
46100         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46101         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46102
46103 2006-03-08  Simon Josefsson  <jas@extundo.com>
46104
46105         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46106         signal that configure disabled the device.
46107
46108 2006-03-08  Simon Josefsson  <jas@extundo.com>
46109
46110         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46111         languages.
46112
46113 2006-03-07  Simon Josefsson  <jas@extundo.com>
46114
46115         * modules/getopt (Depends-on): Add unistd.
46116
46117         * modules/unistd: New file.
46118
46119 2006-03-07  Simon Josefsson  <jas@extundo.com>
46120
46121         * modules/gc-random: New file.
46122
46123 2006-03-07  Simon Josefsson  <jas@extundo.com>
46124
46125         * m4/unistd_h.m4: New file.
46126
46127 2006-03-07  Simon Josefsson  <jas@extundo.com>
46128
46129         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46130         test to be side-effect free by storing the result in the cache
46131         variable gl_cv_lib_readline, and moving the assignment of
46132         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46133         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46134
46135 2006-03-07  Simon Josefsson  <jas@extundo.com>
46136
46137         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46138         error on missing devices (the functions will return an error).
46139
46140         * m4/gc.m4: Move random stuff to gc-random.m4
46141
46142 2006-03-07  Simon Josefsson  <jas@extundo.com>
46143
46144         * lib/unistd_.h: New file.
46145
46146 2006-03-07  Simon Josefsson  <jas@extundo.com>
46147
46148         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46149
46150 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46151
46152         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46153         Problem reported by Juan Manuel Guerrero.
46154
46155 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46158         the unistd module.
46159         * lib/getlogin_r.c: Likewise.
46160         * lib/getlogin_r.h: Likewise.
46161         * lib/glob.c: Likewise.
46162         * lib/pagealign_alloc.c: Likewise.
46163         * lib/unistd_.h: Remove; no longer needed.
46164
46165 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46166
46167         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46168         Add unistd.
46169         * modules/c-stack (Depends-on): Add unistd.
46170         * modules/getlogin_r: Likewise.
46171         * modules/glob: Likewise.
46172         * modules/pagealign_alloc: Likewise.
46173         * modules/unistd (Files): Remove lib/unistd_.h.
46174         (EXTRA_DIST): Remove.
46175         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46176         need unistd_.h.
46177         (MOSTLYCLEANFILES): Remove unistd.h-t.
46178
46179 2006-03-03  Simon Josefsson  <jas@extundo.com>
46180
46181         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46182
46183 2006-03-03  Simon Josefsson  <jas@extundo.com>
46184
46185         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46186         libidn and bison.
46187
46188 2006-03-03  Simon Josefsson  <jas@extundo.com>
46189
46190         * build-aux/maint.mk: Add indent target.
46191
46192 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46193
46194         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46195         our replacement poll.h in any case, to avoid a differing
46196         declaration from a system header.  Seen on AIX.
46197
46198 2006-03-01  Simon Josefsson  <jas@extundo.com>
46199
46200         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46201         <kasal@ucw.cz>.
46202
46203 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46204
46205         * modules/gettime (Depends-on): Add extensions module.
46206         * modules/nanosleep (Depends-on): Likewise.
46207         * modules/settime (Depends-on): Likewise.
46208
46209 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46210
46211         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46212         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46213         pedantically.
46214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46215         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46216
46217         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46218         not "==".  Reported by Ralf Wildenhues.
46219
46220 2006-03-01  Karl Berry  <karl@gnu.org>
46221
46222         * doc/Copyright/request-*: new files, synced from gnuorg.
46223
46224 2006-03-01  Karl Berry  <karl@gnu.org>
46225
46226         * config/srclist.txt (Copyright/*): new entries.
46227
46228 2006-02-28  Simon Josefsson  <jas@extundo.com>
46229
46230         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46231
46232 2006-02-27  Simon Josefsson  <jas@extundo.com>
46233
46234         * lib/base64.h: Indent #define's.  From Jim Meyering
46235         <jim@meyering.net>.
46236
46237 2006-02-27  Jim Meyering  <jim@meyering.net>
46238
46239         Revert the change of 2006-02-24, so these files can continue
46240         to be sync'd from gettext.
46241         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46242         of `config.h'.
46243
46244 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46245
46246         * modules/intprops: New file.
46247         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46248         Add intprops.
46249         * modules/getloadavg (Files): Remove lib/intprops.h.
46250         (Depends-on): Add intprops.
46251         * modules/human: Likewise.
46252         * modules/inttostr: Likewise.
46253         * modules/openat: Likewise.
46254         * modules/sig2str: Likewise.
46255         * modules/userspec: Likewise.
46256         * modules/utimecmp: Likewise.
46257         * modules/xnanosleep: Likewise.
46258         * modules/xstrtol: Likewise.
46259
46260 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46261
46262         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46263         * modules/lock-tests (TESTS): Use $(EXEEXT).
46264         * modules/tls-tests: Likewise.
46265         * modules/argp-tests: Likewise.
46266         (check_PROGRAMS): New var, replacing...
46267         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46268
46269 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46270
46271         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46272         `config.h'.
46273
46274 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46277
46278 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46279
46280         Sync from coreutils.
46281         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46282         gl_CHDIR_SAFER.
46283
46284 2006-02-22  Jim Meyering  <jim@meyering.net>
46285
46286         Sync from coreutils.
46287         * m4/chdir-safer.m4: New file.
46288
46289 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46290
46291         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46292         AT_FDCWD exceeds INT_MAX.
46293         * lib/openat.h (AT_FDCWD): Likewise.
46294
46295 2006-02-17  Eric Blake  <address@hidden>
46296
46297         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46298
46299 2006-02-16  Simon Josefsson  <jas@extundo.com>
46300
46301         * modules/getaddrinfo (Depends-on): Add sys_socket.
46302
46303 2006-02-15  Simon Josefsson  <jas@extundo.com>
46304
46305         * build-aux/maint.mk: Add dsyntax-check rule.
46306
46307 2006-02-15  Eric Blake  <ebb9@byu.net>
46308
46309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46310         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46311         'present but cannot compile' warnings on cygwin.
46312         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46313         use ws2tcpip.h if sys/socket.h works.
46314         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46315         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46316
46317 2006-02-14  Simon Josefsson  <jas@extundo.com>
46318
46319         * modules/maintainer-makefile (Files): Rename.
46320
46321         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46322         and (the local) Makefile.cfg to maint-cfg.mk.
46323
46324         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46325         to the latter.
46326
46327         * modules/maintainer-makefile: New module.
46328
46329         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46330         severaly stripped to make it possible to build it up from scratch
46331         with reliable tests.
46332
46333         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46334         fixes to permit overriding the default actions when configure and
46335         makefile are not available.
46336
46337 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46338
46339         Sync from coreutils.
46340         * modules/lstat (Depends-on): Don't depend on xalloc.
46341         (License): Change from GPL to LGPL, since this is now simply a
46342         replacement for a libc function.
46343
46344 2006-02-14  Jim Meyering  <jim@meyering.net>
46345
46346         Sync from coreutils.
46347
46348         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46349         failure on deficient systems, and simplify gnulib lgpl dependencies.
46350         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46351         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46352
46353         * lib/xalloc-die.c: Remove unused definition of N_.
46354
46355 2006-02-14  Jim Meyering  <jim@meyering.net>
46356
46357         Sync from coreutils.
46358         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46359         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46360         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46361         double-quote uses of that variable, to accommodate the rare case in
46362         which getmntent is available in none of the libraries checked.  This
46363         happens at least on FreeBSD 5.0.
46364
46365 2006-02-13  Simon Josefsson  <jas@extundo.com>
46366
46367         * gnulib-tool (Usage): Fix --import, from
46368         karl@freefriends.org (Karl Berry).
46369
46370 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46371
46372         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46373
46374 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46375
46376         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46377         "autoupdate" on 2005-12-12.
46378
46379 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         * modules/closeout (Depends-on): Remove atexit.
46382
46383 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46384
46385         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46386         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46387
46388 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46389
46390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46391         __EXTENSIONS__ if this causes compilation to fail.  Problem
46392         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46393         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46394
46395 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46396
46397         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46398         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46400         All uses changed.
46401
46402 2006-01-26  Simon Josefsson  <jas@extundo.com>
46403
46404         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46405         prototype is visible on mingw32.
46406
46407         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46408         for mingw32.
46409
46410         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46411         mingw32).
46412
46413 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46414
46415         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46416         attempt to open for write; this always fails, at least on POSIX
46417         hosts.  This reinstates the 2006-01-09 change, which was
46418         inadvertently removed.
46419
46420 2006-01-26  Bruno Haible  <bruno@clisp.org>
46421
46422         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46423         Reported by Paul Eggert.
46424
46425 2006-01-26  Bruno Haible  <bruno@clisp.org>
46426             Paul Eggert  <eggert@cs.ucla.edu>
46427
46428         * lib/stdbool_.h (_Bool)
46429         [(! (defined __cplusplus || defined __BEOS__)
46430           && !defined __GNUC__
46431           && !(defined __HP_cc || defined __xlc__
46432                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46433                || defined __sgi))]:
46434         #define to signed char in these cases too; this simplifies
46435         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46436         etc., separately) and makes it more conservative.
46437
46438 2006-01-25  Simon Josefsson  <jas@extundo.com>
46439
46440         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46441         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46442         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46443
46444 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46445
46446         * lib/argp-namefrob.h: Bugfix. Remove stray #
46447
46448 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46449
46450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46451         so that we test the test.
46452         Check for yet another HP-UX cc bug involving *bool |= bool.
46453
46454 2006-01-25  Karl Berry  <karl@gnu.org>
46455
46456         * config/srclist.txt (vasnprintf.c): sync lost.
46457
46458 2006-01-25  Jim Meyering  <jim@meyering.net>
46459
46460         Sync from the stable (b5) branch of coreutils:
46461
46462         * lib/fts.c (fts_children): Don't let close() clobber errno from
46463         failed fchdir().
46464
46465         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46466         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46467         a dangling symlink.  That can also happen at least for ELOOP.
46468         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46469         FYI, this bug predates the inclusion of fts.c in coreutils.
46470
46471         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46472         in their own block, so pre-c99 compilers don't object.
46473
46474         Avoid the double-free (first in fts_read, second in fts_close) that
46475         would occur when an `active' directory is made inaccessible (e.g.,
46476         via chmod a-x) during a traversal.
46477         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46478         before returning.  Reproduce this failure by
46479         mkdir -p a/b; cd a; chmod a-x . b
46480         Reported by Stavros Passas.
46481
46482 2006-01-25  Jim Meyering  <jim@meyering.net>
46483
46484         * lib/fileblocks.c: Remove more useless parentheses.
46485         * lib/readutmp.h: Likewise.
46486
46487 2006-01-25  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46490         warnings.
46491         Reported by Paul Eggert.
46492
46493 2006-01-25  Bruno Haible  <bruno@clisp.org>
46494
46495         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46496         rid of a trap command. For Solaris sh.
46497         Reported by Mark D. Baushke <mdb@gnu.org>.
46498
46499 2006-01-24  Simon Josefsson  <jas@extundo.com>
46500
46501         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46502         Bruno.
46503
46504 2006-01-24  Karl Berry  <karl@gnu.org>
46505
46506         * config/srclist.txt (argp-namefrob.h): sync lost.
46507
46508 2006-01-24  Jim Meyering  <jim@meyering.net>
46509
46510         * modules/openat (Files): Add lib/intprops.h.
46511         From Mark D. Baushke.
46512
46513 2006-01-24  Jim Meyering  <jim@meyering.net>
46514
46515         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46516         Reported by Mark D. Baushke.
46517
46518 2006-01-24  Jim Meyering  <jim@meyering.net>
46519
46520         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46521
46522 2006-01-24  Bruno Haible  <bruno@clisp.org>
46523
46524         * modules/strnlen (Maintainer): Change from glibc to all.
46525
46526 2006-01-24  Bruno Haible  <bruno@clisp.org>
46527
46528         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46529         Patch by Paul Eggert.
46530
46531 2006-01-24  Bruno Haible  <bruno@clisp.org>
46532
46533         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46534         already has it.
46535         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46536         2005-11-26.
46537
46538         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46539         'signed char' to avoid problems with the built-in _Bool type.
46540         Reported by Paul Eggert on 2005-11-26.
46541
46542 2006-01-24  Bruno Haible  <bruno@clisp.org>
46543
46544         * gnulib-tool (func_import): Avoid constructing complicated sed
46545         expressions inside backquote.
46546         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46547
46548 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46549
46550         These changes imported from libc.
46551         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46552         test and two separate function calls.
46553         * lib/strndup.c (__strndup): Add libc_hidden_def.
46554
46555 2006-01-23  Simon Josefsson  <jas@extundo.com>
46556
46557         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46558         Remove the test_*_SOURCES variable: automake infers it by default.
46559         * modules/tls-tests: Likewise.
46560
46561 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46562
46563         Work around porting bugs reported by Dieter in
46564         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46565         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46566         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46567         Include "getopt.h" first, to check interface.
46568         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46569         !HAVE_DECL_GETENV.
46570         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46571         (__strndup): Revert to K&R-style function dfns, the glibc style.
46572         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46573         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46574         Include strnlen.h first, to get prototype properly.
46575         (strnlen): Renamed from __strnlen.
46576         Remove weak alias.
46577
46578 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46579
46580         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46581
46582 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46583
46584         * config/srclist.txt: Adjust to reflect glibc reorganization.
46585         This affects only comments.
46586
46587 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46588
46589          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46590          Reported by Bruce Korb <bkorb@gnu.org>.
46591
46592 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46593
46594         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46595         to pacify gcc -Wswitch-default.
46596
46597 2006-01-22  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46600         temporary buffer for sprintf, take into account the precision also
46601         for 'd', 'i', 'u', 'o', 'x', 'X'.
46602
46603 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46604
46605         * modules/argp-tests: New module
46606         * tests/test-argp.c: New file
46607         * tests/test-argp-2.sh: New file
46608
46609 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46610
46611         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46612         (__argp_base_name): Removed
46613         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46614         typo.
46615         (__argp_base_name): Provide macro definition or extern declaration
46616         depending on the configuration
46617
46618 2006-01-20  Simon Josefsson  <jas@extundo.com>
46619
46620         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46621
46622 2006-01-20  Simon Josefsson  <jas@extundo.com>
46623
46624         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46625
46626 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46627
46628         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46629         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46630         Suggested by Bruno Haible.
46631
46632 2006-01-20  Karl Berry  <karl@gnu.org>
46633
46634         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46635         until changes propagate, I guess.
46636
46637 2006-01-19  Simon Josefsson  <jas@extundo.com>
46638
46639         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46640
46641 2006-01-19  Simon Josefsson  <jas@extundo.com>
46642
46643         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46644
46645 2006-01-19  Simon Josefsson  <jas@extundo.com>
46646
46647         * gnulib-tool: Set check_PROGRAMS.
46648
46649         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46650         modules/des-tests, modules/gc-arcfour-tests,
46651         modules/gc-arctwo-tests, modules/gc-des-tests,
46652         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46653         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46654         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46655         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46656         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46657         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46658         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46659         test_*_SOURCES.
46660
46661 2006-01-18  Simon Josefsson  <jas@extundo.com>
46662
46663         * modules/socklen (Depends-on): Depend on sys_socket.
46664
46665 2006-01-18  Simon Josefsson  <jas@extundo.com>
46666
46667         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46668         modules/des-tests, modules/gc-arcfour-tests,
46669         modules/gc-arctwo-tests, modules/gc-des-tests,
46670         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46671         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46672         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46673         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46674         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46675         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46676         $(EXEEXT) to automake TESTS variable, for mingw32.
46677
46678 2006-01-17  Simon Josefsson  <jas@extundo.com>
46679
46680         * modules/socklen (Include): Need sys/socket.h.
46681
46682 2006-01-17  Bruno Haible  <bruno@clisp.org>
46683
46684         * modules/ssize_t (Include): Add <sys/types.h>.
46685
46686 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46687
46688         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46689         it's not portable and it doesn't work with cross-compiles.
46690         Problem reported by Bruno Haible.  Fix missing-$ typo in
46691         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46692         -zignore from being used with Sun's C compiler.
46693
46694 2006-01-12  Simon Josefsson  <jas@extundo.com>
46695
46696         * lib/base64.c: Fix warning, reported by Bruno Haible
46697         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46698
46699 2006-01-12  Bruno Haible  <bruno@clisp.org>
46700
46701         * modules/ldd: New file.
46702         * build-aux/ldd.sh.in: New file.
46703         * MODULES.html.sh (Support for building libraries and executables): Add
46704         ldd.
46705
46706 2006-01-12  Bruno Haible  <bruno@clisp.org>
46707
46708         * m4/ldd.m4: New file.
46709
46710 2006-01-12  Bruno Haible  <bruno@clisp.org>
46711
46712         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46713         endless loop while replacing $auxdir with build-aux.
46714
46715 2006-01-11  Simon Josefsson  <jas@extundo.com>
46716
46717         * lib/stdint_.h (SIZE_MAX): Add missing (.
46718
46719 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46720
46721         Sync from coreutils.
46722         * lib/md5.c: Fix commentary typos.
46723         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46724         * lib/md5.h (__attribute__): Remove; unused.
46725         * lib/sha1.c: Fix commentary to match md5 better.
46726         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46727         so that we don't need to worry about alignment.  All uses changed.
46728         This merges the 2005-10-28 md5 change into sha1.
46729
46730 2006-01-11  Jim Meyering  <jim@meyering.net>
46731
46732         Sync from coreutils.
46733         * lib/md5.c (OP): Fix spacing.
46734
46735 2006-01-11  Bruno Haible  <bruno@clisp.org>
46736
46737         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46738         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46739         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46740
46741 2006-01-11  Bruno Haible  <bruno@clisp.org>
46742
46743         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46744         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46745         the "early" section as well.
46746
46747 2006-01-11  Bruno Haible  <bruno@clisp.org>
46748
46749         Avoid "ar: no archive members specified" error on MacOS X.
46750         * gnulib-tool (func_modules_add_dummy): New function.
46751         (func_import, func_create_testdir): Invoke it.
46752
46753 2006-01-11  Bruno Haible  <bruno@clisp.org>
46754
46755         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46756         with $auxdir in AC_CONFIG_FILES statements.
46757
46758 2006-01-11  Bruno Haible  <bruno@clisp.org>
46759
46760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46761         Initialize also noinst_HEADERS to empty.
46762
46763 2006-01-11  Bruno Haible  <bruno@clisp.org>
46764
46765         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46766         variables.
46767         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46768         autoreconf.
46769
46770 2006-01-11  Bruno Haible  <bruno@clisp.org>
46771
46772         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46773         overridable by the user.
46774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46775
46776 2006-01-10  Simon Josefsson  <jas@extundo.com>
46777
46778         * modules/sys_socket: New file.
46779
46780 2006-01-10  Simon Josefsson  <jas@extundo.com>
46781
46782         * m4/sys_socket_h.m4: New file.
46783
46784 2006-01-10  Simon Josefsson  <jas@extundo.com>
46785
46786         * lib/socket_.h: New file.
46787
46788 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         * modules/readutmp (Maintainer): Add myself.
46791
46792 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46793
46794         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46795         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46796         People who are still concerned with buggy memcmp implementations
46797         can invoke gl_FUNC_MEMCMP themselves.
46798
46799 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46800
46801         * lib/regex_internal.h (BITSET_WORD_BITS):
46802         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46803         preprocessor mishandles large unsigned values as if they were signed.
46804         Problem reported by Claudio Fontana in
46805         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46806
46807 2006-01-10  Jim Meyering  <jim@meyering.net>
46808
46809         Avoid the double-free (first in fts_read, second in fts_close) that
46810         would occur when an `active' directory is made inaccessible (e.g.,
46811         via chmod a-x) during a traversal.
46812         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46813         before returning.  Reproduce this failure by
46814         mkdir -p a/b; cd a; chmod a-x . b
46815         Reported by Stavros Passas.
46816
46817         Sync from coreutils.
46818         * lib/sha1.c: Tweak grammar in a comment.
46819
46820 2006-01-10  Jim Meyering  <jim@meyering.net>
46821
46822         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46823         Patch by Joerg Sonnenberger.
46824
46825 2006-01-10  Bruno Haible  <bruno@clisp.org>
46826
46827         * modules/readutmp: Depend on module free.
46828         * modules/strtok_r: Depend on module restrict.
46829
46830 2006-01-10  Bruno Haible  <bruno@clisp.org>
46831
46832         * modules/gettext (configure.ac): Add an invocation of
46833         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46834
46835 2006-01-10  Bruno Haible  <bruno@clisp.org>
46836
46837         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46838         Reported by Werner Lemberg <wl@gnu.org>.
46839
46840 2006-01-10  Bruno Haible  <bruno@clisp.org>
46841
46842         * lib/localcharset.c: Update from GNU gettext.
46843
46844 2006-01-10  Bruno Haible  <bruno@clisp.org>
46845
46846         * lib/argp.h (__const): Remove macro. Use const instead.
46847         * lib/argp-fmtstream.h (__const): Likewise.
46848         * lib/glob_.h (__const): Remove macro.
46849         * lib/glob-libc.h: Use const instead of __const.
46850
46851 2006-01-10  Bruno Haible  <bruno@clisp.org>
46852
46853         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46854         variable.
46855         Needed to avoid an automake error regarding the 'gettext' module.
46856
46857 2006-01-09  Simon Josefsson  <jas@extundo.com>
46858
46859         * modules/inet_ntop (Depends-on): Add restrict.
46860
46861 2006-01-09  Simon Josefsson  <jas@extundo.com>
46862
46863         * modules/gc-rijndael-tests (License): Put under LGPL.
46864
46865         * modules/gc-des-tests (License): Likewise.
46866
46867         * modules/gc-arcfour-tests (License): Likewise.
46868
46869         * modules/gc-arctwo-tests (License): Likewise.
46870
46871         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46872
46873         * modules/gc-hmac-sha1-tests (Files): Likewise.
46874
46875         * modules/gc-hmac-md5-tests (License): Likewise.
46876
46877         * modules/gc-sha1-tests (License): Likewise.
46878
46879         * modules/gc-md5-tests (License): Likewise.
46880
46881         * modules/gc-md4-tests (License): Likewise.
46882
46883         * modules/gc-md2-tests (License): Likewise.
46884
46885         * modules/gc-tests (License): Likewise.
46886
46887         * modules/des-tests (License): Likewise.
46888
46889         * modules/md4-tests (License): Likewise.
46890
46891         * modules/md2-tests (License): Likewise.
46892
46893 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46894
46895         Sync from coreutils:
46896
46897         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46898         * modules/lib-ignore: New file.
46899         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46900         chdir-safer.m4, lchmod.m4.
46901         * modules/openat: Add mkdirat.c, openat-priv.h.
46902
46903 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46904
46905         Sync from coreutils.
46906         * m4/lib-ignore.m4: New file.
46907         * m4/lchmod.m4: New file.
46908
46909 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46910
46911         Sync from coreutils.
46912         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46913         for write access: POSIX says that must fail.
46914         * lib/fts.c (diropen): Likewise.
46915         * lib/save-cwd.c (save_cwd): Likewise.
46916         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46917         well, for minor improvements on hosts that lack O_DIRECTORY.
46918         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46919         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46920         Fall back on chown if open failed with EACCES.
46921
46922         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46923         Report an error at compile-time if only a 1-second nominal clock
46924         resolution is found.
46925
46926         * lib/lchmod.h: New file.
46927         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46928         (make_dir_parents): Use lchown rather than chown, and
46929         lchmod rather than chmod.
46930
46931         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46932         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46933         "proc" reported by n0dalus.
46934
46935         * lib/mountlist.c: Include <limits.h>.
46936         (dev_from_mount_options)
46937         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46938         New function.  It no longer assumes "dev=" has the System V meaning
46939         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46940         (read_file_system_list)
46941         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46942         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46943         dev= in that case.
46944
46945         * lib/posixtm.h (PDS_PRE_2000): New macro.
46946         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46947         allow_century.  All usages changed.  Reject dates outside the range
46948         1969-1999 if PDS_PRE_2000 is used.
46949
46950 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         Sync from coreutils.
46953         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46954         (Time of day items): Mention the possibility of leap seconds.
46955         Problem reported by Dr. David Alan Gilbert.
46956
46957 2006-01-09  Jim Meyering  <jim@meyering.net>
46958
46959         Sync from coreutils.
46960
46961         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46962
46963         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46964
46965         * lib/modechange.c (mode_compile): Reject an invalid mode string
46966         that starts with an octal digit.  From Andreas Gruenbacher.
46967
46968         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46969         and dup to open_safer and dup_safer, respectively.
46970         (openat_permissive): Fix typo in comment.
46971
46972         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46973         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46974         (_): Remove; no longer needed.
46975         (openat): Renamed from rpl_openat; no need for rpl_openat
46976         since openat.h renames openat for us.
46977         Replace most of the body with a call to openat_permissive,
46978         to avoid duplicate code.
46979         Port to (probably hypothetical) environments were mode_t is
46980         wider than int.
46981         (openat_permissive): Require mode arg, so that we can check
46982         types better.  Put it just after flags.  Change cwd failure
46983         indicator from pointer-to-bool to pointer-to-errno-value.
46984         All callers changed.
46985         Invoke openat_save_fail and/or openat_restore_fail if
46986         cwd_errno is null, so that openat can call us.
46987         (openat_permissive, fdopendir, fstatat, unlinkat):
46988         Simplify errno handling to avoid some duplicate code,
46989         as it's OK to set errno on success.
46990         * lib/openat.h: Revamp code so that function macros depend on
46991         __OPENAT_PREFIX only, not also on AT_FDCWD.
46992         (openat_ro): Remove.  Caller changed to use openat_permissive.
46993         (openat_permissive): Now a macro, if not a function.
46994         (openat_restore_fail, openat_save_fail): Now always functions,
46995         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46996
46997         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46998         and openat.c.
46999         * lib/mkdirat.c: Include openat-priv.h.
47000         Remove definitions of macros defined therein.
47001         * lib/openat.c: Likewise.
47002
47003         * lib/mkdirat.c (mkdirat): New file and function.
47004         * lib/openat.h (mkdirat): Declare.
47005
47006         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47007
47008         * lib/openat.h (openat_permissive): Declare.
47009         (openat_ro): Define.
47010
47011         * lib/openat.c (EXPECTED_ERRNO): New macro.
47012         (openat_permissive): New function -- used in remove.c rewrite.
47013         (all functions): Set errno just before returning, only if there
47014         was an actual failure.
47015         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47016
47017         Emulate openat-family functions using Linux's procfs, if possible.
47018         Idea and some code based on Ulrich Drepper's glibc changes.
47019
47020         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47021         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47022         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47023         before falling back on save_cwd and restore_cwd.
47024         (fdopendir, fstatat, unlinkat): Likewise.
47025
47026         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47027         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47028
47029         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47030         as second argument to va_arg.  Otherwise, some versions of gcc
47031         warn that `if this code is reached, the program will abort'.
47032
47033 2006-01-09  Jim Meyering  <jim@meyering.net>
47034
47035         Sync from coreutils.
47036         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47037         Require openat-priv.h.
47038
47039 2006-01-09  Bruno Haible  <bruno@clisp.org>
47040
47041         * modules/strnlen (Include): Use strnlen.h.
47042
47043 2006-01-09  Bruno Haible  <bruno@clisp.org>
47044
47045         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47046
47047 2006-01-09  Bruno Haible  <bruno@clisp.org>
47048
47049         * lib/sysexit_.h (EX_OK): New macro.
47050         Suggested by Martin Lambers <marlam@marlam.de>.
47051
47052 2006-01-09  Bruno Haible  <bruno@clisp.org>
47053
47054         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47055         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47056
47057 2006-01-09  Bruno Haible  <bruno@clisp.org>
47058
47059         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47060         numbers.
47061
47062 2006-01-09  Bruno Haible  <bruno@clisp.org>
47063
47064         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47065         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47066         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47067         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47068
47069 2006-01-09  Bruno Haible  <bruno@clisp.org>
47070
47071         * build-aux/javacomp.sh.in: New file, moved from lib/.
47072         * modules/javacomp-script (Files): Update.
47073         (configure.ac): Add AC_CONFIG_FILES invocation.
47074         (EXTRA_DIST): Remove variable.
47075
47076         * build-aux/javaexec.sh.in: New file, moved from lib/.
47077         * modules/javaexec (Files): Update.
47078         (configure.ac): Add AC_CONFIG_FILES invocation.
47079         (EXTRA_DIST): Remove javaexec.sh.in.
47080
47081         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47082         * modules/csharpcomp-script (Files): Update.
47083         (configure.ac): Add AC_CONFIG_FILES invocation.
47084         (EXTRA_DIST): Remove variable.
47085
47086         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47087         * modules/csharpexec (Files): Update.
47088         (configure.ac): Add AC_CONFIG_FILES invocation.
47089         (EXTRA_DIST): Remove csharpexec.sh.in.
47090
47091 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47092
47093         Sync from coreutils.
47094
47095         Add POSIX ACL support
47096         * lib/acl.h (copy_acl, set_acl): Add declarations.
47097         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47098         systems other than Linux.
47099         (chmod_or_fchmod): New function: use fchmod when possible,
47100         and chmod otherwise.
47101         (file_has_acl): Add a POSIX ACL implementation, with a
47102         Linux-specific subcase.
47103         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47104         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47105         acls are unsupported.
47106         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47107         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47108         are unsupported.
47109
47110 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47111
47112         Sync from coreutils.
47113         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47114
47115 2006-01-07  Bruno Haible  <bruno@clisp.org>
47116
47117         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47118         gl_EARLY.
47119
47120 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47121
47122         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47123         Problem reported for Mingw by Mark Junker.
47124
47125 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47126
47127         * README: Gnulib normally doesn't generate a tarball.
47128
47129 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47130
47131         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47132         long int, not int, for nanosecond counts, so that people who are
47133         used to POSIX struct timespec won't be surprised.  Reported by Jim
47134         Meyering.
47135
47136 2005-12-28  Bruno Haible  <bruno@clisp.org>
47137
47138         * build-aux/config.rpath: Update from GNU gettext.
47139
47140 2005-12-16  Jim Meyering  <jim@meyering.net>
47141
47142         * modules/fprintftime: New module.
47143         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47144
47145 2005-12-16  Jim Meyering  <jim@meyering.net>
47146
47147         * m4/fprintftime.m4: New file.
47148
47149 2005-12-16  Jim Meyering  <jim@meyering.net>
47150
47151         * lib/fprintftime.c, lib/fprintftime.h: New files.
47152
47153 2005-12-15  Simon Josefsson  <jas@extundo.com>
47154
47155         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47156         new m4/socklen.m4.
47157
47158 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47159
47160         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47161         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47162
47163 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47164
47165         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47166         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47167         struct uparams is valid. Fall back to the default values if it is
47168         not.
47169
47170 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47171
47172         * modules/argp (Files): Add argp-pin.c
47173         (Depends-on): dirname
47174         (lib_SOURCES): Add argp-pin.c
47175
47176 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47177
47178         * m4/argp.m4:  Check if program_invocation_name and
47179         program_invocation_short_name are declared and define appropriate
47180         macros if they are not.
47181
47182 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47183
47184         * lib/argp-help.c (__argp_base_name): New function
47185         (__argp_short_program_name): Rewrite using __argp_base_name
47186         * lib/argp-namefrob.h: Define program_invocation_name and
47187         program_invocation_short_name if requested
47188         (__argp_base_name): Add prototype
47189         * lib/argp-parse.c (argp_def): Use gettext wrappers
47190         (argp_default_parser): Use __argp_base_name
47191         * lib/argp-pin.c: New file. Defines program_invocation_name and
47192         program_invocation_short_name on systems that lack them.
47193
47194 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47195
47196         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47197         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47198         porting problem reported by Georg Schwarz in
47199         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47200
47201 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47202
47203         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47204         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47205         porting problem reported by Georg Schwarz in
47206         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47207
47208 2005-12-05  Bruno Haible  <bruno@clisp.org>
47209
47210         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47211         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47212         Reported by Mark Junker <mjscod@gmx.de>.
47213
47214 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47217         Use implementation from Albert Chin, with some
47218         comments/corrections by Stepan Kasal and myself.
47219
47220 2005-12-02  Bruno Haible  <bruno@clisp.org>
47221
47222         * gnulib-tool (func_import): Accept GPLed build tool modules when
47223         --lgpl is given.
47224         * modules/csharpcomp-script: New file.
47225         * modules/csharpcomp: Depend on it.
47226         * modules/javacomp-script: New file.
47227         * modules/javacomp: Depend on it.
47228         Suggested by Simon Josefsson.
47229
47230 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47231
47232         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47233         statement, to work around an HP-UX 10.20 compiler bug reported by
47234         Peter O'Gorman.
47235
47236 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47237
47238         * modules/savedir (Depends-on): Add openat.
47239
47240 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47243         (uintmax_t) [defined uintmax_t]: Do not declare.
47244         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47245         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47246         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47247         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47248         sake of portability to weird hosts that C allows (though we don't
47249         know of any practical examples).
47250
47251         * lib/savedir.h (fdsavedir): New decl.
47252         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47253         contains most of the former guts of savedir.
47254         (savedir): Use savedirstream.
47255         Include "openat.h".
47256
47257 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47258
47259         * modules/obstack (Files): Add m4/ulonglong.m4.
47260         Problem reported by Davide Angelocola.
47261
47262 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47263
47264         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47265         coreutils no longer futzes with rounding modes.
47266
47267 2005-11-14  Jim Meyering  <jim@meyering.net>
47268
47269         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47270         replacement of mkstemp.
47271
47272 2005-11-10  Simon Josefsson  <jas@extundo.com>
47273
47274         * lib/readline.c: Remove EOL.
47275
47276 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47277
47278         * modules/gethrxtime (Depends-on): Add gettime.
47279
47280 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47281
47282         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47283         or gettimeofday; no longer needed.
47284
47285 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47286
47287         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47288         time business.
47289         (gethrxtime) [! (HAVE_NANOUPTIME
47290         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47291         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47292         our own approximation.
47293
47294 2005-11-08  Eric Blake  <ebb9@byu.net>
47295
47296         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47297
47298 2005-11-08  Eric Blake  <ebb9@byu.net>
47299
47300         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47301
47302 2005-11-04  Bruno Haible  <bruno@clisp.org>
47303
47304         * gnulib-tool: Implement --update mode.
47305
47306 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47307
47308         Fix porting problem reported by Theodoros V. Kalamatianos.
47309         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47310         Don't assume that futimes failing means we must fail.
47311
47312 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47313
47314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47315         variables to suggest the intended function of the PATH_MAX check.
47316
47317 2005-10-30  Kean Johnston  <jkj@sco.com>
47318
47319         Trivial changes to support SCO systems.
47320         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47321         as PATH_MAX.
47322         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47323         where __ptr is null when no I/O is pending.
47324
47325 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47328         leave errno alone.  Problem reported by Dmitry V. Levin.
47329
47330 2005-10-28  Simon Josefsson  <jas@extundo.com>
47331
47332         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47333         Test more.
47334
47335         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47336
47337         * modules/md2, modules/md2-tests: New files.
47338
47339 2005-10-28  Simon Josefsson  <jas@extundo.com>
47340
47341         * m4/inet_ntop.m4: More tests.
47342
47343         * m4/gc-md2.m4, md2.m4: New file.
47344
47345 2005-10-28  Simon Josefsson  <jas@extundo.com>
47346
47347         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47348         "restrict" keywords, as per POSIX.  Protect the function
47349         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47350         Don't use K&R prototypes.  Check the sprintf return values.
47351         Re-define EAFNOSUPPORT if not present.  Indent.
47352
47353         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47354         suggested by Bruno Haible <bruno@clisp.org>.
47355
47356         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47357
47358         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47359
47360         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47361         libgcrypt).
47362
47363         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47364
47365         * lib/md2.h, lib/md2.c: New files.
47366
47367 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47368
47369         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47370         errno alone.  Problem reported by Frederic Jolliton.
47371
47372 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47373
47374         * modules/verify (License): Change from GPL to LGPL.  This is a
47375         tiny module and there are apparently near-equivalents that are
47376         under the BSD license.
47377
47378 2005-10-24  Simon Josefsson  <jas@extundo.com>
47379
47380         * modules/sha1: Relicense to LGPL.
47381
47382 2005-10-24  Simon Josefsson  <jas@extundo.com>
47383
47384         * lib/md4.h: Shrink buffer size, now that we changed the type.
47385
47386 2005-10-23  Simon Josefsson  <jas@extundo.com>
47387
47388         * gnulib-tool (func_import): Fix --tests-base.
47389
47390 2005-10-22  Simon Josefsson  <jas@extundo.com>
47391
47392         * modules/arcfour (Depends-on): Need stdint.
47393
47394 2005-10-22  Simon Josefsson  <jas@extundo.com>
47395
47396         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47397         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47398
47399 2005-10-22  Simon Josefsson  <jas@extundo.com>
47400
47401         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47402         suggested by Bruno Haible <bruno@clisp.org>.
47403
47404 2005-10-22  Simon Josefsson  <jas@extundo.com>
47405
47406         * lib/crc.h: Include stddef.h, for size_t.
47407
47408 2005-10-22  Simon Josefsson  <jas@extundo.com>
47409
47410         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47411         arcfour_context struct (simplify test vector testing in GNU
47412         Shishi).
47413
47414 2005-10-21  Simon Josefsson  <jas@extundo.com>
47415
47416         * modules/des, modules/des-tests: New files.
47417
47418         * modules/gc-des, modules/gc-des-tests: New files.
47419
47420         * tests/test-des.c, tests/test-gc-des.c: New file.
47421
47422 2005-10-21  Simon Josefsson  <jas@extundo.com>
47423
47424         * modules/arctwo, modules/arctwo-tests: New files.
47425
47426         * tests/test-arctwo.c: New file.
47427
47428         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47429
47430         * tests/test-gc-arctwo.c: New file.
47431
47432 2005-10-21  Simon Josefsson  <jas@extundo.com>
47433
47434         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47435         Bruno Haible <bruno@clisp.org>.
47436
47437         * m4/gc-des.m4: New file.
47438
47439 2005-10-21  Simon Josefsson  <jas@extundo.com>
47440
47441         * m4/arctwo.m4: New file.
47442
47443         * m4/gc-arctwo.m4: New file.
47444
47445 2005-10-21  Simon Josefsson  <jas@extundo.com>
47446
47447         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47448         block.
47449
47450 2005-10-21  Simon Josefsson  <jas@extundo.com>
47451
47452         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47453         <bruno@clisp.org>.
47454
47455         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47456
47457         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47458         Bruno Haible <bruno@clisp.org>.
47459
47460         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47461         <bruno@clisp.org>.
47462
47463 2005-10-21  Simon Josefsson  <jas@extundo.com>
47464
47465         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47466
47467 2005-10-21  Simon Josefsson  <jas@extundo.com>
47468
47469         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47470
47471 2005-10-21  Simon Josefsson  <jas@extundo.com>
47472
47473         * lib/des.h, lib/des.c: New files.
47474
47475         * lib/gc-gnulib.c: Support DES.c
47476
47477 2005-10-21  Simon Josefsson  <jas@extundo.com>
47478
47479         * lib/arctwo.h, lib/arctwo.c: New files.
47480
47481         * lib/gc-gnulib.c: Support ARCTWO.
47482
47483 2005-10-21  Simon Josefsson  <jas@extundo.com>
47484
47485         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47486         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47487
47488 2005-10-21  Simon Josefsson  <jas@extundo.com>
47489
47490         * gnulib-tool (func_import, func_create_testdir): Define automake
47491         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47492         Makefile.am snippet),
47493         suggested by Bruno Haible <bruno@clisp.org>.
47494
47495         * modules/gc (Makefile.am): Use it.
47496
47497 2005-10-21  Bruno Haible  <bruno@clisp.org>
47498
47499         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47500         patch.
47501
47502 2005-10-19  Simon Josefsson  <jas@extundo.com>
47503
47504         * tests/test-gc-rijndael.c: New file.
47505
47506         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47507
47508 2005-10-19  Simon Josefsson  <jas@extundo.com>
47509
47510         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47511         interface too.
47512
47513 2005-10-19  Simon Josefsson  <jas@extundo.com>
47514
47515         * tests/test-gc-arcfour.c: New file.
47516
47517         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47518
47519 2005-10-19  Simon Josefsson  <jas@extundo.com>
47520
47521         * modules/gc-md4, modules/gc-md4-tests: New file.
47522
47523         * tests/test-gc-md4.c: New file.
47524
47525 2005-10-19  Simon Josefsson  <jas@extundo.com>
47526
47527         * m4/gc-md4.m4: New file.
47528
47529 2005-10-19  Simon Josefsson  <jas@extundo.com>
47530
47531         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47532         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47533         <kasal@ucw.cz>.
47534
47535 2005-10-19  Simon Josefsson  <jas@extundo.com>
47536
47537         * m4/gc-arcfour.m4: New file.
47538
47539         * m4/gc-rijndael.m4: New file.
47540
47541 2005-10-19  Simon Josefsson  <jas@extundo.com>
47542
47543         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47544
47545 2005-10-19  Simon Josefsson  <jas@extundo.com>
47546
47547         * lib/gc-gnulib.c: Support ARCFOUR.
47548
47549 2005-10-19  Simon Josefsson  <jas@extundo.com>
47550
47551         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47552         support.
47553
47554         * lib/gc.h: Add ECB enum type.
47555
47556         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47557
47558 2005-10-18  Simon Josefsson  <jas@extundo.com>
47559
47560         * tests/test-md5.c: New file.
47561
47562         * modules/md5-tests: New file.
47563
47564 2005-10-18  Simon Josefsson  <jas@extundo.com>
47565
47566         * tests/test-md4.c: New file.
47567
47568         * modules/md4, modules/md4-tests: New files.
47569
47570 2005-10-18  Simon Josefsson  <jas@extundo.com>
47571
47572         * m4/md4.m4: New file.
47573
47574 2005-10-18  Simon Josefsson  <jas@extundo.com>
47575
47576         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47577
47578 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47579
47580         * gnulib-tool (func_create_testdir): Omit the second check whether
47581         BUILT_SOURCES in nonempty.
47582
47583 2005-10-17  Simon Josefsson  <jas@extundo.com>
47584
47585         * tests/test-rijndael.c: New file.
47586
47587 2005-10-17  Simon Josefsson  <jas@extundo.com>
47588
47589         * modules/sha1: Depend on stdint instead of md5.
47590
47591         * modules/md5: Depend on stdint, remove uint32_t.
47592
47593 2005-10-17  Simon Josefsson  <jas@extundo.com>
47594
47595         * modules/gc-sha1-tests: New file.
47596
47597         * tests/test-gc-sha1.c: New file.
47598
47599 2005-10-17  Simon Josefsson  <jas@extundo.com>
47600
47601         * m4/md5.m4: Remove call to uint32_t.m4.
47602
47603 2005-10-17  Simon Josefsson  <jas@extundo.com>
47604
47605         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47606
47607         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47608         md5.h.
47609
47610         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47611
47612         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47613
47614 2005-10-17  Simon Josefsson  <jas@extundo.com>
47615
47616         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47617
47618 2005-10-17  Simon Josefsson  <jas@extundo.com>
47619
47620         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47621
47622 2005-10-17  Simon Josefsson  <jas@extundo.com>
47623
47624         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47625
47626         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47627
47628 2005-10-17  Bruno Haible  <bruno@clisp.org>
47629
47630         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47631         that it can also be used in a test.
47632
47633 2005-10-16  Bruno Haible  <bruno@clisp.org>
47634
47635         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47636         TESTS_ENVIRONMENT, so that individual tests can augment it.
47637
47638         * gnulib-tool (func_create_testdir): Use an intermediate target for
47639         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47640         macros, like $(ALLOCA_H), which cannot be passed through the command
47641         line.
47642
47643 2005-10-15  Simon Josefsson  <jas@extundo.com>
47644
47645         * modules/rijndael-tests: New file.
47646
47647         * modules/rijndael: New file.
47648
47649 2005-10-15  Simon Josefsson  <jas@extundo.com>
47650
47651         * m4/rijndael.m4: New file.
47652
47653 2005-10-15  Simon Josefsson  <jas@extundo.com>
47654
47655         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47656
47657         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47658
47659 2005-10-14  Simon Josefsson  <jas@extundo.com>
47660
47661         * tests/test-arcfour.c: New file.
47662
47663         * modules/arcfour, modules/arcfour-tests: New files.
47664
47665 2005-10-14  Simon Josefsson  <jas@extundo.com>
47666
47667         * m4/arcfour.m4: New file.
47668
47669 2005-10-14  Simon Josefsson  <jas@extundo.com>
47670
47671         * lib/arcfour.h, lib/arcfour.c: New files.
47672
47673 2005-10-14  Roland McGrath  <roland@redhat.com>
47674
47675         Import from libc.  [BZ #1331]
47676         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47677         macro argument.
47678         Reported by Matej Vela <vela@debian.org>.
47679
47680 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47681
47682         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47683         include <wchar.h>; no longer needed.
47684
47685 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47686
47687         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47688
47689 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47690         and  Ulrich Drepper  <drepper@redhat.com>
47691
47692         Import from libc.
47693         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47694         instead of inline stream orientation test and two separate
47695         function calls.  Pay no attention to USE_IN_LIBIO.
47696
47697 2005-10-13  Simon Josefsson  <jas@extundo.com>
47698
47699         * modules/gc-hmac-md5-tests: New file.
47700
47701         * tests/test-gc-hmac-sha1.c: New file.
47702
47703         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47704
47705         * modules/gc-hmac-md5-tests: New file.
47706
47707         * tests/test-gc-md5.c: New file.
47708
47709         * modules/gc-md5-tests: New file.
47710
47711 2005-10-13  Simon Josefsson  <jas@extundo.com>
47712
47713         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47714         Move memory allocation outside of loop.
47715
47716 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47717
47718         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47719         intermediate directory is in a read-only file system.  Problem
47720         reported by Eric Blake.
47721
47722 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47723
47724         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47725
47726 2005-10-12  Simon Josefsson  <jas@extundo.com>
47727
47728         * tests/test-hmac-sha1.c: New file.
47729
47730         * modules/hmac-sha1-tests: New file.
47731
47732         * modules/hmac-sha1: New file.
47733
47734 2005-10-12  Simon Josefsson  <jas@extundo.com>
47735
47736         * modules/gc-sha1: New file.
47737
47738 2005-10-12  Simon Josefsson  <jas@extundo.com>
47739
47740         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47741
47742         * tests/test-gc-pbkdf2-sha1.c: New file.
47743
47744 2005-10-12  Simon Josefsson  <jas@extundo.com>
47745
47746         * modules/gc-md5, modules/gc-hmac-md5: New files.
47747
47748         * modules/gc (Files): Remove md5, memxor and hmac files.
47749
47750 2005-10-12  Simon Josefsson  <jas@extundo.com>
47751
47752         * m4/gc-pbkdf2-sha1.m4: New file.
47753
47754         * m4/gc-hmac-sha1.m4: New file.
47755
47756         * m4/gc-sha1: New file.
47757
47758         * m4/hmac-sha1.m4: New file.
47759
47760 2005-10-12  Simon Josefsson  <jas@extundo.com>
47761
47762         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47763
47764         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47765
47766 2005-10-12  Simon Josefsson  <jas@extundo.com>
47767
47768         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47769         suggested by Bruno Haible <bruno@clisp.org>.
47770
47771 2005-10-12  Simon Josefsson  <jas@extundo.com>
47772
47773         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47774
47775 2005-10-12  Simon Josefsson  <jas@extundo.com>
47776
47777         * lib/gc-pbkdf2-sha1.c: New file.
47778
47779         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47780
47781 2005-10-12  Simon Josefsson  <jas@extundo.com>
47782
47783         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47784
47785         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47786
47787 2005-10-12  Simon Josefsson  <jas@extundo.com>
47788
47789         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47790         GC_USE_HMAC_MD5, respectively.
47791
47792         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47793         (gc_md5): Fix typo.
47794
47795         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47796
47797         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47798
47799         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47800
47801 2005-10-12  Bruno Haible  <bruno@clisp.org>
47802
47803         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47804         Reported by Stepan Kasal <kasal@ucw.cz>.
47805
47806 2005-10-11  Simon Josefsson  <jas@extundo.com>
47807
47808         * tests/test-crc.c: New file.
47809
47810         * modules/crc, modules/crc-tests: New files.
47811
47812 2005-10-11  Simon Josefsson  <jas@extundo.com>
47813
47814         * m4/crc.m4: New file.
47815
47816 2005-10-11  Simon Josefsson  <jas@extundo.com>
47817
47818         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47819
47820         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47821
47822         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47823
47824 2005-10-11  Simon Josefsson  <jas@extundo.com>
47825
47826         * lib/crc.h, lib/crc.c: New files.
47827
47828         * lib/gc.h (gc_hash_buffer): Add doc.
47829
47830 2005-10-11  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/c-strcasestr: New file.
47833         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47834
47835 2005-10-11  Bruno Haible  <bruno@clisp.org>
47836
47837         * modules/c-strcase: New file.
47838         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47839
47840 2005-10-11  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/strcasecmp.c: Include limits.h.
47843         (strcasecmp): Avoid integer overflow on exotic platforms.
47844         * lib/strncasecmp.c: Include limits.h.
47845         (strncasecmp): Avoid integer overflow on exotic platforms.
47846         Reported by Paul Eggert.
47847
47848 2005-10-11  Bruno Haible  <bruno@clisp.org>
47849
47850         * lib/c-strcasestr.h: New file, from GNU gettext.
47851         * lib/c-strcasestr.c: New file, from GNU gettext.
47852
47853 2005-10-11  Bruno Haible  <bruno@clisp.org>
47854
47855         * lib/c-strcase.h: New file, from GNU gettext.
47856         * lib/c-strcasecmp.c: New file, from GNU gettext.
47857         * lib/c-strncasecmp.c: New file, from GNU gettext.
47858
47859 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47860
47861         * modules/mempcpy (License): GPL -> LGPL.
47862         * modules/strchrnul (License): Likewise.
47863         * modules/sysexits (License): Likewise.
47864
47865 2005-10-08  Simon Josefsson  <jas@extundo.com>
47866
47867         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47868
47869 2005-10-07  Simon Josefsson  <jas@extundo.com>
47870
47871         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47872
47873 2005-10-06  Simon Josefsson  <jas@extundo.com>
47874
47875         * tests/test-hmac-md5.c: New file.
47876
47877         * modules/hmac-md5-tests: New file.
47878
47879         * modules/hmac-md5: New file.
47880
47881 2005-10-06  Simon Josefsson  <jas@extundo.com>
47882
47883         * m4/hmac-md5.m4: New file.
47884
47885         * m4/memxor.m4: Require gl_C_RESTRICT.
47886
47887 2005-10-06  Simon Josefsson  <jas@extundo.com>
47888
47889         * lib/memxor.c (memxor): Avoid casts and warnings.
47890
47891 2005-10-06  Simon Josefsson  <jas@extundo.com>
47892
47893         * lib/hmac-md5.c: New file.
47894
47895         * lib/hmac.h: New file.
47896
47897 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47898
47899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47900         promotes to int, not unsigned int, to catch the AIX 5.3
47901         compiler bug.
47902
47903 2005-10-05  Simon Josefsson  <jas@extundo.com>
47904
47905         * modules/memxor: New file.
47906
47907         * modules/iconv (Files): Move config.rpath to havelib, it is used
47908         there.
47909
47910         * modules/havelib (Files): Add config.rpath.
47911
47912 2005-10-05  Simon Josefsson  <jas@extundo.com>
47913
47914         * m4/memxor.m4: New file.
47915
47916 2005-10-05  Simon Josefsson  <jas@extundo.com>
47917
47918         * lib/memxor.c (memxor): Fix compiler error.
47919
47920         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47921         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47922
47923         * lib/memxor.h, lib/memxor.c: New files.
47924
47925         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47926         we assume all systems have it, suggested by Jim Meyering
47927         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47928         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47929         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47930         same reasons.
47931
47932 2005-10-05  Simon Josefsson  <jas@extundo.com>
47933
47934         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47935
47936 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47937
47938         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47939         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47940         needed, since the source code now assumes these .h files.
47941
47942 2005-10-05  Derek Price  <derek@ximbiot.com>
47943
47944         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47945
47946 2005-10-05  Bruno Haible  <bruno@clisp.org>
47947
47948         * modules/stdint (License): Change to LGPL.
47949
47950 2005-10-04  Simon Josefsson  <jas@extundo.com>
47951
47952         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47953         D. Baushke" <mdb@gnu.org>.
47954
47955 2005-10-04  Bruno Haible  <bruno@clisp.org>
47956
47957         * lib/verify.h (verify_true): Provide alternative definition for C++.
47958
47959 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47960
47961         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47962         (SSIZE_MAX): New macro, if not already defined.
47963         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47964         than 2 GiB.
47965
47966 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47967
47968         Sync from coreutils.
47969         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47970         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47971         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47972         ULLONG_MAX doesn't work with 2.7.2.1.
47973
47974 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47975
47976         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47977         From Ben Pfaff.
47978
47979         * modules/exclude (Depends-on): Depend on verify.
47980         * modules/strtoimax (Depends-on): Likewise.
47981         * modules/utimecmp (Depends-on): Likewise.
47982
47983 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         * lib/exclude.c: Include verify.h.
47986         (verify): Remove.  All callers changed to use verify.h's version.
47987         * lib/strtoimax.c: Likewise.
47988         * lib/utimecmp.c: Likewis.e
47989
47990         Sync from coreutils.
47991         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47992         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47993         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47994         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47995         bother returning ENOSYS if settimeofday or stime fails; just let
47996         them return whatever errno they want to return.
47997         * lib/utimens.c: Include unistd.h, for dup2.
47998         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47999         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48000
48001 2005-10-02  Jim Meyering  <jim@meyering.net>
48002
48003         Sync from coreutils.
48004         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48005         from glibc-2.2.5 that fails for read-only files.
48006
48007 2005-10-02  Jim Meyering  <jim@meyering.net>
48008
48009         Sync from coreutils.
48010         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48011         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48012         `#if HAVE_CONFIG_H'.
48013         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48014         Remove AT_FDCWD test.
48015         Do not consume the fd unless successful.
48016         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48017         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48018         block, so that we don't even try to compile it if settimeofday is
48019         available.  This works around a compilation failure on OSF1 V5.1,
48020         due to stime requiring a `long int*' while tv_sec is `int'.
48021
48022 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48023
48024         Sync from coreutils.
48025         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48026         against `yes', rather than just testing for nonempty.
48027
48028 2005-10-01  Simon Josefsson  <jas@extundo.com>
48029
48030         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48031         and Darwin.
48032
48033         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48034         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48035         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48036         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48037         Check if struct addrinfo is declared.
48038
48039 2005-10-01  Simon Josefsson  <jas@extundo.com>
48040
48041         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48042         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48043         AI_* and EAI_* definitions.  Protect function declarations.
48044
48045 2005-10-01  Jim Meyering  <jim@meyering.net>
48046
48047         Sync from coreutils.
48048
48049         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48050         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48051         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48052         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48053         in the inet and nsl libraries.  Required on Solaris 5.7.
48054
48055 2005-10-01  Jim Meyering  <jim@meyering.net>
48056
48057         Sync from coreutils.
48058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48059         in the inet and nsl libraries.  Required on Solaris 5.7.
48060
48061 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48062
48063         * lib/getdelim.c (getdelim): Remove unused variables.
48064
48065 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48066
48067         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48068         so that the code works even with ancient cpp.  Portability problem
48069         with GCC 2.7.2.1 reported by Thomas M.Ott.
48070
48071 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48072
48073         * modules/regex (Depends-on): Add strcase.
48074
48075         * modules/gethostname (Licence): Change from GPL to LGPL, since
48076         gethostname.c is a trivial implementation of a standard library
48077         function.
48078         * modules/poll (License): Change from GPL to LGPL, since it's
48079         derived from LGPL code.
48080
48081 2005-09-27  Jim Meyering  <jim@meyering.net>
48082
48083         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48084         HAVE_CONFIG_H.
48085
48086         * lib/intprops.h (signed_type_or_expr__): Define.
48087         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48088         for unsigned types.
48089
48090 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48091
48092         * lib/verify.h (verify_expr): Remove, replacing with:
48093         (verify_true): New macro that returns true instead of void.
48094         (verify_type__): Remove.
48095         (verify): Use verify_true rather than verify_type__.
48096
48097 2005-09-26  Bruno Haible  <bruno@clisp.org>
48098
48099         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48100         is necessary.
48101         (lib_SOURCES): Remove mbchar.c.
48102         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48103         (Files): Add m4/mbrtowc.m4.
48104         * modules/mbiter: Likewise.
48105         * modules/mbuiter: Likewise.
48106
48107 2005-09-26  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48110         compile mbchar.c if they are not both present.
48111         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48112         * m4/mbiter.m4 (gl_MBITER): Likewise.
48113         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48114         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48115         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48116
48117 2005-09-25  Jim Meyering  <jim@meyering.net>
48118
48119         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48120         also uses socklen_t.
48121
48122 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48123
48124         * lib/utimens.c (ENOSYS): Define if not already defined.
48125         (futimens): Support having a null PATH if the file descriptor
48126         is nonnegative.
48127
48128         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48129         Remove.
48130         (__attribute): Define to empty unless GCC 3.1 or later.
48131         This works around a core dump on OpenBSD 3.4, which has GCC
48132         2.95.3, which dumps core when given __attribute__(()).  It also
48133         simplifies other tests, since we really don't want to bother with
48134         worrying about which ancient version of GCC supported what.
48135         Original problem reported by Yoann Vandoorselaere, with part of
48136         the fix suggested by Derek Price.
48137
48138 2005-09-24  Jim Meyering  <jim@meyering.net>
48139
48140         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48141         so we can once again use a positive bitfield width of 1 -- now we
48142         don't have to explain why we were using a bitfield width of 2.
48143
48144 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48145
48146         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48147         and similarly for the other external symbols.  Problem reported
48148         by James Gallager.
48149
48150         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48151         bug reported by Jim Meyering.
48152
48153         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48155         not needed, since socklen is a prerequisite module.
48156
48157 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48158
48159         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48160         Problem reported by Eric Blake.
48161         (getaddrinfo): Initialize se so that it's not garbage.
48162         Redo internal storage allocation so that it doesn't make unportable
48163         assumptions about alignment.
48164         Fix a memory leak.
48165
48166         * lib/utimens.c (futimens): Use futimesat if available.
48167         Prefer it to futimes since it doesn't have the futimes bug.
48168
48169         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48170         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48171         Instead, declare a function that returns a pointer to an array,
48172         and use verify_type__ to declare the size of the array.
48173         Problem and germ of a solution reported by Bruno Haible.
48174         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48175         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48176
48177 2005-09-23  Jim Meyering  <jim@meyering.net>
48178
48179         Sync from coreutils.
48180         Correct build failure (socklen_t not defined) on at least
48181         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48182         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48183
48184 2005-09-23  Jim Meyering  <jim@meyering.net>
48185
48186         * modules/getaddrinfo (Depends-on): Add socklen.
48187
48188 2005-09-23  Bruno Haible  <bruno@clisp.org>
48189
48190         * tests/test-verify.c: New file.
48191
48192 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48193
48194         Sync from coreutils.
48195
48196         * modules/argmatch (Depends-on): Add verify.
48197         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48198         unistd-safer.
48199         * modules/save-cwd (Depends-on): Likewise.
48200
48201         * modules/openat (Files): Add lib/openat-die.c.
48202         (Depends-on): Remove error, exitfail.
48203         Add dirname.
48204
48205         * modules/verify: New file.
48206         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48207         with "verify" module.
48208
48209 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48210
48211         Sync from coreutils.
48212
48213         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48214         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48215         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48216         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48217         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48218         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48219         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48220         Don't bother checking for string.h, stdlib.h, unistd.h.
48221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48222         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48223         module's job.
48224         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48225         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48226
48227         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48228         (gl_GETDATE): Use it.
48229
48230         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48231
48232 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48233
48234         Sync from coreutils.
48235
48236         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48237         stat-time.h.
48238         * lib/argmatch.h: Include verify.h
48239         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48240         (ARGMATCH_ASSERT): Remove; unused.
48241         * lib/canonicalize.c: Assume STDC_HEADERS.
48242         * lib/exclude.c: Include "strcase.h".
48243         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48244         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48245         and stdio-safer.h.
48246         (getusershell): Call fopen, not fopen_safer.
48247         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48248         Do not include unistd-safer.h.
48249         (save_cwd): Don't call fd_safer; no longer needed
48250         now that we include fcntl--.h.
48251
48252         * lib/getdate.y (relative_time): New type.
48253         (RELATIVE_TIME_0): New constant.
48254         (parser_control): Use relative_time instead of doing it ourselves.
48255         (%union): Add new relative_time rel member.
48256         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48257         Now typeless.
48258         (relunit, relunit_snumber): Now of type rel.
48259         (zone, rel, relunit, get_date): Adjust to above changes.
48260
48261         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48262         Do not include unistd-safer.h.
48263         (getloadavg): Don't call fd_safer; no longer needed
48264         now that we include fcntl--.h.
48265
48266         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48267         (make_dir_parents): Treat ENOSYS like EEXIST.
48268
48269         Improve quality of diagnostics on restore_cwd failure.
48270         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48271         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48272         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48273         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48274         each time through the loop.  Do not diagnose restore_cwd failure;
48275         that is the caller's job (and perhaps the caller does not care).
48276
48277         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48278         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48279         If the file already exists but is not a directory, don't bother
48280         to try to make its parents.
48281         Close potential file descriptor leak if we can't chdir("/") (!).
48282         Don't always return true if chdir($PWD) fails; return true only
48283         if the requested action was done successfully (except for the
48284         chdir($PWD)).
48285         Don't log final directory unless we actually made it.
48286         Refactor to avoid duplicate code to fix up permissions.
48287         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48288
48289         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48290         to make it a bit faster and (I hope) clearer.
48291         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48292         Fix bug in formats like %2N.
48293
48294         * lib/verify.h: New file.
48295
48296 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         Sync from coreutils.
48299         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48300
48301 2005-09-22  Jim Meyering  <jim@meyering.net>
48302
48303         Sync from coreutils.
48304
48305         * m4/lstat.m4 (gl_FUNC_LSTAT):
48306         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48307         Remove obsolete comment.
48308         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48309         * m4/xstrtod.m4: Likewise.
48310
48311         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48312
48313 2005-09-22  Jim Meyering  <jim@meyering.net>
48314
48315         Sync from coreutils.
48316
48317         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48318
48319         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48320         the .tm_year member, since otherwise gcc-4.0 would now warn about
48321         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48322
48323         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48324         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48325
48326         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48327         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48328         when run in a time zone for which daylight savings time is in effect
48329         for the starting date.
48330
48331         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48332         stop us from restricting permissions of just-created absolute-named
48333         directories.
48334         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48335         to restore initial working directory.
48336         * lib/mkdir-p.c (make_dir_parents): New parameter:
48337         different_working_dir, to tell caller if/when we change the working
48338         directory and are unable to return to the initial one.
48339         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48340         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48341         `return false'.  This fixes a bug introduced on 2004-07-30.
48342
48343         * lib/openat.c (fdopendir): Be sure to close the supplied
48344         file descriptor before returning.  This makes our replacement
48345         implementation a little closer to Solaris's, where fdopendir
48346         ties the file descriptor to the returned DIR* pointer.
48347         * lib/openat.c (unlinkat): New function.
48348         * lib/openat.h (unlinkat): Add prototype.
48349         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48350         (openat_restore_fail): Rename from openat_restore_die.
48351         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48352
48353         Provide an alternative to exiting immediately upon save_cwd or
48354         restore_cwd failure.  Now, an application can arrange e.g.,
48355         to perform a longjump in that case.
48356         * lib/openat.c: Include dirname.h.
48357         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48358         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48359         and openat_restore_die rather than calling error directly.
48360         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48361
48362         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48363         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48364         define.
48365
48366         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48367         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48368                             int utc, int nanoseconds);
48369         Background:
48370         date should not have to allocate a megabyte of virtual memory to
48371         handle a format argument like +%1048575T.  When implemented with
48372         strftime, it must allocate such a buffer, use strftime to fill it
48373         in, print it, then free it.
48374         With fprintftime, it simply prints everything and exits.
48375         With no need for memory allocation, that's one fewer way to fail.
48376         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48377         optional field width, not before, so we accept %9:z, not %:9z.
48378         (my_strftime): Be sure to use L_('x') for literals.
48379
48380         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48381         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48382         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48383         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48384         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48385         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48386         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48387         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48388         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48389         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48390         * lib/xgethostname.c, lib/xreadlink.c:
48391         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48392
48393         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48394         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48395         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48396         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48397         and don't include <sys/file.h>).
48398
48399 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48400
48401         Sync from coreutils.
48402
48403         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48404         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48405         [!LDAV_DONE]: Avoid unused variable warning.
48406
48407 2005-09-21  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/unicodeio.h (unicode_to_mb): New declaration.
48410
48411 2005-09-20  Derek Price  <derek@ximbiot.com>
48412
48413         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48414         getaddrinfo.h.
48415
48416 2005-09-20  Bruno Haible  <bruno@clisp.org>
48417
48418         * gnulib-tool: Remove trailing slashes from the values specified for
48419         --source-base, --m4-base, --tests-base, --aux-dir.
48420         Suggested by Simon Josefsson <jas@extundo.com>.
48421
48422 2005-09-20  Bruno Haible  <bruno@clisp.org>
48423
48424         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48425         func_modules_to_filelist, func_import, func_create_testdir): Make all
48426         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48427         change when gnulib-tool is invoked in a different locale.
48428
48429 2005-09-19  Simon Josefsson  <jas@extundo.com>
48430
48431         * m4/socklen.m4: Fix typo.
48432
48433 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48434
48435         Use a consistent style for including <config.h>.
48436         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48437         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48438         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48439         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48440         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48441         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48442         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48443         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48444         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48445         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48446         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48447         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48448         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48449         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48450         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48451         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48452         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48453         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48454         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48455         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48456         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48457         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48458         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48459         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48460         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48461         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48462         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48463         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48464         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48465         lib/xstrtoumax.c, lib/yesno.c:
48466         Standardize inclusion of config.h.
48467         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48468         lib/inttostr.h:  Removed inclusion of config.h from header files.
48469         * lib/inttostr.c:  Adjusted in-tree users.
48470         * lib/timespec.h: Remove superfluous warning to include config.h.
48471         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48472         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48473         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48474         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48475         config.h with HAVE_CONFIG_H.
48476
48477 2005-09-19  Jim Meyering  <jim@meyering.net>
48478
48479         * modules/pathmax (License): Change to LGPL.
48480
48481 2005-09-19  Derek Price  <derek@ximbiot.com>
48482
48483         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48484
48485 2005-09-19  Bruno Haible  <bruno@clisp.org>
48486
48487         * gnulib-tool (import): Provide default for --tests-base.
48488
48489 2005-09-19  Bruno Haible  <bruno@clisp.org>
48490
48491         * doc/quote.texi: New file, extracted from gnulib.texi.
48492         * doc/ctime.texi: New file, extracted from gnulib.texi.
48493         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48494         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48495         * doc/gnulib.texi: Include them.
48496
48497 2005-09-18  Bruno Haible  <bruno@clisp.org>
48498
48499         Portability fix.
48500         * gnulib-tool (func_readlink): New function.
48501         (func_ln_if_changed): Use it.
48502
48503 2005-09-18  Bruno Haible  <bruno@clisp.org>
48504
48505         * gnulib-tool: Support --with-tests also with --import.
48506         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48507         (func_import): Use variables $testsbase and $inctests. Emit a
48508         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48509         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48510         SUBDIRS += $testsdir.
48511         (func_create_testdir): Update.
48512
48513 2005-09-18  Bruno Haible  <bruno@clisp.org>
48514
48515         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48516         instead of $dry_run.
48517         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48518         (func_ln_if_changed): Don't handle dry-run here.
48519         (func_import): In dry-run mode, detect more precisely which actions
48520         would be performed, and don't use "...ing" verbs.
48521
48522 2005-09-18  Bruno Haible  <bruno@clisp.org>
48523
48524         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48525         (func_import): Use join on two temporary files instead of three nested
48526         loops, in order to determine which files are new or old.
48527
48528 2005-09-18  Bruno Haible  <bruno@clisp.org>
48529
48530         * gnulib-tool (func_import): Comment out code that spits out the
48531         new files with --dry-run.
48532
48533 2005-09-18  Bruno Haible  <bruno@clisp.org>
48534
48535         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48536
48537 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48538
48539         * lib/stat-time.h: New file.
48540         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48541         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48542         in a different way.
48543         (timespec_cmp): New function.
48544         * lib/utimecmp.c: Include stat-time.h.
48545         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48546         members exist, not on the obsolescent ST_MTIM_NSEC.
48547         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48548
48549 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48550
48551         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48552
48553 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48554
48555         * MODULES.html.sh (File system functions): Add stat-time.
48556         * modules/stat-time: New file.
48557         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48558         is now done in a different way, by the stat-time module.
48559         * modules/utimecmp (Depends-on): Add stat-time.
48560
48561 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48562
48563         * m4/st_mtim.m4: Remove.  Superseded by...
48564         * m4/stat-time.m4: New file.
48565         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48566         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48567
48568 2005-09-15  Derek Price  <derek@ximbiot.com>
48569
48570         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48571
48572 2005-09-15  Derek Price  <derek@ximbiot.com>
48573
48574         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48575         * lib/regex_internal.c: Ditto, using this...
48576         (__GNUC_PREREQ): ...new macro.
48577         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48578         using...
48579         (__GNUC_PREREQ): ...this new macro.
48580
48581         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48582
48583 2005-09-15  Derek Price  <derek@ximbiot.com>
48584             Paul Eggert  <eggert@cs.ucla.edu>
48585
48586         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48587         changes, consolidating in...
48588         * lib/regex_internal.h: ...this file.
48589
48590 2005-09-13  Jim Meyering  <jim@meyering.net>
48591
48592         * lib/canon-host.c: Filter through gnu indent and reword comments
48593         slightly.
48594         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48595
48596 2005-09-13  Derek Price  <derek@ximbiot.com>
48597
48598         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48599         failure.
48600         Reported by Jim Meyering  <jim@meyering.net>.
48601
48602 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48603
48604         * lib/base64.c: Typo.
48605         (base64_encode): Put b64str in initialized data section.
48606
48607 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         Merge glibc and coreutils changes into gnulib, plus a few
48610         extra fixes.
48611         * lib/md5.c: Use #error rather than a string.
48612         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48613         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48614         (__attribute__): Define to empty for non recent-GCC.
48615         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48616         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48617         Renamed from their non-__ counterparts, with new macros replacing
48618         them if not _LIBC.  Add __THROW attribute.
48619         (rol): Remove.
48620         (struct md5_ctx): Align buffer if using GCC.
48621         * lib/sha1.h (struct sha1_ctx): Likewise.
48622         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48623         The old name was backwards.
48624         (NOTSWAP): Remove; not used.
48625         (rol): New macro, moved here from md5.h.
48626         (sha1_process_block): Remove a FIXME that doesn't make sense.
48627
48628 2005-09-12  Derek Price  <derek@ximbiot.com>
48629
48630         Return usable errors from canon-host.
48631         * lib/canon-host.h: New file.
48632         * lib/canon-host.c (canon_host): Wrap...
48633         (canon_host_r): ...this new function, which now relies exclusively on
48634         getaddrinfo.
48635         (ch_strerror): New function.
48636         (last_cherror): New global.
48637         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48638         interface.
48639         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48640         void *.
48641         (freeaddrinfo): Free ai->ai_canonname when set.
48642
48643 2005-09-12  Derek Price  <derek@ximbiot.com>
48644
48645         Make canon-host require getaddrinfo.
48646         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48647         AC_LIBSOURCE canon-host.h.  Call...
48648         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48649         gl_GETADDRINFO.
48650         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48651
48652 2005-09-12  Derek Price  <derek@ximbiot.com>
48653
48654         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48655         LGPL.
48656         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48657
48658 2005-09-12  Derek Price  <derek@ximbiot.com>
48659
48660         * lib/gai_strerror.c: Include config.h when available.  Include
48661         getaddrinfo.h before other headers to test interface.
48662         Reported by Larry Jones <lawrence.jones@ugs.com>.
48663
48664 2005-09-12  Derek Price  <derek@ximbiot.com>
48665             Paul Eggert  <eggert@cs.ucla.edu>
48666
48667         * modules/glob (Files): Add glob-libc.h.
48668
48669 2005-09-12  Derek Price  <derek@ximbiot.com>
48670             Paul Eggert  <eggert@cs.ucla.edu>
48671
48672         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48673         glob_.h, glob-libc.h.
48674         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48675
48676 2005-09-12  Derek Price  <derek@ximbiot.com>
48677             Paul Eggert  <eggert@cs.ucla.edu>
48678
48679         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48680         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48681         protecting things that should be done only in gnulib contexts.
48682         * lib/glob_.h: New file, containing only the glob things needed for
48683         gnulib.
48684         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48685         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48686         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48687         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48688         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48689         and to respect the namespace rules better.
48690
48691 2005-09-08  Simon Josefsson  <jas@extundo.com>
48692
48693         * modules/socklen: New file.
48694
48695 2005-09-08  Simon Josefsson  <jas@extundo.com>
48696
48697         * m4/socklen.m4: New file.
48698
48699 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48700
48701         * modules/utimens (Files): Add m4/utimbuf.m4, since
48702         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48703         Reported by Sergey Poznyakoff.
48704
48705 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48708         definitions, since that's the preferred style in glibc.
48709         Fix a minor spacing issue, and update copyright notice to match
48710         glibc's.
48711
48712 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48713
48714         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48715
48716 2005-09-06  Simon Josefsson  <jas@extundo.com>
48717
48718         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48719         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48720
48721 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48722
48723         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48724         warning.
48725
48726 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48727
48728         * config/srclist.txt: Add glibc bug 1302.
48729
48730 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         Change bitset word type from unsigned int to unsigned long int,
48733         as this has better performance on typical 64-bit hosts.
48734         Port bitset code to hosts with unusual word sizes.
48735         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48736         (build_collating_symbol):
48737         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48738         argument is a bitset.  This is merely a style issue, but it makes
48739         it clearer that an entire array is expected.
48740         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48741         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48742         Port to the case where bitset_word is not the same as unsigned int.
48743         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48744         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48745         Likewise.
48746         * lib/regexec.c (check_dst_limits_calc_pos_1,
48747         check_subexp_matching_top):
48748         (build_trtable, group_nodes_into_DFAstates):
48749         Likewise.
48750         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48751         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48752         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48753         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48754         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48755         * lib/regcomp.c (optimize_subexps, lower_subexp):
48756         Work even if bitset_word has holes in its bitwise representation.
48757         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48758         * lib/regexec.c (check_dst_limits_calc_pos_1,
48759         check_subexp_matching_top):
48760         Likewise.
48761         * lib/regex_internal.c (re_string_reconstruct):
48762         Don't assume UCHAR_MAX == 255.
48763         * lib/regex_internal.h (bitset_set_all): Likewise.
48764         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48765         All uses changed.
48766         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48767         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48768         All uses changed.
48769         (BITSET_WORD_MAX): New macro.
48770         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48771         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48772         (bitset_empty, bitset_copy):
48773         Prefer sizeof (bitset) to multiplying it out ourselves.
48774         (bitset_not_merge): Remove; unused.
48775         (bitset_contain): Return bool, not unsigned int with one bit on.
48776         All callers changed.
48777         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48778         alignment than re_node_set; do this by defining a new internal
48779         type struct dests_alloc and using it to allocate memory.
48780
48781 2005-09-05  Bruno Haible  <bruno@clisp.org>
48782
48783         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48784         links.
48785
48786 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48787
48788         * modules/size_max (Makefile.am): Add size_max.h
48789
48790 2005-09-04  Derek Price  <derek@ximbiot.com>
48791
48792         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48793
48794 2005-09-03  Simon Josefsson  <jas@extundo.com>
48795
48796         * gnulib-tool: Fix typo.
48797
48798 2005-09-03  Simon Josefsson  <jas@extundo.com>
48799
48800         * config/srclist.txt: Add glibc bug 1293.
48801
48802 2005-09-03  Derek Price  <derek@ximbiot.com>
48803
48804         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48805         From Larry Jones <lawrence.jones@ugs.com>.
48806
48807 2005-09-02  Simon Josefsson  <jas@extundo.com>
48808
48809         * modules/socklen: New file.
48810
48811 2005-09-02  Simon Josefsson  <jas@extundo.com>
48812
48813         * modules/havelib: New module.
48814
48815         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48816         Use havelib.
48817
48818 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         Check for arithmetic overflow when calculating sizes, to prevent
48821         some buffer-overflow issues.  These patches are conservative, in the
48822         sense that when I couldn't determine whether an overflow was possible,
48823         I inserted a run-time check.
48824         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48825         macros.
48826         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48827         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48828         (re_xnrealloc, re_x2nrealloc): New inline functions.
48829         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48830         parse_bracket_exp):
48831         (build_equiv_class, build_charclass): Check for arithmetic overflow
48832         in size expression calculations.
48833         * lib/regex_internal.c (re_string_realloc_buffers):
48834         (build_wcs_upper_buffer, re_node_set_add_intersect):
48835         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48836         (re_dfa_add_node, register_state): Likewise.
48837         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48838         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48839         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48840         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48841
48842 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48843
48844         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48845         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48846
48847 2005-09-02  Bruno Haible  <bruno@clisp.org>
48848
48849         Support for lib vs. lib64 distinction on biarch platforms.
48850         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48851         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48853
48854 2005-09-02  Bruno Haible  <bruno@clisp.org>
48855
48856         * gnulib-tool (import): In the other first-use case, provide defaults
48857         as well.
48858
48859 2005-09-02  Bruno Haible  <bruno@clisp.org>
48860
48861         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48862         patches not yet found in the latest gettext release.
48863
48864 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48865
48866         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48867         to avoid a collision with bits/local_lim.h in glibc.
48868         All uses changed.  Problem reported by Dmitry V. Levin in
48869         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48870
48871         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48872         bugs in int versus size_t comparisons.
48873         (re_string_context_at): Fix bug where the code assumed that
48874         Idx is signed.
48875
48876         Use bool where appropriate.
48877         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48878         All callers changed.
48879         (calc_eclosure_iter): Likewise, for ROOT arg.
48880         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48881         (build_charclass_op): Likewise, for NON_MATCH arg.
48882         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48883         (re_string_construct_common): Likewise, for ICASE arg.
48884         * lib/regexec.c (re_search_2_stub, re_search_stub):
48885         Likewise, for RET_LEN arg.
48886         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48887         (set_regs): Likewise, for FL_BACKTRACK arg.
48888         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48889         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48890         (calc_eclosure_iter, parse_bracket_exp):
48891         Use bool for internal variables that are booleans.
48892         * lib/regexec.c (re_search_internal, check_matching,
48893         proceed_next_node):
48894         (set_regs, build_sifted_states, sift_states_bkref):
48895         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48896         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48897         (find_collation_sequence_value):
48898         Likewise.
48899         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48900         (re_node_set_compare):
48901         Return bool, not int. All callers changed.
48902         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48903         (build_trtable, check_node_accept): Likewise.
48904         * lib/regex_internal.h: Include stdbool.h.
48905
48906         Fix bugs uncovered when converting to bool.
48907         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48908         failure instead of charging ahead blindly.
48909         * lib/regex_internal.c (register_state): Likewise.
48910         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48911         for freeing internal storage.
48912         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48913         bitset pieces used as boolean, to avoid undefined behavior
48914         on hosts that do int overflow checking.
48915
48916 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48917
48918         * config/srclist.txt: Add glibc bugs 1285-1287.
48919
48920 2005-09-01  Jim Meyering  <jim@meyering.net>
48921
48922         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48923         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48924         Require gl_STAT_MACROS, too.
48925
48926 2005-09-01  Bruno Haible  <bruno@clisp.org>
48927
48928         * gnulib-tool (import): In the first-use case, provide defaults.
48929
48930 2005-09-01  Bruno Haible  <bruno@clisp.org>
48931
48932         * gnulib-tool (func_import): Remove the .tmp files.
48933
48934 2005-09-01  Bruno Haible  <bruno@clisp.org>
48935
48936         * gnulib-tool (func_import): Fix handling of symbolic links.
48937
48938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48941         old glibc regex code mishandles strings longer than 2**31 bytes.
48942         This patch fixes this when the regex code is used in gnulib
48943         (i.e., outside glibc).
48944
48945         This patch should not affect the use of the regex code inside
48946         glibc.  No doubt this problem also needs to be handled for glibc
48947         as well, but the result will be an incompatible change to the
48948         glibc ABI, and the old ABI will have to be supported too.  That
48949         can be the the subject for another patch.
48950
48951         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48952         governing whether the rest of this patch is active.  By default,
48953         the macro is disabled and the patch has no effect.
48954         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48955         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48956         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48957         (re_match_2, re_set_registers): Use the new types.
48958         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48959         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48960         New macros.
48961         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48962         (re_string_context_at, bin_tree_t, re_dfastate_t):
48963         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48964         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48965         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48966         (re_string_char_size_at, re_string_wchar_at):
48967         (re_string_elem_size_at):
48968         Use the new types and macros to port to 64-bit hosts.
48969         Use unsigned types for internal values, so that the code
48970         mostly works even for arrays larger than SSIZE_MAX.
48971         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48972         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48973         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48974         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48975         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48976         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48977         (calc_inveclosure, parse_dup_op, build_range_exp):
48978         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48979         (fetch_number, create_token_tree, mark_opt_subexp):
48980         Likewise.
48981         * lib/regex_internal.c (re_string_construct_common,
48982         create_ci_newstate):
48983         (create_cd_newstate, re_string_allocate, re_string_construct):
48984         (re_string_realloc_buffers, build_wcs_upper_buffer):
48985         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48986         (re_string_reconstruct, re_string_peek_byte_case):
48987         (re_string_fetch_byte_case, re_string_context_at):
48988         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48989         (re_node_set_init_copy, re_node_set_add_intersect):
48990         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48991         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48992         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48993         (re_acquire_state, re_acquire_state_context, register_state):
48994         Likewise.
48995         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48996         search_cur_bkref_entry):
48997         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48998         (re_search_internal, re_search_2_stub, re_search_stub)
48999         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49000         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49001         (update_cur_sifted_state, check_dst_limits):
49002         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49003         (check_subexp_limits, sift_states_bkref, merge_state_array):
49004         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49005         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49006         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49007         (expand_bkref_cache, check_node_accept_bytes):
49008         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49009         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49010         (acquire_init_state_context, check_halt_node_context):
49011         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49012         (sift_states_backward, clean_state_log_if_needed):
49013         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49014         (find_recover_state, transit_state_sb, transit_state_mb):
49015         (transit_state_bkref, build_trtable, match_ctx_clean):
49016         Likewise.
49017         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49018         to work around an assumption that REG_MISSING is negative.
49019
49020         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49021         (seek_collating_symbol_entry) [defined _LIBC]:
49022         (lookup_collation_sequence_value) [defined _LIBC]:
49023         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49024         Use prototypes rather than old-style function definitions.
49025         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49026         (transit_state_sb) [0]:
49027         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49028
49029         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49030         rm_eo.
49031
49032         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49033         (optimize_subexps, lower_subexp):
49034         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49035         since the signed shift might overflow.  Use 1u<<31 instead.
49036         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49037         Likewise.
49038         * lib/regexec.c (check_dst_limits_calc_pos_1,
49039         check_subexp_matching_top): Likewise.
49040
49041         * lib/regcomp.c (optimize_subexps, lower_subexp):
49042         Use CHAR_BIT rather than 8, for clarity.
49043         * lib/regexec.c (check_dst_limits_calc_pos_1):
49044         (check_subexp_matching_top): Likewise.
49045         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49046         have to worry about portability issues when shifting it left.
49047         Remove no-longer-needed test for table_size > 0.
49048         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49049         in a word, as the resulting behavior is undefined.
49050         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49051         in one case, a <= should have been an <, and in another case the
49052         whole test was missing.
49053         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49054         the standard name CHAR_BIT.
49055         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49056         this is not true on one's complement and signed-magnitude hosts.
49057
49058         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49059         next_last_offset.
49060         (struct re_dfa_t): Remove unused member states_alloc.
49061         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49062
49063 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49064
49065         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49066         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49067         and large-file glibc and in 32-bit large-file Solaris.
49068
49069 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49070
49071         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49072         lengths fit in regoff_t; this isn't true if regoff_t is the same
49073         width as size_t.
49074         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49075         (= START + RANGE) instead of RANGE.  This avoids overflow
49076         problems when regoff_t is the same width as size_t.
49077         All callers changed.
49078         (re_search_2_stub): Check for overflow when adding the
49079         sizes of the two strings.
49080         (re_search_stub): Check for overflow when adding START
49081         to RANGE; if it occurs, substitute the extreme value.
49082
49083 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49084
49085         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49086
49087 2005-08-31  Jim Meyering  <jim@meyering.net>
49088
49089         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49090         a pointer-to-const.
49091         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49092         (register_state): Likewise.
49093         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49094         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49095         (group_nodes_into_DFAstates): Likewise.
49096
49097 2005-08-31  Jim Meyering  <jim@meyering.net>
49098
49099         * check-module: Add a FIXME comment.
49100
49101 2005-08-31  Eric Blake  <ebb9@byu.net>
49102
49103         * modules/unistd-safer (Files): Add unistd--.h.
49104         * modules/stdio-safer (Files): Add stdio--.h.
49105
49106 2005-08-31  Derek Price  <derek@ximbiot.com>
49107
49108         * lib/getdelim.c (getdelim): Return EOF on EOF.
49109         Reported by Larry Jones <lawrence.jones@ugs.com>.
49110
49111 2005-08-31  Bruno Haible  <bruno@clisp.org>
49112
49113         Avoid unnecessary diffs in the generated lib/Makefile.am.
49114         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49115         the generated files.
49116         (func_import): Don't set cmd.
49117
49118 2005-08-31  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/strstr.c: Include <stddef.h>, for NULL.
49121         * lib/strcasestr.c: Likewise.
49122         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49123
49124 2005-08-31  Bruno Haible  <bruno@clisp.org>
49125
49126         * gnulib-tool: New option --macro-prefix.
49127         (func_import): Use macro_prefix.
49128         (import): Handle option --macro-prefix.
49129
49130 2005-08-31  Bruno Haible  <bruno@clisp.org>
49131
49132         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49133         Also use new variables cached_lgpl, cached_libtool.
49134
49135 2005-08-31  Bruno Haible  <bruno@clisp.org>
49136
49137         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49138         always instantiating them.
49139
49140 2005-08-31  Bruno Haible  <bruno@clisp.org>
49141
49142         * gnulib-tool (func_import): Read the previous cached settings
49143         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49144         earlier added by gnulib but are now dropped. Warn when a gnulib file
49145         overwrites a non-gnulib file.
49146
49147 2005-08-31  Bruno Haible  <bruno@clisp.org>
49148
49149         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49150         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49151         projects that don't keep autogenerated files in CVS. Put into
49152         actioncmd only the specified modules, not the transitive closure.
49153
49154 2005-08-31  Bruno Haible  <bruno@clisp.org>
49155
49156         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49157         Create directories that shall be filled.
49158         (import): Don't look for gl_* macros in configure.ac. Recurse across
49159         all directories containing a gnulib-cache.m4 files, if meaningful.
49160
49161 2005-08-31  Bruno Haible  <bruno@clisp.org>
49162
49163         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49164         (import): Set seen_libtool when we see gl_LIBTOOL.
49165
49166 2005-08-31  Bruno Haible  <bruno@clisp.org>
49167
49168         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49169         declaration macro definitions from generated gnulib.m4.
49170
49171 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49172
49173         * lib/iconvme.h: Add prototype for iconv_alloc.
49174
49175 2005-08-29  Simon Josefsson  <jas@extundo.com>
49176
49177         * lib/iconvme.c: Fix errno.
49178
49179 2005-08-29  Bruno Haible  <bruno@clisp.org>
49180
49181         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49182         that it works when the directory contains spaces.
49183
49184 2005-08-29  Bruno Haible  <bruno@clisp.org>
49185
49186         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49187
49188 2005-08-29  Bruno Haible  <bruno@clisp.org>
49189
49190         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49191         Emit more advice.
49192
49193 2005-08-29  Bruno Haible  <bruno@clisp.org>
49194         and Stepan Kasal  <kasal@ucw.cz>
49195
49196         * check-module: If more parameters are given, check each of them
49197         separately; add more exceptions, as noted by Jim Meyering.
49198         (check_module): New procedure.
49199         (%exempt_header): Now contains all exceptions.
49200
49201 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49202
49203         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49204
49205 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49206
49207         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49208
49209 2005-08-28  Bruno Haible  <bruno@clisp.org>
49210
49211         * m4/gnulib-tool.m4: New file.
49212
49213 2005-08-27  Jim Meyering  <jim@meyering.net>
49214
49215         * modules/unistd-safer (Files): Add pipe-safer.c.
49216         * modules/fcntl-safer (Files): Add creat-safer.c.
49217
49218 2005-08-27  Jim Meyering  <jim@meyering.net>
49219
49220         * m4/stdlib-safer.m4: New file.  From coreutils.
49221         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49222         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49223         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49224         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49225         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49226
49227 2005-08-27  Jim Meyering  <jim@meyering.net>
49228
49229         * lib/fopen-safer.c: Merge minor changes from coreutils.
49230         * lib/dup-safer.c: Likewise.
49231         * lib/fd-safer.c: Likewise.
49232
49233         Merge from coreutils.
49234         * lib/stdio--.h: New file.
49235         * lib/stdlib--.h: New file.
49236         * lib/mkstemp-safer.c: New file.
49237
49238         GNU tar needs these.
49239         * lib/pipe-safer.c: New file.
49240         * lib/creat-safer.c: New file.
49241         * lib/fcntl--.h (creat): Define to creat_safer.
49242         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49243         * lib/unistd--.h (pipe): Define to pipe_safer.
49244         * lib/unistd-safer.h: Declare pipe_safer.
49245
49246 2005-08-26  Simon Josefsson  <jas@extundo.com>
49247
49248         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49249         Haible <bruno@clisp.org>.
49250
49251 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49252
49253         * lib/regex_internal.h: Remove all references to
49254         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49255         or better.
49256         (bitset_not, bitset_merge, bitset_not_merge):
49257         (bitset_mask, re_string_allocate, re_string_construct):
49258         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49259         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49260         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49261         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49262         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49263         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49264         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49265         (re_acquire_state_context):
49266         Remove unnecessary forward decls.
49267         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49268         Put __attribute at function definition,
49269         now that the function decl has been removed.
49270         * lib/regex_internal.c (re_string_peek_byte_case):
49271         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49272         Likewise.
49273
49274 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49275
49276         * m4/regex.m4: Add AC_PREREQ(2.50).
49277         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49278
49279 2005-08-25  Simon Josefsson  <jas@extundo.com>
49280
49281         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49282         __fsetlocking.
49283
49284 2005-08-25  Simon Josefsson  <jas@extundo.com>
49285
49286         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49287         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49288         GLIBC specific code.
49289
49290 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         Make regex safe for g++.  This fixes one real bug (an "err"
49293         that should have been "*err").  g++ problem reported by
49294         Sam Steingold.
49295         * lib/regex_internal.h (re_calloc): New macro, consistent with
49296         re_malloc etc.  All callers of calloc changed to use re_calloc.
49297         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49298         not int.  All callers changed.
49299         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49300         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49301         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49302         (find_recover_state): Change "err" to "*err"; this fixes what
49303         appears to be a real bug.
49304         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49305         versus int.
49306
49307 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49308
49309         * modules/regex (Depends-on): Add malloc, since the code
49310         assumes that !malloc(0) means failure.
49311
49312 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49313
49314         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49315
49316         alloca modernization/simplification for regex.
49317         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49318         needs to be at the start of the file, and can be moved into
49319         regex_internal.h and simplified.
49320         * lib/regex_internal.h: Include <alloca.h>.
49321         (__libc_use_alloca) [!defined _LIBC]: New macro.
49322         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49323         now works outside glibc.
49324
49325 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49326
49327         * config/srclist.txt: Add glibc bugs 1241, 1245.
49328
49329 2005-08-25  Jim Meyering  <jim@meyering.net>
49330
49331         * lib/open-safer.c: Include <config.h>.
49332         Otherwise, we'd lose LARGEFILE support in any file using
49333         e.g. "fcntl--.h"
49334
49335 2005-08-25  Bruno Haible  <bruno@clisp.org>
49336
49337         * m4/minmax.m4: Require autoconf 2.52.
49338         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49339         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49340         alternatives of translit over the alphabet.
49341         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49342
49343 2005-08-24  Simon Josefsson  <jas@extundo.com>
49344
49345         * tests/test-getpass.c: New file.
49346
49347 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49348
49349         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49350         for GNU regex features.
49351
49352 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49355         * lib/regex.h (regerror): Likewise.
49356
49357         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49358         requires this.  (The code never needed it.)
49359
49360         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49361         All uses of recently-renamed identifiers changed to use the new,
49362         POSIX-compliant names.  The code will build and run just fine
49363         without these changes, but it's better to eat our own dog food
49364         and use the standard-conforming names.
49365
49366         * lib/regex.h: Fix a multitude of POSIX name space violations.
49367         These changes have an effect only for programs that define
49368         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49369         do not change anything for programs compiled in the normal way.
49370         Also, there is no effect on the ABI.
49371
49372         (_REGEX_SOURCE): New macro.
49373         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49374         defined and _GNU_SOURCE is not; this fixes a name space violation.
49375
49376         Rename the following macros to obey POSIX requirements.
49377         The old names are still visible as macros if _REGEX_SOURCE is defined.
49378         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49379         RE_BACKSLASH_ESCAPE_IN_LISTS.
49380         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49381         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49382         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49383         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49384         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49385         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49386         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49387         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49388         (REG_INTERVALS): renamed from RE_INTERVALS.
49389         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49390         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49391         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49392         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49393         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49394         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49395         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49396         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49397         RE_UNMATCHED_RIGHT_PAREN_ORD.
49398         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49399         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49400         (REG_DEBUG): renamed from RE_DEBUG.
49401         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49402         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49403         unusual, since we can't clash with the POSIX REG_ICASE.
49404         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49405         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49406         (REG_NO_SUB): renamed from RE_NO_SUB.
49407         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49408         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49409         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49410         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49411         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49412         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49413         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49414         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49415         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49416         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49417         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49418         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49419         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49420         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49421         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49422         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49423         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49424         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49425         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49426         (REG_FIXED): Renamed from REGS_FIXED.
49427         (REG_NREGS): Renamed from RE_NREGS.
49428
49429         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49430         of other REG_* macros, since POSIX says the user is allowed to
49431         #undef these macros selectively.
49432
49433         (reg_errcode_t): Update comment stating what other tables need
49434         to be consistent.
49435
49436         Rename the following enum values to obey POSIX requirements.
49437         The old names are still visible as macros.
49438         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49439         is not defined, since GNU is supposed to be a superset of POSIX as
49440         much as possible, and since we want reg_errcode_t to be a signed
49441         type for implementation consistency.
49442         (_REG_NOERROR): Renamed from REG_NOERROR.
49443         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49444         (_REG_BADPAT): Renamed from REG_BADPAT.
49445         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49446         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49447         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49448         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49449         (_REG_EBRACK): Renamed from REG_EBRACK.
49450         (_REG_EPAREN): Renamed from REG_EPAREN.
49451         (_REG_EBRACE): Renamed from REG_EBRACE.
49452         (_REG_BADBR): Renamed from REG_BADBR.
49453         (_REG_ERANGE): Renamed from REG_ERANGE.
49454         (_REG_ESPACE): Renamed from REG_ESPACE.
49455         (_REG_BADRPT): Renamed from REG_BADRPT.
49456         (_REG_EEND): Renamed from REG_EEND.
49457         (_REG_ESIZE): Renamed from REG_ESIZE.
49458         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49459         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49460         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49461         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49462         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49463
49464         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49465         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49466         changed.  But support the old name if the new one is not defined
49467         and if _REGEX_SOURCE.
49468
49469         Change the following member names in struct re_pattern_buffer.
49470         The old names are still supported if !_REGEX_SOURCE.
49471         The new names are always supported, regardless of _REGEX_SOURCE.
49472         (re_buffer): Renamed from buffer.
49473         (re_allocated): Renamed from allocated.
49474         (re_used): Renamed from used.
49475         (re_syntax): Renamed from syntax.
49476         (re_fastmap): Renamed from fastmap.
49477         (re_translate): Renamed from translate.
49478         (re_can_be_null): Renamed from can_be_null.
49479         (re_regs_allocated): Renamed from regs_allocated.
49480         (re_fastmap_accurate): Renamed from fastmap_accurate.
49481         (re_no_sub): Renamed from no_sub.
49482         (re_not_bol): Renamed from not_bol.
49483         (re_not_eol): Renamed from not_eol.
49484         (re_newline_anchor): Renamed from newline_anchor.
49485
49486         Change the following member names in struct re_registers.
49487         The old names are still supported if !_REGEX_SOURCE.
49488         The new names are always supported, regardless of _REGEX_SOURCE.
49489         (rm_num_regs): Renamed from num_regs.
49490         (rm_start): Renamed from start.
49491         (rm_end): Renamed from end.
49492
49493         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49494         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49495         Prepend __ to parameter names.
49496
49497         Undo yesterday's changes.
49498
49499 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49502         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49503         lib/regex.c.
49504
49505 2005-08-24  Jim Meyering  <jim@meyering.net>
49506
49507         Sync from coreutils.
49508         * m4/fcntl-safer.m4: New file.
49509
49510         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49511         and object files for this module.
49512
49513 2005-08-24  Jim Meyering  <jim@meyering.net>
49514
49515         Sync from coreutils.
49516         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49517
49518 2005-08-24  Jim Meyering  <jim@meyering.net>
49519
49520         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49521         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49522
49523 2005-08-24  Jim Meyering  <jim@meyering.net>
49524
49525         * modules/fcntl-safer: New module.
49526         * modules/fts (Depends-on): Add fcntl-safer.
49527         * MODULES.html.sh (File descriptor based Input/Output):
49528         Add fcntl-safer.
49529
49530 2005-08-24  Bruno Haible  <bruno@clisp.org>
49531
49532         Support for unit test modules.
49533         * modules/README: Mention tests modules.
49534         * modules/TEMPLATE-TESTS: New file.
49535         * gnulib-tool: New options --extract-tests-module, --with-tests and
49536         --tests-base (unused for the moment).
49537         (testsbase, inctests): New variables.
49538         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49539         (func_verify_module): Exclude TEMPLATE-TESTS.
49540         (func_verify_nontests_module, func_verify_tests_module): New functions.
49541         (func_get_dependencies): Add implicit dependency for tests modules.
49542         (func_get_tests_module): New function.
49543         (func_modules_transitive_closure): When --with-tests was specified,
49544         include the unit tests as well, unless explicitly avoided.
49545         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49546         (func_emit_tests_Makefile_am): New function.
49547         (func_create_testdir): When --with-tests was specified, emit a
49548         tests/ directory.
49549         * MODULES.html.sh (Future developments): Update.
49550
49551 2005-08-24  Bruno Haible  <bruno@clisp.org>
49552
49553         * modules/tls-tests: New file.
49554         * tests/test-tls.c: New file, from GNU gettext.
49555
49556 2005-08-24  Bruno Haible  <bruno@clisp.org>
49557
49558         * modules/lock-tests: New file.
49559         * tests/test-lock.c: New file, from GNU gettext.
49560
49561 2005-08-24  Bruno Haible  <bruno@clisp.org>
49562
49563         * lib/lock.h: Add multiple inclusion guard.
49564         * lib/tls.h: Add multiple inclusion guard.
49565
49566 2005-08-24  Bruno Haible  <bruno@clisp.org>
49567
49568         * gnulib-tool: Add support for the --aux-dir option to
49569         --create-testdir, --create-megatestdir, --test, --megatest.
49570         (func_create_testdir, func_create_megatestdir): Optionally emit a
49571         AC_CONFIG_AUX_DIR directive.
49572         (create-testdir, create-megatestdir, test, megatest): Provide a
49573         default value for $auxdir.
49574
49575 2005-08-24  Bruno Haible  <bruno@clisp.org>
49576
49577         * gnulib-tool (import): Use compound statement instead of subshell
49578         where possible.
49579
49580 2005-08-24  Bruno Haible  <bruno@clisp.org>
49581
49582         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49583
49584 2005-08-24  Bruno Haible  <bruno@clisp.org>
49585
49586         * gnulib-tool (func_version): Update.
49587
49588 2005-08-24  Bruno Haible  <bruno@clisp.org>
49589
49590         * gnulib-tool (func_import, func_create_testdir,
49591         func_create_megatestdir): Quote all autoconf macro arguments.
49592
49593 2005-08-24  Bruno Haible  <bruno@clisp.org>
49594
49595         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49596         option --force, because --force causes the aclocal.m4 of each
49597         subdirectory to be newer than the corresponding config.h.in.
49598
49599 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49602         All contents moved to gl_REGEX.
49603         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49604         assume that it does.
49605
49606 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         * lib/regex.h (REG_NOSYS)
49609         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49610         Define, since POSIX requires it as of 2001.
49611         (_REG_ENOSYS)
49612         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49613         New private symbol, used to keep the enum signed in all cases.
49614         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49615         Youngman in
49616         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49617
49618         * lib/regex_internal.c (re_string_skip_chars, register_state):
49619         (calc_state_hash):
49620         Remove forward decls; no longer needed now that we use prototypes.
49621         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49622         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49623         (clean_state_log_if_needed): Likewise.
49624
49625 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49626
49627         * config/srclist.txt: Add glibc bugs 1231-1233.
49628
49629 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49630
49631         Fix problems reported by Sam Steingold in
49632         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49633         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49634         assumed that reg_errcode_t is a signed type, which is not
49635         necessarily true if _XOPEN_SOURCE is not defined.
49636         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49637         since some compilers warn about it otherwise.
49638
49639 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49640
49641         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49642         (init_word_char, create_initial_state, duplicate_node_closure):
49643         (fetch_token, peek_token_bracket, build_range_exp):
49644         (build_collating_symbol): Remove forward decls; no longer needed
49645         now that we use prototypes.
49646
49647         * lib/regcomp.c:
49648         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49649         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49650         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49651         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49652         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49653         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49654         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49655         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49656         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49657         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49658         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49659         (build_charclass, build_charclass_op, fetch_number, create_tree):
49660         (create_token_tree, mark_opt_subexp, duplicate_tree):
49661         Use prototypes rather than old-style definitions.
49662
49663         * lib/regex_internal.c:
49664         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49665         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49666         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49667         (re_string_reconstruct, re_string_peek_byte_case):
49668         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49669         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49670         (re_node_set_init_copy, re_node_set_add_intersect):
49671         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49672         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49673         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49674         (re_acquire_state, re_acquire_state_context, register_state):
49675         (create_ci_newstate, create_cd_newstate, free_state):
49676         Likewise.
49677         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49678         re_search_2):
49679         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49680         (re_search_internal, prune_impossible_nodes):
49681         (acquire_init_state_context, check_matching, static):
49682         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49683         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49684         (update_regs, sift_states_backward, build_sifted_states):
49685         (clean_state_log_if_needed, merge_state_array):
49686         (update_cur_sifted_state, add_epsilon_src_nodes):
49687         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49688         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49689         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49690         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49691         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49692         (check_arrival, check_arrival_add_next_nodes):
49693         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49694         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49695         (check_node_accept_bytes, check_node_accept, extend_buffers):
49696         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49697         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49698         (sift_ctx_init):
49699         Likewise.
49700
49701         * lib/regex_internal.h:
49702         (re_string_allocate, re_string_construct, re_string_reconstruct):
49703         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49704         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49705         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49706         (re_string_context_at, re_string_peek_byte_case):
49707         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49708         is defined, since we now use prototypes always.
49709
49710         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49711         C89 or better.  All uses removed.
49712
49713 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49714
49715         * config/srclist.txt: Add glibc bugs 1220-1227.
49716
49717 2005-08-20  Jim Meyering  <jim@meyering.net>
49718
49719         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49720         of unused local, dfa.
49721
49722 2005-08-20  Bruno Haible  <bruno@clisp.org>
49723
49724         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49725
49726 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49727
49728         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49729         (re_node_set_insert_last, re_dfa_add_node):
49730         Rename local variables to avoid GCC shadowing warnings.
49731
49732 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49733
49734         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49735         [defined lint]: Suppress bogus uninitialized-variable warnings.
49736
49737         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49738         and let the caller return REG_ESPACE if out of space.  This
49739         removes an uninitialied-variable warning with GCC 4.0.1, and also
49740         avoids taking the address of a local variable.  All callers
49741         changed.
49742
49743 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49744
49745         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49746         $LIBCSRC/posix/regexec.c.
49747         Add glibc bug 1217 for regcomp.c.
49748
49749 2005-08-19  Jim Meyering  <jim@meyering.net>
49750
49751         * lib/regexec.c (proceed_next_node): Redo local variables to
49752         avoid GCC shadowing warnings.
49753
49754 2005-08-18  Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/strstr.c (strstr): Fix return value in multibyte case.
49757         * lib/strcasestr.c (strcasestr): Likewise.
49758
49759 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49760
49761         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49762
49763 2005-08-17  Jim Meyering  <jim@meyering.net>
49764
49765         Make the %s format (seconds since the epoch) work for a negative
49766         number and when used with a zero-padded field width, e.g. %015s.
49767
49768         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49769         label so that it precedes the code to set `digits'.  Otherwise,
49770         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49771         print `00-22'.  Now, it prints `-0022', as it should.
49772
49773 2005-08-17  Bruno Haible  <bruno@clisp.org>
49774
49775         * modules/strstr (Files): Add m4/mbrtowc.m4.
49776         (Depends-on): Add mbuiter.
49777
49778 2005-08-17  Bruno Haible  <bruno@clisp.org>
49779
49780         * modules/strcasestr: New file.
49781         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49782         strcasestr.
49783
49784 2005-08-17  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49787
49788 2005-08-17  Bruno Haible  <bruno@clisp.org>
49789
49790         * modules/mbuiter: New file.
49791         * MODULES.html.sh (Extended multibyte and wide character utilities):
49792         Add mbuiter.
49793
49794 2005-08-17  Bruno Haible  <bruno@clisp.org>
49795
49796         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49797         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49798
49799 2005-08-17  Bruno Haible  <bruno@clisp.org>
49800
49801         * m4/strcasestr.m4: New file.
49802
49803 2005-08-17  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49806         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49807
49808 2005-08-17  Bruno Haible  <bruno@clisp.org>
49809
49810         * lib/strcasestr.h: New file.
49811         * lib/strcasestr.c: New file.
49812
49813 2005-08-17  Bruno Haible  <bruno@clisp.org>
49814
49815         * lib/strcasecmp.c: Use mbuiter.h.
49816
49817 2005-08-17  Bruno Haible  <bruno@clisp.org>
49818
49819         * lib/mbuiter.h: New file.
49820
49821 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49822
49823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49824         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49825         and gl_GETOPT are both invoked via different paths (as happens
49826         with GNU tar CVS because it uses both argp and getopt), the former
49827         wins.
49828
49829 2005-08-16  Bruno Haible  <bruno@clisp.org>
49830
49831         * modules/tls: New file.
49832         * MODULES.html.sh (Multithreading): Add tls.
49833
49834 2005-08-16  Bruno Haible  <bruno@clisp.org>
49835
49836         * modules/strnlen1: New file.
49837         * MODULES.html.sh (String handling): Add strnlen1.
49838
49839 2005-08-16  Bruno Haible  <bruno@clisp.org>
49840
49841         * modules/strcase (Files): Add m4/mbrtowc.m4.
49842         (Depends-on): Add strnlen1, mbchar.
49843
49844 2005-08-16  Bruno Haible  <bruno@clisp.org>
49845
49846         * modules/mbiter: New file.
49847         * MODULES.html.sh (Extended multibyte and wide character utilities):
49848         Add mbiter.
49849
49850 2005-08-16  Bruno Haible  <bruno@clisp.org>
49851
49852         * modules/mbfile: New file.
49853         * MODULES.html.sh (Extended multibyte and wide character utilities):
49854         Add mbfile.
49855
49856 2005-08-16  Bruno Haible  <bruno@clisp.org>
49857
49858         * modules/mbchar: New file.
49859         * MODULES.html.sh (Extended multibyte and wide character utilities):
49860         New section.
49861
49862 2005-08-16  Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/tls.m4: New file, from GNU gettext.
49865
49866 2005-08-16  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49869         always.
49870         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49871
49872 2005-08-16  Bruno Haible  <bruno@clisp.org>
49873
49874         * m4/mbiter.m4: New file.
49875
49876 2005-08-16  Bruno Haible  <bruno@clisp.org>
49877
49878         * m4/mbfile.m4: New file.
49879
49880 2005-08-16  Bruno Haible  <bruno@clisp.org>
49881
49882         * m4/mbchar.m4: New file.
49883
49884 2005-08-16  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/tls.h: New file, from GNU gettext.
49887         * lib/tls.c: New file, from GNU gettext.
49888
49889 2005-08-16  Bruno Haible  <bruno@clisp.org>
49890
49891         * lib/strnlen1.h: New file.
49892         * lib/strnlen1.c: New file.
49893
49894 2005-08-16  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49897         (mbi_init): Update.
49898         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49899         NUL byte, not after it.
49900
49901 2005-08-16  Bruno Haible  <bruno@clisp.org>
49902
49903         * lib/strcase.h (strcasecmp): Add note in comments.
49904         * lib/strncasecmp.c: Use code from strcasecmp.c.
49905         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49906         (strcasecmp): Work correctly in multibyte locales.
49907
49908 2005-08-16  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/mbiter.h: New file.
49911
49912 2005-08-16  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/mbfile.h: New file.
49915
49916 2005-08-16  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/mbchar.h: New file.
49919         * lib/mbchar.c: New file.
49920
49921 2005-08-16  Bruno Haible  <bruno@clisp.org>
49922
49923         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49924         the valid ones. Makes the comparison operations transitive:
49925         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49926         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49927
49928 2005-08-15  Simon Josefsson  <jas@extundo.com>
49929
49930         * modules/ssize_t (License): Change to 'unlimited'.
49931
49932         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49933
49934 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49935
49936         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49937         Add comments for each pending glibc patch.
49938
49939 2005-08-15  Bruno Haible  <bruno@clisp.org>
49940
49941         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49942         __cplusplus is defined.
49943
49944 2005-08-14  Jim Meyering  <jim@meyering.net>
49945
49946         Sync from coreutils.
49947
49948         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49949         Use the hash-table-based cycle-detection code not just when
49950         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49951         Reported by James Youngman in
49952         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49953         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49954         FTS_TIGHT_CYCLE_CHECK.
49955         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49956         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49957         once again.
49958         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49959         * lib/fts.c (fd_safer): Remove decl.
49960         Include fcntl--.h rather than unistd-safer.h
49961         (fts_safe_changedir): Don't call fd_safer; no longer needed
49962         now that we include fcntl--.h.
49963
49964 2005-08-12  Simon Josefsson  <jas@extundo.com>
49965
49966         * modules/getndelim2: Use ssize_t module.
49967         * modules/getnline: Likewise.
49968         * modules/safe-read: Likewise.
49969         * modules/xreadlink: Likewise.
49970
49971         * modules/ssize_t: New file.
49972
49973 2005-08-12  Simon Josefsson  <jas@extundo.com>
49974
49975         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49976
49977 2005-08-12  Simon Josefsson  <jas@extundo.com>
49978
49979         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49980         ssize_t.
49981
49982 2005-08-12  Simon Josefsson  <jas@extundo.com>
49983
49984         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49985         readline, getdelim and check_version.
49986         (Support for systems lacking ISO C 99: Sizes of integer types):
49987         Add size_max.
49988
49989 2005-08-12  Bruno Haible  <bruno@clisp.org>
49990
49991         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49992
49993 2005-08-11  Simon Josefsson  <jas@extundo.com>
49994
49995         * modules/readline: New file.
49996
49997         * modules/strnlen (Files): Add strnlen.h.
49998
49999 2005-08-11  Simon Josefsson  <jas@extundo.com>
50000
50001         * m4/readline.m4: New file.
50002
50003 2005-08-11  Simon Josefsson  <jas@extundo.com>
50004
50005         * lib/readline.h, readline.c: New file.
50006
50007 2005-08-11  Simon Josefsson  <jas@extundo.com>
50008
50009         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50010         gl_AVOID.
50011
50012 2005-08-11  Bruno Haible  <bruno@clisp.org>
50013
50014         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50015
50016 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50017
50018         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50019
50020 2005-08-10  Simon Josefsson  <jas@extundo.com>
50021
50022         * tests/test-iconvme.c: New file.
50023
50024 2005-08-10  Simon Josefsson  <jas@extundo.com>
50025
50026         * m4/strnlen.m4: New file.
50027
50028         * m4/strndup.m4: Don't check for strnlen declaration, done in
50029         strnlen.m4.
50030
50031 2005-08-10  Simon Josefsson  <jas@extundo.com>
50032
50033         * lib/strndup.c: Use strnlen.h.
50034
50035         * lib/strnlen.h: New file.
50036
50037 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50038
50039         * README: Typos.
50040
50041 2005-08-02  Simon Josefsson  <jas@extundo.com>
50042
50043         * modules/readline: New file.
50044
50045 2005-08-02  Simon Josefsson  <jas@extundo.com>
50046
50047         * modules/getdelim: New file.
50048
50049         * modules/getline: Rewrite, don't use getndelim2.
50050
50051 2005-08-02  Simon Josefsson  <jas@extundo.com>
50052
50053         * m4/getline.m4: Separate out getdelim stuff into separate module.
50054
50055         * m4/getdelim.m4: New file.
50056
50057 2005-08-02  Simon Josefsson  <jas@extundo.com>
50058
50059         * lib/getline.h, getline.c: Rewrite.
50060
50061         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50062
50063 2005-07-31  Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/lock.h (gl_lock_initializer): New macro.
50066         (gl_lock_define_initialized): Use it.
50067         (gl_rwlock_initializer): New macro.
50068         (gl_rwlock_define_initialized): Use it.
50069         (gl_recursive_lock_initializer): New macro.
50070         (gl_recursive_lock_define_initialized): Use it.
50071
50072 2005-07-30  Karl Berry  <karl@gnu.org>
50073
50074         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50075         Report from Ben Pfaff, regarding getopt.
50076
50077 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50078
50079         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50080         normal way.
50081         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50082         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50083         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50084         (gl_GETOPT): Use the new macros.  Most of the implementation
50085         is moved to the new macros.  This is for programs like Emacs
50086         that don't want all the functionality of gl_GETOPT.
50087
50088 2005-07-26  Bruno Haible  <bruno@clisp.org>
50089
50090         * m4/lock.m4: Update from GNU gettext.
50091
50092 2005-07-26  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/lock.h: Update from GNU gettext.
50095         * lib/lock.c: Update from GNU gettext.
50096
50097 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50100         obsolescent AC_TRY_RUN.  Include the default includes files, for
50101         'exit'.
50102
50103 2005-07-24  Bruno Haible  <bruno@clisp.org>
50104
50105         * modules/visibility: New file.
50106         * MODULES.html.sh (Misc): Add visibility.
50107
50108 2005-07-24  Bruno Haible  <bruno@clisp.org>
50109
50110         * m4/visibility.m4: New file.
50111
50112 2005-07-24  Bruno Haible  <bruno@clisp.org>
50113
50114         * doc/visibility.texi: New file.
50115
50116 2005-07-22  Bruno Haible  <bruno@clisp.org>
50117
50118         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50119         $(ALLOCA_H), redundant through BUILT_SOURCES.
50120         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50121         redundant through BUILT_SOURCES.
50122         * modules/byteswap (Makefile.am): Remove explicit dependency on
50123         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50124         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50125         $(FNMATCH_H), redundant through BUILT_SOURCES.
50126         * modules/getopt (Makefile.am): Remove explicit dependency on
50127         $(GETOPT_H), redundant through BUILT_SOURCES.
50128         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50129         redundant through BUILT_SOURCES.
50130         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50131         redundant through BUILT_SOURCES.
50132         * modules/stdbool (Makefile.am): Remove explicit dependency on
50133         $(STDBOOL_H), redundant through BUILT_SOURCES.
50134         * modules/stdint (Makefile.am): Remove explicit dependency on
50135         $(STDINT_H), redundant through BUILT_SOURCES.
50136         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50137         Remove explicit dependency on $(SYSEXITS_H).
50138         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50139
50140 2005-07-18  Simon Josefsson  <jas@extundo.com>
50141
50142         * lib/check-version.c (check_version): Accept identical versions too.
50143
50144 2005-07-18  Bruno Haible  <bruno@clisp.org>
50145
50146         * modules/lock: New file.
50147         * MODULES.html.sh (Multithreading): New section.
50148
50149 2005-07-18  Bruno Haible  <bruno@clisp.org>
50150
50151         * m4/lock.m4: New file, from GNU gettext.
50152
50153 2005-07-18  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/lock.h: New file, from GNU gettext.
50156         * lib/lock.c: New file, from GNU gettext.
50157
50158 2005-07-18  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/lock.h (gl_once_t): New type.
50161         (gl_once_define, gl_once): New macros.
50162         * lib/lock.c (fresh_once): New variable.
50163         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50164         functions.
50165
50166 2005-07-16  Simon Josefsson  <jas@extundo.com>
50167
50168         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50169         workaround, suggested by Bruno.
50170
50171 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * modules/xalloc (Depends-on): Add xalloc-die.
50174         * modules/xvasprintf (Depends-on): Add xalloc-die.
50175
50176 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50179         with a minor change.
50180
50181 2005-07-15  Bruno Haible  <bruno@clisp.org>
50182
50183         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50184         When using lib/poll.c, define poll as rpl_poll.
50185
50186 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50187
50188         * modules/argp (Depends-on): Remove unlocked-io.
50189
50190 2005-07-14  Derek Price  <derek@ximbiot.com>
50191
50192         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50193         for glob symlink bug.
50194
50195 2005-07-14  Bruno Haible  <bruno@clisp.org>
50196
50197         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50198         Instead, test for *_unlocked function declarations directly.
50199
50200 2005-07-11  Simon Josefsson  <jas@extundo.com>
50201
50202         * modules/size_max: New file.
50203
50204         * modules/xsize: Depend on size_max module for size_max.m4.
50205
50206 2005-07-11  Simon Josefsson  <jas@extundo.com>
50207
50208         * lib/size_max.h: New file.
50209
50210 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50211
50212         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50213         copyright symbol and the year.
50214         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50215         (version_etc_va): Use parameterized copyright notice.
50216         Reword to conform to the current GNU coding standards.
50217
50218 2005-07-11  Karl Berry  <karl@gnu.org>
50219
50220         * doc/gnulib.texi (Quoting): new node.
50221         (Initial import): more info, from Patrice.
50222
50223 2005-07-11  Bruno Haible  <bruno@clisp.org>
50224
50225         * gnulib-tool (func_usage): Document option --avoid.
50226         (Command line options): Handle --avoid.
50227         (func_acceptable): New function.
50228         (func_modules_transitive_closure): Use it.
50229
50230 2005-07-11  Bruno Haible  <bruno@clisp.org>
50231
50232         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50233         Reported by Jim Meyering.
50234
50235 2005-07-10  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50238         Needed when size_t is smaller than 'unsigned int'.
50239         Reported by Paul Eggert.
50240
50241 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50242
50243         * modules/argp (Depends-on): Add unlocked-io
50244
50245 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50246
50247         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50248         block of defines.
50249
50250 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50253         fix now.
50254
50255 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50256         and Paul Eggert  <eggert@cs.ucla.edu>
50257
50258         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50259         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50260
50261 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * modules/regex (Files): Add lib/regex_internal.c,
50264         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50265         (Depends-on): Add extensions.
50266         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50267
50268 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50269
50270         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50271         pathconf.
50272         * m4/same.m4 (gl_SAME): Likewise.
50273         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50274
50275         * m4/regex.m4: Adjust to new libc regex implementation.
50276         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50277         all the .c and .h parts of (the new) regex.
50278         Quote the m4 stuff better.
50279         Check for RE_ICASE bug of old gnulib.
50280         Check for REG_STARTEND of recent libc.
50281         Rename local variables from jm_* to gl_*.
50282         Quote operand of "test -f".
50283         Say "recent enough" version of libc, not "version 2".
50284         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50285         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50286         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50287         Remove check for btowc, isascii.
50288         Require AM_LANGINFO_CODESET.
50289
50290 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50291
50292         * lib/regex.c, regex.h: Sync from libc.
50293         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50294         * lib/regexec.c:
50295         New files, synced from libc, except that regex_internal.h
50296         currently has a small porting fix.
50297
50298 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50299
50300         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50301         regex_internal.c, regexec.c.
50302         Add regex_internal.h too, but as a comment, since the libc version
50303         is currently broken in gnulib mode.
50304
50305 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50306
50307         Support programs like Emacs that use gnulib but not gettext.
50308         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50309         * modules/gettext-h: New file.
50310         * modules/gettext (Files): Remove lib/gettext.h.
50311         (Depends-on): Add gettext-h.
50312         (Makefile.am): Remove lib_SOURCES.
50313         * modules/argmatch, modules/c-stack, modules/closeout:
50314         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50315         * modules/execute, modules/file-type, modules/getaddrinfo:
50316         * modules/getopt, modules/human, modules/javacomp:
50317         * modules/javaexec, modules/mkdir-p, modules/obstack:
50318         * modules/openat, modules/pagealign_alloc, modules/pipe:
50319         * modules/quotearg, modules/regex, modules/rpmatch:
50320         * modules/unicodeio, modules/userspec, modules/version-etc:
50321         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50322         * modules/xsetenv:
50323         Depend on gettext-h, not gettext.
50324
50325 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50326
50327         * gnulib-tool (func_import): Add support for 'public domain' license.
50328         * modules/alloca, modules/atexit, modules/memmove:
50329         Now public domain, not GPL.
50330         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50331         * modules/realloc, modules/strerror, modules/strtod:
50332         Now LGPL, not GPL.
50333
50334 2005-07-05  Bruno Haible  <bruno@clisp.org>
50335
50336         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50337         autoconf CVS. Needed for mingw.
50338
50339 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50340
50341         Remove the dependency of the strftime module on the tzset module.
50342         * modules/strftime (Depends-on): Remove dependency on tzset.
50343
50344 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         Remove the dependency of the strftime module on the tzset module.
50347         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50348         gl_FUNC_TZSET_CLOBBER.
50349
50350 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50351
50352         Remove the dependency of the strftime module on the tzset module.
50353         * lib/strftime.c (my_strftime)
50354         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50355         Copy the input structure, to work around some of the bug with
50356         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50357         Solaris releases, you should also use the tzset module, but we won't
50358         require it as a dependency any more since we don't want LGPLed code
50359         to depend on GPLed code.
50360
50361 2005-07-02  Jim Meyering  <jim@meyering.net>
50362
50363         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50364         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50365         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50366         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50367
50368 2005-07-02  Jim Meyering  <jim@meyering.net>
50369
50370         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50371
50372 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50373
50374         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50375         declares only 'struct timespec;' (!).
50376
50377 2005-07-01  Jim Meyering  <jim@meyering.net>
50378
50379         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50380         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50381         * lib/save-cwd.c, tempname.c:
50382         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50383         and don't include <sys/file.h>).
50384
50385 2005-06-29  Jim Meyering  <jim@meyering.net>
50386
50387         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50388         type name.  Use the variable name instead.
50389         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50390         Likewise.
50391
50392 2005-06-28  Simon Josefsson  <jas@extundo.com>
50393
50394         * modules/check-version (Files): Add check-version.m4.
50395
50396 2005-06-28  Simon Josefsson  <jas@extundo.com>
50397
50398         * m4/check-version.m4: New file, suggested by Jim Meyering
50399         <jim@meyering.net>.
50400
50401 2005-06-28  Simon Josefsson  <jas@extundo.com>
50402
50403         * lib/check-version.h, lib/check-version.c: New files.
50404
50405 2005-06-28  Simon Josefsson  <jas@extundo.com>
50406
50407         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50408         collision with global variable.  Better indentation.  Don't
50409         increment buffer pointer beyond buffer end.  Based on comments
50410         from Paul Eggert <eggert@cs.ucla.edu>.
50411
50412         * lib/base64.h: Indent.
50413
50414 2005-06-28  Simon Josefsson  <jas@extundo.com>
50415
50416         * doc/gnulib.texi (Library version handling): New section.
50417
50418 2005-06-28  Jim Meyering  <jim@meyering.net>
50419
50420         * check-module (find_included_lib_files): Hard-code another
50421         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50422         but modules/fts-lgpl (correctly) does not list those files.
50423
50424         * modules/canonicalize (Files): Add lib/pathmax.h.
50425
50426 2005-06-25  Simon Josefsson  <jas@extundo.com>
50427
50428         * modules/check-version: New file.
50429
50430 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50431
50432         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50433         initializer of struct addrinfo, as an indication that we don't
50434         care how many members the structure has.
50435
50436 2005-06-24  Derek Price  <derek@ximbiot.com>
50437         and Bruno Haible  <bruno@clisp.org>
50438
50439         Remove stat module & update lstat.
50440         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50441         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50442         * m4/stat.m4: Remove this file.
50443
50444 2005-06-24  Derek Price  <derek@ximbiot.com>
50445         and Bruno Haible  <bruno@clisp.org>
50446
50447         Remove stat module & update lstat.
50448         * lib/stat.c: Remove this file...
50449         (slash_aware_lstat): ...moving this content and its support...
50450         * lib/lstat.c (rpl_lstat): ...into here.
50451         * lib/lstat.h: New file.
50452
50453 2005-06-24  Derek Price  <derek@ximbiot.com>
50454         and Bruno Haible  <bruno@clisp.org>
50455
50456         Remove stat module & update lstat.
50457         * config/srclist.txt (libc sources): Remove stat.
50458
50459 2005-06-24  Derek Price  <derek@ximbiot.com>
50460         and Bruno Haible  <bruno@clisp.org>
50461
50462         Remove stat module & update lstat.
50463         * MODULES.html.sh (stat): Remove.
50464         * MODULES.html: Regenerated.
50465         * modules/lstat (Description): Correct function name.
50466         (Files): Add "lstat.h".
50467         (Depends-on): Remove stat, add xalloc, stat-macros.
50468         * modules/stat: Remove this file.
50469         (Include): Add "lstat.h", remove <sys/stat.h>.
50470
50471 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50472
50473         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50474         (ranged_convert): Don't save conversion in a temporary struct.
50475         This causes a warning with GCC 4.0.0, and anyway in the typical
50476         case it's not worth the extra 100 bytes or so of code.
50477         (ranged_convert, __mktime_internal): When calling a function via a
50478         pointer P, use P () rather than (*P) (), as we now assume C89 or
50479         better.
50480
50481 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50484         "who -r" failed to give output.  Problem reported by Tim Waugh.
50485
50486         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50487         (xcalloc): Use it to avoid needless tests.
50488         Problem reported by Jim Meyering.
50489
50490 2005-06-20  Derek Price  <derek@ximbiot.com>
50491
50492         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50493         unnecessary for Autoconfs > 2.59c.
50494
50495 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50496
50497         * lib/argp.h (__option_is_short): Check upper limit of
50498         __key. Isprint() requires its argument to have the value
50499         of an unsigned char or EOF.
50500
50501 2005-06-16  Jim Meyering  <jim@meyering.net>
50502
50503         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50504         when either N or S is zero.
50505
50506 2005-06-16  Derek Price  <derek@ximbiot.com>
50507
50508         * m4/bison.m4: Declare YACC & YFLAGS precious.
50509
50510 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50511
50512         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50513         multibyte string or pattern, fall back on unibyte matching.
50514         Problem reported by James Youngman.
50515
50516 2005-06-08  Bruno Haible  <bruno@clisp.org>
50517
50518         * modules/csharpcomp: New file.
50519         * MODULES.html.sh (C#): Add csharpcomp.
50520
50521 2005-06-08  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/csharpcomp.m4: New file, from GNU gettext.
50524
50525 2005-06-08  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/csharpcomp.h: New file, from GNU gettext.
50528         * lib/csharpcomp.c: New file, from GNU gettext.
50529         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50530
50531 2005-06-08  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50534         warning on mingw.
50535
50536 2005-06-07  Derek Price  <derek@ximbiot.com>
50537
50538         Sync from CVS.
50539         * lib/glob_.h: Indent nested #ifdef.
50540
50541 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50542
50543         Sync from coreutils.
50544         Use "file name" when talking about file names, instead of "filename"
50545         or "path", as per the GNU coding standards.
50546         * lib/mkdir-p.c: Renamed from makepath.c.
50547         (make_dir_parents): Renamed from make_path.  All callers changed.
50548         * lib/mkdir-p.h: Likewise.  All includers changed.
50549         * lib/filenamecat.c: Renamed from path-concat.c.
50550         (file_name_concat): Renamed from path_concat.  All callers changed.
50551         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50552         * lib/filenamecat.h: Likewise.  All includers changed.
50553         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50554         in comments or local variable names.
50555         * lib/basename.c: Likewise.
50556         * lib/canonicalize.c, canonicalize.h: Likewise.
50557         * lib/dirname.c, dirname.h: Likewise.
50558         * lib/euidaccess.c: Likewise.
50559         * lib/exclude.c: Likewise
50560         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50561         * lib/fsusage.c, fsuage.h: Likewise.
50562         * lib/fts.c, fts_.h: Likewise.
50563         * lib/getcwd.c: Likewise.
50564         * lib/getloadavg.c: Likewise.
50565         * lib/mkstemp.c: Likewise.
50566         * lib/mountlist.c, mountlist.h: Likewise.
50567         * lib/openat.c, openat.h: Likewise.
50568         * lib/readlink-stub.c: Likewise.
50569         * lib/readutmp.c, readutmp.h: Likewise.
50570         * lib/rename.c: Likewise.
50571         * lib/rmdir.c: Likewise.
50572         * lib/same.c: Likewise.
50573         * lib/savedir.c: Likewise.
50574         * lib/stripslash.c: Likewise.
50575         * lib/tempname.c: Likewise.
50576         * lib/xreadlink.c: Likewise.
50577         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50578         All uses changed.
50579         * lib/exclude.h: Likewise.
50580
50581         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50582         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50583         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50584         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50585         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50586         files have been getting away with it for years (MORE/BSD 4.3
50587         is extinct now).
50588         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50589         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50590
50591         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50592         Define to 256, not 255, as per modern POSIX.
50593
50594 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         Sync from coreutils.
50597         Use "file name" when talking about file names, instead of "filename"
50598         or "path", as per the GNU coding standards.
50599         * MODULES.html.sh: mkdir-p renamed from makepath.
50600         filenamecat renamed from path-concat.
50601         * modules/filenamecat: Renamed from modules/path-concat.
50602         (Files): filenamecat.h and filenamecat.c renamed from
50603         path-concat.h and path-concat.c.
50604         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50605         (Include): filenamecat.h, not path-concat.h.
50606         * modules/mkdir-p: Renamed from modules/makepath.
50607         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50608         makepath.c.
50609         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50610         (Include): mkdir-p.h, not makepath.h.
50611
50612 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         Sync from coreutils.
50615         * m4/mkdir-p.m4: Renamed from makepath.m4.
50616         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50617         Rename files from makepath.c to mkdir-p.c, and from
50618         makepath.h to mkdir-p.h.
50619         * m4/filenamecat.m4: Renamed from path-concat.m4.
50620         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50621         Rename files from path-concat.c to filenamecat.c,
50622         and from path-concat.h to filenamecat.h.
50623         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50624         "file name" in local variables or comments.
50625         * m4/rename.m4: Likewise.
50626
50627 2005-06-01  Bruno Haible  <bruno@clisp.org>
50628
50629         * modules/csharpexec: New file.
50630         * MODULES.html.sh (C#): New section.
50631
50632 2005-06-01  Bruno Haible  <bruno@clisp.org>
50633
50634         * m4/csharp.m4: New file, from GNU gettext.
50635         * m4/csharpexec.m4: New file, from GNU gettext.
50636
50637 2005-06-01  Bruno Haible  <bruno@clisp.org>
50638
50639         * lib/csharpexec.h: New file, from GNU gettext.
50640         * lib/csharpexec.c: New file, from GNU gettext.
50641         * lib/csharpexec.sh.in: New file, from GNU gettext.
50642
50643 2005-05-31  Derek Price  <derek@ximbiot.com>
50644             Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         Sync from cvs.
50647         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50648
50649 2005-05-31  Derek Price  <derek@ximbiot.com>
50650             Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         Sync from cvs.
50653         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50654
50655 2005-05-29  Derek Price  <derek@ximbiot.com>
50656
50657         * config/srclist.txt (glob_.h, glob.c): Add these files.
50658
50659 2005-05-29  Derek Price  <derek@ximbiot.com>
50660
50661         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50662         * modules/glob: New file.
50663         * modules/getlogin_r: Add link to POSIX spec in description.
50664
50665 2005-05-29  Derek Price  <derek@ximbiot.com>
50666             Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * m4/glob.m4: New file.
50669
50670 2005-05-29  Derek Price  <derek@ximbiot.com>
50671             Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * lib/glob_.h, lib/glob.c: New files.
50674
50675 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50676
50677         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50678         * modules/fts-lgpl (Depends-on): Remove gettext.
50679
50680 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50683         and don't require gt_INTTYPES_PRI.
50684
50685 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50688
50689         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50690         the configuration hassle isn't worth it.
50691         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50692         (LONGEST_MODIFIER, PRIuMAX): Remove.
50693
50694 2005-05-27  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50697
50698 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50701         _POSIX_PTHREAD_SEMANTICS for Solaris.
50702
50703 2005-05-25  Derek Price  <derek@ximbiot.com>
50704
50705         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50706
50707 2005-05-25  Derek Price  <derek@ximbiot.com>
50708             Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50711         * lib/getlogin_r.c, getlogin_r.h: New files.
50712
50713 2005-05-25  Bruno Haible  <bruno@clisp.org>
50714             Derek Price  <derek@ximbiot.com>
50715
50716         * lib/getlogin_r.h: Simplify API documentation.
50717
50718 2005-05-23  Derek Price  <derek@ximbiot.com>
50719
50720         * modules/minmax (Files): Add m4/minmax.m4.
50721         (configure.ac): Add gl_MINMAX.
50722
50723 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50724
50725         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50726         so that unistd-safer.h (GPL'ed code) need not be included.
50727
50728 2005-05-22  Bruno Haible  <bruno@clisp.org>
50729
50730         * m4/minmax.m4: New file.
50731         Based on a patch by Derek Price <derek@ximbiot.com>.
50732
50733 2005-05-22  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50736         (INT64_MIN): Fix definition.
50737         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50738
50739         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50740         NEED_SIGNED_INT_TYPES.
50741
50742         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50743         HAVE_SYSTEM_INTTYPES.
50744
50745 2005-05-22  Bruno Haible  <bruno@clisp.org>
50746
50747         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50748         Also include <sys/param.h> if it defines MIN, MAX.
50749         Based on a patch by Derek Price <derek@ximbiot.com>.
50750
50751 2005-05-21  Jim Meyering  <jim@meyering.net>
50752
50753         * modules/fts (Files): Add m4/inttypes-pri.m4.
50754         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50755
50756 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50757
50758         New fts module.
50759         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50760         (setup_dir, free_dir): New functions.
50761         (enter_dir, leave_dir): Define trivial
50762         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50763         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50764         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50765         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50766         Move to fts-cycle.c.
50767         (fts_open): Use setup_dir.
50768         (fts_close): Use free_dir.
50769         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50770         This adds a label and some gotos, but the alternatives were messier.
50771         Check for memory allocation failure when entering a dir.
50772         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50773         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50774         (FTS): New member fts_cycle, that is a union that contains the
50775         old active_dir_ht and cycle_state.  All uses changed to mention
50776         fts_cycle.ht and fts_cycle.state.
50777         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50778         fts.c, with the following changes:
50779         (setup_dir, free_dir): New functions.
50780         (enter_dir): Now returns bool.  Return true if successful, false
50781         if memory exhausted.  All callers changed.
50782         Do not bother partly cleaning up on
50783         memory allocation failure; that is free_dir's job.
50784         However, free ad if hash_insert fails, to avoid memory leak.
50785         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50786         fts->fts_options to see which union member to use.
50787
50788 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50789
50790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50791         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50792
50793 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50794
50795         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50796
50797 2005-05-20  Jim Meyering  <jim@meyering.net>
50798
50799         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50800         Now a macro, to pacify GCC.
50801
50802 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50803
50804         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50805         of -1.
50806
50807 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50808
50809         * lib/chown.c (rpl_chown): Return -1 on failure.
50810
50811 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50812
50813         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50814         Don't check for stddef.h.
50815         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50816         don't use its results.
50817         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50818         since we include them unconditionally.  Don't require
50819         AM_STDBOOL_H, since stdbool is a prerequisite.
50820         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50821         since we assume C89 or better.
50822         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50823         as we don't use their results.
50824         Don't check for fchdir, memmove, memset, strrchr, as we use
50825         them unconditionally.
50826         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50827         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50828
50829 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50830
50831         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50832         Include <stddef.h> unconditionally, since we assume C89 now.
50833         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50834         * lib/fts.c: Include fts_.h first, to check interface.
50835         Do not include intprops.h; no longer needed.
50836         Include cycle-check.h and hash.h, since fts_.h no longer does.
50837         Remove unnecessary casts of closedir to void.
50838         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50839         decide whether to decrement nlinks.
50840         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50841         (FTS): Use struct hash_table * instead of Hash_table, so that
50842         we no longer need to include hash.h here.
50843
50844 2005-05-18  Jim Meyering  <jim@meyering.net>
50845
50846         * modules/dirfd (License): Change to LGPL.  Most of the code
50847         is already in the public domain.
50848
50849 2005-05-18  Jim Meyering  <jim@meyering.net>
50850
50851         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50852         Reported by Yoann Vandoorselaere.
50853
50854 2005-05-17  Jim Meyering  <jim@meyering.net>
50855
50856         * m4/fts.m4: New file, from coreutils.
50857
50858 2005-05-17  Jim Meyering  <jim@meyering.net>
50859
50860         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50861
50862 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50863
50864         Sync from coreutils.
50865         * m4/unlinkdir.m4: New file.
50866
50867 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         Sync from coreutils.
50870         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50871         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50872         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50873         White space changes only.
50874         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50875         special.
50876         * lib/yesno.c: Include getline.h, not ctype.h.
50877         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50878         Use getline to remove arbitrary restriction on response length.
50879
50880 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50881
50882         * config/srclist-update: Spell out "Street" in FSF postal
50883         mail address; this is the style the FSF seems to prefer.
50884
50885         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50886         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50887         this updates FSF postal mail address.
50888
50889         Sync from coreutils.
50890         * modules/unlinkdir: New file.
50891         * modules/yesno (Depends-on): Add getline.
50892         * MODULES.html.sh (File system functions): Add unlinkdir.
50893
50894 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50897         lib/strsep.h:
50898         Change the initial comment to refer to GPL, not LGPL.
50899         gnulib-tool will change it to LGPL as needed.
50900
50901         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50902         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50903         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50904         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50905         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50906         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50907         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50908         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50909         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50910         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50911         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50912         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50913         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50914         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50915         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50916         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50917         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50918         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50919         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50920         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50921         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50922         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50923         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50924         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50925         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50926         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50927         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50928         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50929         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50930         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50931         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50932         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50933         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50934         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50935         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50936         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50937         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50938         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50939         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50940         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50941         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50942         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50943         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50944         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50945         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50946         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50947         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50948         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50949         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50950         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50951         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50952         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50953         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50954         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50955         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50956         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50957         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50958         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50959         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50960         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50961         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50962         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50963         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50964         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50965         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50966         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50967         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50968         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50969         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50970         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50971         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50972         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50973         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50974         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50975         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50976         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50977         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50978         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50979         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50980         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50981         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50982         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50983         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50984         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50985         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50986         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50987         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50988         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50989         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50990         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50991         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50992         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50993         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50994         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50995         lib/yesno.c, lib/yesno.h:
50996         Update FSF postal mail address.
50997
50998 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51001         tests/test-memmem.c, tests/test-stpncpy.c:
51002         Update FSF postal mail address.
51003
51004 2005-05-13  Bruno Haible  <bruno@clisp.org>
51005
51006         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51007         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51008         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51009         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51010         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51011         Add support for 64-bit integers in the MSVC compiler.
51012
51013 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51014
51015         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51016
51017 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51018
51019         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51020
51021 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51022
51023         * doc/getdate.texi (General date syntax): Don't say that date
51024         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51025         Problem reported by Nic Ferrier.
51026
51027 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51028
51029         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51030         specified in ai_socktype. Fix invalid ai_protocol
51031         check. ai_protocol is usually set to 0 or depending on
51032         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51033         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51034         ai_socktype / ai_protocol in the returned addrinfo structure.
51035
51036 2005-05-10  Simon Josefsson  <jas@extundo.com>
51037
51038         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51039         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51040
51041 2005-05-10  Karl Berry  <karl@gnu.org>
51042
51043         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51044         (from http://www.gnu.org/licenses).
51045         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51046         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51047         fdl.texi suffices.
51048
51049 2005-05-10  Karl Berry  <karl@gnu.org>
51050
51051         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51052         (COPYING.DOC): remove.
51053
51054         * config/srclist-update: new FSF address.
51055
51056 2005-05-10  Derek Price  <derek@ximbiot.com>
51057
51058         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51059         possible.
51060
51061 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51062             Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/inet_ntop: New file.
51065         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51066         inet_ntop.
51067
51068 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51069             Bruno Haible  <bruno@clisp.org>
51070
51071         * m4/inet_ntop.m4: New file.
51072
51073 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51074             Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/inet_ntop.h: New file.
51077         * lib/inet_ntop.c: New file, from glibc with modifications.
51078
51079 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51080
51081         * modules/time_r (License): Change to LGPL.
51082         * modules/extensions (License): Change to LGPL.  Actually,
51083         the license is more permissive than that, but currently gnulib-tool
51084         doesn't know how to handle more-permissive licenses.
51085
51086         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51087         Problem reported by Dave Love.
51088
51089 2005-05-08  Jim Meyering  <jim@meyering.net>
51090
51091         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51092         blank.
51093
51094 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * modules/argmatch (Depends-on): Add stdbool.
51097         * modules/backupfile (Depends-on): Likewise.
51098         * modules/chdir-long (Depends-on): Likewise.
51099         * modules/closeout (Depends-on): Likewise.
51100         * modules/cycle-check (Depends-on): Likewise.
51101         * modules/dirname (Depends-on): Likewise.
51102         * modules/fnmatch (Depends-on): Likewise.
51103         * modules/fsusage (Depends-on): Likewise.
51104         * modules/fwriteerror (Depends-on): Likewise.
51105         * modules/getcwd (Depends-on): Likewise.
51106         * modules/getloadavg (Depends-on): Likewise.
51107         * modules/hard-locale (Depends-on): Likewise.
51108         * modules/makepath (Depends-on): Likewise.
51109         * modules/mountlist (Depends-on): Likewise.
51110         * modules/nanosleep (Depends-on): Likewise.
51111         * modules/posixtm (Depends-on): Likewise.
51112         * modules/quotearg (Depends-on): Likewise.
51113         * modules/readtokens (Depends-on): Likewise.
51114         * modules/readtokens0 (Depends-on): Likewise.
51115         * modules/readutmp (Depends-on): Likewise.
51116         * modules/save-cwd (Depends-on): Likewise.
51117         * modules/strftime (Depends-on): Likewise.
51118         * modules/userspec (Depends-on): Likewise.
51119         * modules/utimecmp (Depends-on): Likewise.
51120         * modules/xgetcwd (Depends-on): Likewise.
51121         * modules/xnanosleep (Depends-on): Likewise.
51122         * modules/xstrtod (Depends-on): Likewise.
51123         * modules/yesno (Depends-on): Likewise.
51124
51125 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51128         needless checks.
51129
51130 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51131
51132         Merge from coreutils.  Among other things,
51133         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51134         * lib/fd-safer.c: New file.
51135         * lib/fcntl-safer.h, open-safer.c: Remove.
51136         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51137         * lib/dup-safer.c: Include unistd-safer.h first.
51138         Don't include errno.h.
51139         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51140         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51141         * lib/file-type.c: Rely on file-type.h change.
51142         * lib/getloadavg.c: Include unistd-safer.h.
51143         (getloadavg): Use safer open.
51144         * lib/getusershell.c: Include "stdio-safer.h".
51145         (getusershell): Use safer fopen.
51146         * lib/long-options.c (long_options): Use NULL rather than 0.
51147         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51148         'free'.
51149         * lib/modechange.c: Likewise.
51150         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51151         (MODE_DONE): New constant.
51152         (struct mode_change): Remove 'next' member.
51153         (make_node_op_equals): New function; like the old one of the
51154         same name, except it allocates an array.
51155         (mode_compile, mode_create_from_ref): Use it.
51156         (mode_compile): Allocate result as an array, not a linked list.
51157         Parse octal string ourself, so that we catch mistakes like "+0".
51158         (mode_adjust): Arg is an array, not a linked list.
51159         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51160         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51161         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51162         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51163         Remove.  This is now stat-macros.h's job.
51164         (talloc): Remove.  All callers replaced by xalloc, so that
51165         our invokers don't have to worry about reporting memory failures.
51166         (make_node_op_equals): Remove.
51167         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51168         New constants.
51169         (struct mode_change): Moved here from modechange.h.
51170         (mode_append_entry): Remove.
51171         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51172         apps to have incorrect behavior.  Use simpler algorithm for head
51173         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51174         Detect more invalid usages rather than having somewhat-random behavior.
51175         Don't insert an "a=" action, as that leads to incorrect behavior.
51176         (mode_compile, mode_create_from_ref): Return NULL on error instead
51177         of an enum, since now there's only one way to have an error.  All
51178         callers changed.
51179         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51180         at the correct time.  Simplify calculation of "+u" and its ilk.
51181         Don't mishandle "+X".
51182         (mode_free): Remove "register" and localize decls.
51183         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51184         (struct mode_change): Move to modechange.c; callers don't
51185         need to see this stuff.
51186         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51187         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51188         (mode_change, mode_adjust): Reflect the new signatures noted above.
51189         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51190         that might redefine system include files.
51191         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51192         (my_usleep): Use NULL rather than (void *) 0.
51193         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51194         Use siginterrupt to specify that system calls should be interrupted.
51195         (rpl_nanosleep): Move initialization of suspended closer to call of
51196         my_usleep.
51197         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51198         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51199         (desirable_utmp_entry): New function.
51200         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51201         using x2nrealloc, to simplify logic.
51202         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51203         size calculation.  Do not assume utmp file is a regular file.
51204         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51205         (READ_UTMP_CHECK_PIDS): New constant.
51206         * lib/save-cwd.c: Include unistd-safer.h.
51207         (save_cwd): Use fd_safer.
51208         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51209         [!_LIBC] Include "stat-macros.h" instead.
51210         * lib/unistd-safer.h (fd_safer): New decl.
51211
51212 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51213
51214         * modules/getloadavg (Depends-on): Add unistd-safer.
51215         * modules/getusershell (Depends-on): Add stdio-safer.
51216         * modules/lstat (Depends-on): Remove xalloc.
51217         * modules/mkstemp (Depends-on): Add stat-macros.
51218         * modules/modechange (Depends-on): Remove xstrtol.
51219         Add stat-macros, xalloc.
51220         * modules/save-cwd (Depends-on): Add unistd-safer.
51221         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51222         * modules/unistd-safer (Files): Add lib/fd-safer.c
51223         (Makefile.am): Remove lib_SOURCES.
51224
51225         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51226         Remove fcntl-safer; unistd-safer supersedes it.
51227
51228 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51229
51230         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51231         AC_HEADER_STAT.
51232         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51233         (gl_PREREQ_CHOWN): Remove.
51234         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51235         it.  Don't require AC_HEADER_STAT.
51236         (gl_PREREQ_LSTAT): Remove.
51237         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51238         Don't require AC_HEADER_STAT.
51239         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51240         (gl_PREREQ_RMDIR): Remove.
51241         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51242         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51243         the stat-macros module a prerequisite.
51244         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51245         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51246         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51247         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51248         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51249         variable names.
51250         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51251         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51252         variable prefixes.
51253         * m4/fcntl-safer.m4: Remove.
51254         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51255         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51256         Invoke gl_PREREQ_FD_SAFER.
51257         (gl_PREREQ_FD_SAFER): New macro.
51258         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51259         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51260         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51261         Remove duplicate call to AC_LIBOBJ(readutmp).
51262         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51263
51264         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51265         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51266
51267 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51268
51269         * MODULES.html.sh (Misc): Add byteswap.
51270
51271 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51272
51273         * modules/getcwd (Depends-on): Add extensions.
51274         * modules/openat (Depends-on): Likewise.
51275
51276 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51277
51278         * modules/byteswap: New file.
51279
51280 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51281
51282         * m4/byteswap.m4: New file.
51283
51284 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51285
51286         * lib/byteswap_.h: New file.
51287
51288 2005-04-25  Karl Berry  <karl@gnu.org>
51289
51290         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51291
51292 2005-04-25  Albert Chin  <china@thewrittenword.com>
51293
51294         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51295         Toolkit C bug.
51296
51297 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51298
51299         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51300         (func_ln_if_changed) Remove forcibly for no error message
51301         in case file does not exist.
51302
51303 2005-04-19  Simon Josefsson  <jas@extundo.com>
51304
51305         * gnulib-tool (Options): Make --symlink mean --symbolic.
51306
51307 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51308
51309         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51310
51311 2005-04-16  Simon Josefsson  <jas@extundo.com>
51312
51313         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51314
51315 2005-04-15  Simon Josefsson  <jas@extundo.com>
51316
51317         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51318
51319 2005-04-15  Simon Josefsson  <jas@extundo.com>
51320
51321         * gnulib-tool: Rename --symlink to --symbolic.
51322
51323 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51324
51325         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51326         symbolic links to files instead of copying/moving.  Add --aux-dir,
51327         specifying directory relative --dir where auxiliary build tools
51328         are placed.
51329
51330 2005-04-14  Bruno Haible  <bruno@clisp.org>
51331
51332         * modules/allocsa (License): Change to LGPL.
51333         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51334
51335 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51336
51337         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51338         that "UTC +1 second" continues to work.  Problem reported
51339         by Dmitry V. Levin.
51340         (relunit_snumber): New rule.
51341         (relunit): Use it.
51342
51343 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * lib/getdate.y (universal_time_zone_table): New constant.
51346         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51347         universal_time_zone_table.
51348         (lookup_zone): Prefer universal_time_zone_table to
51349         local_time_zone_table, so that "GMT" time stamps are allowed in
51350         London during the summer.  Problem reported by Ian Abbott.
51351
51352 2005-04-12  Jim Meyering  <jim@meyering.net>
51353
51354         * lib/human.c (humblock): Set *options even when returning due to
51355         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51356         warning from gcc-4.
51357
51358 2005-04-09  Jim Meyering  <jim@meyering.net>
51359
51360         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51361         -Wuninitialized: initialize tm0.tm_year.
51362
51363 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51366         count, since there's no maximum.  All uses changed.
51367         Add member dsts_seen.
51368         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51369         not being INT_MAX.
51370         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51371         Use pc_rels_seen to decide whther a date is absolute.
51372
51373         * lib/getdate.y (number): Don't overwrite year.
51374         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51375         check.
51376
51377 2005-04-02  Simon Josefsson  <jas@extundo.com>
51378
51379         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51380         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51381
51382 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51383
51384         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51385         where no absolute path name can be longer than PATH_MAX.
51386
51387 2005-03-27  Jim Meyering  <jim@meyering.net>
51388
51389         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51390
51391 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51392
51393         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51394         "one's complement" -> "ones' complement" in comment, as per Knuth.
51395         "value of type" -> "type or expression" in comment.
51396         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51397
51398 2005-03-26  Jim Meyering  <jim@meyering.net>
51399
51400         Comment nits.
51401         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51402         Correct typos: s/or/of/.
51403
51404 2005-03-26  Jim Meyering  <jim@meyering.net>
51405
51406         * modules/check-include-files: Move to ../ and rename to...
51407         * check-module: ...this.
51408
51409 2005-03-25  Jim Meyering  <jim@meyering.net>
51410
51411         * modules/xvasprintf (Files): Add xalloc.h.
51412
51413 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         * modules/gettext (Files): config/config.rpath ->
51416         build-aux/config.rpath
51417         * modules/iconv (Files): Likewise.
51418         Problem reported by Oskar Liljeblad.
51419
51420 2005-03-23  Jim Meyering  <jim@meyering.net>
51421
51422         * modules/check-include-files: New script to check for
51423         missing dependencies, multiple includes, etc.
51424
51425         * modules/c-strtold (Depends-on): Add xalloc.
51426         * modules/c-strtod (Depends-on): Add xalloc.
51427         * modules/hash (Depends-on): Add xalloc.
51428         (Files): Remove lib/xalloc.h.
51429
51430         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51431         * modules/userspec (Files): Add lib/inttostr.h.
51432
51433 2005-03-23  Jim Meyering  <jim@meyering.net>
51434
51435         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51436
51437 2005-03-22  Jim Meyering  <jim@meyering.net>
51438
51439         * modules/stat-macros: New module.
51440         * modules/canonicalize, modules/euidaccess, modules/file-type,
51441         * modules/filemode, modules/lchown, modules/makepath,
51442         * modules/rmdir, modules/stat: Depend on new stat-macros module
51443         rather than listing lib/stat-macros.h manually.
51444         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51445
51446 2005-03-22  Jim Meyering  <jim@meyering.net>
51447
51448         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51449
51450 2005-03-22  Bruno Haible  <bruno@clisp.org>
51451
51452         * config/srclist.txt: Replace target directory 'config' with
51453         'build-aux'.
51454         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51455         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51456         ../build-aux/.
51457
51458 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         * modules/chdir-long (Depends-on): Add mempcpy.
51461
51462         * modules/acl, modules/backupfile, modules/c-strtod,
51463         modules/c-strtold, modules/canon-host, modules/canonicalize,
51464         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51465         modules/exclude, modules/exitfail, modules/file-type,
51466         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51467         modules/getdate, modules/getline, modules/getpagesize,
51468         modules/getpass, modules/getugroups, modules/group-member,
51469         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51470         modules/inttostr, modules/long-options, modules/makepath,
51471         modules/md5, modules/memcasecmp, modules/memcoll,
51472         modules/modechange, modules/mountlist, modules/path-concat,
51473         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51474         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51475         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51476         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51477         modules/strftime, modules/strndup, modules/strverscmp,
51478         modules/timespec, modules/unlocked-io, modules/userspec,
51479         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51480         modules/yesno:
51481         Remove lib_SOURCES line from Makefile.am section, as this is now
51482         done automatically by the corresponding Autoconf macro.
51483
51484 2005-03-21  Jim Meyering  <jim@meyering.net>
51485
51486         Changes imported from coreutils.
51487
51488         * lib/cycle-check.c: Don't include xalloc.h.
51489
51490         * lib/path-concat.c: Don't include assert.h.
51491         (path_concat): Remove assertion that would have triggered
51492         for ABASE starting with more than one slash.
51493         Reported by Andreas Schwab.
51494
51495         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51496         properly when ABASE is an absolute file name.
51497         Correct the description of this function.
51498         Include <assert.h>.
51499         Add an assertion and a test driver.
51500         This fixes a bug introduced on 2004-07-02.
51501         Andreas Schwab reported the resulting failure of cp --parents:
51502         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51503
51504 2005-03-21  Jim Meyering  <jim@meyering.net>
51505
51506         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51507         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51508
51509 2005-03-21  Jim Meyering  <jim@meyering.net>
51510         and  Paul Eggert  <eggert@cs.ucla.edu>
51511
51512         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51513         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51514         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51515         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51516         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51517         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51518         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51519         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51520         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51521         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51522         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51523         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51524         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51525         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51526         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51527         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51528         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51529         for these modules.
51530
51531 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51534         (which shouldn't happen), generate nothing instead of returning 0
51535         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51536
51537 2005-03-16  Bruno Haible  <bruno@clisp.org>
51538
51539         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51540         HAVE_LONGLONG_64BIT.
51541
51542 2005-03-16  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51545         HAVE_LONGLONG_64BIT.
51546
51547 2005-03-16  Bruno Haible  <bruno@clisp.org>
51548
51549         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51550         HAVE_LONGLONG_64BIT.
51551
51552 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51553
51554         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51555         reliably distinguish strftime failure from empty output on POSIX
51556         hosts.
51557
51558 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51559
51560         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51561         (iconv_string): Don't guess a size-zero buffer, as that might cause
51562         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51563         result would be 'too large', where 'too large' is (heuristically)
51564         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51565         overflow concerns.  This will prevent some unwanted malloc failures
51566         when the inputs are very large.
51567
51568 2005-03-15  Karl Berry  <karl@gnu.org>
51569
51570         * config/srclist.txt (config.rpath): from gettext.
51571         * config/config.rpath: update.
51572
51573 2005-03-15  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51576         to 'negate'.
51577
51578         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51579         variable.
51580
51581         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51582         results.
51583
51584 2005-03-14  Simon Josefsson  <jas@extundo.com>
51585
51586         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51587         <fx@gnu.org>.
51588
51589 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51590
51591         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51592         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51593         intprops.h.
51594         * lib/strtol.c: Likewise.
51595
51596 2005-03-14  Jim Meyering  <jim@meyering.net>
51597
51598         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51599         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51600         to be nonzero so that we (and caller) can detect the difference
51601         between a valid zero-length expansion and an error return, even
51602         when the underlying strftime fails before writing anything into
51603         that location.
51604
51605 2005-03-14  Bruno Haible  <bruno@clisp.org>
51606
51607         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51608         Update from GNU gettext 0.14.3.
51609
51610 2005-03-10  Jim Meyering  <jim@meyering.net>
51611
51612         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51613
51614 2005-03-10  Jim Meyering  <jim@meyering.net>
51615
51616         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51617         so that this module works on systems without fchdir.
51618
51619 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51620
51621         Factor int-properties macros into a single file, except for
51622         glibc-related files.
51623         * lib/intprops.h: New file.
51624         * lib/getloadavg.c: Include it instead of limits.h.
51625         (INT_STRLEN_BOUND): Remove.
51626         * lib/human.c: Include intprops.h.
51627         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51628         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51629         302/1000.
51630         * lib/inttostr.h: Include intprops.h instead of limits.h.
51631         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51632         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51633         for consistency with intprops.h.
51634         (time_t_is_integer, twos_complement_arithmetic): Use them.
51635         * lib/sig2str.h: Include <signal.h>, intprops.h.
51636         (INT_STRLEN_BOUND): Remove.
51637         * lib/strftime.c (TYPE_SIGNED): Remove.
51638         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51639         * lib/strtol.c: Adjust comments to match intprops.h.
51640         * lib/userspec.c: Include intprops.h.
51641         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51642         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51643         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51644         instead of rolling our own expressions.
51645         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51646
51647         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51648         instead of int.
51649         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51650         the right thing even if adding 1900 would overflow.  Similarly
51651         for tm_mon + 1 and tm_yday + 1.
51652         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51653         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51654         (DO_SIGNED_NUMBER): New macro.
51655         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51656
51657 2005-03-07  Bruno Haible  <bruno@clisp.org>
51658
51659         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51660
51661 2005-03-07  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51664
51665 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51666
51667         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51668         (func_import): Only replace files via --import when they have actually
51669         changed.
51670
51671 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51672
51673         * m4/mmap-anon.m4: New file.
51674         * m4/pagealign_alloc.m4: New file.
51675
51676 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51677             Bruno Haible  <bruno@clisp.org>
51678
51679         * modules/pagealign_alloc: New file.
51680         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51681
51682 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51683             Bruno Haible  <bruno@clisp.org>
51684
51685         * lib/pagealign_alloc.h: New file.
51686         * lib/pagealign_alloc.c: New file.
51687
51688 2005-03-03  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51691         Use an all-permissive copyright notice, recommended by RMS.
51692
51693 2005-03-02  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51696         of AIX, the replacement has to be done only after <string.h> is
51697         included, therefore not in config.h. stpncpy.h does the replacement,
51698         and stpncpy.c uses it.
51699
51700 2005-03-02  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51703         stpncpy.c uses it.
51704
51705 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51706
51707         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51708         The workaround isn't strictly needed for POSIX conformance, and
51709         it's too much of a pain to configure and maintain.  We'll ask
51710         people to fix their kernels instead.
51711         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51712         (NANOSLEEP_BUG_WORKAROUND): Remove.
51713         (xnanosleep): Remove the workaround.
51714
51715 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51716
51717         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51718         Reported by Derek Price.
51719         (Include): Add "timespec.h".
51720
51721         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51722
51723 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51724
51725         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51726         to detect nanosleep bug.
51727
51728 2005-03-01  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51731
51732 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51733
51734         * modules/gethrxtime: New file.
51735         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51736         (Depends-on): Add gethrxtime.
51737         (configure.ac): Add gl_XNANOSLEEP.
51738         (Makefile.am): Remove lib_SOURCES line.
51739
51740 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51743         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51744
51745 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51748         * lib/timespec.h (gettime): Return void, since it always
51749         succeeds now.  All uses changed.
51750         * lib/gettime.c (gettime) Likewise.
51751         [HAVE_NANOTIME]: Prefer nanotime.
51752         Assume gettimeofday succeeds, as POSIX requires.
51753         Assime time () succeeds, since other code already does.
51754         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51755         (timespec_subtract): Remove.
51756         (NANOSLEEP_BUG_WORKAROUND): New constant.
51757         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51758         things considerably.  Use it only on GNU/Linux hosts, since the
51759         workaround shouldn't be needed elsewhere.
51760
51761 2005-02-24  Bruno Haible  <bruno@clisp.org>
51762
51763         * modules/gettext (Files): Add m4/glibc2.m4.
51764
51765 2005-02-24  Bruno Haible  <bruno@clisp.org>
51766
51767         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51768         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51769         * m4/progtest.m4:
51770         Update from GNU gettext 0.14.2.
51771         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51772
51773 2005-02-24  Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51776         * lib/config.charset: Update from GNU gettext 0.14.2.
51777
51778 2005-02-24  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/gettext.h: Update from GNU gettext 0.14.2.
51781
51782 2005-02-23  Simon Josefsson  <jas@extundo.com>
51783
51784         * m4/iconvme.m4: New file.
51785
51786 2005-02-23  Jim Meyering  <jim@meyering.net>
51787
51788         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51789         change.
51790         Thanks to Bruno Haible for catching it.
51791
51792 2005-02-22  Simon Josefsson  <jas@extundo.com>
51793
51794         * modules/iconvme: New file.
51795
51796         * MODULES.html.sh: Add iconvme.
51797
51798 2005-02-22  Simon Josefsson  <jas@extundo.com>
51799
51800         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51801
51802 2005-02-22  Simon Josefsson  <jas@extundo.com>
51803
51804         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51805
51806 2005-02-22  Jim Meyering  <jim@meyering.net>
51807
51808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51809         s/ifndef/ifdef/.
51810
51811 2005-02-20  Neil Conway  <neilc@samurai.com>
51812
51813         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51814         returned by OSX/Darwin if the specified buffer is not large
51815         enough for the hostname.
51816
51817 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51818
51819         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51820         pass it to _help, otherwise the latter coredumps trying to
51821         dereference state.root_argp.
51822
51823 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51824
51825         * modules/chdir-long (Depends-on): Add memrchr.
51826         * modules/memrchr (Files): Add lib/memrchr.h.
51827         (Include): "memrchr.h".
51828
51829 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51832
51833 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * lib/memrchr.h: New file.
51836         * lib/chdir-long.c: Include it.
51837         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51838         Don't bother including stddef.h.
51839
51840 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51841
51842         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51843         inclusion.
51844         Include <sys/types.h>, for dev_t.
51845         (ME_DUMMY, ME_REMOTE): Move from here....
51846         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51847         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51848         Dmitry V. Levin.
51849         Include mountlist.h first, to test the interface.
51850
51851 2005-01-29  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/progname.c (program_name): Initialize.
51854         Needed when linking statically on MacOS X.
51855
51856 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         Sync from coreutils.
51859         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51860         (Depends-on): Add c-strtod.
51861         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51862
51863 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51864
51865         Sync from coreutils.
51866         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51867
51868         Remove files that are specific to coreutils.
51869         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51870
51871 2005-01-28  Bruno Haible  <bruno@clisp.org>
51872
51873         * modules/javacomp: New file.
51874         * MODULES.html.sh (Java): Add javacomp.
51875
51876 2005-01-28  Bruno Haible  <bruno@clisp.org>
51877
51878         * m4/javacomp.m4: New file, from GNU gettext.
51879
51880 2005-01-28  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/javacomp.sh.in: New file, from GNU gettext.
51883         * lib/javacomp.h: New file, from GNU gettext.
51884         * lib/javacomp.c: New file, from GNU gettext.
51885
51886 2005-01-26  Simon Josefsson  <jas@extundo.com>
51887
51888         * lib/gai_strerror.c: Use GPL in header.
51889
51890 2005-01-26  Bruno Haible  <bruno@clisp.org>
51891
51892         * modules/javaexec: New file.
51893         * MODULES.html.sh (Java): Add javaexec.
51894
51895 2005-01-26  Bruno Haible  <bruno@clisp.org>
51896
51897         * m4/javaexec.m4: New file, from GNU gettext.
51898
51899 2005-01-26  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/javaexec.sh.in: New file, from GNU gettext.
51902         * lib/javaexec.h: New file, from GNU gettext.
51903         * lib/javaexec.c: New file, from GNU gettext.
51904
51905 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51906
51907         * modules/lchown (Depends-on): Remove lchown.h
51908
51909 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51910
51911         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51912         must be defined if the header file was not found, in order
51913         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51914
51915 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51916
51917         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51918         initializers for struct pentry_state.
51919         (__argp_error): Check return value of __asprintf
51920         (__argp_failure): Translate error message
51921
51922         * lib/argp-parse.c: Removed braces around the expansion of N_()
51923
51924 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51925
51926         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51927         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51928         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51929         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51930         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51931         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51932         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51933         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51934         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51935         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51936         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51937         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51938         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51939         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51940         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51941         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51942         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51943         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51944         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51945         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51946         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51947         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51948         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51949         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51950         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51951         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51952         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51953         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51954         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51955         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51956         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51957         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51958         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51959         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51960         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51961         Use an all-permissive copyright notice, recommended by RMS.
51962
51963 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51964
51965         * modules/chdir-long (Depends-on): Remove mempcpy.
51966
51967 2005-01-21  Jim Meyering  <jim@meyering.net>
51968
51969         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51970         same value as for Solaris 9.
51971
51972         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51973         component length.  This included changing the parameter to be
51974         of type `char *' rather than `char const *'.
51975         * lib/chdir-long.h (chdir_long): Update prototype.
51976
51977         * lib/openat.c (fdopendir, fstatat): New functions.
51978         * lib/openat.h: Include headers required for use of DIR and struct
51979         stat.
51980         [AT_SYMLINK_NOFOLLOW]: Define.
51981         (fdopendir, fstatat): Add prototypes.
51982
51983 2005-01-21  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/classpath: New file.
51986         * MODULES.html.sh (Java): Add classpath.
51987
51988 2005-01-21  Bruno Haible  <bruno@clisp.org>
51989
51990         * lib/classpath.h: New file, from GNU gettext.
51991         * lib/classpath.c: New file, from GNU gettext.
51992
51993 2005-01-20  Simon Josefsson  <jas@extundo.com>
51994
51995         * modules/version-etc-fsf: New file.
51996
51997 2005-01-20  Simon Josefsson  <jas@extundo.com>
51998
51999         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52000         * lib/version-etc.c: Remove version_etc_copyright.
52001         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52002         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52003
52004 2005-01-20  Simon Josefsson  <jas@extundo.com>
52005
52006         * lib/base64.h (isbase64): Add.
52007
52008         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52009         using a unsigned prototype, don't inline.
52010         (base64_decode): Use it.
52011
52012 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52013
52014         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52015         it.
52016
52017 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52018
52019         * lib/save-cwd.c (save_cwd): Remove code to support the case
52020         where fchdir is missing or flaky.
52021
52022 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52023
52024         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52025
52026 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52027
52028         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52029         AC_LIBSOURCES now does this.
52030         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52031         with new ullong_max module.
52032
52033 2005-01-19  Bruno Haible  <bruno@clisp.org>
52034
52035         * modules/sh-quote: New file.
52036         * MODULES.html.sh (Executing programs): Add sh-quote.
52037
52038 2005-01-19  Bruno Haible  <bruno@clisp.org>
52039
52040         * lib/sh-quote.h: New file, from GNU gettext.
52041         * lib/sh-quote.c: New file, from GNU gettext.
52042
52043 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52044
52045         Merge from coreutils.
52046         * m4/ullong_max.m4: New file.
52047         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52048         (gl_MACROS): Assume localeconv exists.
52049
52050 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52051
52052         Merge changes from coreutils, as described below in several
52053         changelogs dated today.
52054
52055         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52056         (O_DIRECTORY): Remove; not needed here, since "." must be
52057         a directory.  All uses removed.
52058         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52059         universal on Suns, and we also need to test for IRIX.
52060         Revamp code to use 'if' rather than '#if'.
52061         Avoid unnecessary comparison of cwd->desc to 0.
52062
52063         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52064         for known valid error numbers rather than observed invalid ones.
52065
52066 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52067
52068         * modules/ullong_max: New file.
52069
52070         * modules/chdir-long, modules/openat: New files.
52071         * modules/save-cwd (Depends-on): Depend on chdir-long.
52072         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52073
52074 2005-01-18  Jim Meyering  <jim@meyering.net>
52075
52076         Merge from coreutils.
52077         * m4/chdir-long.m4, m4/openat.m4: New files.
52078         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52079         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52080         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52081         is sane and DOES follow symlinks.  Besides, testing 20 different
52082         systems found no broken chown implementations.
52083         Prompted by a change in rsync's copy of this macro.
52084         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52085
52086         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52087
52088         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52089         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52090         NULL-means-set-to-current-time semantics.
52091         Remove temporary file immediately, rather than waiting
52092         for configure's at-exit trap code to do it.
52093
52094 2005-01-18  Jim Meyering  <jim@meyering.net>
52095
52096         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52097
52098         * lib/utimens.c (futimens): Account for the fact that futimes
52099         can also fail with errno == ENOSYS or errno == ENOENT.
52100         Patch from Dmitry V. Levin.
52101
52102         Change the name of the robust chdir function from chdir to chdir_long.
52103         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52104         (restore_cwd): Use chdir_long, not chdir.
52105         * lib/chdir-long.c: Renamed from chdir.c.
52106         * lib/chdir-long.h: Renamed from chdir.h.
52107         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52108         Hurd.
52109
52110 2005-01-18  Bruno Haible  <bruno@clisp.org>
52111
52112         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52113         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52114         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52115         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52116         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52117         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52118         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52119         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52120         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52121         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52122         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52123         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52124         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52125         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52126         Use an all-permissive copyright notice, recommended by RMS.
52127
52128 2005-01-18  Bob Proulx  <bob@proulx.com>
52129
52130         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52131         simplify offsetof() macro construct to avoid compile failure with
52132         native HP-UX 11.0 ANSI C compiler.
52133
52134 2005-01-17  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52137         redundant because stpncpy.m4 takes care of it.
52138
52139 2005-01-17  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52142
52143 2005-01-17  Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52146         used.
52147
52148 2005-01-17  Bruno Haible  <bruno@clisp.org>
52149
52150         * lib/fwriteerror.h (fwriteerror): Change specification to include
52151         fclose.
52152         * lib/fwriteerror.c: Include <stdbool.h>.
52153         (fwriteerror): At the end, close the file stream. Record whether
52154         stdout was already closed.
52155
52156 2005-01-17  Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/execute.c (environ): Declare if needed.
52159         * lib/pipe.c (environ): Likewise.
52160         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52161
52162 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52163
52164         * modules/argp: Depend on vsnprintf
52165
52166 2005-01-10  Jim Meyering  <jim@meyering.net>
52167
52168         * modules/closeout (Depends-on): Add atexit.
52169
52170 2005-01-06  Bruno Haible  <bruno@clisp.org>
52171
52172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52173
52174 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52175
52176         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52177         definitions to be after all include files, to avoid collisions.
52178         Problem reported by Bob Proulx.
52179
52180 2005-01-04  Jim Meyering  <jim@meyering.net>
52181
52182         Changes imported from coreutils.
52183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52184         as the mkstemp template, use a temporary directory and an
52185         8.3-friendly template to avoid trouble on systems like DJGPP.
52186         Reported by Juan M. Guerrero via Stepan Kasal.
52187         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52188         close. Remove the temporary directory right away, rather than waiting
52189         for configure's at-exit trap code to do it.
52190         Suggestion from Stepan Kasal.
52191
52192 2005-01-01  Simon Josefsson  <jas@extundo.com>
52193
52194         * gnulib-tool: Print #include directives when --import'ing.
52195
52196 2004-12-28  Simon Josefsson  <jas@extundo.com>
52197
52198         * tests/test-base64.c: Include required header files.  Remove
52199         unused variables.
52200
52201 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * modules/error (Depends-on): Remove gettext.
52204
52205 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52208         not needed.  This removes a dependency on the gettext module.
52209         [defined _LIBC]: Do not include <libintl.h>; not needed.
52210
52211 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52212
52213         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52214         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52215
52216 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52217
52218         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52219         HAVE_DECL_STRTOLD.
52220
52221 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52222
52223         * modules/getdate (Depends-on): Remove alloca-opt.
52224
52225 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52226
52227         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52228
52229 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52230
52231         * lib/argp-parse.c: Include <stddef.h>.
52232         (alignof, alignto): New macros.
52233         (parser_init): Don't assume that void * is aligned sufficiently
52234         for struct option.
52235
52236         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52237         need to extend the stack.
52238         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52239         large.
52240
52241 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52242
52243         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52244
52245 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52246
52247         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52248         (2004-10-24) change.  Apparently this was a false alarm.
52249
52250         * modules/getdate: Depend on alloca-opt, not alloca.
52251
52252 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52253
52254         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52255         Remove now-obsolete comment about AIX.
52256         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52257         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52258         (YYMAXDEPTH): New macro.
52259
52260 2004-12-18  Simon Josefsson  <jas@extundo.com>
52261
52262         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52263
52264 2004-12-18  Bruno Haible  <bruno@clisp.org>
52265
52266         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52267
52268 2004-12-18  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/fatal-signal.c (fatal_signals): Make non-const.
52271         (init_fatal_signals): New function.
52272         (uninstall_handlers, install_handlers): Ignore signals that were set to
52273         SIG_IGN.
52274         (at_fatal_signal): Call init_fatal_signals.
52275         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52276         SIG_IGN.
52277         Reported by Paul Eggert.
52278
52279 2004-12-18  Bruno Haible  <bruno@clisp.org>
52280
52281         * doc/alloca.texi: New file.
52282         * doc/alloca-opt.texi: New file.
52283
52284 2004-12-17  Jim Meyering  <jim@meyering.net>
52285
52286         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52287         Otherwise, install-sh could exit with improper exit status when
52288         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52289
52290 2004-12-16  Simon Josefsson  <jas@extundo.com>
52291
52292         * tests/test-base64.c: Add license.
52293
52294 2004-12-15  Stepan Kasal  <address@hidden>
52295
52296         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52297
52298 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52299
52300         * modules/getcwd (Files): Add m4/d-ino.m4.
52301         Suggested by Mark D. Baushke.
52302
52303 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52304
52305         * lib/getdate.y (textint): New member "negative".
52306         (time_zone_hhmm): New function.
52307         Expect 14 shift-reduce conflicts, not 13.
52308         (o_colon_minutes): New rule.
52309         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52310         (yylex): Set the "negative" member of signed numbers.
52311
52312 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52313
52314         * doc/getdate.texi (Time of day items, Time zone items):
52315         Describe new formats +00:00, UTC+00:00.
52316
52317 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52320         spurious "-l"s.  Problem reported by Stepan Kasal.
52321
52322 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52323
52324         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52325         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52326
52327 2004-12-04  Simon Josefsson  <jas@extundo.com>
52328
52329         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52330         Vandoorselaere <yoann@prelude-ids.org>.
52331
52332 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52333
52334         Changes imported from coreutils.
52335         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52336         exist.
52337         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52338
52339 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52340
52341         Changes imported from coreutils.
52342         * lib/hard-locale.c: Assume <locale.h> exists.
52343         Include "strdup.h".
52344         (GLIBC_VERSION): New macro.
52345         (hard_locale): Assume setlocale exists.
52346         Rewrite to avoid #ifdef.
52347         Use strdup rather than malloc + strcpy.
52348         * lib/human.c: Assume <locale.h> exists.
52349         (human_readable): Assume localeconv exists.
52350
52351 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         * modules/hard-locale (Depends-on): Add strdup.
52354
52355 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52356
52357         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52358         convert T2, not T.  (Imported from libc.)
52359
52360 2004-11-30  Simon Josefsson  <jas@extundo.com>
52361
52362         * modules/restrict (License): Change to LGPL.
52363
52364 2004-11-30  Simon Josefsson  <jas@extundo.com>
52365
52366         * m4/restrict.m4: Add copyright and copying conditions.
52367
52368 2004-11-30  Simon Josefsson  <jas@extundo.com>
52369
52370         * m4/base64.m4: New file.
52371
52372 2004-11-30  Simon Josefsson  <jas@extundo.com>
52373
52374         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52375         base64.
52376
52377         * tests/test-base64.c: New file.
52378
52379         * modules/base64: New file.
52380
52381 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52382
52383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52384         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52385
52386         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52387
52388 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52391         (__getcwd.c): Don't restore errno; glibc doesn't.
52392         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52393         first, falling back to our code only if its results look suspicious.
52394         Ensure that the resulting buffer is only as large as necessary.
52395
52396         * lib/readutmp.c: Include readutmp.h first.
52397         Include <errno.h>, since readutmp.h no longer does that.
52398         * lib/readutmp.h: Don't include <errno.h>,
52399         <sys/param.h>, <time.h>; not needed to establish interface.
52400         (errno): Remove decl.
52401         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52402         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52403         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52404
52405 2004-11-28  Simon Josefsson  <jas@extundo.com>
52406
52407         * lib/base64.h, base64.c: New file.
52408
52409 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52412
52413 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52414
52415         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52416         (Depends-on): Remove pathmax, same.  Add mempcpy.
52417         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52418         (Makefile.am): Append getcwd.h to lib_SOURCES.
52419         (Include): Add getcwd.h.
52420         (Maintainer): Change from Jim Meyering to "all, glibc",
52421         since getdate now uses intended-for-glibc code.
52422         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52423         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52424
52425 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52426
52427         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52428         HP's ANSI C compiler.
52429         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52430         Declaring int functions causes warnings on some modern systems and
52431         shouldn't be needed to compile on ancient ones.
52432         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52433         defined.
52434
52435         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52436         with the following changes.
52437         (__set_errno): Parenthesize properly.
52438         Include <stdbool.h>.
52439         (MIN, MAX, MATCHING_INO): New macros.
52440         (__getcwd): Define with prototype, not K&R form.
52441         Use heuristics to allocate default buffer on stack if possible.
52442         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52443         behavior, and to avoid the PATH_MAX limit when computing
52444         ../../../../...
52445         Use MATCHING_INO to compare inode number to file.
52446         Check for arithmetic overflow in size calculations.
52447         Fix bug in reallocation of dot array that caused getcwd to fail
52448         on directories nested deeper than 75.
52449         Be more careful about saving errno on error.
52450         Do not use realloc; use only free+malloc, as this is a bit
52451         more flexible and avoids a needless copy operation.
52452         Do not inspect st_dev and st_ino for symbolic links; POSIX
52453         doesn't specify the latter.
52454         Check for closedir errors.
52455         Avoid needless casts.
52456         Use "#ifdef weak_alias" around weak_alias, to be like other
52457         glibc code.
52458         The following changes to getcwd.c have effect only when used in
52459         gnulib; they have no effect inside glibc proper.
52460         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52461         as alloca isn't used.
52462         (alloca, __alloca): Likewise.
52463         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52464         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52465         unconditionally, as gnulib assumes C89 or better.
52466         Do not include <sys/param.h>.
52467         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52468         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52469         better.
52470         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52471         Include <dirent.h> in a way that is compatible with modern Autoconf.
52472         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52473         New macros, if not already defined.
52474         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52475         Use "_LIBC", not "defined _LIBC", for consistency.
52476         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52477         a mempcpy module.
52478         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52479         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52480         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52481         credit only to Jim Meyering and adjust the copyright dates.
52482         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52483         <stdlib.h>, <unistd.h>, "pathmax.h".
52484         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52485         (INITIAL_BUFFER_SIZE): Remove.
52486         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52487
52488 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52491         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52492         Use the _ONCE methods, for efficiency.
52493         Check for fcntl.h.  In test program, include <errno.h>
52494         and <fcntl.h> if available.  Remove old K&R cruft from
52495         test program.  Check for common errors in GNU/Linux,
52496         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52497         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52498         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52499         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52500         name accordingly.
52501         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52502         accommodate new getcwd.c.
52503         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52504         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52505         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52506         that's all we need now.
52507
52508 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52509
52510         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52511         argp-parse.c depends on getopt internals, that means we should
52512         always use our getopt, to be on the safe side.
52513         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52514         order not to spoil the result of an eventual previous invocation
52515         of gl_GETOPT_SUBSTITUTE.
52516
52517 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52518
52519         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52520         redefinition warnings. To avoid them, include the defines
52521         in `#if !defined __need_getopt ... #endif'. The only place
52522         where __getopt_argv_const is used is in definitions
52523         of getopt_long and getopt_long_only below, which are as well
52524         protected by `#ifndef __need_getopt'.
52525         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52526         __need_getopt after including <stdio.h> and <unistd.h> These
52527         headers might have defined it.
52528
52529 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52532
52533 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52534
52535         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52536         (futimens): New function, which uses futimes if available.
52537         (futimens, utimens): Support timespec==NULL, with same semantics
52538         as utime and utimens.
52539         * lib/utimens.h (futimens): New decl.
52540
52541 2004-11-23  Jim Meyering  <jim@meyering.net>
52542
52543         * lib/getopt_.h: Remove trailing blanks.
52544
52545 2004-11-23  Jim Meyering  <jim@meyering.net>
52546
52547         * lib/__fpending.c: Add comment.
52548
52549 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52550
52551         * modules/canonicalize (Depends-on): Add xreadlink.
52552         Problem reported by James Youngman.
52553
52554 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52555
52556         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52557         New macros.
52558         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52559         optopt): Use them instead of invoking ## directly; otherwise, the
52560         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52561
52562 2004-11-19  Bruno Haible  <bruno@clisp.org>
52563
52564         * lib/strtok_r.c: Move comments from here...
52565         * lib/strtok_r.h: ... to here.
52566
52567 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52568
52569         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52570         implementations that mishandle size_t overflow.
52571
52572 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52573
52574         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52575         might fail.  Problem reported by Yoann Vandoorselaere.
52576         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52577         implementations that mishandle size_t overflow.
52578
52579 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         * modules/canon-host (Depends-on): Add strdup.
52582
52583 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52586
52587 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52588
52589         * lib/canon-host.c: Include "strdup.h".
52590         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52591         Use strdup instead of malloc/strcpy to duplicate strings.
52592
52593         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52594         (human_space_before_unit): New constant.
52595         * lib/human.c (human_readable): Support it.
52596
52597         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52598         (xgetcwd): Set errno correctly when failing.
52599         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52600         the failure is actually due to a PATH_MAX problem.
52601
52602         Further getopt changes to make it more likely that glibc will
52603         buy the changes back.
52604         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52605         (getopt): Use it, so to preserve glibc semantic
52606         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52607         when compiling for libc.
52608         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52609         (getopt_long, getopt_long_only): Use it.
52610
52611         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52612         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52613         (getopt): Argv is now char * const *, as per standard.
52614         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52615         not char *__getopt_argv_const *.
52616         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52617         _getopt_long_only_r): Likewise.
52618         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52619         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52620         _getopt_long_r, _getopt_long_only_r): Likewise.
52621         * lib/getopt_.h (__getopt_argv_const): Remove.
52622         (getopt): Argv is now char * const *, as per standard.
52623
52624         * lib/getdate.y (tORDINAL): New token.
52625         (day, relunit): Allow it for relative times.
52626         (relative_time_table): Use tORDINAL for ordinals.
52627
52628 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52631         Document that "second" isn't allowed as an ordinal number.
52632
52633 2004-11-16  Jim Meyering  <jim@meyering.net>
52634
52635         * modules/closeout (Depends-on): Add fpending.
52636
52637 2004-11-15  Jim Meyering  <jim@meyering.net>
52638
52639         * lib/closeout.c: Include "__fpending.h" once again.
52640         Include <stdbool.h>.
52641         (close_stdout): Don't fail just because stdout was closed initially,
52642         since some programs don't write to stdout in the normal course of
52643         operation (other than --version and --help), and we don't want this
52644         function to make e.g. `touch file >&-' fail.
52645         But do fail if it was closed and someone has tried to write to it.
52646         E.g., `printf foo >&-' must fail.
52647
52648 2004-11-13  Jim Meyering  <jim@meyering.net>
52649
52650         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52651
52652 2004-11-12  Simon Josefsson  <jas@extundo.com>
52653
52654         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52655         small doc fix is still pending.
52656
52657 2004-11-11  Simon Josefsson  <jas@extundo.com>
52658
52659         * modules/strtok_r: New file.
52660
52661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52662         strtok_r.
52663
52664 2004-11-11  Simon Josefsson  <jas@extundo.com>
52665
52666         * m4/strtok_r.m4: New file.
52667
52668         * m4/getopt.m4: Replace opterr.
52669
52670 2004-11-11  Simon Josefsson  <jas@extundo.com>
52671
52672         * lib/strtok_r.h, strtok_r.c: New file.
52673
52674 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52677         of replacing opterr, getopt, etc.  This should handle the
52678         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52679
52680 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52681
52682         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52683         we can stop lying to compilers about the constness of argv when we
52684         are compiled outside glibc.
52685         (getopt, getopt_long, getopt_long_only): Use it.
52686         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52687         _getopt_internal, getopt): Likewise.
52688         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52689         _getopt_long_only_r): Likewise.
52690         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52691         _getopt_long_r, _getopt_long_only_r): Likewise.
52692
52693         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52694         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52695         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52696         the other external symbols.
52697         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52698         declaration, since the above renaming now works around collisions.
52699
52700 2004-11-11  Jim Meyering  <jim@meyering.net>
52701
52702         * lib/linebreak.c: Remove trailing blanks.
52703         * lib/alloca_.h: Likewise.
52704         * lib/acosl.c: Likewise.
52705         * lib/euidaccess.c: Likewise.
52706         * lib/allocsa.h: Likewise.
52707
52708 2004-11-10  Simon Josefsson  <jas@extundo.com>
52709
52710         * m4/getaddrinfo.m4: New file.
52711
52712 2004-11-10  Simon Josefsson  <jas@extundo.com>
52713
52714         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52715
52716 2004-11-10  Simon Josefsson  <jas@extundo.com>
52717
52718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52719         getaddrinfo.
52720
52721         * modules/getaddrinfo: New file.
52722
52723 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52726
52727 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52728
52729         * lib/mktime.c (SHR): New macro, which is a portable
52730         substitute for >> that should work even on Crays.
52731         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52732         Problem reported by Mark D. Baushke in
52733         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52734         * lib/getdate.y (SHR): Likewise.
52735         (tm_diff): Use it.
52736         * lib/strftime.c (SHR): Likewise.
52737         (tm_diff): Use it.
52738         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52739         quote_these_too, so that right shifts are well defined.  All uses
52740         changed.
52741
52742 2004-11-10  Jim Meyering  <jim@meyering.net>
52743
52744         Ensure that no close failure goes unreported.
52745         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52746         return early when it seems there's nothing to flush.
52747         Don't include __fpending.h.
52748
52749 2004-11-10  Jim Meyering  <jim@meyering.net>
52750
52751         * modules/closeout (Depends-on): Remove fpending.
52752
52753 2004-11-10  Jim Meyering  <jim@meyering.net>
52754
52755         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52756
52757 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52758
52759         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52760         gl_FUNC_STRFTIME.
52761         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52762         and AC_REQUIRE when possible, to avoid duplicate checks.
52763         Check for <wchar.h>.
52764
52765 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52766
52767         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52768
52769 2004-11-09  Bruno Haible  <bruno@clisp.org>
52770
52771         * m4/sockpfaf.m4: New file.
52772
52773 2004-11-05  Bruno Haible  <bruno@clisp.org>
52774
52775         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52776         Reported by Mark D. Baushke <mdb@cvshome.org>.
52777
52778 2004-11-04  Bruno Haible  <bruno@clisp.org>
52779
52780         2004-09-11  Bruno Haible  <bruno@clisp.org>
52781                 * allocsa.valgrind: New file.
52782         2004-02-06  Bruno Haible  <bruno@clisp.org>
52783                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52784                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52785                 Reported by Christopher Seip <chris.seip@hp.com>.
52786
52787 2004-11-04  Bruno Haible  <bruno@clisp.org>
52788
52789         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52790         (Makefile.am): Distribute it.
52791
52792 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52795         with errno == ERANGE if the buffer is too small.
52796         Problem reported by Mark D. Baushke.
52797
52798 2004-11-03  Albert Chin  <china@thewrittenword.com>
52799             Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52802         equivalent, substitute $ac_type for equivalent type rather than
52803         blindly using uint32_t *always* which won't work if uint32_t is not
52804         available.  Define _UINT32_T to work around typedef of uint32_t if
52805         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52806         2.5.1.
52807
52808 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52809
52810         * m4/jm-macros.m4: Sync from coreutils.
52811         (gl_MACROS): Check for mbrlen, for pathchk.
52812         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52813
52814 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         * lib/xreadlink.c (MAXSIZE): New macro.
52817         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52818         size does not exceed MAXSIZE.  Avoid cast.
52819         As suggested by Mark D. Baushke in
52820         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52821         if readlink fails with buffer size just under MAXSIZE, try again
52822         with MAXSIZE.
52823
52824 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52827
52828 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52829         and  Paul Eggert  <eggert@cs.ucla.edu>
52830
52831         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52832         (get_date): Overparenthesize to avoid GCC warning.
52833
52834 2004-11-02  Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52837         returns void.
52838
52839 2004-11-02  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52842         function returns void.
52843
52844 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52847         fflush_unlocked, flockfile, funlockfile, funlockfile,
52848         fputs_unlocked, putc_unlocked.
52849
52850 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52851
52852         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52853         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52854         already declared.
52855
52856 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52857
52858         * modules/getdate (Files): Add doc/getdate.texi.
52859         (Depends-on): Add setenv, xalloc.
52860
52861 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * lib/getdate.y: Add support for TZ="foo" within a date string.
52864         Fix some bugs near time_t boundaries.  Reject dates with
52865         out-of-range components, e.g., "Sept 31".
52866         Include <stdlib.h>, "setenv.h", "xalloc.h".
52867         (ISDIGIT_LOCALE): Remove; unused.
52868         Note that the TZ and time functions used here are not reentrant.
52869         (mktime_ok, get_tz): New functions.
52870         (TZBUFSIZE): New constant.
52871         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52872         This requires that we sometimes generate our own TZ="XXX..." setting.
52873
52874 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52875
52876         * doc/getdate.texi: New file, from coreutils with modifications for
52877         the new TZ parsing.
52878
52879 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52880
52881         * lib/mktime.c (not_equal_tm): Remove redundant check.
52882
52883 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52884
52885         * modules/regex (lib_SOURCES): Add regex.c.
52886         Reported by James Youngman in
52887         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52888
52889 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * lib/getdate.y: Use Bison 1.875 features, and some minor
52892         code cleanups.  This change does not affect semantics.
52893         Don't include <stdlib.h>; no longer needed.
52894         Don't include unlocked-io.h; only the "#if TEST" code uses
52895         stdio, and performance isn't crucial there.
52896         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52897         Bison 1.875 features as described below.
52898         All uses of "PC." replaced by "pc->".
52899         (YYSTYPE): Add a forward declaration.
52900         (yylex, yyerror): Use full prototypes in forward decls.
52901         Use "%pure-parser" rather than obsolescent "%pure_parser".
52902         Use %parse-param and %lex-param instead of obsolescent
52903         YYPARSE_PARAM and YYLEX_PARAM.
52904         (meridian_table, month_and_day_table, time_units_table,
52905         relative_time_table, time_zone_table, military_table,
52906         lookup_zone, lookup_word, get_date):
52907         Use NULL instead of 0 where appropriate.
52908         (to_hour): Avoid abort (), to avoid a dependency on
52909         stdlib.h.
52910         (yyerror, yylex): Now accepts parser_control * arg.
52911         (main) [TEST]: Use '\0' rather than 0 for char.
52912
52913 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52916
52917 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52918
52919         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52920         It's now the caller's responsibility to handle the case where
52921         !HAVE_GETPAGESIZE && !defined getpagesize.
52922
52923         * lib/mktime.c (leapyear): Arg is long int, not int.
52924
52925 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52928
52929 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52930
52931         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52932         missing.  Problem reported by James Youngman.
52933
52934 2004-10-16  Simon Josefsson  <jas@extundo.com>
52935
52936         * gnulib-tool: Fix comments.  Fix parse problem.
52937         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52938
52939 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52940
52941         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52942         implementation of getopt_long.  Problem reported by Alexander Taler in:
52943         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52944
52945 2004-10-15  Bruno Haible  <bruno@clisp.org>
52946
52947         * gnulib-tool: Untabify. Initialize supplied_libname.
52948         (func_usage): More homogenous output.
52949         (func_modules_transitive_closure, func_modules_to_filelist,
52950         func_emit_lib_Makefile_am): New functions.
52951         (func_import): New function, extracted from big case statement. Use
52952         func_get_license, func_modules_transitive_closure,
52953         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52954         opt_lgpl. Don't use test -a, as it's not portable.
52955         (func_create_testdir): Use func_modules_transitive_closure,
52956         func_modules_to_filelist, func_emit_lib_Makefile_am.
52957
52958 2004-10-15  Bruno Haible  <bruno@clisp.org>
52959
52960         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52961
52962 2004-10-15  Bruno Haible  <bruno@clisp.org>
52963
52964         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52965         the portions belonging to each module.
52966         Suggested by Derek Robert Price <derek@ximbiot.com>.
52967
52968 2004-10-12  Simon Josefsson  <jas@extundo.com>
52969
52970         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52971         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52972         to real functions.
52973
52974 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52975
52976         * modules/vsnprintf: New file.
52977
52978 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52979
52980         * m4/vsnprintf.m4: New file.
52981
52982 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52983
52984         * lib/vsnprintf.h: New file.
52985         * lib/vsnprintf.c: New file.
52986
52987 2004-10-11  Bruno Haible  <bruno@clisp.org>
52988
52989         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52990         vsnprintf.
52991
52992 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52993
52994         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52995
52996 2004-10-07  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52999         fits into the provided buffer.
53000
53001 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53002
53003         * lib/diacrit.c, diacrit.h: Add GPL notice.
53004
53005         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53006         notice.
53007         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53008         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53009         This avoids a potential constant-folding bug.
53010
53011 2004-10-05  Bruno Haible  <bruno@clisp.org>
53012
53013         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53014         for the declaration of strsep.
53015
53016 2004-10-05  Bruno Haible  <bruno@clisp.org>
53017
53018         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53019
53020 2004-10-04  Simon Josefsson  <jas@extundo.com>
53021
53022         * modules/memmem: New file.
53023         * tests/test-memmem.c: New file.
53024         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53025
53026 2004-10-04  Simon Josefsson  <jas@extundo.com>
53027
53028         * m4/memmem.m4: New file.
53029
53030 2004-10-04  Simon Josefsson  <jas@extundo.com>
53031
53032         * lib/memmem.h: New file.
53033         * lib/memmem.c: New file, taken from glibc.
53034
53035 2004-10-04  Simon Josefsson  <jas@extundo.com>
53036
53037         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53038         '#ifdef USE_UNLOCKED_IO'.
53039
53040 2004-10-04  Simon Josefsson  <jas@extundo.com>
53041
53042         * config/srclist.txt: Add memmem from glibc.
53043
53044 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53045
53046         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53047
53048         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53049         modules/exclude, modules/getdate, modules/getline,
53050         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53051         modules/getusershell, modules/linebuffer, modules/md5,
53052         modules/mountlist, modules/posixtm, modules/readtokens,
53053         modules/readutmp, modules/regex, modules/sha1,
53054         modules/version-etc, modules/yesno:
53055         Remove dependency on unlocked-io.
53056
53057 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53058
53059         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53060
53061         * m4/unlocked-io.m4: Add copyright notice.
53062         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53063
53064 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53067         * lib/xmalloc.c (xmemdup): Likewise.
53068         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53069         XFREE): Remove these long-obsolescent macros.
53070         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53071         * lib/xstrdup.c: Remove.
53072
53073         * lib/regex.c (re_comp): Cast gettext return value to char *,
53074         Problem reported by Martin Neitzel via Mark D. Baushke.
53075
53076 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53079         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53080         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53081         regex.c, sha1.c, version-etc.c, yesno.c:
53082         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53083         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53084         the includer's responsibility.
53085
53086         Sync from coreutils.
53087
53088         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53089         points to the start of a string, as the C Standard says the
53090         resulting behavior is undefined.
53091
53092         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53093         simple -> simple_backups, numbered_existing ->
53094         numbered_existing_backups, numbered -> numbered_backups
53095         to avoid shadowing problems.  All uses changed.
53096         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53097         * lib/backupfile.c (check_extension, numbered_backup):
53098         Rename locals to avoid shadowing 'basename'.
53099         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53100         once.
53101
53102         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53103         * lib/.cvsignore: Add getopt.h.
53104
53105 2004-10-04  Bruno Haible  <bruno@clisp.org>
53106
53107         * modules/README: New file.
53108         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53109         not a module.
53110
53111 2004-10-02  Jim Meyering  <jim@meyering.net>
53112
53113         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53114
53115 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53116
53117         * modules/strsep: New file.
53118
53119 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53120
53121         * m4/strsep.m4: New file.
53122
53123 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53124
53125         * lib/strsep.h: New file.
53126         * lib/strsep.c: New file.
53127
53128 2004-10-01  Simon Josefsson  <jas@extundo.com>
53129
53130         * lib/snprintf.c (snprintf): Handle size==0.
53131
53132 2004-10-01  Simon Josefsson  <jas@extundo.com>
53133             Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53136         (snprintf): Declare 'args'.
53137
53138 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53139
53140         * lib/snprintf.c: Remove comments as to why each header is needed.
53141
53142 2004-10-01  Bruno Haible  <bruno@clisp.org>
53143
53144         * MODULES.html.sh: Add strsep.
53145
53146 2004-09-30  Simon Josefsson  <jas@extundo.com>
53147
53148         * modules/snprintf: New file.
53149
53150 2004-09-30  Simon Josefsson  <jas@extundo.com>
53151
53152         * m4/snprintf.m4: New file.
53153
53154 2004-09-30  Simon Josefsson  <jas@extundo.com>
53155
53156         * lib/snprintf.h, lib/snprintf.c: New files.
53157
53158 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53159
53160         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53161         (hol_entry_help): Never translate an empty string.
53162         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53163         * lib/argp.h (OPTION_NO_TRANS): New option.
53164
53165 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53166
53167         * modules/argp (Maintainer): Replace Simon Josefsson
53168         by Sergey Poznyakoff.
53169
53170 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53171
53172         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53173         changes merged back into glibc.
53174
53175 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53176
53177         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53178
53179 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53180
53181         * lib/xvasprintf.c: Include xalloc.h.
53182         (xvasprintf): Use xalloc_die, not xmalloc_die.
53183
53184 2004-09-29  Bruno Haible  <bruno@clisp.org>
53185
53186         * modules/alloca-opt: New file, derived from modules/alloca.
53187         * modules/allocsa: Depend on alloca-opt instead of alloca.
53188         * modules/setenv: Likewise.
53189         * modules/vasnprintf: Likewise.
53190         * MODULES.html.sh: Add alloca-opt.
53191
53192 2004-09-28  Simon Josefsson  <jas@extundo.com>
53193
53194         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53195         LGPL, and to replace license template from GPL to LGPL.
53196
53197 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         * modules/dummy: Change license to LGPL.
53200
53201 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53204
53205 2004-09-24  Simon Josefsson  <jas@extundo.com>
53206
53207         * modules/minmax (License): Change from GPL to LGPL.
53208
53209 2004-09-23  Simon Josefsson  <jas@extundo.com>
53210
53211         * gnulib-tool (--import): Typo.
53212
53213 2004-09-23  Simon Josefsson  <jas@extundo.com>
53214
53215         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53216
53217 2004-09-22  Bruno Haible  <bruno@clisp.org>
53218
53219         * modules/*: Add 'License' field.
53220         * gnulib-tool: Accept --extract-license option.
53221         (func_get_license): New function.
53222
53223 2004-09-21  Bruno Haible  <bruno@clisp.org>
53224
53225         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53226         Reported by Simon Josefsson.
53227
53228 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53231         gl_AC_TYPE_LONG_LONG.
53232
53233 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53236
53237 2004-09-18  Simon Josefsson  <jas@extundo.com>
53238         and  Paul Eggert  <eggert@cs.ucla.edu>
53239
53240         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53241         calls with autoreconf.  Define GL_LIB.
53242
53243 2004-09-14  Karl Berry  <karl@gnu.org>
53244
53245         * config/srclist.txt: unsync setenv.c, sigh.
53246
53247 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53248
53249         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53250         Problem reported by Bruno Haible in:
53251         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53252
53253 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * config/srclist.txt: Comment out argp-pvh.c.
53256
53257 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53260         in case some system header has #define'd it.  Problem reported by
53261         Soeren D. Schulze in
53262         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53263
53264 2004-09-09  Karl Berry  <karl@gnu.org>
53265
53266         * regex.[ch]: delete from the root.  These were supposed to be
53267                 synced with emacs cvs, but this has not happened for about
53268                 a year, and anyway nothing else uses emacs regex.[ch].
53269                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53270                 lib/regex[.ch] is untouched.
53271
53272 2004-09-09  Bruno Haible  <bruno@clisp.org>
53273
53274         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53275
53276 2004-09-09  Bruno Haible  <bruno@clisp.org>
53277
53278         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53279         modifications.
53280         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53281
53282 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53283
53284         * modules/xvasprintf: New file.
53285         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53286
53287 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53288
53289         * lib/xvasprintf.h: New file.
53290         * lib/xvasprintf.c: New file.
53291         * lib/xasprintf.c: New file.
53292
53293 2004-09-08  Bruno Haible  <bruno@clisp.org>
53294
53295         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53296
53297 2004-09-08  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53300         length is > INT_MAX.
53301         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53302         more.
53303
53304 2004-09-08  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/stdint_.h: New file, taken from GNU clisp.
53307
53308 2004-09-08  Bruno Haible  <bruno@clisp.org>
53309             Oskar Liljeblad  <oskar@osk.mine.nu>
53310
53311         * modules/stdint: New file.
53312         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53313
53314 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         Import from coreutils.
53317         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53318         strings on unbounded length.  alloca's performance benefits aren't
53319         that important here.
53320         (V_STRDUP): Remove.
53321         (parse_with_separator): New function, with most of the internals
53322         of the old parse_user_spec.  Allow user to omit both user and group,
53323         for compatibility with FreeBSD.
53324         Clone only the user name, not the entire spec.
53325         Do not set *uid, *gid unless entirely successful.
53326         Avoid memory leak in some failing cases.
53327         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53328         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53329         (parse_user_spec): Rewrite to use parse_with_separator.
53330
53331 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53332
53333         * modules/userspec: Don't depend on alloca.
53334
53335 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53336
53337         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53338
53339 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53340
53341         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53342         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53343         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53344
53345 2004-08-16  Simon Josefsson  <jas@extundo.com>
53346
53347         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53348         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53349         Add --dry-run for --import.
53350         Let user provided command line parameters override configure.ac
53351         settings.
53352
53353 2004-08-12  Simon Josefsson  <jas@extundo.com>
53354
53355         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53356         as discussed with Paul Eggert in threads rooted at
53357         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53358         and
53359         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53360         Before, the test was empty, and relied on ELIDE_CODE in source
53361         code.)
53362         (gl_PREREQ_GETOPT): New macro.
53363         (gl_GETOPT): Use them.
53364
53365 2004-08-12  Simon Josefsson  <jas@extundo.com>
53366
53367         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53368         * lib/getopt_.h: Renamed from getopt.h.
53369
53370 2004-08-12  Simon Josefsson  <jas@extundo.com>
53371
53372         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53373         Change default library name from libfoo to libgnu.
53374         Now, if you have a configure.ac that says:
53375                 gl_SOURCE_BASE(gl)
53376                 gl_M4_BASE(gl/m4)
53377                 gl_MODULES(error getopt etcetera)
53378                 gl_INIT
53379         you can import all you need by running:
53380                 ../gnulib/gnulib-tool --import
53381
53382         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53383         (Makefile.am): Rewrite, use logic from argz.
53384         (Include): Use <getopt.h> instead of "getopt.h".
53385
53386 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53387
53388         * modules/argp (Files): Add m4/unlocked-io.m4.
53389         (Depends-on): Add extensions.
53390
53391 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53394         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53395         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53396         Check for program_invocation_name, program_invocation_short_name,
53397         flockfile, funlockfile, features.h, _getopt_long_only_r.
53398
53399 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53402         its complicated substitute.
53403         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53404         and program_invocation_name.
53405         (__argp_basename) [!_LIBC]: Remove; the only use was
53406         replaced by its body.
53407         (__argp_short_program_name): Change condition from
53408         !defined __argp_short_program_name to
53409         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53410         to match argp-namefrob.h.
53411         (__argp_failure): Don't assume strerror_r returns char *.
53412         * lib/argp-parse.c (N_): Define unconditionally.
53413         (argp_default_options): Fill out initializers with 0 to avoid
53414         gcc warnings.
53415
53416 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53419         getopt1.c.
53420
53421 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         Merge from coreutils.
53424
53425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53426
53427         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53428         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53429
53430 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         Merge from coreutils.
53433
53434         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53435         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53436         for Reliant Unix 5.43.
53437
53438         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53439         (union fooround): Use uintmax_t, not long int.
53440         The rest is a merge from libc:
53441         [defined _LIBC]: Include <shlib-compat.h>.
53442         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53443
53444         * lib/settime.c (settime): Recode to avoid warning with
53445         Sun Forte C 6U2.
53446
53447         * lib/strverscmp.c: Convert to UTF-8.
53448
53449 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53450
53451         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53452         m4/uintmax_t.m4.
53453
53454 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53455
53456         * modules/xalloc-die: New file.
53457         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53458
53459         * modules/md5 (Files): Add m4/uint32_t.m4.
53460         * modules/sha1: Renamed from modules/sha.
53461         (Files):
53462         Rename lib/sha.h to lib/sha1.h.
53463         Rename lib/sha.c to lib/sha1.c.
53464         Rename m4/sha.m4 to m4/sha1.m4.
53465         (lib_SOURCES): Likewise.
53466         (configure.ac): Rename gl_SHA to gl_SHA1.
53467         (Include): sha.h -> sha1.h.
53468
53469 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53472         * m4/sha1.m4: Renamed from sha.m4.
53473         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53474
53475 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53476
53477         * lib/obstack.h (obstack_empty_p):
53478         Don't assume that chunk->contents is suitably aligned.
53479         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53480         Likewise. Problem reported by Benno in
53481         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53482
53483         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53484         readable.  This could be improved further but it'd take some work.
53485
53486 2004-08-08  Simon Josefsson  <jas@extundo.com>
53487
53488         * modules/xgethostname (Depends-on): Remove exit and error (not
53489         used).
53490
53491         * modules/getpass-gnu: Add getpass.h.
53492         (Depends-on): Add stdbool.
53493         * modules/getpass: Add getpass.h.
53494
53495 2004-08-08  Simon Josefsson  <jas@extundo.com>
53496
53497         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53498         Check getpass declaration.
53499
53500 2004-08-08  Simon Josefsson  <jas@extundo.com>
53501
53502         * lib/xgethostname.c: Don't include error.h (not used).
53503
53504         * lib/getpass.h: Add.
53505         * lib/getpass.c: Include getpass.h first.
53506
53507 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * lib/xalloc-die.c: New file.
53510         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53511         All uses removed.
53512         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53513         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53514         xalloc-die.c.
53515         (_, N_, xalloc_die): Move to xalloc-die.c.
53516         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53517         so that we needn't mess with xalloc_msg_memory_exhausted.
53518
53519         * lib/sha1.h: Renamed from sha.h.
53520         (SHA1_H): Renamed from _SHA_H.
53521         (sha1_ctx): Renamed from sha_ctx.
53522         (sha1_init_ctx): Renamed from sha_init_ctx.
53523         (sha1_process_block): Renamed from sha_process_block.
53524         (sha1_process_bytes): Renamed from sha_process_bytes.
53525         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53526         (sha1_read_ctx): Renamed from sha_read_ctx.
53527         (sha1_stream): Renamed from sha_stream.
53528         (sha1_buffer): Renamed from sha_buffer.
53529         * lib/sha1.c: Likewise; renamed from sha.c.
53530         Do not include <sys/types.h>.
53531         Include <stddef.h> rather than <stdlib.h>.
53532
53533 2004-08-08  Bruno Haible  <bruno@clisp.org>
53534
53535         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53536         FILESYSTEM_PREFIX_LEN.
53537         * lib/progreloc.c: Likewise.
53538         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53539
53540 2004-08-06  Simon Josefsson  <jas@extundo.com>
53541
53542         * modules/progname (Depends-on): Don't depend on stdbool.
53543
53544 2004-08-06  Simon Josefsson  <jas@extundo.com>
53545
53546         * modules/getsubopt: New file.
53547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53548         getsubopt.
53549
53550 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53551
53552         More merge from coreutils.
53553
53554         * m4/utimens.m4, m4/utimecmp.m4: New files.
53555         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53556         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53557         prereq.m4, sha.m4: Import changes from coreutils.
53558
53559 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         More merge from coreutils.
53562         * modules/raise, modules/readtokens0, modules/utimens:
53563         * modules/utimecmp, module/xnanosleep: New files.
53564         * modules/strftime: Add lib/strftime.h.
53565         Change include from <time.h> to "strftime.h".
53566         * modules/yesno: Add lib/yesno.h.
53567         * modules/backupfile: Remove lib/addext.c.
53568         * modules/euidaccess: Add stat-macros.h.
53569         * modules/canonicalize, modules/euidaccess,
53570         modules/filemode, modules/lchown, modules/makepath,
53571         modules/rmdir, modules/stat: Likewise.
53572
53573 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53574
53575         Merge from tar.
53576         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53577         SIZE_MAX is a valid preprocessor constant.
53578         (__argp_basename): Change from "#ifndef _LIBC"
53579         to "#ifndef __argp_short_program_name", so that
53580         we don't compile these functions for tar.
53581
53582         More merges from coreutils.
53583         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53584         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53585         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53586         * lib/addext.c: Remove; no longer needed.
53587         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53588         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53589         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53590         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53591         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53592         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53593         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53594         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53595         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53596         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53597         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53598         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53599         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53600         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53601         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53602         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53603         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53604         Import changes from coreutils.
53605
53606 2004-08-05  Simon Josefsson  <jas@extundo.com>
53607
53608         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53609
53610 2004-08-05  Simon Josefsson  <jas@extundo.com>
53611
53612         * m4/getsubopt.m4: New file.
53613
53614 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         Merge from coreutils.
53617
53618         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53619         * m4/getcwd-path-max.m4: New files.
53620
53621         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53622         FILESYSTEM_PREFIX_LEN ->
53623         FILE_SYSTEM_PREFIX_LEN.
53624         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53625         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53626         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53627         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53628
53629         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53630         prerequisite modules now handle the DOS stuff.
53631         Don't check for unistd.h.
53632
53633 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53634
53635         Merge from coreutils.
53636
53637         * lib/.gdb-history: Remove; this doesn't belong here.
53638
53639         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53640         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53641         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53642         * lib/getcwd.c: New files.
53643
53644         * lib/dirname.h: Include <stdbool.h>.
53645         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53646         for consistency with POSIX terminology.  All uses changed.
53647         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53648         (strip_trailing_slashes): Use bool for booleans.
53649         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53650
53651         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53652         sometimes returns a positive errno value even when it succeeds.
53653         (print_errno_message) [!LIBC]: Fall back on strerror if
53654         __strerror_r fails.
53655
53656         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53657         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53658         (longest_relative_suffix): New function.
53659         (path_concat): Use it.  Assume first argument is not NULL.
53660         Port to DOS.  Omit redundant separators.
53661         Report an error instead of returning NULL.
53662         Use mempcpy instead of memcpy.
53663         (xpath_concat): Remove: not declared or used.
53664
53665         * lib/same.h: Include <stdbool.h>
53666         (same_name): Return bool, not int.
53667         * lib/same.c (same_name): Likewise.
53668         (errno): Don't declare; we assume C89 or better now.
53669
53670         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53671         if not already defined.
53672
53673         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53674         * lib/dup-safer.c (errno): Likewise.
53675
53676 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         Merge from coreutils.
53679         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53680         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53681         * modules/path-concat: Don't depend on strdup.
53682
53683 2004-08-03  Simon Josefsson  <jas@extundo.com>
53684
53685         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53686         * lib/progname.h: Don't include stdbool.h.
53687
53688 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53691         * MODULES.html.sh (func_all_modules): Remove fatal.
53692
53693 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53696
53697 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53698
53699         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53700         working.
53701
53702 2004-08-02  Simon Josefsson  <jas@extundo.com>
53703
53704         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53705         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53706         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53707
53708 2004-08-01  Simon Josefsson  <jas@extundo.com>
53709
53710         * lib/xgetdomainname.c: Include stdlib.h, for free().
53711
53712 2004-07-19  Bruno Haible  <bruno@clisp.org>
53713
53714         * MODULES.html.sh (func_all_modules): Add dummy.
53715
53716 2004-07-16  Simon Josefsson  <jas@extundo.com>
53717
53718         * modules/dummy: New file.
53719
53720 2004-07-16  Simon Josefsson  <jas@extundo.com>
53721
53722         * lib/dummy.c: New file.
53723
53724 2004-07-16  Bruno Haible  <bruno@clisp.org>
53725
53726         * lib/backupfile.h: Add extern "C" for C++.
53727         * lib/closeout.h: Likewise.
53728         * lib/copy-file.h: Likewise.
53729         * lib/findprog.h: Likewise.
53730         * lib/full-write.h: Likewise.
53731         * lib/pathname.h: Likewise.
53732         * lib/progname.h: Likewise.
53733         * lib/stpcpy.h: Likewise.
53734         * lib/stpncpy.h: Likewise.
53735         * lib/strcase.h: Likewise.
53736         * lib/strstr.h: Likewise.
53737         * lib/xalloc.h: Likewise.
53738
53739         * lib/mbswidth.h: Add extern "C" for C++.
53740         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53741
53742 2004-07-13  Robert Millan  <robertmh@gnu.org>
53743
53744         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53745
53746 2004-07-09  Simon Josefsson  <jas@extundo.com>
53747
53748         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53749         failed without this.)
53750
53751 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53752
53753         * modules/chown (Files): Add lib/fchown-stub.c, since
53754         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53755
53756 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53757
53758         * lib/fchown-stub.c: New file.
53759
53760 2004-06-24  Jim Meyering  <jim@meyering.net>
53761
53762         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53763
53764 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53765
53766         * modules/argz: Omit "#include".
53767
53768         * MODULES.html.sh (func_all_modules): Add calloc, to match
53769         2004-06-01 addition of calloc module.
53770
53771 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * m4/argz.m4: New file, which is autoupdated from libtool.
53774
53775 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53778         libtool.
53779
53780 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         * config/srclist-update: Don't insist on "USA." before the
53783         close-comment, as libtool omits the period and puts the */ on a
53784         separate line.
53785         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53786         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53787
53788 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53789
53790         * modules/argz: New file.
53791         * MODULES.html.sh (func_all_modules): Add argz.
53792
53793 2004-06-12  Jim Meyering  <jim@meyering.net>
53794         and  Paul Eggert  <eggert@cs.ucla.edu>
53795
53796         * modules/hash (Files): Add lib/xalloc.h.
53797         * modules/pipe (Depends-on): Add wait-process.
53798         * modules/stat (Depends-on): Add xalloc.
53799         * modules/userspec (Files): Add lib/userspec.h.
53800         * modules/xstrto
53801
53802         Upgrade from gettext-0.13.
53803         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53804         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53805         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53806
53807 2004-06-10  Jim Meyering  <jim@meyering.net>
53808
53809         * lib/calloc.c: New file.
53810
53811 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53812
53813         * lib/getdate.y (yylex): Allow space between sign and number.
53814         Problem reported by Dan Jacobson.
53815
53816 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         Merge from coreutils CVS.
53819
53820         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53821         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53822         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53823         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53824         xstrtol.m4: Fix copyright date and/or serial number.
53825
53826         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53827         See if we need an fchown replacement.
53828         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53829         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53830         and use the replacement function if we detect either defect.
53831
53832         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53833         gl_UTIMECMP.
53834
53835 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53836         and  Jim Meyering  <jim@meyering.net>
53837
53838         Merge from coreutils CVS.
53839
53840         * lib/stat-macros.h: New file, with contents from file-type.h
53841         and coreutils' system.h.
53842         * lib/file-type.c: Include "stat-macros.h".
53843         * lib/file-type.h (file_type): Move all macro definitions to new file,
53844         stat-macros.h.
53845
53846         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53847         Wrap old code with this conditional.
53848         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53849         function that does not dereference symlinks.
53850         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53851
53852         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53853         dependency problems.
53854         (xreadlink): Accept new arg SIZE, for efficiency.
53855         All decls and uses changed.
53856         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53857
53858         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53859         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53860
53861         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53862         sysexits.h.
53863
53864 2004-06-01  Jim Meyering  <jim@meyering.net>
53865
53866         * m4/calloc.m4: New file.
53867
53868 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53869
53870         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53871         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53872         Also, fix a typo in a diagnostic.
53873
53874 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53875
53876         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53877         or AC_FUNC_REALLOC.
53878
53879 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53880
53881         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53882         macros to be defined.
53883         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53884         the allocator returns NULL because the requested size is zero.
53885
53886 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53889         var.  Add comment explaining why libc still defines it.  This
53890         merges the following patch from glibc:
53891         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53892
53893 2004-05-20  Andreas Schwab  <schwab@suse.de>
53894
53895         * m4/free.m4: Replace free if it not known to work, not the other
53896         way round.
53897
53898 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53901         present in glibc since revision 1.1 of this file.
53902         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53903         obstack_alignment_mask, obstack_alloc, obstack_base,
53904         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53905         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53906         obstack_grow0, obstack_init, obstack_int_grow,
53907         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53908         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53909         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53910         nonexistent functions.
53911
53912 2004-05-18  Karl Berry  <karl@gnu.org>
53913
53914         * config/srclist.txt: break link for vasnprintf.c.
53915
53916 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53917
53918         Port obstack to the AS/400, where pointers are 16 bytes wide and
53919         you cannot cast an integer to a valid pointer.  This patch is
53920         currently waiting to be integrated into glibc; see
53921         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53922
53923         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53924         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53925         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53926         (struct obstack): temp member is now a union of a pointer and
53927         an integer, instead of an integer.  All integer uses changed.
53928         This does not affect the physical layout of struct obstack,
53929         except on hosts (like the AS/400) where the size or alignment of
53930         void * is greater than that of ptrdiff_t.
53931         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53932         __STDC__)]: Store temporary in pointer member of union, not
53933         integer member.
53934         * lib/obstack.c: Include <stddef.h>, for offsetof.
53935         (struct fooalign): Remove; it doesn't need a name.
53936         (union fooround): Change double to long double, and add void *.
53937         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53938         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53939         not a macro.  Hence the values are always int; so remove all
53940         casts-to-int in uses.
53941
53942 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53945         we can get this patch merged into glibc.
53946
53947 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53948             Paul Eggert  <eggert@cs.ucla.edu>
53949
53950         * m4/argp: Depend on alloca.
53951
53952 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53953             Paul Eggert  <eggert@cs.ucla.edu>
53954
53955         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53956         freecoding.
53957
53958 2004-05-17  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53961         precision that consists of a '.' followed by an empty digit string.
53962         Patch by Tor Lillqvist <tml@iki.fi>.
53963
53964 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53967         for backward compatibility with older code.  We need our own
53968         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53969         it under some other name, and our alloca.h will define it.
53970
53971 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53972             Derek Price  <derek@ximbiot.com>
53973
53974         * lib/alloca.c: Include <alloca.h>, to get our interface.
53975         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53976         include <alloca.h> first.  Use C89 prototype for alloca; this
53977         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53978         Use #elif for simplicity, since we can assume C89 now.
53979         Don't try to source the system alloca.h since it will not be found
53980         and to prevent recursively including its replacement.
53981         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53982         * lib/regex.c: Likewise.
53983
53984 2004-05-16  Derek Price  <derek@ximbiot.com>
53985             Paul Eggert  <eggert@cs.ucla.edu>
53986
53987         getline cleanup.  This changes the getndelim2 API: both order of
53988         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53989         no delimiter).
53990
53991         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53992         interface does that.
53993         (getline): Always use getdelim, so that we don't have two
53994         copies of this code.
53995         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53996         if available.
53997         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53998         (GETNDELIM2_MAXIMUM): New macro.
53999         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54000         instead of the old practice of delim2==0.  All callers changed.
54001         Return -1 on overflow, instead of returning junk.
54002         Do not set *linesize unless allocation succeeds.
54003         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54004         that we include sys/types.h.
54005         * lib/getnline.h: Likewise.
54006         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54007         (getndelim2): Reorder arguments.
54008         * lib/getnline.c (getnline, getndelim):
54009         Don't discard the NMAX argument.
54010         (getnline): Invoke getndelim, to avoid code duplication.
54011         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54012         of (size_t) -1 by callers of the getnline family.
54013
54014 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54015
54016         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54017         Check for gettimeofday.
54018         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54019         Check for settimeofday, stime.
54020
54021 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54022
54023         * lib/nanosleep.c (suspended): Change its type from int to
54024         sig_atomic_t volatile.
54025         (first_call): Make it private to rpl_nanosleep, and have it
54026         be zero initially as that's a bit faster.
54027         (my_usleep): Round up fractional times instead of truncating them,
54028         as this is the usual meaning for 'sleep'.
54029
54030         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54031         doesn't work.
54032         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54033         (ENOSYS): Define if not defined.
54034         (settime): Fall back on stime if it exists and settimeofday fails.
54035         But don't bother with fallbacks if a method fails with errno == EPERM.
54036
54037 2004-05-11  Jim Meyering  <jim@meyering.net>
54038
54039         Prior to this change, the save_cwd caller required read access to the
54040         current directory on most systems (ones with the fchdir function).
54041
54042         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54043         fails, try write-only, and finally, resort to using xgetcwd.
54044
54045 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         * lib/obstack.c, obstack.h: Import changes from libc.
54048
54049 2004-04-28  Bruno Haible  <bruno@clisp.org>
54050
54051         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54052         also implicitly appends .exe to executables.
54053         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54054         accepts Windows pathnames.
54055         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54056         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54057         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54058         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54059         Reported by Derek Robert Price <derek@ximbiot.com>.
54060
54061 2004-04-21  Karl Berry  <karl@gnu.org>
54062
54063         * config/srclist.txt (localcharset.c): break sync.
54064
54065 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54066
54067         * m4/host-os.m4: Add a copyright notice.
54068
54069 2004-04-20  Jim Meyering  <jim@meyering.net>
54070
54071         Change UTILS_ to gl_ in AC_DEFINE'd names.
54072         Change utils_- and jm_-prefixed variables, too.
54073         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54074         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54075         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54076
54077         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54078         Don't emit trailing blanks.
54079         Also rename jm_-prefixed variables to have gl_ prefix.
54080
54081         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54082         Also rename jm_-prefixed variables to have gl_ prefix.
54083
54084         * m4/jm-macros.m4: Reflect the renamings.
54085         * m4/prereq.m4: Likewise.
54086
54087 2004-04-20  Jim Meyering  <jim@meyering.net>
54088
54089         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54090         memory.
54091
54092 2004-04-20  Jim Meyering  <jim@meyering.net>
54093             Bruno Haible  <bruno@clisp.org>
54094
54095         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54096         memory when realloc fails.
54097
54098 2004-04-19  Jim Meyering  <jim@meyering.net>
54099
54100         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54101         now that readutmp.c may call `free (0)'.
54102
54103 2004-04-19  Bruno Haible  <bruno@clisp.org>
54104
54105         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54106         * m4/inttypes_h.m4: Likewise.
54107         * m4/stdint_h.m4: Likewise.
54108         * m4/intmax_t.m4: Likewise.
54109         * m4/uintmax_t.m4: Likewise.
54110
54111 2004-04-18  Jim Meyering  <jim@meyering.net>
54112
54113         * m4/prereq.m4: Don't forbid jm_ prefix.
54114
54115         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54116         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54117         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54118         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54119         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54120         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54121         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54122         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54123         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54124         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54125         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54126         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54127         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54128         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54129         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54130         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54131         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54132         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54133         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54134
54135 2004-04-18  Jim Meyering  <jim@meyering.net>
54136
54137         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54138         failure, don't leak memory and do call END_UTMP_ENT.
54139
54140 2004-04-16  Jim Meyering  <jim@meyering.net>
54141
54142         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54143         coreutils' stat program.
54144         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54145
54146 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54147
54148         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54149         C89.
54150         (CHAR_BIT): Remove, since we assume C89.
54151         Include <stdint.h> if available, as per current Autoconf CVS advice.
54152
54153 2004-03-31  Jim Meyering  <jim@meyering.net>
54154
54155         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54156         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54157         * m4/xalloc.m4: Likewise.
54158
54159 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54160
54161         Merge from coreutils.
54162
54163         * m4/inttostr.m4: New file.
54164         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54165         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54166         Require gl_CLOCK_TIME.
54167         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54168
54169 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54170
54171         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54172         not bool, to be more consistent with Unix conventions.
54173         Suggested by Bruno Haible.
54174
54175         Merge from coreutils.
54176
54177         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54178         * lib/umaxtostr.c: New files.
54179
54180         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54181         the usual <time.h> dance.
54182         (get_date): Change signature to support fractional time stamps.
54183         All callers changed.
54184         * lib/getdate.y: Include "getdate.h" first, as we can now
54185         assume C89 and don't need to worry about 'const'.
54186         Similarly, include "unlocked-io.h" near start, not in middle.
54187         Include <limits.h>.
54188         (textint.value): Use long int rather than int.
54189         (textint.digits): Use size_t rather than int.
54190         (BILLION, LOG10_BILLION): New constants.
54191         (parser_control): New member rel_ns.  Members day_ordinal,
54192         time_zone, month, day, hour, minutes, rel_year, rel_month,
54193         rel_day, rel_hour, rel_minutes, rel_seconds
54194         are now long int, not int.  Member seconds is now struct timespec,
54195         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54196         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54197         not int.
54198         (%union.intval): Now long int, not int.
54199         New member timespec.
54200         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54201         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54202         (spec): Now is a timespec or an item list.
54203         (timespec, items): New nonterminals.
54204         (time, rel, relunit, number, get_date):
54205         Add support for fractional seconds.
54206         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54207         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54208         (to_hour): First arg is now long int, not int.
54209         (to_year): Returns long int, not int.
54210         Don't treat year -70 like 70.
54211         (tm_diff): Returns long int, not int.
54212         (lookup_word): Use bool instead of int when appropriate.
54213         (yylex): Use size_t for count, not int.
54214         Detect overflow when parsing large integer constants.
54215         Add support for fractions.
54216         (get_date): Make pointers 'const' if possible.
54217         Use more-portable code to detect integer overflow.
54218         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54219         Don't use ctime; it's not reliable if the year has >4 digits.
54220
54221         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54222         This is for compatibility with BSD.
54223
54224         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54225         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54226         From coreutils' system.h.
54227
54228         * lib/userspec.c: Don't include "posixver.h".
54229         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54230         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54231         compatible extension.  Simplify code by removing a boolean int
54232         that was always nonzero if a string was nonnull.
54233
54234 2004-03-30  Jim Meyering  <jim@meyering.net>
54235
54236         Merge from coreutils.
54237
54238         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54239         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54240         on some systems one must include <grp.h> before it.
54241         Reported by Christian Krackowizer.
54242
54243 2004-03-30  Jim Meyering  <jim@meyering.net>
54244
54245         Merge from coreutils.
54246
54247         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54248
54249         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54250         an empty input stream.
54251
54252         * lib/readtokens.c: Include <stdbool.h>.
54253         (readtoken): Use `size_t' rather than int/long.
54254         All callers adjusted.
54255         Use `bool' rather than `int' where appropriate.
54256         Use memset rather than an explicit loop.
54257         Use x2nrealloc rather than xrealloc.
54258         Allow the use of `\0' as a delimiter.
54259         (readtokens): Likewise.
54260         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54261
54262 2004-03-30  Jim Meyering  <jim@meyering.net>
54263
54264         * m4/realloc.m4: Remove file, since now it does no more than
54265         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54266         the `configure.ac' section of module/realloc.
54267         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54268
54269 2004-03-30  Bruno Haible  <bruno@clisp.org>
54270
54271         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54272         nonnull.
54273
54274 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54275
54276         Merge changes to getloadavg.c from coreutils and Emacs.
54277
54278         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54279         Define to an expression, not to the empty string.
54280         Include cloexec.h and xalloc.h.
54281         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54282         Use set_cloexec_flag rather than rolling our own.
54283         * lib/cloexec.c, lib/cloexec.h: New files.
54284
54285 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54286
54287         * m4/cloexec.m4: New file.
54288
54289 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54290
54291         * lib/getopt.h: Sync with libc CVS.
54292
54293 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54294             Bruno Haible  <bruno@clisp.org>
54295
54296         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54297         mbswidth.
54298
54299 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54300             Bruno Haible  <bruno@clisp.org>
54301
54302         * lib/mbswidth.h: Include <wchar.h> only if
54303         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54304         <wchar.h>.
54305         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54306
54307 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54308
54309         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54310         Sync with libc CVS.
54311         * lib/getopt_int.h: New file, also synced from libc.
54312
54313 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54314
54315         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54316         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54317         Bring back getopt.c, getopt.h, getopt1.c.
54318
54319 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54320
54321         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54322         All uses changed.  Check for sa_sigaction member; this fixes
54323         a bug first reported by Jason Andrade in
54324         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54325
54326 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54327
54328         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54329         '#if' expressions.  Unlike the code it replaces, it does not
54330         depend on (defined _SC_PAGESIZE).  However, it does depend on
54331         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54332         first reported by Jason Andrade in
54333         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54334
54335 2004-02-25  Simon Josefsson  <jas@extundo.com>
54336
54337         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54338
54339 2004-02-25  Simon Josefsson  <jas@extundo.com>
54340
54341         * lib/strdup.h: New file.
54342         * lib/strdup.c: Include it.
54343         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54344         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54345
54346 2004-02-23  Karl Berry  <karl@gnu.org>
54347
54348         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54349         (from fencepost.gnu.org:/gd/gnuorg).
54350
54351 2004-02-23  Karl Berry  <karl@gnu.org>
54352
54353         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54354         * config/srclist.txt: add maintain/standards documents.
54355
54356 2004-02-18  Bruno Haible  <bruno@clisp.org>
54357
54358         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54359         Reported by Derek Robert Price <derek@ximbiot.com>.
54360
54361 2004-02-16  Karl Berry  <karl@gnu.org>
54362
54363         * config/mkinstalldirs, install-sh: update from automake.
54364
54365 2004-02-06  Karl Berry  <karl@gnu.org>
54366
54367         * m4/po.m4: update from gettext 0.14.1.
54368
54369 2004-02-06  Karl Berry  <karl@gnu.org>
54370
54371         * lib/config.charset: update from gettext 0.14.1.
54372
54373 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54374
54375         Add comments and code, prompted by suggestions from Bruno Haible
54376         for sh-quote.
54377         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54378         describing the enum quoting_style values.
54379         * lib/quotearg.c (quotearg_alloc): New function.
54380         (quotearg_buffer_restyled): Treat lone { and } as special.
54381         Treat = as special.  Work around bug with older shells
54382         that "see" a '\' that is really the 2nd byte of a multibyte char.
54383         Quote empty string with shell_quoting_style.
54384
54385 2004-02-03  Bruno Haible  <bruno@clisp.org>
54386
54387         * m4/pipe.m4: New file, from GNU gettext.
54388
54389 2004-02-03  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/pipe.h: New file, from GNU gettext.
54392         * lib/pipe.c: New file, from GNU gettext.
54393
54394 2004-01-27  Bruno Haible  <bruno@clisp.org>
54395
54396         * m4/execute.m4: New file, from GNU gettext.
54397
54398 2004-01-27  Bruno Haible  <bruno@clisp.org>
54399
54400         * lib/execute.h: New file, from GNU gettext.
54401         * lib/execute.c: New file, from GNU gettext.
54402         * lib/w32spawn.h: New file, from GNU gettext.
54403
54404 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54405
54406         Merge from diffutils.
54407
54408         * lib/file-type.c (file_type): Add typed memory objects.
54409         * lib/file-type.h (S_TYPEISTMO): New macro.
54410
54411         * lib/c-stack.h (c_stack_action): Remove argv argument.
54412         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54413         (die): Don't calculate message unless segv_action returns.
54414         (get_stack_location, min_address_from_argv, max_address_from_argv,
54415         volatile stack_base, volatile_stack_size): Remove.
54416         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54417         that every segmentation violation is a stack overflow.  (Ouch!)
54418         See Debian bug 136249 (still outstanding) for more info about why
54419         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54420
54421 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54422
54423         Exit-status fix from coreutils.
54424
54425         Use exit_failure consistently in place of EXIT_FAILURE,
54426         so that program exit statuses are consistent on failure.
54427
54428         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54429         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54430         * lib/argmatch.h: Comment fix to match the above.
54431         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54432         Now a macro referring to exit_failure, instead of a separate
54433         variable.  Include "exitfail.h" to get it.
54434         * lib/xstrtol.h: Include "exitfail.h".
54435         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54436
54437         * lib/long-options.c (parse_long_options): Use prototype
54438         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54439         for clarity.
54440
54441 2004-01-21  Jim Meyering  <jim@meyering.net>
54442
54443         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54444         so as not to conflict with a different-sized __mktime_internal
54445         function in GNU libc.
54446         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54447         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54448
54449 2004-01-20  Karl Berry  <karl@gnu.org>
54450
54451         * config/config.guess: update from config.
54452
54453         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54454
54455 2004-01-20  Bruno Haible  <bruno@clisp.org>
54456
54457         Safer stack allocation.
54458         * lib/setenv.c: Include allocsa.h.
54459         (alloca): Remove fallback definition.
54460         (freea): Remove macro.
54461         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54462         instead of freea.
54463
54464 2004-01-20  Bruno Haible  <bruno@clisp.org>
54465
54466         * m4/eealloc.m4: New file, from GNU gettext.
54467
54468 2004-01-20  Bruno Haible  <bruno@clisp.org>
54469
54470         * m4/allocsa.m4: New file, from GNU gettext.
54471
54472 2004-01-20  Bruno Haible  <bruno@clisp.org>
54473
54474         * lib/xallocsa.h: New file, from GNU gettext.
54475         * lib/xallocsa.c: New file, from GNU gettext.
54476
54477 2004-01-20  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54480
54481 2004-01-20  Bruno Haible  <bruno@clisp.org>
54482
54483         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54484         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54485         specially.
54486
54487 2004-01-20  Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54490         patch.
54491
54492 2004-01-20  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54495
54496 2004-01-20  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/eealloc.h: New file.
54499
54500 2004-01-20  Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/binary-io.h: Avoid warnings on Cygwin.
54503
54504 2004-01-20  Bruno Haible  <bruno@clisp.org>
54505
54506         * lib/allocsa.h: New file, from GNU gettext.
54507         * lib/allocsa.c: New file, from GNU gettext.
54508
54509 2004-01-18  Karl Berry  <karl@gnu.org>
54510
54511         * doc/gpl.texi, doc/lgpl.texi: new files.
54512
54513 2004-01-18  Karl Berry  <karl@gnu.org>
54514
54515         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54516         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54517
54518 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54519
54520         Merge from coreutils.
54521
54522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54523         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54524         (gl_DEFAULT_POSIX2_VERSION): Move
54525         the documentation from 'configure' into 'config.hin',
54526         so that 'configure --help' isn't burdened by it and
54527         we don't have to worry about its formatting there.
54528         Reword the documentation so that it's more succinct
54529         and can be run together into a single paragraph.
54530         * m4/same.m4 (gl_SAME): Check for pathconf.
54531
54532 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54533
54534         Merge from coreutils.
54535
54536         * lib/posixver.c: Include posixver.h.
54537
54538         * lib/same.c: Include <stdbool.h>, <limits.h>.
54539         (_POSIX_NAME_MAX): Define if not defined.
54540         (MIN): New macro.
54541         (same_name): If file names are silently truncated, report
54542         that the file names are the same if they are the same after
54543         the silent truncation.
54544
54545         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54546         conversion function.
54547         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54548         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54549         longer needed.
54550
54551 2004-01-15  Jim Meyering  <jim@meyering.net>
54552
54553         Merge from coreutils.
54554
54555         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54556         if no library is required.
54557         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54558         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54559         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54560         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54561         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54562         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54563         value, $ac_cv_search_crypt, if it's "none required".
54564         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54565         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54566         not gl_FUNC_GETLOADAVG.
54567         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54568         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54569
54570 2004-01-15  Jim Meyering  <jim@meyering.net>
54571
54572         Merge from coreutils.
54573
54574         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54575         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54576         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54577
54578         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54579         optional configure-time default.
54580
54581         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54582
54583         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54584
54585 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54586
54587         Merge from coreutils.
54588
54589         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54590         value, $ac_cv_search_nanosleep, if it's "none required".
54591
54592 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54593
54594         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54595         with like-named macro in fnmatch.c.
54596         (EXT): Use an internal constant instead.
54597
54598         Merge fnmatch patches from glibc.
54599         * lib/fnmatch.c (mbsinit): Remove define.
54600         Add libc_hidden_ver (__fnmatch, fnmatch).
54601         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54602         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54603
54604 2004-01-14  Karl Berry  <karl@gnu.org>
54605
54606         * config/install-sh: update from automake.
54607
54608 2004-01-13  Karl Berry  <karl@gnu.org>
54609
54610         * config/install-sh: update from automake.
54611
54612 2004-01-09  Karl Berry  <karl@gnu.org>
54613
54614         * config/install-sh: update from automake.
54615
54616 2004-01-05  Karl Berry  <karl@gnu.org>
54617
54618         * config/config.{sub,guess}: update from config.
54619
54620 2003-12-31  Karl Berry  <karl@gnu.org>
54621
54622         * config/depcomp: update from automake.
54623
54624 2003-12-14  Karl Berry  <karl@gnu.org>
54625
54626         * lib/config.charset: update from gettext-runtime.
54627
54628 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54629
54630         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54631         Bug reported by Alfred M. Szmidt.
54632
54633 2003-12-03  Bruno Haible  <bruno@clisp.org>
54634
54635         * m4/gettext.m4: Upgrade from gettext-0.13.
54636         * m4/po.m4: Upgrade from gettext-0.13.
54637         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54638         * m4/intmax.m4: New file, from gettext-0.13.
54639         * m4/printf-posix.m4: New file, from gettext-0.13.
54640
54641 2003-11-29  Karl Berry  <karl@gnu.org>
54642
54643         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54644
54645 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54646             Bruno Haible  <bruno@clisp.org>
54647
54648         * lib/printf-parse.h: Don't include sys/types.h.
54649         (ARG_NONE): New macro.
54650         (char_directive): Change type of *arg_index fields to size_t.
54651         * lib/printf-parse.c: Don't include sys/types.h.
54652         (SSIZE_MAX): Remove macro.
54653         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54654         Remove unnecessary overflow check.
54655         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54656         fields.
54657
54658 2003-11-25  Bruno Haible  <bruno@clisp.org>
54659
54660         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54661
54662 2003-11-25  Bruno Haible  <bruno@clisp.org>
54663
54664         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54665         gt_TYPE_SSIZE_T.
54666
54667 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54668
54669         * modules/alloca: Remove dependency on xalloc.
54670
54671 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54672
54673         * lib/alloca.c: Remove dependency on xalloc module.
54674         (xalloc_die): Remove.
54675         (memory_full) [!defined emacs]: New macro.
54676         [!defined emacs]: Don't include xalloc.h.
54677         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54678         address arithmetic overflows.  Change datatypes a bit to avoid
54679         unnecessary casts.
54680
54681 2003-11-22  Jim Meyering  <jim@meyering.net>
54682
54683         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54684         s/size/size_t/.
54685
54686 2003-11-21  Karl Berry  <karl@gnu.org>
54687
54688         * config/config.{sub,guess}: update from config.
54689
54690 2003-11-18  Karl Berry  <karl@gnu.org>
54691
54692         * config/config.{sub,guess}: update from config.
54693
54694         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54695
54696 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54697
54698         * README: Mention that S+T cannot overflow if S is the size of
54699         an existing object and T is sufficiently small.
54700
54701 2003-11-17  Jim Meyering  <jim@meyering.net>
54702
54703         On systems without utime and without a utimes function capable of
54704         dealing with a NULL struct utimbuf* argument, this utime replacement
54705         could -- in unusual circumstances -- leak a file descriptor.
54706         * lib/utime.c: Include <unistd.h> and <errno.h>.
54707         (utime_null): Be sure to close `fd' and to preserve errno.
54708         Reported by Geoff Collyer via Arnold Robbins.
54709
54710 2003-11-17  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54713         (Depends-on): Add xsize.
54714
54715 2003-11-17  Bruno Haible  <bruno@clisp.org>
54716
54717         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54718
54719 2003-11-17  Bruno Haible  <bruno@clisp.org>
54720
54721         * lib/vasnprintf.c (alloca): Remove fallback definition.
54722         (freea): Remove definition.
54723         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54724         Reported by Paul Eggert.
54725
54726 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54727             Bruno Haible  <bruno@clisp.org>
54728
54729         Protect against address arithmetic overflow.
54730         * lib/printf-args.h: Include stddef.h.
54731         (arguments): Change type of field 'count' to size_t.
54732         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54733         'unsigned int' where appropriate.
54734         * lib/printf-parse.h: Include sys/types.h.
54735         (char_directive): Change type of *arg_index fields to ssize_t.
54736         (char_directives): Change type of fields 'count', max_*_length to
54737         size_t.
54738         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54739         (SSIZE_MAX): Define fallback value.
54740         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54741         instead of 'int' where appropriate. Check a_allocated, d_allocated
54742         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54743         * lib/vasnprintf.c: Include xsize.h.
54744         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54745         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54746         overflow. Avoid wraparound when converting a width or precision from
54747         decimal to binary.
54748
54749 2003-11-16  Bruno Haible  <bruno@clisp.org>
54750
54751         Update from GNU gettext.
54752         * lib/printf-parse.c: Generalize to it can be compiled for wide
54753         strings.
54754         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54755         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54756         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54757         SNPRINTF): New macros.
54758         Don't include <alloca.h> if the file is used inside libintl.
54759         (local_wcslen): New function, for Solaris 2.5.1.
54760         (VASNPRINTF): Use it instead of wcslen.
54761
54762 2003-11-16  Bruno Haible  <bruno@clisp.org>
54763
54764         * lib/xsize.h (xmax): New function.
54765         (xsum, xsum3, xsum4): Declare as "pure" functions.
54766
54767 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54768
54769         * modules/xalloc (Files): Undo latest change, since xalloc.h
54770         no longer needs SIZE_MAX or PTRDIFF_MAX.
54771
54772 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54773
54774         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54775         gl_PTRDIFF_MAX.
54776
54777 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54778
54779         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54780         "return", to pacify some unknown compiler.  Problem reported
54781         by Joerg Schilling.
54782
54783 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54784
54785         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54786         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54787         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54788         heuristic is just as accurate as far as we know, and it removes a
54789         dependency on size_max.m4 and ptrdiff_max.m4.
54790
54791 2003-11-11  Bruno Haible  <bruno@clisp.org>
54792
54793         * modules/xsize (Files): Add m4/size_max.m4.
54794         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54795
54796 2003-11-11  Bruno Haible  <bruno@clisp.org>
54797
54798         * m4/size_max.m4: New file.
54799         * m4/ptrdiff_max.m4: New file.
54800         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54801         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54802         (gl_XALLOC): Invoke it.
54803
54804 2003-11-11  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54807         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54808         defined.
54809
54810 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54811
54812         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54813         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54814         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54815         From Bruno Haible.
54816         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54817         not (size_t) -1, since it's defined here.
54818
54819 2003-11-09  Karl Berry  <karl@gnu.org>
54820
54821         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54822
54823 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54824
54825         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54826         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54827         Reject sizes of exactly SIZE_MAX bytes.
54828         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54829         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54830
54831 2003-11-05  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54834         SIZE_MAX defined in <limits.h> on Solaris.
54835
54836 2003-11-04  Jim Meyering  <jim@meyering.net>
54837
54838         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54839         variable names, rather than @VAR@.
54840         * modules/poll: Likewise.
54841
54842 2003-11-04  Bruno Haible  <bruno@clisp.org>
54843
54844         * modules/xsize: New file.
54845         * modules/linebreak: Depend on xsize.
54846         * MODULES.html.sh (func_all_modules): Add xsize.
54847
54848 2003-11-04  Bruno Haible  <bruno@clisp.org>
54849
54850         * m4/xsize.m4: New file.
54851
54852 2003-11-04  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/xsize.h: New file.
54855         * lib/linebreak.c: Include xsize.h.
54856         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54857         argument for overflow.
54858         Suggested by Paul Eggert.
54859
54860 2003-11-03  Karl Berry  <karl@gnu.org>
54861
54862         * config/config.{guess,sub}: update from config.
54863
54864 2003-11-03  Jim Meyering  <jim@meyering.net>
54865
54866         * modules/userspec (lib_SOURCES): Add userspec.h.
54867         (Include): Add "userspec.h".
54868         Improve description.
54869
54870 2003-11-03  Jim Meyering  <jim@meyering.net>
54871
54872         * lib/userspec.c: Include "userspec.h".
54873         * lib/userspec.h: New file.
54874
54875 2003-11-03  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54878
54879 2003-11-03  Bruno Haible  <bruno@clisp.org>
54880
54881         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54882         available, to avoid (extremely rare) race condition.
54883         Suggested by Paul Eggert.
54884
54885 2003-11-02  Karl Berry  <karl@gnu.org>
54886
54887         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54888
54889 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54890
54891         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54892         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54893         (read_filesystem_list): Set and use me_type_malloced.
54894         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54895         whatever the type happens to be), for brevity and consistency.
54896         Check for size calculation overflow on Alphas running OSF/1.
54897
54898 2003-10-31  Jim Meyering  <jim@meyering.net>
54899
54900         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54901
54902         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54903
54904 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54905             Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54908         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54909
54910 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54913         netbsd*-gnu*.  Suggested by Robert Millan.
54914
54915 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54916
54917         * modules/group-member: Depend on stdbool.
54918
54919 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54920
54921         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54922
54923 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54924
54925         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54926         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54927         after the 'gnu' in these cases.  This fixes some bugs in the
54928         previous change, and is based on suggestions by Robert Millan.
54929
54930 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54931
54932         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54933         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54934         no longer needed.
54935         * lib/quotearg.c (quotearg_n_options): Use it.
54936         * lib/group-member.c: Include <stdbool.h>.
54937         (free_group_info): Arg is now const *; don't free arg.
54938         (get_group_info): Now returns bool and accepts struct group_info *,
54939         rather than returning a malloc'ed struct group_info *.
54940         All uses changed.  Check for overflow in internal size calculation.
54941
54942         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54943         rather than xmalloc/xrealloc.
54944         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54945         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54946         conformance bug: the old code used a pointer after freeing the
54947         storage that it addressed.
54948         * lib/hash.c (hash_initialize): Simplify the code by using
54949         xalloc_oversized rather than doing it by hand.
54950         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54951         the buffer preserved.  Use free and xmalloc instead.
54952         * lib/quotearg.c (quotearg_n_options): Likewise.
54953         Use a simpler test for size overflow.  Don't use xalloc_oversized
54954         because unsigned int might be wider than size_t (!); this suggests
54955         that we should switch from unsigned int to size_t for slot numbers.
54956
54957 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54958
54959         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54960         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54961         NetBSD kernels.  Requested by Richard Stallman.
54962
54963 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54964
54965         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54966         to allocate the returned structure.  Do not allocate a subarray,
54967         as x2nrealloc will do that.
54968         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54969         instead of xnrealloc.
54970         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54971
54972 2003-10-27  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/stdbool_.h: Better support for BeOS.
54975
54976 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54977
54978         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54979         now uses inline.
54980
54981 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54982
54983         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54984         callers that want to do their own size-overflow checking.  Include
54985         <stdbool.h>, since xalloc_oversized returns bool.
54986         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54987         to use xalloc_oversized.
54988
54989         Add two functions x2realloc, x2nrealloc, for programs that grow
54990         arrays dynamically by doubling their sizes.
54991         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54992         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54993         New functions.
54994
54995         Port to C99 semantics for 'inline' of external functions.
54996         Bug reported by Bruno Haible.
54997         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54998         with the old contents of xnmalloc.
54999         (xnmalloc, xmalloc): Use it.
55000         (xnrealloc_inline): New static inline function,
55001         with the old contents of xnrealloc.
55002         (xnrealloc, xrealloc): Use it.
55003
55004         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55005         that.
55006
55007 2003-10-26  Karl Berry  <karl@gnu.org>
55008
55009         * config/srclist.txt (COPYING.DOC): no longer available from
55010         /gd/gnuorg; don't know where the ultimate source is.
55011
55012 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55013
55014         Fix several address-calculation bugs in the hash modules,
55015         plus some minor code cleanup.
55016
55017         * lib/hash.h: Include <stdbool.h>, for bool.
55018         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55019         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55020         hash_get_n_entries, hash_get_max_bucket_length,
55021         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55022         hash_rehash): Use size_t rather than unsigned.
55023         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55024         hash_get_n_buckets_used, hash_get_n_entries,
55025         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55026         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55027         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55028         Likewise.
55029         (SIZE_MAX): Define if not defined.
55030         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55031         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55032         hash_print):
55033         Use const * when possible.
55034         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55035         (check_tuning): Fix bug: if tuning parameters were very close to
55036         0 or 1, rounding errors could have caused subscript violations.
55037         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55038         (hash_initialize): Add 'fail:' label
55039         to free table and return NULL, and use it to simplify code.
55040         Use calloc rather than clearing the storage ourself.
55041         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55042         buffer size calculations.
55043         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55044         Include <stddef.h>, for size_t.
55045         * lib/hash-pjw.c (hash_pjw): Likewise.
55046         Switch to method described by Bruno Haible.
55047         Include <limits.h>, for CHAR_BIT.
55048         (SIZE_BITS): New macro.
55049
55050 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55051
55052         * m4/getline.m4 (AM_FUNC_GETLINE):
55053         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55054         hosts.  Problem reported by Derek Robert Price in
55055         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55056         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55057         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55058
55059 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55060
55061         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55062         ceiling the allocation at NMAX bytes rather than silently
55063         discarding input bytes before NMAX is reached.  This makes
55064         a difference only if NMAX exceeds SIZE_MAX / 2.
55065
55066         * lib/obstack.c: Merge from glibc.
55067         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55068         Add libc_hidden_def (_obstack_newchunk).
55069         (_obstack_free) [! defined _LIBC]: Remove.
55070         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55071         a clone of the function body.
55072         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55073         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55074
55075         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55076         glibc.
55077         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55078         arg to memcpy.
55079
55080         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55081         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55082         Don't use lvalue casts, as GCC plans to remove support for them
55083         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55084         was also present in the non-GCC version, indicating that this
55085         code had always been buggy and had never been widely used.
55086         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55087         Use the fast variant of each macro, rather than copying the
55088         definiens of the fast variant; that way, we'll be more likely to
55089         catch future bugs in the fast variants.
55090
55091 2003-10-20  Bruno Haible  <bruno@clisp.org>
55092
55093         * modules/wait-process: New file.
55094         * MODULES.html.sh (func_all_modules): Add wait-process.
55095
55096 2003-10-20  Bruno Haible  <bruno@clisp.org>
55097
55098         * m4/wait-process.m4: New file.
55099
55100 2003-10-20  Bruno Haible  <bruno@clisp.org>
55101
55102         * lib/wait-process.h: New file, from GNU gettext.
55103         * lib/wait-process.c: New file, from GNU gettext.
55104
55105 2003-10-19  Jim Meyering  <jim@meyering.net>
55106
55107         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55108         HPUX 10.20.
55109
55110 2003-10-18  Karl Berry  <karl@gnu.org>
55111
55112         * config/config.guess: update from config.
55113
55114 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55115
55116         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55117         (getgroups): First arg is int, not size_t.
55118         Don't let 'free' mangle errno.
55119
55120 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55121
55122         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55123
55124 2003-10-16  Karl Berry  <karl@gnu.org>
55125
55126         * config/config.{guess,sub}: update from config.
55127
55128 2003-10-16  Jim Meyering  <jim@meyering.net>
55129
55130         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55131         memcpy.
55132
55133 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55134
55135         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55136         (SIZE_MAX): Remove.
55137         (new_exclude, add_exclude_file): Initial size no longer needs to
55138         be a power of 2.
55139         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55140         our own address arithmetic overflow checking.
55141
55142         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55143         (fnmatch): Do not alloca more than 2000 wide characters;
55144         instead, use malloc for large buffers.
55145         Check for address arithmetic overflow, and return -1
55146         with errno set to ENOMEM in that case.
55147         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55148         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55149         instead, return -1.  Check for address arithmetic overflow.
55150
55151 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55152
55153         Handle invalid suffixes and overflow independently, so that
55154         callers can treat them independently as needed.  Fix some bugs in
55155         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55156         suffix for a human-readable blocksize.  The major caller-visible
55157         change is the addition of a new
55158         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55159         that both overflow and suffix chars were found.
55160
55161         * lib/human.c (humblock): Don't check separately for invalid suffix
55162         char; that is xstrtoumax's job (now that its bug is fixed).
55163         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55164         INTMAX_MAX]: New macros.
55165         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55166         TYPE_MAXIMUM): New macros.
55167         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55168         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55169         if overflow occurs, as it's what __strtol does and it's more useful
55170         in practice.
55171         (__xstrtol): If __strtol reports some error other than ERANGE,
55172         reflect it to the caller as LONGINT_INVALID.  If it reports
55173         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55174         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55175         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55176         value.
55177         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55178         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55179         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55180         [defined UINTMAX_MAX]: New macros.
55181
55182 2003-10-14  Bruno Haible  <bruno@clisp.org>
55183
55184         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55185
55186 2003-10-14  Bruno Haible  <bruno@clisp.org>
55187
55188         * m4/sig_atomic_t: New file, from GNU gettext.
55189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55190
55191 2003-10-14  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55194         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55195         Also use volatile where needed.
55196
55197 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55198
55199         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55200         Change maintainer from Bruno Haible to 'all'.
55201
55202 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55203
55204         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55205
55206 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55207
55208         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55209         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55210         and define in terms of the other primitives.
55211         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55212         (SIZE_MAX): Define if not already defined.
55213         (array_size_overflow): New function.
55214         (xalloc_die): Abort instead of exiting if 'error' returns.
55215         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55216         (xmalloc, xrealloc): Use them.
55217         (xcalloc): Check for address arithmetic overflow.
55218         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55219         a bit faster than strcpy.
55220
55221 2003-10-10  Simon Josefsson  <jas@extundo.com>
55222
55223         * modules/argp (Depends-on): Add restrict and strcase.
55224
55225 2003-10-10  Simon Josefsson  <jas@extundo.com>
55226
55227         * m4/argp.m4: Add AC_C_INLINE.
55228
55229 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55230
55231         Merge getpass from libc, plus a few fixes.
55232
55233         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55234         Include <stdbool.h>.
55235         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55236         __fsetlocking to empty.
55237         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55238         do include <bits/libc-lock.h>.
55239         Do not include <fcntl.h>; not needed.
55240         [_LIBC]: Include <wchar.h>.
55241         (NOTCANCEL_MODE): New macro.
55242         (flockfile, funlockfile) [_LIBC]: New macros.
55243         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55244         [!_LIBC]: New macros.
55245         (call_fclose): New function.
55246         (getpass): Use it.  Save tty stream separately; this simplifies the
55247         code and makes it more reliable if stdin happens to equal stdout.
55248         Invoke __fsetlocking on tty.
55249         Handle thread cancellation if needed.
55250         Namespace cleanup (use __tcgetattr, __getline).
55251         Use bool for Booleans.
55252         [USE_IN_LIBIO]: Handle wide streams.
55253         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55254         stream might go where.
55255
55256         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55257         doesn't have to include <stdio.h> before us.
55258         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55259         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55260         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55261         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55262         if not declared, so that we can use getpass.c code from libc without
55263         rewriting it.
55264         (flockfile, ftrylockfile, funlockfile): New macros.
55265
55266 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55267
55268         * modules/getpass: Depend on stdbool.
55269
55270 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55271
55272         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55273
55274 2003-10-07  Karl Berry  <karl@gnu.org>
55275
55276         * config/config.{guess,sub}: update from config.
55277
55278 2003-10-06  Jim Meyering  <jim@meyering.net>
55279             Bruno Haible  <bruno@clisp.org>
55280
55281         This lets translators provide better translations for the
55282         "Written by ..." part of --version output.
55283         * lib/version-etc.h: Include stdarg.h.
55284         (version_etc_copyright): Declare as readonly.
55285         (version_etc): Make this function variadic with a NULL-terminated list
55286         of author name strings.
55287         (version_etc_va): New declaration.
55288         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55289         (version_etc_copyright): Declare as readonly.
55290         (version_etc_va): New function. Provide a different translatable string
55291         for each possible number of authors < 10. Abbreviate when there are 10
55292         authors or more.
55293         (version_etc): Make this function variadic. Call version_etc_va.
55294         Suggestion from Gary V. Vaughan.
55295
55296         * lib/long-options.h (parse_long_options): Change prototype: the
55297         authors string is moved to the end and becomes variadic.
55298         * lib/long-options.c: Include stdarg.h.
55299         (parse_long_options): Make this function variadic, too.
55300         Call version_etc_va, not version_etc.
55301
55302 2003-10-06  Bruno Haible  <bruno@clisp.org>
55303
55304         * modules/version-etc-2: Remove file.
55305         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55306
55307 2003-10-06  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/fatal-signal: New file.
55310         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55311
55312 2003-10-06  Bruno Haible  <bruno@clisp.org>
55313
55314         * m4/fatal-signal.m4: New file.
55315         * m4/signalblocking.m4: New file, from GNU gettext.
55316
55317 2003-10-06  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/version-etc-2.h: Remove file.
55320         * lib/version-etc-2.c: Remove file.
55321
55322 2003-10-06  Bruno Haible  <bruno@clisp.org>
55323
55324         * lib/fatal-signal.h: New file, from GNU gettext.
55325         * lib/fatal-signal.c: New file, from GNU gettext.
55326
55327 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55328
55329         * README: Rework advice for preventing empty .o files.
55330         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55331         not <sys/types.h>.
55332
55333 2003-10-04  Karl Berry  <karl@gnu.org>
55334
55335         * lib/argp*: update from libc.
55336
55337 2003-10-04  Karl Berry  <karl@gnu.org>
55338
55339         * config/config.{guess,sub}: update from config.
55340
55341 2003-10-02  Bruno Haible  <bruno@clisp.org>
55342
55343         * modules/lchown (Include): Add lchown.h.
55344         * modules/time_r (Include): Use "..." syntax.
55345         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55346
55347 2003-10-01  Simon Josefsson  <jas@extundo.com>
55348
55349         * MODULES.html.sh (func_all_modules): Move gethostname from section
55350         'based on' to section 'lacking' POSIX:2001.
55351
55352 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55353
55354         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55355         to output mode on the same stream.
55356
55357 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55358
55359         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55360         Fix arg typo in previous patch.
55361
55362 2003-09-28  Jim Meyering  <jim@meyering.net>
55363
55364         * lib/error.c: Correct cpp indentation.
55365
55366 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55367
55368         * modules/free: New file.
55369
55370 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55371
55372         * m4/free.m4: New file.
55373
55374 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55375
55376         * lib/minmax.h (MIN, MAX)
55377         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55378         Omit the special code that used __typeof__, since we worry that
55379         it could be more trouble than it's worth.  See:
55380         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55381         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55382
55383         * lib/free.c: New file.
55384
55385 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55386
55387         Trivial fixes to Makefile.am parts of module listings.
55388         * modules/strstr: Append strstr.h to lib_SOURCES.
55389         * modules/strcase: Likewise, for strcase.h.
55390
55391 2003-09-27  Karl Berry  <karl@gnu.org>
55392
55393         * config/mkinstalldirs: update from automake.
55394
55395 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55396
55397         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55398         (error_tail): Do not loop, reallocating temporary buffer, since
55399         the output cannot contain more wide characters than the input
55400         contains bytes, the size must be big enough already.  This avoids
55401         one potential size overflow calculation.  Check for size overflow
55402         when calculating temporary buffer size.  Free temporary buffer
55403         when done, if it was allocated with malloc; this plugs a memory
55404         leak.  Remove casts from void * to pointers, that are no longer
55405         needed now that we're assuming C89 or better.
55406
55407         Merge error changes from glibc.
55408
55409         * lib/error.c, error.h: Update copyright notice header to match glibc.
55410         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55411         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55412         Disable cancellation while printing error.
55413         * lib/error.h: Prepend __ to parameter names.
55414
55415 2003-09-26  Jim Meyering  <jim@meyering.net>
55416
55417         * lib/error.c (error_tail): Move some declarations
55418         into inner scope where the local variables are used.
55419
55420 2003-09-26  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55423         stpncpy().
55424         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55425
55426 2003-09-26  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55429         (stpncpy): Define as alias for gnu_stpncpy.
55430         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55431
55432 2003-09-25  Simon Josefsson  <jas@extundo.com>
55433
55434         * lib/xgetdomainname.h: New file.
55435         * lib/xgetdomainname.c: New file.
55436
55437 2003-09-25  Simon Josefsson  <jas@extundo.com>
55438             Bruno Haible  <bruno@clisp.org>
55439
55440         * modules/getdomainname: New file.
55441         * modules/xgetdomainname: New file.
55442         * MODULES.html.sh (func_all_modules): Add getdomainname,
55443         xgetdomainname.
55444
55445 2003-09-25  Simon Josefsson  <jas@extundo.com>
55446             Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/getdomainname.m4: New file.
55449
55450 2003-09-25  Simon Josefsson  <jas@extundo.com>
55451             Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/getdomainname.h: New file.
55454         * lib/getdomainname.c: New file.
55455
55456 2003-09-25  Karl Berry  <karl@gnu.org>
55457
55458         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55459
55460 2003-09-25  Karl Berry  <karl@gnu.org>
55461
55462         * config/install-sh: update from automake.
55463
55464 2003-09-25  Bruno Haible  <bruno@clisp.org>
55465
55466         * modules/version-etc-2: New file, from modules/version-etc with
55467         modifications.
55468         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55469
55470 2003-09-25  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55473         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55474
55475 2003-09-24  Simon Josefsson  <jas@extundo.com>
55476
55477         * modules/xgethostname: Add xgethostname.h.
55478
55479 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55480
55481         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55482         the buffer associated with the argument.  Bug reported by
55483         Simon Josefsson.
55484
55485 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55486
55487         * README: Document assumptions that 'int' is at least 32 bits
55488         wide, that integer arithmetic is 2's complement without overflow,
55489         that there are no holes in integer values, that adding sizes of
55490         two nonoverlapping objects can't overflow, and that all-bits-zero
55491         yields scalar zero.  Fix spelling and capitalization typos.
55492
55493 2003-09-19  Karl Berry  <karl@gnu.org>
55494
55495         * lib/argp.h: update from libc.
55496
55497 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55498
55499         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55500         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55501         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55502
55503 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55504
55505         * gnulib-tool: Use "test -h", not "test -L", for portability
55506         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55507         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55508         (sed_extract_prog): Issue s commands one-by-one, rather than
55509         using \| in one s command.
55510
55511 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55512
55513         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55514         input error, instead of returning NULL the next time we are called
55515         (and therefore losing track of errno).
55516
55517 2003-09-16  Bruno Haible  <bruno@clisp.org>
55518
55519         * gnulib-tool (func_create_testdir): Warn about duplicated
55520         dependencies.
55521
55522 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55523
55524         * modules/argmatch, modules/fatal, modules/obstack,
55525         modules/xalloc, modules/xgethostname: Sort dependencies by
55526         importance, not alphabetically.
55527
55528 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55529
55530         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55531         fails, so that the caller gets the proper errno.
55532
55533         * lib/readutmp.c (read_utmp): Likewise.
55534         Check for fstat error.  Close stream and free storage
55535         when failing.
55536
55537 2003-09-14  Karl Berry  <karl@gnu.org>
55538
55539         * config/srclist.txt (strdup.c): disable for c89 changes.
55540
55541 2003-09-14  Jim Meyering  <jim@meyering.net>
55542
55543         * lib/getloadavg.c: Correct cpp indentation.
55544         * lib/strdup.c: Likewise.
55545         * lib/vasnprintf.c: Likewise.
55546
55547 2003-09-14  Bruno Haible  <bruno@clisp.org>
55548
55549         * modules/fwriteerror: New file.
55550         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55551
55552 2003-09-14  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/fwriteerror.h: New file.
55555         * lib/fwriteerror.c: New file.
55556
55557 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55558
55559         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55560         modules/xgethostname, modules/xalloc: Depend on exit.
55561
55562 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55563
55564         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55565
55566         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55567         and AC_MINIX, too, so that their extensions are available.
55568
55569         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55570         This macro has been superseded by gl_BACKUPFILE.
55571
55572         More patches to assume C89 or better.
55573
55574         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55575
55576         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55577         unconditionally.
55578         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55579         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55580         Include <string.h>, <stdlib.h> unconditionally.
55581         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55582         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55583         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55584         headers or for string.h.
55585         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55586         or strtoul.
55587
55588         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55589         headers.
55590         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55591         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55592         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55593         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55594         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55595         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55596         memcpy, memset.
55597         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55598         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55599         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55600         strtol.
55601         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55602         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55603         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55604         strtoul.
55605
55606 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55607
55608         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55609         * lib/obstack.c [!defined _LIBC]: Likewise.
55610         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55611         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55612         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55613
55614         More changes to assume C89 or better.
55615
55616         * lib/error.c (error_tail): Assume vprintf.
55617
55618         * lib/argmatch.c (getenv): Remove decl.
55619         * lib/progreloc.c (get_full_program_name): Define via prototype.
55620         * lib/setenv.c (clearenv): Likewise.
55621         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55622         needed.
55623         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55624         (malloc, memcpy): Remove decls.
55625         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55626         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55627         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55628         (memcpy): Remove macro.
55629         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55630         (__P): Remove.  All uses removed.
55631         (PTR): Remove.  All uses changed to void *.
55632         (CHAR_BIT, NULL): Remove.
55633         (spaces, zeros, memset_space, memset_zero)
55634         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55635         Remove.
55636         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55637         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55638         Define with prototype.
55639         Remove now-unnecessary prototype decl.
55640         (extra_args_spec): Assume ANSI C.  All uses changed.
55641         (extra_args_spec_iso): Remove.
55642         (my_strftime, emacs_strftimeu): Define via prototype.
55643         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55644         unconditionally.
55645         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55646         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55647         (strtoul, strtol): Remove decls.
55648         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55649         LONG_MAX): Remove.
55650         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55651         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55652         (LOCALE_PARAM_PROTO): New macro.
55653         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55654         (INTERNAL (strtol), strtol): Define with a prototype.
55655         (PARAMS): Remove.  All uses removed.
55656         * lib/tempname.c: Include <string.h> unconditionally.
55657         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55658         * lib/xgethostname.c (main): Define with a prototype.
55659         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55660         Include <stdlib.h> unconditionally.
55661         (calloc, malloc, realloc, free): Remove decls.
55662         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55663         Include <stdlib.h> unconditionally.  Sort include file names.
55664         (strtod): Remove.
55665         (xstrtod): Define with a prototype.
55666         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55667         (strtol, strtoul): Remove decls.
55668
55669 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55670
55671         More patches to assume C89 or better.
55672         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55673         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55674         string.h, memchr, STDC_HEADERS.
55675
55676 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55677
55678         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55679         Include <stdlib.h>, <string.h> unconditionally.
55680         Remove now-unnecessary cast to char *.
55681         * lib/strnlen.c: Include <string.h> unconditionally.
55682         * lib/yesno.c (yesno): Define with a prototype.
55683
55684 2003-09-11  Bruno Haible  <bruno@clisp.org>
55685
55686         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55687
55688 2003-09-10  Jim Meyering  <jim@meyering.net>
55689
55690         * lib/error.c: Correct indentation of cpp directives.
55691
55692 2003-09-10  Bruno Haible  <bruno@clisp.org>
55693
55694         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55695         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55696         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55697         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55698         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55699         <stdlib.h> and <string.h> checks.
55700         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55701         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55702
55703 2003-09-10  Bruno Haible  <bruno@clisp.org>
55704
55705         * lib/strcspn.c: Include <string.h> unconditionally.
55706         * lib/strpbrk.c: Include <string.h> unconditionally.
55707         * lib/strstr.c: Include <string.h> unconditionally.
55708         * lib/unicodeio.c: Include <string.h> unconditionally.
55709         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55710         * lib/unsetenv.c: Likewise.
55711         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55712         * lib/yesno.c: Include <stdlib.h> unconditionally.
55713         (rpmatch): Add prototype.
55714
55715 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55716
55717         More patches to assume C89 or better.
55718         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55719         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55720         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55721         or for string.h.
55722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55723         stdlib.h.
55724         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55725         C headers.
55726         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55727         string.h.
55728         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55729         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55730         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55731         or for string.h.
55732         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55733         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55734         C headers.
55735         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55736         memcpy.
55737         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55738         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55739         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55740         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55741         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55742         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55743         string.h, free.
55744         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55745         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55746         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55747         C headers, or for string.h.
55748         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55749         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55750         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55751         headers, memory.h, stdlib.h, string.h, strings.h.
55752         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55753         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55754         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55755         strchr.
55756         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55757         headers, memory.h, string.h.
55758         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55759         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55760         free.
55761         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55762         headers.
55763         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55764         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55765         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55766         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55767         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55768
55769 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55770
55771         More K&R removal.
55772
55773         * lib/acosl.c (main): Use a prototype.
55774         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55775         tanl.c: Likewise.
55776
55777         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55778
55779         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55780         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55781         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55782         with a prototype.
55783         * lib/getopt.c (const): Remove macro.
55784         Include <string.h> unconditionally.
55785         (my_index): Remove; all uses changed to strchr.
55786         (strlen): Remove decl.
55787         (exchange): Remove forward decl; no longer needed.
55788         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55789         Define with prototype.
55790         * lib/getopt1.c (const): Remove macro.
55791         (getopt_long, getopt_long_only, main): Define with prototype.
55792
55793         * lib/getugroups.c: Include <string.h> unconditionally.
55794
55795         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55796         (getusershell, setusershell, endusershell, readname, main):
55797         Define with prototypes.
55798
55799         * lib/group-member.c: Include group-member.h first.
55800         Include <stdlib.h> unconditionally.
55801
55802         * lib/hard-locale.c: Include hard-locale.h first.
55803         Include <stdlib.h>, <string.h> unconditionally.
55804
55805         * lib/hash.c (free, malloc): Remove decls.
55806         Include <stdlib.h> unconditionally.
55807
55808         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55809         (getenv): Do not declare.
55810
55811         * lib/idcache.c: Include <string.h> unconditionally.
55812
55813         * lib/long-options.c: Include long-options.h first, to test interface.
55814         Include <stdlib.h> unconditionally.
55815
55816         * lib/makepath.c: Include makepath.h first, to test interface.
55817         Include <stdlib.h> and <string.h> unconditionally.
55818
55819         * lib/linebuffer.c: Include <stdlib.h>.
55820         (free): Remove decl.
55821
55822         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55823         stddef.h. rpl_malloc returns void *, not char *.
55824         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55825         prototype.
55826
55827         * lib/md5.h: Include <limits.h> unconditionally.
55828         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55829         (__P): Remove; all uses removed.
55830         * lib/md5.c: Include "md5.h" first.
55831         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55832         md5_buffer, md5_process_bytes, md5_process_block):
55833         Define with prototypes.
55834         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55835         * lib/sha.c: Include "sha.h" first.
55836         Include <stdlib.h>, <string.h> unconditionally.
55837
55838         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55839         * lib/memcmp.c (__ptr_t): Likewise.
55840         * lib/memrchr.c (__ptr_t): Likewise.
55841         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55842         Include <string.h> unconditionally.
55843         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55844         * lib/memchr.c: Include <stdlib.h> unconditionally.
55845         * lib/memchr.c (LONG_MAX): Remove.
55846         * lib/memrchr.c (LONG_MAX): Likewise.
55847         * lib/memchr.c (__memchr): Define via a prototype.
55848         * lib/memrchr.c (__memrchr): Likewise.
55849         * lib/memcmp.c (__P): Remove, and remove all uses.
55850         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55851         Remove forward decls; no longer needed.
55852         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55853         Use types required by C89 in prototype.
55854
55855         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55856         * lib/savedir.c: Likewise.
55857         * lib/mkdir.c (free): Remove decl.
55858         * lib/rmdir.c (rmdir): Define with a prototype.
55859         * lib/savedir.c: Include savedir.h first, to test interface.
55860
55861         * lib/mktime.c (STDC_HEADERS): Remove.
55862         Include <stdlib.h>, <string.h> unconditionally.
55863
55864         * lib/modechange.c: Include <stdlib.h> unconditionally.
55865         (malloc): Remove decl.
55866
55867         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55868         (free): Remove decl.
55869
55870         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55871         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55872         (This type really should be intptr_t, but that's a C99ism.)
55873         (_obstack_memcpy): Remove: all uses changed to memcpy.
55874         Include <string.h> unconditionally.
55875         (struct obstack): Assume __STDC__ for types of members
55876         chunkfun, freefun, extra_arg.
55877         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55878         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55879         obstack_begin, obstack_specify_allocation,
55880         obstack_specify_allocation_with_arg, obstack_chunkfun,
55881         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55882         Remove unprototyped decls and the macros that use them.
55883         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55884         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55885         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55886         (defined __STDC__ && __STDC__)]:
55887         Remove nonprototyped code.
55888         Include <stdlib.h> unconditionally.
55889         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55890         _obstack_allocated_p, _obstack_free, obstack_free,
55891         _obstack_memory_used, print_and_abort):
55892         Define using prototypes.
55893         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55894         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55895         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55896         obstack_next_free, obstack_object_size, obstack_room) [0]:
55897         Remove unused, unprototyped code.
55898
55899         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55900
55901         * lib/physmem.c (physmem_total, physmem_available, main): Define
55902         with prototypes.
55903
55904         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55905         (main): Define with a prototype.
55906
55907         * lib/posixver.c (getenv): Remove decl.
55908
55909         * lib/putenv.c (malloc): Returns void *, not char *.
55910         Include <string.h> unconditionally.
55911         (strchr, memcpy, NULL): Do not define.
55912
55913         * lib/readtokens.c: Include readtokens.h first, to test interface.
55914         Include <stdlib.h>, <string.h> unconditionally.
55915         (init_tokenbuffer): Define with a prototype.
55916
55917         * lib/regex.c (PARAMS): Remove.  All uses removed.
55918         All uses of _RE_ARGS removed, too.
55919         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55920         unconditionally.
55921         (bzero): Assume memset exists.
55922         (memcmp, memcpy, NULL): Remove.
55923         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55924         char, or assignments to local vars of type signed char.
55925         (init_syntax_once, PREFIX(extract_number_and_incr),
55926         PREFIX(print_partial_compiled_pattern),
55927         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55928         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55929         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55930         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55931         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55932         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55933         wcs_compile_range, byte_compile_range, truncate_wchar,
55934         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55935         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55936         count_mbs_length, wcs_re_match_2_internal,
55937         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55938         PREFIX(alt_match_null_string_p),
55939         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55940         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55941         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55942         now-unnecessary declaration, if any.
55943         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55944         regcomp, regexec):
55945         Remove now-unnecessary casts among pointer types.
55946         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55947
55948         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55949         (free): Remove decl.
55950
55951         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55952
55953         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55954         (free): Remove decl.
55955
55956         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55957         * lib/xgetcwd.c: Likewise.
55958
55959         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55960         (free): Remove decl.
55961
55962         * lib/strchrnul.c (strchrnul): Define with a prototype.
55963         Fix bug: c_in was not converted to char before searching.
55964
55965         The following changes are not K&R related:
55966
55967         * lib/group-member.h: Include <sys/types.h>, so that this file is
55968         self-contained.
55969         * lib/makepath.h: Likewise.
55970
55971         * lib/getusershell.c (readname, default_index, line_size, readname):
55972         Use size_t, not int, for sizes.
55973         (readname): If the size overflows, report an error instead of
55974         looping forever.
55975
55976 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55977
55978         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55979         libc.
55980
55981 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55982
55983         * README: New section: portability guidelines.
55984
55985 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55986
55987         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55988         C89 spec.
55989
55990 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55991
55992         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55993
55994 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55995
55996         Assume C89 or better; remove K&R cruft.
55997         A few of these changes were first proposed by Derek Robert Price
55998         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55999
56000         * lib/addext.c: Include <string.h> unconditionally.
56001         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56002         Don't declare getenv or malloc.
56003
56004         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56005         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56006         (NULL): Remove.
56007         (find_stack_direction, alloca): Use prototypes.
56008
56009         * lib/atexit.c (atexit): Define using a prototype.
56010
56011         * lib/basename.c, dirname.c, stripslash.c:
56012         Include <string.h> unconditionally.
56013
56014         * lib/bcopy.c: Include <stddef.h>.
56015         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56016
56017         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56018
56019         * lib/error.h (error, error_at_line, error_print_progname)
56020         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56021         * lib/error.c: Include error.h first, to check interface.
56022         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56023         (VA_START): Remove; all uses changeed to va_start.
56024         (exit, strerror): Remove decls.
56025         (error_print_progname): Prototype uncondionally.
56026         Don't include <errno.h>; no longer needed.
56027         (private_strerror): Remove.
56028         (error_tail): Always define.
56029         (error, error_at_line): Assume C89 or better; always use prototypes.
56030         * lib/fatal.c: Include "fatal.h" first, to test interface.
56031         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56032         (VA_START): Remove; all uses changed to va_start.
56033         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56034         this case.
56035         (exit): Remove decl.
56036         (fatal): Prototype unconditionally.  Assume va_start works.
56037         Abort at end, to pacify gcc.
56038
56039         * lib/euidaccess.c (main): Define with a prototype.
56040
56041         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56042
56043         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56044
56045         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56046         prototypes.
56047         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56048         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56049         (getenv): Remove decl.
56050         (fnmatch): Define using a prototype.
56051         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56052         (FCT): Define using a prototype.
56053
56054         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56055
56056         * lib/gethostname.c: Include <stddef.h>.
56057         (gethostname): Define with prototype.  Length is size_t, not int.
56058
56059 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56060
56061         Assume C89 or better; remove K&R cruft.
56062         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56063         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56064         string.h, getenv, malloc.
56065         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56066         headers.
56067         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56068         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56069         do not check for strerror.
56070         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56071         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56072         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56073         do not check for doprnt or vprintf.
56074         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56075         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56076
56077 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56078
56079         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56080         getversion.c should have been removed then, but was accidentally
56081         preserved.
56082
56083         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56084         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56085
56086 2003-09-08  Karl Berry  <karl@gnu.org>
56087
56088         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56089                 config, forget about prep.
56090
56091         * config/depcomp, missing: update from automake.
56092
56093 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56094
56095         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56096         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56097
56098 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56099
56100         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56101         copy_tm_result.  Bug reported by Simon Josefsson in
56102         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56103
56104 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56105
56106         * m4/time_r.m4: New file.
56107         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56108         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56109         is. Check for timegm declaration.
56110         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56111         Do not check for gmtime_r.
56112         Replace mktime if __mktime_internal does not exist and if mktime
56113         hasn't been replaced already.
56114
56115 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56116
56117         * lib/time_r.c, lib/time_r.h: New files.
56118
56119         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56120         __localtime_r.
56121         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56122         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56123
56124         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56125         __gmtime_r.
56126         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56127         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56128         Include <time_r.h>.
56129
56130         * lib/timegm.c: Switch to glibc implementation, with the following
56131         changes:
56132         [defined HAVE_CONFIG_H]: Include <config.h>.
56133         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56134         (__mktime_internal) [!defined _LIBC]: New decl.
56135         (__gmtime_r) [!defined _LIBC]: New macro and function.
56136         (timegm): Use a prototype, since gnulib assumes C89.
56137         Do not bother declaring tmp to be const, as it's not really usefu.
56138         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56139         (timegm): Declare only if HAVE_DECL_TIMEGM.
56140
56141 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56142
56143         * MODULES.html.sh (func_all_modules): Add time_r.
56144         * modules/time_r: New file.
56145         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56146         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56147
56148 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56149
56150         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56151         Bug reported by Lute Kamstra in
56152         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56153
56154         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56155         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56156         course with correspondingly smaller numbers for tomorrow and
56157         yesterday.  From Tadayoshi Funaba.  Originally installed into
56158         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56159         coreutils merge?).
56160
56161 2003-08-31  Simon Josefsson  <jas@extundo.com>
56162
56163         * modules/timegm: New file.
56164         * MODULES.html.sh (func_all_modules): Add timegm.
56165
56166 2003-08-31  Simon Josefsson  <jas@extundo.com>
56167
56168         * m4/timegm.m4: New file.
56169
56170 2003-08-31  Simon Josefsson  <jas@extundo.com>
56171
56172         * lib/timegm.h: New file.
56173         * lib/timegm.c: New file.  Based on
56174         wget-1.8.2/src/http.c:mktime_from_utc.
56175
56176 2003-08-31  Karl Berry  <karl@gnu.org>
56177
56178         * lib/argp.h: update from libc.
56179
56180 2003-08-28  Bruno Haible  <bruno@clisp.org>
56181
56182         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56183         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56184         followed by '#define fnmatch fnmatch_posix' gives an error.
56185
56186 2003-08-28  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56189         warning on QNX, which defines O_BINARY to 000000.
56190
56191 2003-08-27  Jim Meyering  <jim@meyering.net>
56192
56193         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56194         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56195         would fail after 32.  Reported by Danny Levinson.  Details here:
56196         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56197
56198 2003-08-24  Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56201         MSVC7 <stdio.h> is included later.
56202
56203 2003-08-22  Simon Josefsson  <jas@extundo.com>
56204
56205         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56206
56207 2003-08-20  Karl Berry  <karl@gnu.org>
56208
56209         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56210
56211 2003-08-20  Bruno Haible  <bruno@clisp.org>
56212
56213         * modules/progname: New file.
56214         * MODULES.html.sh (func_all_modules): Add progname.
56215
56216 2003-08-20  Bruno Haible  <bruno@clisp.org>
56217
56218         * lib/progname.h: New file, from GNU gettext.
56219         * lib/progname.c: New file, from GNU gettext.
56220         * lib/progreloc.c: New file, from GNU gettext.
56221
56222 2003-08-19  Jim Meyering  <jim@meyering.net>
56223
56224         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56225         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56226
56227 2003-08-19  Bruno Haible  <bruno@clisp.org>
56228
56229         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56230         more.
56231
56232 2003-08-19  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/xstrdup.c: Assume <string.h> exists.
56235
56236 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56237
56238         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56239         in makefile rules.
56240
56241 2003-08-18  Jim Meyering  <jim@meyering.net>
56242
56243         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56244         * m4/lib-ld.m4: Likewise.
56245
56246 2003-08-18  Jim Meyering  <jim@meyering.net>
56247
56248         * lib/setenv.h: Indent nested cpp directive.
56249         * lib/vasnprintf.c: Remove trailing blanks.
56250
56251 2003-08-17  Simon Josefsson  <jas@extundo.com>
56252
56253         * modules/xstrndup: New file.
56254         * MODULES.html.sh (func_all_modules): Add xstrndup.
56255
56256 2003-08-17  Simon Josefsson  <jas@extundo.com>
56257
56258         * modules/argp: Fix autoconf macro name. Add more dependencies.
56259
56260 2003-08-17  Simon Josefsson  <jas@extundo.com>
56261
56262         * m4/xstrndup.m4: New file.
56263
56264 2003-08-17  Simon Josefsson  <jas@extundo.com>
56265
56266         * m4/argp.m4: New file.
56267
56268 2003-08-17  Simon Josefsson  <jas@extundo.com>
56269             Bruno Haible  <bruno@clisp.org>
56270
56271         * lib/xstrndup.h: New file.
56272         * lib/xstrndup.c: New file.
56273
56274 2003-08-17  Bruno Haible  <bruno@clisp.org>
56275
56276         * modules/strndup (Files, Include): Add lib/strndup.h.
56277
56278 2003-08-17  Bruno Haible  <bruno@clisp.org>
56279
56280         * modules/euidaccess (Files): Add lib/euidaccess.h.
56281
56282 2003-08-17  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/strndup.h: New file.
56285
56286 2003-08-17  Bruno Haible  <bruno@clisp.org>
56287
56288         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56289         like AC_GNU_SOURCE.
56290         * modules/extensions (configure.ac): Comment out the invocation of
56291         gl_USE_SYSTEM_EXTENSIONS.
56292
56293 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56294
56295         Merges from coreutils, etc.
56296         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56297         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56298         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56299         fixing a typo.
56300         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56301         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56302
56303 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56304
56305         Document merge from coreutils.
56306         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56307         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56308         * modules/utime: Add m4/utimes-null.m4.
56309
56310 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56311
56312         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56313         space, undoing this 2003-08-12 change:
56314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56315
56316 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56317
56318         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56319         strtoul.c from libc, undoing this 2003-08-12 change:
56320         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56321
56322 2003-08-16  Jim Meyering  <jim@meyering.net>
56323
56324         Merges from coreutils.
56325         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56326         prefix.  Adjust cache variables similarly.  Create 500 rather than
56327         just 300 files, to exercise bug on Darwin6.5, too.
56328         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56329         $missing_dir.
56330         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56331         AM_SYS_POSIX_TERMIOS.
56332         Reported by mkc@mathdogs.com.
56333         Also change use of $am_cv_sys_posix_termios
56334         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56335         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56336         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56337         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56338         in /proc/mounts until it finds one with matching device number.  This
56339         is unnecessary when the FILE argument *is* a mount point.  No stat call
56340         is necessary in that case.  So, disable the statvfs-testing code on
56341         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56342         as RedHat bug# 84846.
56343         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56344         to 1MB, so as not to render systems with no stack size limit (e.g.,
56345         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56346         Include <unistd.h>.  On some systems,
56347         it is required for the definition of _SC_PAGESIZE.
56348
56349 2003-08-16  Jim Meyering  <jim@meyering.net>
56350
56351         Merge from coreutils.
56352         * lib/xstrtoimax.c: #else #if -> #elif.
56353         * lib/xstrtoumax.c: Likewise.
56354
56355 2003-08-16  Jim Meyering  <jim@meyering.net>
56356
56357         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56358         * m4/utimes.m4: Removed.
56359         * m4/utimes-null.m4: Renamed from utimes.m4.
56360
56361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56362         to 1MB, so as not to render systems with no stack size limit (e.g.,
56363         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56364         Include <unistd.h>.  On some systems,
56365         it is required for the definition of _SC_PAGESIZE.
56366
56367 2003-08-16  Jim Meyering  <jim@meyering.net>
56368         and Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         Merges from coreutils, etc.
56371
56372         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56373         using the latest version from cvs.  This avoids problems with #line
56374         directives using a vendor (Sun) compiler.
56375         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56376         Don't set GETGROUPS_LIB here; now it's
56377         done via getgroups.m4's wrapper function.
56378         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56379         rather than just in sh-util/configure.in, so that the
56380         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56381         same.
56382         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56383         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56384         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56385         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56386         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56387         Remove code that is now done by the newly-required macros.
56388         Append $(EXEEXT) to DF_PROG.
56389         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56390         Do not invoke or require the following here,
56391         since prereq.m4 or some gnulib .m4 now does this for us:
56392         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56393         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56394         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56395         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56396         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56397         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56398         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56399         AC_FUNC_OBSTACK.
56400         Do not replace the following functions, as this is now the job
56401         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56402         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56403         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56404         atexit getpass, strdup, getpagesize.
56405         Replace 'raise'.
56406         Do not check for the following functions, as this is now the job
56407         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56408         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56409         setregid.
56410         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56411         Check for sys/sysctl.h.
56412         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56413         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56414         of checking for ssize_t ourselves.
56415
56416         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56417         Require every macro that gnulib/modules/* suggests for us.
56418         (jm_PREREQ_ADDEXT): New macro.
56419         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56420         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56421
56422         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56423         (gl_PHYSMEM): Use it.
56424         Also check for `table' function.
56425         Check for new headers and functions.
56426         Add check for sys/sysmp.h.
56427         With suggestions from Kaveh Ghazi.
56428         Ignore headers that are present but cannot be compiled.  This
56429         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56430         C 5.4.
56431
56432 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56433
56434         Document merge from coreutils.
56435         * modules/userspec: Depend on posixver.
56436         * modules/strftime: Depend on tzset.
56437
56438 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56439
56440         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56441         rather than tab, after '#' in shell-script copyright notices.
56442         Suggested by Bruno Haible.
56443
56444 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56445
56446         * config/srclist-update: Use three spaces, rather than tab, after '#'
56447         in shell-script copyright notices.  Suggested by Bruno Haible.
56448         Remove unnecessary parenthesization in regular expression.
56449
56450 2003-08-15  Jim Meyering  <jim@meyering.net>
56451
56452         Merge from coreutils.
56453         * lib/xgethostname.c: Include <stdlib.h>.
56454         (xghostname): Don't exit for anything other than memory-related
56455         failure; just return NULL.
56456         * lib/userspec.c: Include "posixver.h".
56457         (parse_user_spec): Accept `.' as a separator only
56458         in pre-POSIX-200112 mode.
56459         * lib/strtoimax.c: Use #elif rather than #else #if.
56460         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56461         Remove function, now that we can rely on a working tzset function.
56462         [!_LIBC]: Ensure that the required autoconf test has been run.
56463         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56464         Use underlying_strftime for %r.
56465         * lib/sha.c: Merge in some clean-up and optimization changes from
56466         glibc.
56467         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56468         Ensure that it is a multiple of 64.
56469         Rearrange loop exit tests so as to avoid performing an
56470         additional fread after encountering an error or EOF.
56471         * lib/realloc.c: Update copyright date.
56472
56473 2003-08-15  Jim Meyering  <jim@meyering.net>
56474         and Paul Eggert  <eggert@twinsun.com>
56475
56476         Merge from coreutils.
56477         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56478         member but strut utmpx does not.  Needed for AIX 4.3.3.
56479         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56480
56481 2003-08-15  Jim Meyering  <jim@meyering.net>
56482         and Paul Eggert  <eggert@cs.ucla.edu>
56483
56484         Merges from coreutils, etc.
56485         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56486         Require gl_FUNC_TZSET_CLOBBER.
56487         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56488         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56489         members.
56490
56491 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56492
56493         Help the merge from coreutils.
56494         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56495         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56496         * m4/tzset.m4: Use it too.
56497
56498 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56499
56500         * modules/tzset: New file.
56501
56502 2003-08-14  Jim Meyering  <jim@meyering.net>
56503
56504         Merges from coreutils.
56505         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56506         variable names, rather than @FNMATCH_H@.
56507         * modules/alloca: Likewise for $(ALLOCA_H).
56508
56509         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56510         the three copies of the literal target, `fnmatch.h'.
56511         * modules/alloca (alloca.h): Likewise.
56512
56513 2003-08-14  Jim Meyering  <jim@meyering.net>
56514
56515         Merge from coreutils.
56516         * m4/tzset.m4: New file.
56517         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56518         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56519         otherwise, AIX 5.1 systems would end up using the latter.
56520         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56521         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56522         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56523         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56524
56525 2003-08-14  Jim Meyering  <jim@meyering.net>
56526
56527         Merge from coreutils.
56528         * lib/obstack.h: Whitespace changes.
56529         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56530         and xcalloc return values.
56531         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56532         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56533         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56534         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56535         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56536         error from mntctl.
56537         Use mntctl's return value to drive the entry-processing loop, since
56538         we can't rely on the value of the vmt_length member in the last
56539         entry.  On some systems doing so could result in exhausting
56540         virtual memory.  Based in part on a patch from Mike Jetzer.
56541
56542 2003-08-14  Jim Meyering  <jim@meyering.net>
56543         and Paul Eggert  <eggert@twinsun.com>
56544
56545         Merges from coreutils, plus other fixes.
56546         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56547         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56548         for credits and details.  Thanks to Kaveh Ghazi for helping
56549         to keep these files in sync.
56550         (ARRAY_SIZE): Define it.
56551         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56552         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56553         (memcasecmp): Don't assume size_t fits in unsigned int.
56554         Remove casts and duplicate code.
56555         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56556         (memcpy): Remove definition.
56557         Merge in some clean-up and optimization changes from glibc.
56558         [BLOCKSIZE]: Move definition to top of file.
56559         Ensure that it is a multiple of 64.
56560         Rearrange loop exit tests so as to avoid performing an
56561         additional fread after encountering an error or EOF.
56562         * lib/md5.h (md5_uintptr): Define.
56563         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56564         return to the initial working directory.  Preserve errno
56565         for caller.
56566         * lib/idcache.c: Include "xalloc.h".
56567         (xmalloc, xrealloc): Remove decls.
56568         (getuser): Remove casts no longer required in C89.
56569         * lib/human.c: Include stdio.h, for sprintf.
56570         * lib/group-member.c: Include "xalloc.h".
56571         (xmalloc, xrealloc): Remove decls.
56572         (get_group_info): Remove casts no longer required in C89.
56573         * lib/getusershell.c (readname): Remove casts no longer required in
56574         C89.
56575         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56576         * lib/getline.c: Whitespace fix, from coreutils.
56577
56578 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56579
56580         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56581         Check for isascii.
56582
56583         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56584         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56585         Undo previous (whitespace-only) change.
56586
56587 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56588
56589         * lib/exclude.c: Include <ctype.h>
56590         (IN_CTYPE_DOMAIN): New macro.
56591         (is_space): New fn.
56592         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56593         and empty lines.
56594
56595         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56596         Undo previous (whitespace-only) change.
56597
56598 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56599
56600         * config/srclist-update: Change update back to the old behavior,
56601         leaving whitespace alone.  Use one 'sed' command rather than a
56602         pipeline.
56603         (fixlicense): Now a variable, not a function.
56604         (remove_trailing_blanks): Remove.
56605         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56606         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56607         Undo previous (whitespace-only) change.
56608
56609 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56610
56611         Merge from coreutils.
56612         * modules/euidaccess: Add lib_SOURCES, include for new
56613         file euidaccess.h
56614
56615 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56616
56617         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56618         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56619         Normalize leading white space and remove trailing white space.
56620
56621         Merge from coreutils
56622         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56623
56624         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56625         0.12.1.  These files are now being upgraded automatically by
56626         ../config/srclist-update.
56627
56628 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56629
56630         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56631         Normalize leading white space and remove trailing white space.
56632         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56633         notice, as per ../config/srclist-update.
56634
56635         Merge from coreutils.
56636         * lib/euidaccess.h: New file.
56637         * lib/euidaccess.c: Include it.
56638         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56639         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56640         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56641
56642 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56643
56644         * config/srclist-update: Add copyright notice.
56645         (remove_id_lines, remove_trailing_blanks): New constants.
56646         (fixfile): Use them to normalize spacing a bit in copied files.
56647         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56648         Normalize leading white space and remove trailing white space.
56649
56650         * config/texinfo.tex: Sync with texinfo.
56651
56652         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56653         strtoul.c from libc, to merge coreutils whitespace changes.
56654
56655         * config/srclist.txt: Get the following m4 files from gettext:
56656         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56657         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56658         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56659         wint_t.m4.
56660
56661 2003-08-12  Karl Berry  <karl@gnu.org>
56662
56663         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56664         been made.
56665
56666 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56667
56668         * modules/gnu-source, m4/gnu-source.m4:
56669         Remove; we're assuming Autoconf 2.54 or later now.
56670         Suggested by Bruno Haible.
56671         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56672
56673 2003-08-11  Bruno Haible  <bruno@clisp.org>
56674
56675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56676
56677 2003-08-11  Bruno Haible  <bruno@clisp.org>
56678
56679         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56680         (vasnprintf): Use it instead of wcslen.
56681
56682 2003-08-11  Bruno Haible  <bruno@clisp.org>
56683
56684         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56685         value to ensure that _Bool promotes to int. Use #define for _Bool when
56686         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56687
56688 2003-08-10  Karl Berry  <karl@gnu.org>
56689
56690         * lib/regex.h: update from libc (whitespace fix).
56691
56692 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56693
56694         Merge some files from coreutils.  These changes were
56695         originally made by Jim Meyering.
56696         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56697         many older Unixes require this.
56698         * lib/alloca.c (alloca): Remove cast to argument of free;
56699         no longer needed in C89.
56700         * lib/alloca_.h, regex.h: Fix white space to match
56701         what GNU indent does.
56702
56703 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56704
56705         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56706         apparently Emacs's Unicode mode got confused before my 2003-08-05
56707         checkin.
56708
56709 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56710
56711         * m4/extensions.m4: New file.
56712         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56713         Require gl_USE_SYSTEM_EXTENSIONS.
56714         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56715         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56716
56717 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56718
56719         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56720         * modules/extensions, modules/gnu-source: New files.
56721         * modules/timespec, modules/unlocked-io: Depend on extensions.
56722
56723 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56724
56725         * modules/restrict: New file.
56726         * MODULES.html.sh (func_all_modules): Add restrict.
56727         * modules/regex: Depend on restrict.
56728
56729 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56730
56731         * m4/restrict.m4: New file.
56732         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56733
56734 2003-08-07  Bruno Haible  <bruno@clisp.org>
56735
56736         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56737         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56738
56739 2003-08-07  Bruno Haible  <bruno@clisp.org>
56740
56741         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56742         makes the module 'getndelim2' compatible with the module 'getline'.
56743
56744 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56745
56746         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56747         byte with "\201" to avoid glitches when editing that source file
56748         with multi-gnome-terminal.
56749
56750 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56751
56752         * lib/bumpalloc.h: Remove.
56753
56754 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56755
56756         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56757         * modules/bumpalloc: Remove.
56758
56759 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56760
56761         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56762         GNU coding style.
56763
56764         Merge from coreutils.
56765         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56766         1. From glibc.
56767         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56768         from Karl Berry, implemented by Jim Meyering.
56769         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56770         from Dmitry V. Levin.
56771         Remove anachronistic cast of xrealloc.
56772         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56773         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56774         type. Otherwise, it wouldn't compile with at least /bin/cc on
56775         ymp-cray-unicos9.0.2.X.
56776         Combine two mostly-identical uses of alloca into one.
56777         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56778
56779 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56780
56781         [From Emacs.]
56782
56783         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56784         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56785         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56786         obsolete NLIST_NAME_UNION.
56787         [__GNU__]: Undef BSD and FSCALE.
56788         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56789
56790 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56791
56792         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56793         an enum type, so that it's guaranteed to promote to int.  See:
56794         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56795
56796 2003-08-03  Karl Berry  <karl@gnu.org>
56797
56798         * config/depcomp: update from automake.
56799
56800 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56801
56802         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56803         (strerror): Don't assume that a printable int fits in 14 bytes.
56804
56805 2003-07-31  Bruno Haible  <bruno@clisp.org>
56806
56807         * modules/getpass-gnu: New file.
56808         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56809
56810 2003-07-31  Bruno Haible  <bruno@clisp.org>
56811
56812         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56813
56814 2003-07-24  Karl Berry  <karl@gnu.org>
56815
56816         * config/missing: update from automake.
56817
56818 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56819             Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56822         * lib/getline.c (getline, getdelim): Likewise.
56823         Remove _GNU_SOURCE define; now it's defined in config.h through
56824         m4/getline.m4.
56825
56826 2003-07-23  Karl Berry  <karl@gnu.org>
56827
56828         * config/config.sub: update from prep.
56829
56830 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56831
56832         * modules/xalloc (Depends-on): Add exitfail.
56833         * modules/xmemcoll: Likewise.
56834
56835 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56836
56837         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56838         over-parenthesization in macros.
56839
56840         Sync with coreutils.
56841
56842         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56843         required by C99.
56844
56845         Use `exit_failure' for xalloc and xmemcoll instead of their own
56846         private exit-failure variables.
56847         * lib/xalloc.h (xalloc_exit_failure): Remove.
56848         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56849         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56850         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56851         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56852         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56853
56854 2003-07-20  Jim Meyering  <jim@meyering.net>
56855
56856         * modules/closeout (Depends-on): Add exitfail.
56857         Suggestion from Bruno Haible.
56858
56859 2003-07-19  Karl Berry  <karl@gnu.org>
56860
56861         * config/config.sub: update from prep.
56862
56863 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56864
56865         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56866         Remove.
56867         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56868         to test that it can stand by itself.  Include "exitfail.h".
56869         Clients should set exit_failure instead.
56870         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56871
56872 2003-07-18  Bruno Haible  <bruno@clisp.org>
56873
56874         * modules/getndelim2: New file.
56875         * modules/getline: Share files with module getndelim2.
56876         * modules/getnline: Depend on getndelim2 instead of sharing files with
56877         it. Add getnline.c to lib_SOURCES.
56878         * MODULES.html.sh (func_all_modules): Add getndelim2.
56879
56880 2003-07-18  Bruno Haible  <bruno@clisp.org>
56881
56882         * m4/getndelim2.m4: New file.
56883         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56884         invoke gl_PREREQ_GETNDELIM2.
56885         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56886         gl_PREREQ_GETNDELIM2.
56887         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56888         gl_GETNDELIM2.
56889
56890 2003-07-18  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/getndelim2.h: New file.
56893         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56894         getndelim2.h.
56895         (getndelim2): Make non-static. Change return type to ssize_t.
56896         * lib/getline.h: Change argument names.
56897         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56898         * lib/getnline.c: Include getndelim2.h.
56899
56900 2003-07-18  Andreas Schwab  <schwab@suse.de>
56901
56902         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56903
56904 2003-07-17  Karl Berry  <karl@gnu.org>
56905
56906         * config/config.sub: update from prep.
56907
56908 2003-07-17  Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/getnline: New file.
56911         * modules/getline: Add lib/getndelim2.c to source file list.
56912         * MODULES.html.sh (func_all_modules): Add getnline.
56913
56914 2003-07-17  Bruno Haible  <bruno@clisp.org>
56915
56916         * m4/getnline.m4: New file.
56917
56918 2003-07-17  Bruno Haible  <bruno@clisp.org>
56919
56920         * m4/Makefile.am.in: Remove file.
56921         * m4/Makefile.am: Remove file.
56922         * m4/Makefile.in: Remove file.
56923
56924 2003-07-17  Bruno Haible  <bruno@clisp.org>
56925
56926         * lib/getnline.h: New file.
56927         * lib/getnline.c: New file.
56928         * lib/getndelim2.c: New file, extracted from getline.c.
56929         (getndelim2): Renamed from getdelim2, with added nmax argument.
56930         * lib/getline.c: Include getndelim2.c.
56931         (getdelim2): Moved out to getndelim2.c.
56932         (getline, getdelim): Update.
56933
56934 2003-07-17  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/Makefile.am: Remove file.
56937         * lib/Makefile.in: Remove file.
56938
56939 2003-07-17  Bruno Haible  <bruno@clisp.org>
56940
56941         * configure.in: Remove file.
56942         * Makefile.in: Remove file.
56943
56944 2003-07-17  Bruno Haible  <bruno@clisp.org>
56945
56946         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56947
56948 2003-07-16  Karl Berry  <karl@gnu.org>
56949
56950         * config/srclist-update: was running fixlicense twice, which caused
56951                 texinfo.tex to be nullified for some reason.  Simplify,
56952                 $gplsrc is no longer needed as far as I can see?
56953
56954 2003-07-16  Jim Meyering  <jim@meyering.net>
56955
56956         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56957
56958 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56959
56960         * config/srclist.txt: Get the following files from gettext-runtime/intl
56961         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56962         ref-del.sin.  From Bruno Haible.
56963         * config/srclist-update (fixfile): Change grep pattern again, since the
56964         previous fix didn't work (there was another trailing $).  Use
56965         '[$]' to escape the $s.
56966
56967 2003-07-15  Karl Berry  <karl@gnu.org>
56968
56969         * lib/vasnprintf.c: update from gettext.
56970
56971 2003-07-15  Karl Berry  <karl@gnu.org>
56972
56973         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56974         gets expanded when surrounded by '$'.
56975
56976 2003-07-15  Jim Meyering  <jim@meyering.net>
56977
56978         * modules/save-cwd: Don't depend on error.  From Derek Price.
56979
56980 2003-07-15  Jim Meyering  <jim@meyering.net>
56981
56982         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56983
56984 2003-07-14  Simon Josefsson  <jas@extundo.com>
56985
56986         * modules/mempcpy: New file.
56987         * MODULES.html.sh (func_all_modules): Add mempcpy.
56988
56989 2003-07-14  Simon Josefsson  <jas@extundo.com>
56990
56991         * m4/mempcpy.m4: New file.
56992
56993 2003-07-14  Simon Josefsson  <jas@extundo.com>
56994
56995         * lib/mempcpy.h: New file.
56996         * lib/mempcpy.c: New file.
56997
56998 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56999
57000         * modules/getdate, modules/posixtm: Depend on mktime.
57001
57002 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57003
57004         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57005         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57006         unicodeio.c, unicodeio.h, unlocked-io.h:
57007         Switch from LGPL to GPL.
57008
57009 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57010
57011         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57012         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57013         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57014         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57015         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57016         updated automatically by ../config/srclist-update.  This changes
57017         their license from LPGL to GPL.
57018
57019 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57020
57021         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57022         assumed to refer to the root of the most recent stable gettext version.
57023         * config/srclistvars.sh: Add defaults for eggert.
57024         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57025         Match "This program" as well as "The program".  This is needed
57026         for gettext.
57027
57028 2003-07-14  Jim Meyering  <jim@meyering.net>
57029
57030         Don't emit diagnostics.  Let callers do that.
57031         * lib/save-cwd.c: Don't include "error.h".
57032         (save_cwd): Don't call error.  Ensure that errno is valid
57033         when returning nonzero.
57034
57035         * lib/save-cwd.h (restore_cwd): Update prototype.
57036         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57037         Simplify.  Don't call error upon failure.  Let callers do that.
57038         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57039         when auditing is enabled.  But don't bother updating the #if.
57040
57041 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57042
57043         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57044         it breaks C++ compilation.
57045         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57046
57047 2003-07-10  Simon Josefsson  <jas@extundo.com>
57048
57049         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57050
57051 2003-07-10  Jim Meyering  <jim@meyering.net>
57052
57053         * m4/clock_time.m4: Remove trailing blank.
57054         * m4/intmax_t.m4: Likewise.
57055
57056 2003-07-10  Jim Meyering  <jim@meyering.net>
57057
57058         * lib/vasnprintf.c: Remove trailing blanks.
57059         Make cpp indentation consistent.
57060
57061 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57062
57063         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57064         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57065         Switch from LGPL to GPL.
57066
57067 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57068
57069         * config/srclist.txt: Sort sublists.  Add
57070         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57071         that differ from gnulib for one reason or another; we'd like this list
57072         to be smaller but for now let's document what we have.
57073
57074 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57075
57076         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57077         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57078         and sweeter "eval x=$x".
57079         * config/srclist.txt: Get lib/argp* from glibc.
57080
57081 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57082
57083         * lib/mktime.c: Fix some boundary cases and remove need for floating
57084         point.
57085
57086         Issue a compile-time diagnostic if time_t is floating point, or if
57087         two's complement arithmetic is not in effect, or if arithmetic
57088         right shift does not propagate the sign.  These assumptions were
57089         all in the original code but they weren't checked.
57090
57091         (TIME_T_MIDPOINT, verify): New macros.
57092         (__isleap): Remove; it has integer overflow problems.
57093         (leapyear): New function, without those problems.
57094         (ydhms_tm_diff): Remove; splitting into two parts.
57095         (ydhms_diff): New function, containing the arithmetic part of
57096         the old ydhms_tm_diff function.  Issue a compile-time
57097         diagnostic if we are not using C99 integer division.
57098         Avoid casts when possible.
57099         (guess_time_tm): New function, containing the checking part of
57100         the old ydhms_tm_diff function.  Return the new value, rather than
57101         the difference between it and the old.  Accept a new argument T
57102         so that *T specifies the old value.  Check for overflow in the result.
57103
57104         (__mktime_internal): Use a time_t offset, not a long int offset.
57105         This undoes the 2003-06-04 change, which is no longer needed now
57106         that we have better overflow checking.
57107         (localtime_offset): Likewise.
57108
57109         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57110         and long are 64-bit but int is only 32-bit.
57111         (ydhms_diff): Use long int to store year1 and yday1.
57112         Issue a compile-time diagnostic if long int is not wide enough.
57113
57114         (__mktime_internal): Use long int to store adjusted year and yday.
57115         Use plain C rather than preprocessor commands, if that doesn't
57116         affect efficiency.
57117         Check for overflow (and try to repair) after each probe
57118         rather than checking only at the very end.  This avoids some bugs
57119         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57120         does not equal GMT offset at maximum time).
57121         Use integer to check for overflow rather than floating point; this
57122         is more portable to non-IEEE hosts, and is a tad faster.
57123         When we detect that we are oscillating between two values,
57124         don't check whether tm_isdst has the requested value, since
57125         we already know the answer.  When tm_isdst has the wrong value,
57126         use a different heuristic to find the right one, based on the
57127         extreme values actually observed in practice in tz2003a,
57128         rather than the (overly optimistic) "previous 3 calendar quarters".
57129
57130         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57131         "T const" to accommodate glibc style.
57132         (check_result): Use less-confusing report format.  "long" -> "long int.
57133         (main): Likewise.
57134         Don't loop if the iteration overflows time_t.
57135         Allow a negative step in the iteration.
57136
57137 2003-07-06  Karl Berry  <karl@gnu.org>
57138
57139         * config/depcomp: update from automake.
57140         * config/config.sub: update from prep.
57141
57142 2003-07-03  Karl Berry  <karl@gnu.org>
57143
57144         * config/config.guess: update from prep.
57145
57146 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57147
57148         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57149         xreadlink.c now includes it unconditionally.
57150
57151 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57152
57153         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57154         having it depend on HAVE_SYS_TYPES_H.
57155
57156 2003-07-01  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57159         <sys/types.h> should be sufficient.
57160         Reported by Paul Eggert.
57161
57162 2003-06-26  Karl Berry  <karl@gnu.org>
57163
57164         * config/depcomp: update from automake.
57165
57166 2003-06-26  Bruno Haible  <bruno@clisp.org>
57167
57168         * modules/human: Depend on module stdbool.
57169
57170 2003-06-25  Bruno Haible  <bruno@clisp.org>
57171
57172         * modules/readlink: New file.
57173         * modules/xreadlink: Depend on it.
57174         * MODULES.html.sh (func_all_modules): Add readlink.
57175
57176 2003-06-25  Bruno Haible  <bruno@clisp.org>
57177
57178         * m4/readlink.m4: New file.
57179
57180 2003-06-25  Bruno Haible  <bruno@clisp.org>
57181
57182         * lib/readlink.c: New file.
57183
57184 2003-06-22  Karl Berry  <karl@gnu.org>
57185
57186         * config/srclist.txt: update mkinstalldirs from automake.
57187         * config/mkinstalldirs: update.
57188
57189 2003-06-22  Bruno Haible  <bruno@clisp.org>
57190
57191         Portability to mingw32.
57192         * m4/ssize_t.m4: New file, from GNU gettext.
57193         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57194         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57195
57196 2003-06-22  Bruno Haible  <bruno@clisp.org>
57197
57198         * modules/safe-read: Add m4/ssize_t.m4.
57199         * modules/xreadlink: Add m4/ssize_t.m4.
57200
57201 2003-06-20  Bruno Haible  <bruno@clisp.org>
57202
57203         Assume C89, so PARAMS isn't needed.
57204         * lib/unicodeio.h (PARAMS): Remove.
57205         * lib/unicodeio.c: Don't use PARAMS.
57206
57207 2003-06-18  Karl Berry  <karl@gnu.org>
57208
57209         * config/config.{guess,sub}: update from prep.
57210
57211 2003-06-18  Jim Meyering  <jim@meyering.net>
57212
57213         Merge changes from coreutils.
57214         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57215         Remove explicit declarations of xmalloc and realloc.
57216         Include xalloc.h.
57217         (read_utmp): Remove anachronistic cast of xmalloc.
57218
57219 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57220
57221         Assume C89, so PARAMS isn't needed.
57222         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57223         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57224         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57225         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57226         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57227         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57228         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57229         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57230         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57231         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57232         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57233         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57234         no longer needed. Anyway, config.h should always be included before any
57235         other file.
57236
57237 2003-06-11  Simon Josefsson  <jas@extundo.com>
57238
57239         * modules/sysexits: New file.
57240         * MODULES.html.sh (func_all_modules): Add sysexits.
57241
57242 2003-06-11  Simon Josefsson  <jas@extundo.com>
57243
57244         * lib/sysexit_.h: New file.
57245
57246 2003-06-11  Derek Price  <derek@ximbiot.com>
57247
57248         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57249         necessary.
57250
57251 2003-06-11  Bruno Haible  <bruno@clisp.org>
57252
57253         * m4/sysexits.m4: New file.
57254
57255 2003-06-10  Simon Josefsson  <jas@extundo.com>
57256
57257         * lib/argp.h: New file, from glibc.
57258         * lib/argp-ba.c: New file, from glibc.
57259         * lib/argp-eexst.c: New file, from glibc.
57260         * lib/argp-fmtstream.c: New file, from glibc.
57261         * lib/argp-fmtstream.h: New file, from glibc.
57262         * lib/argp-fs-xinl.c: New file, from glibc.
57263         * lib/argp-help.c: New file, from glibc.
57264         * lib/argp-namefrob.h: New file, from glibc.
57265         * lib/argp-parse.c: New file, from glibc.
57266         * lib/argp-pv.c: New file, from glibc.
57267         * lib/argp-pvh.c: New file, from glibc.
57268         * lib/argp-xinl.c: New file, from glibc.
57269
57270 2003-06-10  Simon Josefsson  <jas@extundo.com>
57271
57272         * modules/strchrnul: New file.
57273
57274 2003-06-10  Simon Josefsson  <jas@extundo.com>
57275
57276         * modules/argp: New file.
57277
57278 2003-06-10  Simon Josefsson  <jas@extundo.com>
57279
57280         * m4/strchrnul.m4: New file.
57281
57282 2003-06-10  Simon Josefsson  <jas@extundo.com>
57283
57284         * lib/strchrnul.h: New file.
57285         * lib/strchrnul.c: New file.
57286
57287 2003-06-10  Bruno Haible  <bruno@clisp.org>
57288
57289         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57290
57291 2003-06-07  Karl Berry  <karl@gnu.org>
57292
57293         * config/config.{guess,sub}: update from prep.
57294
57295 2003-06-07  Jim Meyering  <jim@meyering.net>
57296
57297         * modules/strtod: Use $(...) notation, not @...@ for
57298         AC_REPLACE'd variables.
57299         * modules/localcharset: Likewise.
57300
57301 2003-06-07  Jim Meyering  <jim@meyering.net>
57302
57303         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57304         in place of my name in the copyright comment.
57305         Remove definition and uses of __P.
57306
57307         From coreutils.
57308         * lib/stat.c: Don't declare xmalloc explicitly.
57309         Instead, include "xalloc.h".
57310         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57311         xrealloc, and xcalloc return values.
57312         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57313         Improve comment.
57314         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57315
57316 2003-06-07  Bruno Haible  <bruno@clisp.org>
57317
57318         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57319         avoid AC_CONFIG_LINKS.
57320         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57321         fnmatch.h, to avoid AC_CONFIG_LINKS.
57322         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57323
57324 2003-06-07  Bruno Haible  <bruno@clisp.org>
57325
57326         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57327         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57328         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57329         directory.
57330         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57331         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57332         directory.
57333
57334 2003-06-06  Jim Meyering  <jim@meyering.net>
57335
57336         Merge from coreutils.
57337         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57338         Consolidate declarations and initializations of *_base* locals.
57339
57340         Merge from coreutils.
57341         This avoids a core dump on systems without GNU putenv,
57342         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57343         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57344         (unsetenv): New static function, from GNU libc.
57345         (rpl_putenv): Use it.
57346
57347         * lib/modechange.c: Remove trailing blanks.
57348
57349         Merge from coreutils.
57350         * lib/fsusage.c: Remove declaration of statfs.
57351         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57352
57353         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57354
57355 2003-06-06  Jim Meyering  <jim@meyering.net>
57356
57357         * lib/stdbool_.h: Renamed from stdbool.h.in.
57358
57359 2003-06-06  Jim Meyering  <jim@meyering.net>
57360             Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57363         Adjust Makefile.am snippet not to redirect directly to target.
57364         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57365
57366 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57367
57368         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57369         mismatch, look in future quarters as well as past.  This fixes a
57370         bug when processing fall-backwards gaps immediately after a long
57371         period of daylight-saving time.
57372
57373         * lib/mktime.c: Assume freestanding C89 or better.
57374         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57375         (__P): Remove; not used.
57376         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57377         (mktime, not_equal_tm, print_tm, check_result,
57378         main): Use prototypes.  Use const * where appropriate.
57379         (main): Fix typo in testing code that uncovered by above changes.
57380         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57381
57382 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57383
57384         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57385         locale.h, localeconv.  This merges changes from coreutils.
57386
57387         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57388         It can be removed after the next Autoconf is released.
57389         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57390         needed.
57391
57392 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57393
57394         * lib/mktime.c: Fix Debian bug 177940
57395         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57396         (localtime_offset): Now long int, not time_t, because we want it
57397         to be guaranteed to be signed.  All uses changed.
57398         (__mktime_internal): If overflow would occur when adding offset,
57399         don't add it.
57400
57401         Merge 'human' changes from coreutils.  Rewrite to support
57402         locale-specific notations like thousands separators.
57403         * lib/human.c: Simplify authorship notice.
57404         Include human.h immediately after config.h.
57405         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57406         <limits.h>: Do not include, since human.h does.
57407         (SIZE_MAX, UINTMAX_MAX): New macros.
57408         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57409         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57410         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57411         (power_letter): Renamed from suffixes.
57412         (generate_suffix_backwards): Remove.
57413         (adjust_value): Now takes int style (because of human.h changes)
57414         and long double value (for greater precision on some platforms).
57415         (group_number): New function.
57416         (human_readable): Use it.  Use integer options, not enum.
57417         Put the options before the sizes in the arg list.
57418         Support all the new options.
57419         The old human_readable function has been removed;
57420         use inttostr.h instead.
57421         (human_readable, default_block_size, humblock):
57422         Use uintmax_t, not int, for block sizes.
57423         (human_readable_inexact, block_size_types): Remove.
57424         (block_size_opts): New constant.
57425         (human_options): Renamed from human_block_size, with new signature
57426         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57427         * lib/human.h: Add copyright and authorship notice.
57428         Include <limits.h> and <stdbool.h> unconditionally.
57429         (PARAMS): Remove.  All uses removed.
57430         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57431         (enum human_inexact_style): Remove tag; now a nameless enum.
57432         (human_floor, human_ceiling, human_round_to_even): Now have
57433         values 2, 0, 1 rather than -1, 1, 0.
57434         (human_group_digits, human_suppress_point_zero, human_autoscale,
57435         human_base_1024, human_SI, human_B): New constants.
57436         (human_readable_inexact, human_block_size): Remove.
57437         (human_readable): Size args are now uintmax_t, not int.
57438         (human_options): New decl.
57439
57440         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57441         unnecessary now that we assume C89 or better.  This change
57442         imported from coreutils.
57443
57444         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57445         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57446         in the 2003-05-30 sync from glibc.
57447
57448         .h files should stand alone, but we shouldn't include <sys/types.h>
57449         if we can get away with just <stddef.h>.
57450
57451         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57452         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57453         rather than <sys/types.h>, as we merely need size_t.
57454         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57455         to get size_t.
57456         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57457         Include <stdio.h>, to get FILE.
57458         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57459         memcasecmp.h has included <stddef.h> and all we need is size_t.
57460         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57461         our interface, instead of including <sys/types.h>
57462
57463 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57464
57465         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57466         now, as glibc mktime is buggy on non-glibc systems.
57467
57468 2003-06-03  Karl Berry  <karl@gnu.org>
57469
57470         * config/config.sub: update from prep.
57471
57472 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57473
57474         [from coreutils]
57475         Fix some minor time-related bugs with POSIX time arguments.
57476         Some valid time stamps were being rejected (notably -1, and
57477         time stamps before 1900 on 64-bit hosts).  And some invalid
57478         time stamps were being accepted, e.g. September 31.
57479
57480         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57481         that we can return (time_t) -1 successfully.
57482         * lib/posixtm.c: Likewise.
57483         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57484         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57485         (t): Remove static var.
57486         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57487         of static var.  All uses changed.
57488         (year): Do not reject years before 1900; they can occur with
57489         64-bit time_t.
57490         (posix_time_parse): Do not check for out-of-range components;
57491         that is now the caller's responsibility, since our checks were
57492         only approximations.
57493         (posixtime): Use mktime to check for out-of-range components,
57494         since it knows them exactly.
57495         If mktime returns (time_t) -1, check whether an error actually occurred
57496         by invoking localtime on -1.
57497         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57498         posixtime failures better.
57499         Improve the test data (in comments only).
57500
57501 2003-06-02  Karl Berry  <karl@gnu.org>
57502
57503         * config/mkinstalldirs (version): new variable.
57504         (--version): new option.
57505         (usage): improve message.
57506
57507 2003-05-30  Karl Berry  <karl@gnu.org>
57508
57509         * lib/mktime.c: update from libc.
57510
57511 2003-05-30  Bruno Haible  <bruno@clisp.org>
57512
57513         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57514         * config/config.rpath: Upgrade to gettext-0.12.1.
57515
57516 2003-05-30  Bruno Haible  <bruno@clisp.org>
57517
57518         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57519         * m4/nls.m4: New file, from gettext-0.12.1.
57520         * m4/po.m4: New file, from gettext-0.12.1.
57521         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57522
57523 2003-05-30  Bruno Haible  <bruno@clisp.org>
57524
57525         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57526         * lib/localcharset.h: Likewise.
57527         * lib/localcharset.c: Likewise.
57528
57529 2003-05-29  Karl Berry  <karl@gnu.org>
57530
57531         * config/config.rpath: update from gettext.
57532
57533 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57534
57535         Assume the headers required for C89 freestanding compilers.
57536         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57537         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57538         * m4/human.m4 (gl_HUMAN): Likewise.
57539         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57540         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57541         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57542         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57543         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57544         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57545
57546 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57547
57548         Assume the headers required for C89 freestanding compilers.
57549         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57550         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57551         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57552         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57553         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57554         define, since <limits.h> is guaranteed to do that.
57555         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57556         * lib/exclude.c: Include <stdbool.h> unconditionally.
57557         * lib/tempname.c: Include <stddef.h> unconditionally.
57558         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57559         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57560         <stddef.h> does that.
57561         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57562         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57563         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57564         needed.
57565         * lib/xstrtol.c: Likewise.
57566         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57567         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57568
57569         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57570         warnings on some platforms.
57571
57572         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57573         arbitrarily.
57574
57575 2003-05-26  Jim Meyering  <jim@meyering.net>
57576
57577         Merge in a change from coreutils:
57578         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57579         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57580         that condition, rather than `-1' which is slightly misleading.
57581         Change the name of the cache variable to have the gl_ prefix.
57582         Prompted by a patch from Richard Dawe for DJGPP.
57583
57584 2003-05-24  Karl Berry  <karl@gnu.org>
57585
57586         * config/config.guess: update from prep.
57587
57588 2003-05-22  Karl Berry  <karl@gnu.org>
57589
57590         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57591
57592 2003-05-20  Karl Berry  <karl@gnu.org>
57593
57594         * config/config.guess: update from prep.
57595
57596 2003-05-18  Karl Berry  <karl@gnu.org>
57597
57598         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57599         might actually be set by the user.
57600
57601         * config/depcomp, install-sh, mdate-sh: update from automake.
57602
57603 2003-05-17  Bruno Haible  <bruno@clisp.org>
57604
57605         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57606         invalid expansion for AC_EGREP_CPP.
57607         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57608         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57609         Suggested by Akim Demaille <akim@epita.fr> in
57610         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57611
57612 2003-05-12  Jim Meyering  <jim@meyering.net>
57613
57614         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57615         the space-padded-by-default conversion specifiers, %e, %k, %l.
57616
57617 2003-05-12  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57620         the string is longer than 4 KB.
57621
57622 2003-05-11  Karl Berry  <karl@gnu.org>
57623
57624         * config/config.{guess,sub}: update from prep.
57625
57626 2003-05-09  Bruno Haible  <bruno@clisp.org>
57627
57628         * modules/error: Add m4/strerror_r.m4 to file list.
57629
57630 2003-05-03  Bruno Haible  <bruno@clisp.org>
57631
57632         Upgrade to Unicode-4.0.
57633         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57634         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57635         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57636         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57637         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57638         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57639         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57640         Change width of U+E0100..U+E01EF from 1 to 0.
57641
57642 2003-04-25  Jim Meyering  <jim@meyering.net>
57643
57644         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57645         of type size_t, not int.
57646
57647 2003-04-25  Bruno Haible  <bruno@clisp.org>
57648
57649         * lib/copy-file.c: Include <stddef.h>, for size_t.
57650
57651 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57652
57653         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57654         code which expansion is under static control.  Patch imported from
57655         Akim Demaille's patch to Bison; see
57656         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57657
57658 2003-04-14  Bruno Haible  <bruno@clisp.org>
57659
57660         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57661
57662 2003-04-11  Jim Meyering  <jim@meyering.net>
57663
57664         Merge changes from Coreutils.
57665
57666         2003-03-22  Jim Meyering  <jim@meyering.net>
57667
57668         * lib/strftime.c (widen): Cast alloca return value to proper type.
57669
57670         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57671
57672         From GNU libc.
57673         * lib/strftime.c (my_strftime): Handle very large width
57674         specifications for numeric values correctly.  Improve checks for
57675         overflow.
57676
57677         2003-01-19  Jim Meyering  <jim@meyering.net>
57678
57679         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57680         definitions.
57681         (nl_get_alt_digit) [! defined my_strftime]: Define.
57682         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57683         _nl_get_alt_digit and _nl_get_walt_digit.
57684
57685         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57686         libc. These changes have no effect outside of _LIBC.
57687
57688 2003-04-10  Bruno Haible  <bruno@clisp.org>
57689
57690         * modules/findprog: New file.
57691         * MODULES.html.sh (func_all_modules): Add it.
57692
57693 2003-04-10  Bruno Haible  <bruno@clisp.org>
57694
57695         * m4/findprog.m4: New file.
57696         * m4/eaccess.m4: New file.
57697
57698 2003-04-10  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/findprog.h: New file, from GNU gettext.
57701         * lib/findprog.c: New file, from GNU gettext.
57702
57703 2003-04-05  Jim Meyering  <jim@meyering.net>
57704
57705         Merge changes from Coreutils.
57706
57707         * lib/exclude.h (PARAMS): Remove definition and uses.
57708         * lib/exclude.c: Remove uses of `PARAMS'.
57709
57710         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57711         Add test-cases for DOS filenames. Declare program_name.
57712         (main): Set up program_name.  Patch by Rich Dawe.
57713
57714         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57715         error from mntctl.
57716         Use mntctl's return value to drive the entry-processing loop, since
57717         we can't rely on the value of the vmt_length member in the last
57718         entry.  On some systems doing so could result in exhausting
57719         virtual memory.  Based in part on a patch from Mike Jetzer.
57720
57721 2003-04-04  Bruno Haible  <bruno@clisp.org>
57722
57723         * modules/linebreak: New file.
57724         * MODULES.html.sh (func_all_modules): Add it.
57725
57726 2003-04-04  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/linebreak.m4: New file.
57729
57730 2003-04-04  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/linebreak.h: New file, from GNU gettext.
57733         * lib/linebreak.c: New file, from GNU gettext with slight
57734         modifications.
57735         * lib/lbrkprop.h: New file, from GNU gettext.
57736
57737 2003-04-03  Bruno Haible  <bruno@clisp.org>
57738
57739         * modules/utf8-ucs4: New file.
57740         * modules/utf16-ucs4: New file.
57741         * modules/ucs4-utf8: New file.
57742         * modules/ucs4-utf16: New file.
57743         * MODULES.html.sh (func_all_modules): Add them.
57744
57745 2003-04-03  Bruno Haible  <bruno@clisp.org>
57746
57747         * m4/utf-ucs4.m4: New file.
57748         * m4/ucs4-utf.m4: New file.
57749
57750 2003-04-03  Bruno Haible  <bruno@clisp.org>
57751
57752         * lib/utf8-ucs4.h: New file, from GNU gettext.
57753         * lib/utf16-ucs4.h: New file, from GNU gettext.
57754         * lib/ucs4-utf8.h: New file, from GNU gettext.
57755         * lib/ucs4-utf16.h: New file, from GNU gettext.
57756
57757 2003-04-02  Bruno Haible  <bruno@clisp.org>
57758
57759         * modules/binary-io: New file.
57760         * MODULES.html.sh (func_all_modules): Add it.
57761
57762 2003-04-02  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/binary-io.h: New file, from GNU gettext.
57765
57766 2003-04-01  Bruno Haible  <bruno@clisp.org>
57767
57768         * modules/pathname: New file.
57769         * MODULES.html.sh (func_all_modules): Add it.
57770
57771 2003-04-01  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/pathname.h: New file, from GNU gettext.
57774         * lib/concatpath.c: New file, from GNU gettext.
57775
57776 2003-03-30  Bruno Haible  <bruno@clisp.org>
57777
57778         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57779
57780 2003-03-30  Bruno Haible  <bruno@clisp.org>
57781
57782         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57783         function chown() doesn't exist.
57784
57785 2003-03-28  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/copy-file: New file.
57788         * MODULES.html.sh (func_all_modules): Add it.
57789
57790 2003-03-28  Bruno Haible  <bruno@clisp.org>
57791
57792         * m4/copy-file.m4: New file.
57793
57794 2003-03-28  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/copy-file.h: New file, from GNU gettext.
57797         * lib/copy-file.c: New file, from GNU gettext.
57798
57799 2003-03-18  Jim Meyering  <jim@meyering.net>
57800
57801         * lib/quote.c (quote_n): Fix typo in comment.
57802
57803 2003-03-18  Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57806         checking.
57807         * m4/onceonly_2_57.m4: Likewise.
57808
57809 2003-03-17  Bruno Haible  <bruno@clisp.org>
57810
57811         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57812         (m4_quote): Remove macro.
57813         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57814
57815 2003-03-14  Jim Meyering  <jim@meyering.net>
57816
57817         Merge changes from Coreutils.
57818         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57819         to be const, in order to avoid warnings.
57820         (obstack_room): Likewise.
57821         (obstack_empty_p): Likewise.
57822
57823 2003-03-14  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57826         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57827
57828 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57829
57830         Merge changes from Bison.
57831         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57832         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57833         when compiling Bison 1.875's `bitset bset = obstack_alloc
57834         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57835         * lib/hash.c: Include <stdbool.h> unconditionally.
57836
57837 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57838
57839         * m4/onceonly.m4 (m4_quote): New macro.
57840         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57841         Quote AC_FOREACH variable-expansions properly.
57842
57843 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57844
57845         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57846
57847 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57848
57849         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57850         Reported by Bruce Becker; see:
57851         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57852
57853 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57854             Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57857         Reported by John Hughes, see
57858         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57859
57860 2003-02-20  Bruno Haible  <bruno@clisp.org>
57861
57862         * MODULES.html.sh (func_all_modules): Add poll.
57863
57864 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57865
57866         * modules/poll: New file.
57867
57868 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57869
57870         * lib/poll_.h: New file.
57871         * lib/poll.c: New file.
57872
57873 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57874
57875         * m4/poll.m4: New file.
57876
57877 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57878
57879         * modules/mathl: New file.
57880
57881 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57882
57883         * lib/mathl.h: New file.
57884         * lib/acosl.c: New file.
57885         * lib/asinl.c: New file.
57886         * lib/atanl.c: New file.
57887         * lib/ceill.c: New file.
57888         * lib/cosl.c: New file.
57889         * lib/expl.c: New file.
57890         * lib/floorl.c: New file.
57891         * lib/frexpl.c: New file.
57892         * lib/ldexpl.c: New file.
57893         * lib/logl.c: New file.
57894         * lib/sincosl.c: New file.
57895         * lib/sinl.c: New file.
57896         * lib/sqrtl.c: New file.
57897         * lib/tanl.c: New file.
57898         * lib/trigl.c: New file.
57899         * lib/trigl.h: New file.
57900
57901 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57902
57903         * m4/mathl.m4: New file.
57904
57905 2003-02-18  Bruno Haible  <bruno@clisp.org>
57906
57907         * MODULES.html.sh (func_all_modules): Add mathl.
57908
57909 2003-02-17  Bruno Haible  <bruno@clisp.org>
57910
57911         * modules/mkdtemp: New module.
57912         * MODULES.html.sh (func_all_modules): Add it.
57913
57914 2003-02-17  Bruno Haible  <bruno@clisp.org>
57915
57916         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57917
57918 2003-02-17  Bruno Haible  <bruno@clisp.org>
57919
57920         * lib/mkdtemp.h: New file, from GNU gettext.
57921         * lib/mkdtemp.c: New file, from GNU gettext.
57922
57923 2003-02-02  Jim Meyering  <jim@meyering.net>
57924
57925         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57926         e.g. glibc-2.2.93.
57927
57928 2003-01-31  Bruno Haible  <bruno@clisp.org>
57929
57930         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57931         'rpl_rename'.
57932         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57933         'rpl_strnlen'.
57934         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57935         'rpl_strtod'.
57936         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57937         'rpl_utime'.
57938
57939 2003-01-31  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/rename.c: #undef rename before defining rpl_rename.
57942         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57943
57944 2003-01-30  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/vasnprintf, modules/vasprintf: New modules.
57947         * MODULES.html.sh (func_all_modules): Add them.
57948
57949 2003-01-30  Bruno Haible  <bruno@clisp.org>
57950
57951         * m4/signed.m4: New file, from GNU gettext.
57952         * m4/longdouble.m4: New file, from GNU gettext.
57953         * m4/wchar_t.m4: New file, from GNU gettext.
57954         * m4/wint_t.m4: New file, from GNU gettext.
57955         * m4/vasnprintf.m4: New file.
57956         * m4/vasprintf.m4: New file.
57957
57958 2003-01-30  Bruno Haible  <bruno@clisp.org>
57959
57960         * lib/printf-args.h: New file, from GNU gettext.
57961         * lib/printf-args.c: New file, from GNU gettext.
57962         * lib/printf-parse.h: New file, from GNU gettext.
57963         * lib/printf-parse.c: New file, from GNU gettext.
57964         * lib/vasnprintf.h: New file, from GNU gettext.
57965         * lib/vasnprintf.c: New file, from GNU gettext.
57966         * lib/asnprintf.c: New file, from GNU gettext.
57967         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57968         * lib/vasprintf.c: New file, from GNU gettext.
57969         * lib/asprintf.c: New file, from GNU gettext.
57970
57971 2003-01-29  Bruno Haible  <bruno@clisp.org>
57972
57973         * modules/stpncpy: New module.
57974         * MODULES.html.sh (func_all_modules): Add it.
57975
57976 2003-01-29  Bruno Haible  <bruno@clisp.org>
57977
57978         * m4/stpncpy.m4: New file.
57979
57980 2003-01-29  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57983         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57984
57985 2003-01-28  Bruno Haible  <bruno@clisp.org>
57986
57987         * modules/c-ctype: New module.
57988         * MODULES.html.sh (func_all_modules): Add it.
57989
57990 2003-01-28  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57993         Paul Eggert.
57994         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57995         Paul Eggert.
57996
57997 2003-01-27  Bruno Haible  <bruno@clisp.org>
57998
57999         * modules/xsetenv: New module.
58000         * MODULES.html.sh (func_all_modules): Add it.
58001
58002 2003-01-27  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/xsetenv.h: New file, from GNU gettext.
58005         * lib/xsetenv.c: New file, from GNU gettext.
58006
58007 2003-01-23  Jim Meyering  <jim@meyering.net>
58008
58009         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58010         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58011
58012 2003-01-23  Bruno Haible  <bruno@clisp.org>
58013
58014         * modules/minmax: New module.
58015         * MODULES.html.sh (func_all_modules): Add it.
58016
58017 2003-01-23  Bruno Haible  <bruno@clisp.org>
58018
58019         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58020         Eggert.
58021
58022 2003-01-22  Bruno Haible  <bruno@clisp.org>
58023
58024         * modules/exit: New module.
58025         * MODULES.html.sh (func_all_modules): Add it.
58026
58027 2003-01-22  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/exit.h: New file, from GNU gettext.
58030
58031 2003-01-19  Bruno Haible  <bruno@clisp.org>
58032
58033         * gnulib-tool: Recognize option --extract-maintainer.
58034         (func_get_maintainer): New function.
58035         * modules/*: Add Maintainer entry.
58036
58037 2003-01-16  Jim Meyering  <jim@meyering.net>
58038
58039         * m4/regex.m4: The `regex' struct is both input and output.
58040         Initialize it before each use.  Patch by Tim Waugh.
58041
58042 2003-01-16  Bruno Haible  <bruno@clisp.org>
58043
58044         * MODULES.html.sh: Add a table of contents. Add the module name as
58045         leftmost column. Add hyperlinks.
58046
58047 2003-01-15  Bruno Haible  <bruno@clisp.org>
58048
58049         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58050
58051 2003-01-15  Bruno Haible  <bruno@clisp.org>
58052
58053         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58054         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58055         suffix.
58056
58057 2003-01-15  Bruno Haible  <bruno@clisp.org>
58058
58059         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58060
58061 2003-01-15  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58064         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58065
58066 2003-01-14  Jim Meyering  <jim@meyering.net>
58067
58068         * lib/same.c (same_name): Tweak a comment.
58069
58070 2003-01-14  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58073         when a string comparison is sufficient.
58074
58075 2003-01-14  Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58078         'unsigned int'.
58079
58080 2003-01-14  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/hash-pjw.c: Add comment about low quality of this function.
58083
58084 2003-01-13  Bruno Haible  <bruno@clisp.org>
58085
58086         * modules/stpcpy: Distribute lib/stpcpy.h.
58087         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58088
58089 2003-01-13  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/*: Add a description.
58092         * modules/strpbrk: Fix Makefile.am snippet.
58093         * modules/strtoimax: Fix dependencies.
58094         * modules/strtoumax: Likewise.
58095
58096 2003-01-13  Bruno Haible  <bruno@clisp.org>
58097
58098         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58099         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58100         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58101
58102 2003-01-13  Bruno Haible  <bruno@clisp.org>
58103
58104         * gnulib-tool (func_create_testdir): Store config/* files in the main
58105         directory.
58106         * config.rpath: Move to ...
58107         * config/config.rpath: ... here.
58108         * modules/gettext: Contains config/config.rpath, not config.rpath.
58109         * modules/iconv: Likewise.
58110
58111 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58112
58113         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58114         to avoid collisions with libcurses and libreadline.
58115
58116         * m4/getstr.m4: Remove.
58117         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58118
58119 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58120
58121         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58122         to avoid collisions with libcurses and libreadline.
58123
58124         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58125         * lib/getstr.h, getstr.c: Remove.
58126         * lib/getline.c: Include "getline.h", to check interface.
58127         Move body of old getstr.c here: this defines MIN_CHUNK and
58128         declares getdelim2, which is renamed from getstr.
58129         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58130
58131         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58132         All uses changed.
58133         * lib/linebuffer.h: Likewise.
58134         (readline): Remove backward-compatibility macro.
58135
58136 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58137
58138         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58139         to avoid collisions with libcurses and libreadline.
58140         * getstr: Remove.
58141         * MODULES.html.sh: Remove getstr.
58142         * modules/getline: Depend on unlocked-io, not getstr.
58143
58144 2003-01-12  Jim Meyering  <jim@meyering.net>
58145
58146         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58147
58148 2003-01-10  Bruno Haible  <bruno@clisp.org>
58149
58150         * modules/alloca: Change Makefile.am requirements. Simplify Include
58151         requirements. Add lib/alloca_.h to file list.
58152
58153 2003-01-10  Bruno Haible  <bruno@clisp.org>
58154
58155         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58156
58157 2003-01-10  Bruno Haible  <bruno@clisp.org>
58158
58159         * lib/alloca_.h: New file.
58160         * lib/getdate.y: Unconditionally include alloca.h.
58161         * lib/makepath.c: Likewise.
58162         * lib/setenv.c: Likewise.
58163         * lib/userspec.c: Likewise.
58164
58165 2003-01-09  Karl Berry  <karl@gnu.org>
58166
58167         * MODULES.html.sh: include `dirname $0` in PATH, to find
58168         gnulib-tool.
58169
58170 2003-01-09  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58173         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58174
58175 2003-01-09  Bruno Haible  <bruno@clisp.org>
58176
58177         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58178
58179 2003-01-09  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/stdbool.h.in: New file.
58182
58183 2003-01-09  Bruno Haible  <bruno@clisp.org>
58184
58185         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58186         * MODULES.html.sh: Likewise.
58187
58188 2003-01-08  Jim Meyering  <jim@meyering.net>
58189
58190         * lib/full-write.c: Undefine and define-away `const' after inclusion
58191         of errno.h, not before.  Suggestion from Bruno Haible.
58192
58193 2003-01-08  Bruno Haible  <bruno@clisp.org>
58194
58195         * modules/full-read: Depend on full-write.
58196
58197 2003-01-08  Bruno Haible  <bruno@clisp.org>
58198
58199         * lib/safe-read.c: Include specification header first, to ensure its
58200         selfcontainedness.
58201         * lib/full-write.c: Likewise.
58202
58203 2003-01-07  Jim Meyering  <jim@meyering.net>
58204
58205         * lib/full-write.c: Rework so that it may serve to define full_read,
58206         too.
58207         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58208
58209 2003-01-07  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58212         <inttypes.h>.
58213         * lib/xstrtol.h: Likewise.
58214         * lib/xstrtoimax.c: Likewise.
58215         * lib/xstrtoumax.c: Likewise.
58216         * lib/human.h: Likewise.
58217
58218         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58219         on systems that have <inttypes.h> but not <stdint.h>.
58220
58221 2003-01-07  Bruno Haible  <bruno@clisp.org>
58222
58223         * MODULES.html.sh: Add copyright notice.
58224         (missed_files): Omit CVS directory entries.
58225         (func_module): Make it work with sed-3.02.
58226         * MODULES.txt: Remove file.
58227
58228 2003-01-06  Jim Meyering  <jim@meyering.net>
58229
58230         * lib/version-etc.c: Update year in translatable copyright string.
58231
58232 2003-01-03  Karl Berry  <karl@gnu.org>
58233
58234         * config/config.{guess,sub}: update from prep.
58235
58236 2003-01-02  Karl Berry  <karl@gnu.org>
58237
58238         * doc/COPYING.DOC: belatedly updated to 1.2.
58239
58240 2003-01-01  Karl Berry  <karl@gnu.org>
58241
58242         * gnulib-tool (func_verify_module): report module name $module in
58243         error message, not $1.
58244         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58245         be created, only if it doesn't exist.
58246         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58247
58248 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58249
58250         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58251
58252 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58253
58254         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58255         memcmp if strcoll doesn't work.
58256
58257 2002-12-31  Bruno Haible  <bruno@clisp.org>
58258
58259         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58260         nonempty.
58261
58262 2002-12-31  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/memcoll.c (STRCOLL): New macro.
58265         (memcoll): Use it.
58266
58267 2002-12-31  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/localcharset.h: New file.
58270         * lib/localcharset.c: Include it.
58271         * lib/unicodeio.c: Likewise.
58272
58273 2002-12-31  Bruno Haible  <bruno@clisp.org>
58274
58275         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58276         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58277
58278 2002-12-31  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/getline.h: Include <stddef.h>, for size_t.
58281
58282         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58283         * lib/unicodeio.c: Don't include <stddef.h>.
58284
58285 2002-12-31  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58288         HAVE_TM_ZONE.
58289
58290 2002-12-24  Karl Berry  <karl@gnu.org>
58291
58292         * config/config.guess: update from prep.
58293
58294 2002-12-24  Bruno Haible  <bruno@clisp.org>
58295
58296         General infrasructure.
58297         * m4/README: Rewritten.
58298         * m4/onceonly.m4: New file.
58299         * m4/onceonly_2_57.m4: New file.
58300
58301         Module atexit.
58302         * m4/atexit.m4: New file.
58303
58304         Module strtod.
58305         * m4/strtod.m4: New file.
58306
58307         Module strtol.
58308         * m4/strtol.m4: New file.
58309
58310         Module strtoul.
58311         * m4/strtoul.m4: New file.
58312
58313         Module memchr.
58314         * m4/memchr.m4: New file.
58315
58316         Module memcmp.
58317         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58318         (jm_FUNC_MEMCMP): Invoke it.
58319
58320         Module memcpy.
58321         * m4/memcpy.m4: New file.
58322
58323         Module memmove.
58324         * m4/memmove.m4: New file.
58325
58326         Module memset.
58327         * m4/memset.m4: New file.
58328
58329         Module strcspn.
58330         * m4/strcspn.m4: New file.
58331
58332         Module strpbrk.
58333         * m4/strpbrk.m4: New file.
58334
58335         Module strstr.
58336         * m4/strstr.m4: New file.
58337
58338         Module strerror.
58339         * m4/strerror.m4: New file.
58340
58341         Module mktime.
58342         * m4/mktime.m4: Renamed from jm-mktime.m4.
58343         (gl_PREREQ_MKTIME): New macro.
58344         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58345
58346         Module malloc.
58347         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58348         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58349         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58350
58351         Module realloc.
58352         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58353         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58354         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58355
58356         Module strftime.
58357         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58358         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58359         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58360         gl_TM_GMTOFF.
58361         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58362
58363         Module xalloc.
58364         * m4/xalloc.m4: New file.
58365
58366         Module alloca.
58367         * m4/alloca.m4: New file.
58368
58369         Module putenv.
58370         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58371         (jm_FUNC_PUTENV): Invoke it.
58372
58373         Module setenv.
58374         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58375         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58376         when invoked twice.
58377         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58378         gt_FUNC_SETENV.
58379
58380         Module memrchr.
58381         * m4/memrchr.m4: New file.
58382
58383         Module stpcpy.
58384         * m4/stpcpy.m4: New file.
58385
58386         Module strcase.
58387         * m4/strcase.m4: New file.
58388
58389         Module strdup.
58390         * m4/strdup.m4: New file.
58391
58392         Module strnlen.
58393         * m4/strnlen.m4: New file.
58394
58395         Module strndup.
58396         * m4/strndup.m4: New file.
58397
58398         Module xstrtod.
58399         * m4/xstrtod.m4: New file.
58400
58401         Module xstrtol.
58402         * m4/xstrtol.m4: New file.
58403
58404         Module getdate.
58405         * m4/getdate.m4: New file.
58406
58407         Module unlocked-io.
58408         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58409         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58410         * m4/jm-glibc-io.m4n: Remove file.
58411
58412         Module long-options.
58413         * m4/long-options.m4: New file.
58414
58415         Module md5.
58416         * m4/md5.m4: New file.
58417
58418         Module sha.
58419         * m4/sha.m4: New file.
58420
58421         Module getstr.
58422         * m4/getstr.m4: New file.
58423
58424         Module getline.
58425         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58426         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58427         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58428         simply getline. Infoke gl_PREREQ_GETLINE.
58429
58430         Module obstack.
58431         * m4/obstack.m4: New file.
58432
58433         Module hash.
58434         * m4/hash.m4: New file.
58435
58436         Module readtokens.
58437         * m4/readtokens.m4: New file.
58438
58439         Module strverscmp.
58440         * m4/strverscmp.m4: New file.
58441
58442         Module stdbool.
58443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58444         OSF/1.
58445
58446         Module strtoll.
58447         * m4/strtoll.m4: New file.
58448
58449         Module strtoull.
58450         * m4/strtoull.m4: New file.
58451
58452         Module strtoimax.
58453         * m4/strtoimax.m4: New file.
58454
58455         Module strtoumax.
58456         * m4/strtoumax.m4: New file.
58457
58458         Module xstrtoimax.
58459         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58460         jm_AC_PREREQ_XSTRTOIMAX.
58461         Moved the strtol prerequisites to strtol.m4.
58462         Moved the strtoll prerequisites to strtoll.m4.
58463         Moved the strtoimax prerequisites to strtoimax.m4.
58464
58465         Module xstrtoumax.
58466         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58467         jm_AC_PREREQ_XSTRTOUMAX.
58468         Moved the strtoul prerequisites to strtoul.m4.
58469         Moved the strtoull prerequisites to strtoull.m4.
58470         Moved the strtoumax prerequisites to strtoumax.m4.
58471
58472         Module chown.
58473         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58474         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58475
58476         Module dup2.
58477         * m4/dup2.m4: New file.
58478
58479         Module ftruncate.
58480         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58481         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58482
58483         Module getgroups.
58484         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58485         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58486
58487         Module gettimeofday.
58488         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58489         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58490         gl_PREREQ_GETTIMEOFDAY.
58491
58492         Module mkdir.
58493         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58494         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58495
58496         Module mkstemp.
58497         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58498         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58499         jm_AC_TYPE_UINTMAX_T.
58500         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58501
58502         Module stat.
58503         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58504         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58505
58506         Module lstat.
58507         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58508         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58509
58510         Module timespec.
58511         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58512         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58513         * m4/st_mtim.m4: Indentation.
58514
58515         Module nanosleep.
58516         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58517         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58518         gl_PREREQ_NANOSLEEP.
58519
58520         Module regex.
58521         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58522         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58523         (gl_REGEX): New macro.
58524
58525         Module rename.
58526         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58527         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58528
58529         Module rmdir.
58530         * m4/rmdir.m4: New file.
58531
58532         Module utime.
58533         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58534         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58535         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58536
58537         Module dirname.
58538         * m4/dirname.m4: New file.
58539
58540         Module getopt.
58541         * m4/getopt.m4: New file.
58542
58543         Module unistd-safer.
58544         * m4/unistd-safer.m4: New file.
58545
58546         Module fnmatch.
58547         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58548         declaration.
58549         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58550         (gl_FUNC_FNMATCH_POSIX): New macro.
58551         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58552         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58553         simply fnmatch.
58554
58555         Module exclude.
58556         * m4/exclude.m4: New file.
58557
58558         Module human.
58559         * m4/human.m4: New file.
58560
58561         Module acl.
58562         * m4/acl.m4: Nop.
58563
58564         Module backupfile.
58565         * m4/backupfile.m4: New file.
58566         * m4/d-ino.m4: Indentation.
58567
58568         Module fsusage.
58569         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58570         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58571         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58572
58573         Module dirfd.
58574         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58575         requirements.
58576
58577         Module euidaccess.
58578         * m4/euidaccess.m4: New file.
58579
58580         Module file-type.
58581         * m4/file-type.m4: New file.
58582
58583         Module fileblocks.
58584         * m4/fileblocks.m4: New file.
58585
58586         Module filemode.
58587         * m4/filemode.m4: New file.
58588
58589         Module isdir.
58590         * m4/isdir.m4: New file.
58591
58592         Module lchown.
58593         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58594         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58595
58596         Module makepath.
58597         * m4/makepath.m4: New file.
58598
58599         Module modechange.
58600         * m4/modechange.m4: New file.
58601
58602         Module mountlist.
58603         * m4/mountlist.m4: New file.
58604         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58605         Indentation.
58606
58607         Module path-concat.
58608         * m4/path-concat.m4: New file.
58609
58610         Module pathmax.
58611         * m4/pathmax.m4: New file.
58612
58613         Module same.
58614         * m4/same.m4: New file.
58615
58616         Module save-cwd.
58617         * m4/save-cwd.m4: New file.
58618
58619         Module savedir.
58620         * m4/savedir.m4: New file.
58621
58622         Module xgetcwd.
58623         * m4/xgetcwd.m4: New file.
58624         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58625
58626         Module xreadlink.
58627         * m4/xreadlink.m4: New file.
58628
58629         Module safe-read.
58630         * m4/safe-read.m4: New file.
58631
58632         Module safe-write.
58633         * m4/safe-write.m4: New file.
58634
58635         Module closeout.
58636         * m4/closeout.m4: New file.
58637
58638         Module stdio-safer.
58639         * m4/stdio-safer.m4: New file.
58640
58641         Module getpass.
58642         * m4/getpass.m4: New file.
58643
58644         Module getugroups.
58645         * m4/getugroups.m4: New file.
58646
58647         Module group-member.
58648         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58649         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58650
58651         Module idcache.
58652         * m4/idcache.m4: New file.
58653
58654         Module userspec.
58655         * m4/userspec.m4: New file.
58656
58657         Module gettime.
58658         * m4/clock_time.m4: New file.
58659         * m4/gettime.m4: New file.
58660
58661         Module settime.
58662         * m4/settime.m4: New file.
58663
58664         Module posixtm.
58665         * m4/posixtm.m4: New file.
58666
58667         Module gethostname.
58668         * m4/gethostname.m4: New file.
58669
58670         Module canon-host.
58671         * m4/canon-host.m4: New file.
58672
58673         Module gettext.
58674         * m4/codeset.m4: New file, from gettext-0.11.5.
58675         * m4/gettext.m4: New file, from gettext-0.11.5.
58676         * m4/glibc21.m4: New file, from gettext-0.11.5.
58677         * m4/iconv.m4: New file, from gettext-0.11.5.
58678         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58679         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58680         * m4/inttypes.m4: New file, from gettext-0.11.5.
58681         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58682         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58683         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58684         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58685         * m4/lib-link.m4: New file, from gettext-0.11.5.
58686         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58687         * m4/progtest.m4: New file, from gettext-0.11.5.
58688         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58689         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58690         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58691
58692         Module localcharset.
58693         * m4/localcharset.m4: New file.
58694
58695         Module hard-locale.
58696         * m4/hard-locale.m4: New file.
58697
58698         Module mbswidth.
58699         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58700         onceonly macros.
58701         * m4/mbrtowc.m4: Add comment.
58702
58703         Module memcasecmp.
58704         * m4/memcasecmp.m4: New file.
58705
58706         Module memcoll.
58707         * m4/memcoll.m4: New file.
58708
58709         Module unicodeio.
58710         * m4/unicodeio.m4: New file.
58711
58712         Module rpmatch.
58713         * m4/rpmatch.m4: New file.
58714
58715         Module yesno.
58716         * m4/yesno.m4: New file.
58717
58718         Module exitfail.
58719         * m4/exitfail.m4: New file.
58720
58721         Module c-stack.
58722         * m4/c-stack.m4 (gl_C_STACK): New macro.
58723         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58724
58725         Module error.
58726         * m4/error.m4 (gl_ERROR): New macro.
58727         (jm_PREREQ_ERROR): Use onceonly macros.
58728
58729         Module fatal.
58730         * m4/fatal.m4: New file.
58731
58732         Module getloadavg.
58733         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58734         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58735
58736         Module getpagesize.
58737         * m4/getpagesize.m4: New file.
58738
58739         Module getusershell.
58740         * m4/getusershell.m4: New file.
58741
58742         Module physmem.
58743         * m4/physmem.m4: New file.
58744
58745         Module posixver.
58746         * m4/posixver.m4: New file.
58747
58748         Module quotearg.
58749         * m4/quotearg.m4: New file.
58750
58751         Module quote.
58752         * m4/quote.m4: New file.
58753
58754         Module readutmp.
58755         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58756
58757         Module sig2str.
58758         * m4/sig2str.m4: New file.
58759
58760         Other.
58761         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58762         ulonglong.m4.
58763         * m4/intmax_t.m4: New file.
58764         * m4/d-type.m4: Indentation.
58765         * m4/jm-macros.m4: Update.
58766         * m4/prereq.m4 (jm_PREREQ): Update.
58767         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58768         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58769         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58770         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58771         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58772         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58773         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58774         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58775         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58776         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58777         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58778         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58779         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58780         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58781         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58782         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58783         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58784         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58785         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58786
58787 2002-12-24  Bruno Haible  <bruno@clisp.org>
58788
58789         * MODULES.txt: Update according to m4/ changes.
58790
58791         Module gettext.
58792         * config.rpath: New file, from gettext-0.11.5.
58793
58794         * modules/*: New module descriptions.
58795         * gnulib-tool: New file.
58796         * MODULES.html.sh: New file.
58797
58798 2002-12-21  Karl Berry  <karl@gnu.org>
58799
58800         * doc/fdl.texi: update to version 1.2.
58801
58802 2002-12-19  Karl Berry  <karl@gnu.org>
58803
58804         * config/config.guess: update from prep.
58805
58806 2002-12-18  Bruno Haible  <bruno@clisp.org>
58807
58808         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58809         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58810
58811 2002-12-17  Bruno Haible  <bruno@clisp.org>
58812
58813         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58814         stdlib.h, string.h.
58815
58816 2002-12-17  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/canon-host.c (strdup): Remove unused declaration.
58819
58820         * lib/fsusage.c: Include full_read.h.
58821         (get_fs_usage): Use full_read instead of safe_read.
58822
58823         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58824
58825 2002-12-12  Karl Berry  <karl@gnu.org>
58826
58827         * config/config.guess: update from prep.
58828
58829 2002-12-11  Bruno Haible  <bruno@clisp.org>
58830
58831         * m4/setenv.m4: New file, from gettext-0.11.5.
58832
58833 2002-12-11  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58836         not unsetenv().
58837         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58838         modifications:
58839
58840         2002-12-11  Bruno Haible  <bruno@clisp.org>
58841
58842                 * setenv.c (alloca): Fall back to malloc.
58843                 (freea): New macro.
58844                 (setenv): Use freea() to free memory allocated with alloca().
58845
58846         2002-11-13  Bruno Haible  <bruno@clisp.org>
58847
58848                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58849                 function declarations.
58850                 * unsetenv.c (unsetenv): Likewise.
58851
58852         2002-03-04  Bruno Haible  <bruno@clisp.org>
58853
58854                 Portability to AIX 4.3.3.
58855                 * unsetenv.c: New file, extracted from setenv.c.
58856                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58857
58858         2001-12-20  Bruno Haible  <bruno@clisp.org>
58859
58860                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58861                 use malloc instead. For SunOS 4.
58862
58863         2001-12-11  Bruno Haible  <bruno@clisp.org>
58864
58865                 * setenv.c: Declare alloca.
58866                 (compar_fn_t): New typedef.
58867                 (KNOWN_VALUE, STORE_VALUE): Use it.
58868
58869         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58870         setenv.h.
58871
58872 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58873
58874         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58875         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58876         Choose values that are less likely to collide with system fnmatch
58877         options.
58878         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58879         defined (e.g., a pure POSIX system).
58880         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58881         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58882
58883 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58884
58885         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58886         a pain in practice to deal with generated m4 files.  This change
58887         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58888
58889         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58890         and jm-glibc-io.m4, as they are no longer a special case.
58891         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58892         kludge and the auto-generation stuff.  Check only whether the
58893         functions are declared, not whether they exist, since older hosts
58894         that don't declare the functions can't use the optimization anyway.
58895
58896 2002-12-06  Jim Meyering  <jim@meyering.net>
58897
58898         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58899
58900         Merge in changes from libc's misc/error.c, in preparation
58901         for the merge of gnulib's changes back into libc.
58902
58903         * lib/error.c (_): Define only if not already defined.
58904         Move definition to follow all #include directives.
58905         Include unlocked-io.h only if !_LIBC.
58906         [_LIBC]: Include <libio/libioP.h>.
58907         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58908         (fflush): Tweak definition to use INTUSE.
58909         (putc): Define.
58910
58911 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58912
58913         * lib/alloca.c [defined emacs]: Include "lisp.h".
58914         (xalloc_die) [defined emacs]: New macro.
58915         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58916         [! defined emacs]: Include <xalloc.h>.
58917         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58918         (pointer): Typedef to POINTER_TYPE *.
58919         (malloc): Remove decl; we now always use xmalloc.
58920         (alloca): Use old-style definition, since Emacs needs this.
58921         Check for arithmetic overflow when computing combined size.
58922
58923 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58924
58925         Do not generate unlocked-io.h automatically, since it's easier to
58926         maintain it by hand.
58927
58928         * lib/unlocked-io.h: New file, from GNU diffutils,
58929         but with proper copyright notice and attribution.
58930         * lib/gen-uio: Remove.
58931         * lib/Makefile.am: Add copyright notice.
58932         (libfetish_a_SOURCES): Add unlocked-io.h.
58933         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58934         (DISTCLEANFILES, io_functions): Remove macros.
58935         (EXTRA_DIST): Remove gen_uio.
58936         (unlocked-io.h): Remove rule.
58937
58938 2002-12-04  Jim Meyering  <jim@meyering.net>
58939
58940         Reflect the fact that stat.c and lstat.c are no longer generated.
58941         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58942         (DISTCLEANFILES): Likewise.
58943         (EXTRA_DIST): Likewise.
58944         (all_local): Don't depend on stat.c or lstat.c.
58945         (stat.c, lstat.c): Remove rules.
58946         (EXTRA_DIST): Remove xstat.in.
58947
58948         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58949         * lib/stat.c: New file.  Contents mostly from xstat.in.
58950         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58951         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58952
58953         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58954         too.
58955         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58956
58957 2002-12-03  Jim Meyering  <jim@meyering.net>
58958
58959         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58960         but not semantics, to minimize the differences between these two files.
58961         (safe_read): Change comment to mention SAFE_READ_ERROR.
58962
58963         * lib/safe-read.c (IS_EINTR): Define.
58964         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58965
58966 2002-12-02  Jim Meyering  <jim@meyering.net>
58967
58968         * lib/safe-read.c (EINTR): Define.
58969         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58970         (INT_MAX): Provide fallback.
58971         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58972
58973         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58974
58975 2002-12-02  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58978         Define, taken from safe-read.c.
58979         (INT_MAX): Provide fallback.
58980         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58981         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58982
58983         * lib/safe-read.c (EINTR): Remove definition.
58984         (safe_read): Don't use EINTR if it is absent.
58985
58986 2002-12-01  Jim Meyering  <jim@meyering.net>
58987
58988         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58989         zero.
58990         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58991
58992 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58993
58994         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58995         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58996         with `if (! (value < limit)) abort ();', for readability.
58997
58998 2002-11-26  Karl Berry  <karl@gnu.org>
58999
59000         * lib/strdup.c: copy from libc again, with jim's ok.
59001         * lib/.cppi-disable: re-add strdup.c
59002
59003 2002-11-25  Karl Berry  <karl@gnu.org>
59004
59005         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59006         instead of "strtol.c".
59007
59008 2002-11-25  Karl Berry  <karl@gnu.org>
59009
59010         * config/install-sh: update from automake for variable quoting, $0 in
59011         error msgs, etc.
59012
59013         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59014         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59015         entry.
59016
59017 2002-11-25  Jim Meyering  <jim@meyering.net>
59018
59019         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59020
59021 2002-11-24  Karl Berry  <karl@gnu.org>
59022
59023         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59024         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59025
59026 2002-11-24  Jim Meyering  <jim@meyering.net>
59027
59028         Update from coreutils:
59029
59030         * lib/mktime.c: Merge in changes from libc.
59031
59032         Avoid a link-time failure on some Linux systems.
59033         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59034         (otherwise).
59035         (__mon_yday): Declare with the STATIC attribute.
59036         (__mktime_internal): Likewise.
59037         Based on a report from Greg Schafer.
59038
59039 2002-11-23  Jim Meyering  <jim@meyering.net>
59040
59041         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59042         Use `unsigned', not `int', as type of index.
59043
59044         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59045
59046         * lib/fsusage.c: Remove unneeded parentheses around operands of
59047         `defined'.
59048
59049 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59050
59051         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59052         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59053         so that we can be included first.
59054         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59055         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59056         No need to include stddef.h or sys/types.h any more.
59057         Surround local include files with "", not "<>".
59058         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59059         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59060         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59061         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59062         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59063         (ISPRINT): Remove; no longer needed now that we assume C89.
59064
59065         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59066         Preserve errno.
59067
59068         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59069         quotearg_char): Use SIZE_MAX rather than
59070         (size_t) -1 when we are talking about "infinity".
59071
59072         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59073
59074 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59075
59076         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59077         hint that one should use `if (! x) abort ();' rather than `assert
59078         (x);', and anyway it's one less thing to worry about configuring.
59079         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59080         hash_rehash, hash_insert): Use abort rather than assert.
59081
59082 2002-11-22  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/safe-read.h: Assume C89. Add comments.
59085         (safe_read): Change return type to size_t.
59086         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59087         byte counts > SSIZE_MAX correctly.
59088         * lib/safe-write.h: New file.
59089         * lib/safe-write.c: New file.
59090         * lib/full-read.h: New file.
59091         * lib/full-read.c: New file.
59092         * lib/full-write.h: Assume C89. Add comments.
59093         * lib/full-write.c: Include safe-write.h.
59094         (full_write): Rewritten to use safe_write.
59095         Suggested by Jim Meyering and Paul Eggert.
59096
59097 2002-11-21  Jim Meyering  <jim@meyering.net>
59098
59099         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59100
59101         Merge in changes from the coreutils.
59102
59103         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59104         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59105         <stdint.h>.
59106         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59107         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59108         int.  Work more efficiently if X is the same width as uintmax_t.
59109         Do not compare X to -1, to avoid bogus compiler warning.
59110         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59111         Don't assume that f_frsize and f_bsize are the same type.
59112
59113         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59114         warning on FreeBSD.
59115
59116         * lib/makepath.c (make_path): Restore umask *before* creating the final
59117         component.
59118         (make_path): Minor reformatting.
59119
59120         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59121         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59122         HAVE_MALLOC/HAVE_REALLOC.
59123
59124         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59125         dummy ones.  At least on GNU/Linux systems, `auto' means something
59126         else.
59127         From Michael Stone.
59128
59129 2002-11-21  Bruno Haible  <bruno@clisp.org>
59130
59131         Remove case insensitive option matching.
59132         * lib/argmatch.h (argcasematch): Remove declaration.
59133         (ARGCASEMATCH): Remove macro.
59134         (__xargmatch_internal): Remove case_sensitive argument.
59135         (XARGMATCH): Update.
59136         (XARGCASEMATCH): Remove macro.
59137         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59138         case_sensitive argument.
59139         (argcasematch): Remove function.
59140         (__xargmatch_internal): Remove case_sensitive argument.
59141         (main): Use XARGMATCH instead of XARGCASEMATCH.
59142
59143         * lib/xmalloc.c: Change compile-time error message. Add comment about
59144         required autoconf version.
59145
59146 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59147
59148         Merge argmatch cleanups from Bison.  Assume C89.
59149
59150         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59151         Include stdlib.h, for EXIT_FAILURE.
59152         Always include <string.h>, since we assume C89.
59153         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59154         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59155         Include <stddef.h> instead, since it's all we need for size_t.
59156         (PARAMS): Remove.  All uses removed.
59157         (ARRAY_CARDINALITY): Do not bother to #undef.
59158         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59159         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59160         Remove unnecessary parentheses.
59161         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59162         Insert necessary parentheses.
59163         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59164         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59165
59166 2002-11-19  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59169         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59170
59171         * lib/mbswidth.h (PARAMS): Remove macro.
59172         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59173         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59174
59175         * lib/gcd.h (PARAMS): Remove macro.
59176         (gcd): Use ANSI C function declarations.
59177         * lib/gcd.c (gcd): Likewise.
59178
59179 2002-11-15  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/strcspn.c: Include <stddef.h>.
59182         (strcspn): Use ANSI C function declaration. Change return type to
59183         size_t. Use NULL.
59184         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59185         (strpbrk): Use NULL.
59186         * lib/strpbrk.h (PARAMS): Remove macro.
59187         (strpbrk): Use ANSI C function declaration.
59188         * lib/strstr.c: Don't include <sys/types.h>.
59189         * lib/strstr.h (PARAMS): Remove macro.
59190         (strstr): Use ANSI C function declarations.
59191
59192 2002-11-14  Karl Berry  <karl@gnu.org>
59193
59194         * config/mkinstalldirs: `do' on separate line, instead of
59195         `for var; do'.
59196
59197 2002-11-06  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59200         * lib/gcd.c (gcd): Likewise.
59201
59202 2002-11-05  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/gcd.h: New file, from gettext-0.11.5.
59205         * lib/gcd.c: New file, from gettext-0.11.5.
59206
59207 2002-11-05  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59210         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59211         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59212         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59213
59214         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59215         <libintl.h>.
59216         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59217         <libintl.h>.
59218
59219         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59220         * lib/human.c: Include gettext.h instead of <libintl.h>.
59221         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59222         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59223         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59224         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59225         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59226         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59227         (textdomain): Remove definition.
59228         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59229
59230         * lib/long-options.c: Remove include of <libintl.h> and definition of
59231         _.
59232         * lib/same.c: Remove include of <libintl.h> and definition of _.
59233
59234 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59235
59236         * lib/config.charset: A few additions for Solaris.
59237
59238 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59239
59240         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59241         * lib/localcharset.c (locale_charset): Declare as extern "C".
59242
59243 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59244
59245         * lib/config.charset: msdos in uk_UA uses CP1125.
59246
59247 2002-11-04  Bruno Haible  <bruno@clisp.org>
59248
59249         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59250         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59251         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59252         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59253         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59254
59255 2002-11-04  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/localcharset.c (locale_charset): Don't return an empty string.
59258
59259 2002-11-04  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59262         aliases.
59263
59264 2002-11-04  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/config.charset: Update for newest glibc. Add canonical names
59267         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59268
59269 2002-11-04  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/config.charset: Add support for NetBSD.
59272
59273 2002-11-04  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59276
59277 2002-11-01  Bruno Haible  <bruno@clisp.org>
59278
59279         * configure.in: Add AC_CONFIG_AUX_DIR call.
59280         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59281         test/Makefile.
59282         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59283
59284 2002-09-28  Karl Berry  <karl@gnu.org>
59285
59286         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59287         installed automake until the next release, since changes have been
59288         made.
59289
59290 2002-09-25  Karl Berry  <karl@gnu.org>
59291
59292         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59293         * lib/getopt*: copy from libc/posix.
59294         * lib/gettext.h: copy from gettext.
59295         * lib/.cppi-disable: add strdup.c, gettext.h.
59296
59297 2002-09-25  Karl Berry  <karl@gnu.org>
59298
59299         * config/srclist.txt: enable gettext.h check.
59300         * config/config.{guess,sub}: update from prep.
59301         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59302                 from automake 1.6.3.
59303         See srclist*.
59304
59305 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59306
59307         * regex.c (PATFETCH): Remove the translating fetch.
59308         (PATFETCH_RAW): Rename to PATFETCH.
59309         (set_image_of_range): New fun.
59310         (SET_RANGE_TABLE_WORK_AREA): Use it.
59311         (regex_compile): Don't translate the pattern chars so eagerly.
59312         Only do it when inserting an `exactn' bytecode or when handling
59313         a char-range.
59314         (mutually_exclusive_p): Avoid empty statement.
59315
59316 2002-07-06  Jim Meyering  <meyering@lucent.com>
59317
59318         * m4/README: Don't mention Makefile.am.in.
59319         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59320
59321 2002-07-01  Jim Meyering  <meyering@lucent.com>
59322
59323         * lib/c-stack.c: Include sys/time.h.
59324         From Volker Borchert.
59325
59326 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59327
59328         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59329
59330 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59331
59332         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59333         New macro.  Use it uniformly instead of
59334         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59335         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59336         reported by Vin Shelton.
59337
59338 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59339
59340         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59341         Do not assume SA_SIGINFO behavior.
59342         Bug reported by Jim Meyering on NetBSD 1.5.2.
59343
59344 2002-06-22  Jim Meyering  <meyering@lucent.com>
59345
59346         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59347         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59348
59349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59350         now that configure.ac uses AC_GNU_SOURCE.
59351         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59352         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59353
59354         Update to latest tools.  Suggestions from Paul Eggert.
59355         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59356         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59357         * m4/fnmatch.m4: Likewise.
59358         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59359         to AC_HEADER_STDBOOL
59360
59361 2002-06-22  Jim Meyering  <meyering@lucent.com>
59362
59363         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59364         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59365
59366 2002-06-22  Jim Meyering  <meyering@lucent.com>
59367
59368         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59369
59370         * lib/exitfail.c, exitfail.h: Likewise.
59371         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59372
59373         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59374         of fnmatch.h.
59375         (EXTRA_DIST): Add fnmatch_loop.c.
59376         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59377
59378         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59379         * lib/fnmatch.c: Update from diffutils-2.8.2.
59380         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59381         * lib/fnmatch.h: Remove file.
59382
59383 2002-06-21  Jim Meyering  <meyering@lucent.com>
59384
59385         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59386         * m4/mbrtowc.m4: Likewise.
59387
59388         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59389         * m4/mbswidth.m4: Reflect name change:
59390         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59391         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59392
59393         * m4/lib-link.m4: Update from gettext-0.11.2.
59394         * m4/gettext.m4: Likewise.
59395
59396         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59397         From Alfred M. Szmidt.
59398
59399 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59400
59401         * lib/file-type.h: Report an error if neither S_ISREG nor
59402         S_IFREG is defined, instead of using a test specific to glibc
59403         2.2.  This should be safe, since POSIX requires S_ISREG and
59404         Unix Version 7 had S_IFREG.  We don't need to check for
59405         <sys/types.h> since we don't use any symbols that it defines.
59406
59407 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59408
59409         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59410         $@-t, so that each temporary file name is unique and valid in the first
59411         8 characters, for operation under DOS.
59412
59413 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59414
59415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59416
59417 2002-06-15  Jim Meyering  <meyering@lucent.com>
59418
59419         Work even with DJGPP 2.03, which lacks support for symlinks.
59420         From Richard Dawe.
59421         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59422         is defined.
59423         * lib/lchown.c (S_ISLNK): Likewise.
59424
59425 2002-06-15  Jim Meyering  <meyering@lucent.com>
59426
59427         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59428         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59429         have been included before this file.
59430
59431 2002-06-14  Jim Meyering  <meyering@lucent.com>
59432
59433         * lib/file-type.h: Use the version from diffutils-2.8.2.
59434         * lib/file-type.c: Likewise.
59435
59436 2002-06-07  Jim Meyering  <meyering@lucent.com>
59437
59438         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59439         They're needed at least for NetBSD 1.5.2.
59440         ($statxfs_includes): Include those same headers.
59441         ($statxfs_includes): Include sys/vfs.h if available.
59442         ($statxfs_includes): Likewise for sys/statvfs.h.
59443         Check for the following members in both structs statfs and statvfs:
59444         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59445
59446 2002-06-01  Jim Meyering  <meyering@lucent.com>
59447
59448         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59449         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59450
59451 2002-05-28  Jim Meyering  <meyering@lucent.com>
59452
59453         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59454         Reported by Volker Borchert.
59455
59456 2002-05-27  Jim Meyering  <meyering@lucent.com>
59457
59458         Fix a problem seen only on nonconforming systems whereby ls.c's
59459         use of localtime, and then of gettimeofday would cause trouble:
59460         the localtime call used to initialize rpl_gettimeofday's save
59461         mechanism would clobber ls's current local time information so
59462         that in any long listing the first file would always be listed
59463         with date 1970-01-01.  Analysis by Volker Borchert.
59464
59465         * lib/gettimeofday.c (localtime): Undefine.
59466         (rpl_localtime): New function.
59467
59468 2002-05-27  Jim Meyering  <meyering@lucent.com>
59469
59470         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59471         localtime.
59472
59473         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59474         use the replacement function; it wouldn't resolve at link time.
59475         Reported by Volker Borchert.
59476
59477 2002-05-22  Jim Meyering  <meyering@lucent.com>
59478
59479         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59480         file-type.h.
59481         * lib/file-type.h: New file.
59482         * lib/file-type.c (file_type): New file/function.  Extracted from
59483         diffutils.
59484
59485 2002-04-30  Jim Meyering  <meyering@lucent.com>
59486
59487         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59488
59489 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59490
59491         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59492
59493 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59494
59495         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59496         Do not check for alloca.h (no longer used) or stdbool.h (was never
59497         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59498
59499 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59500
59501         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59502
59503 2002-04-29  Jim Meyering  <meyering@lucent.com>
59504
59505         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59506         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59507         Use AC_FUNC_STRNLEN here instead.
59508
59509         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59510         With autoconf-2.53a, it's part of AC_PROG_CC.
59511
59512 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59513
59514         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59515         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59516
59517 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59518
59519         * lib/sig2str.h, lib/sig2str.c: New files.
59520         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59521
59522 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59523
59524         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59525         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59526         of 127, since 64 is the largest conceivable number for ancient
59527         nonstandard hosts.
59528         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59529
59530 2002-04-28  Jim Meyering  <meyering@lucent.com>
59531
59532         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59533
59534 2002-04-24  Jim Meyering  <meyering@lucent.com>
59535
59536         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59537         (jm_PREREQ): Use it.
59538
59539         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59540         mach/mach.h fcntl.h.
59541         Check for this function: setlocale.
59542
59543 2002-04-24  Jim Meyering  <meyering@lucent.com>
59544
59545         * lib/gettext.h: New file, from Gettext.
59546         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59547         (libfetish_a_SOURCES): Add gettext.h.
59548
59549 2002-04-16  Jim Meyering  <meyering@lucent.com>
59550
59551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59552         ut_pid, ut_id, ut_exit.
59553
59554 2002-04-16  Jim Meyering  <meyering@lucent.com>
59555
59556         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59557         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59558         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59559
59560 2002-04-12  Jim Meyering  <meyering@lucent.com>
59561
59562         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59563         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59564         existence of the getmntinfo function.  Needed for Darwin 5.3.
59565
59566         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59567         This is necessary at least on Darwin 5.3.
59568
59569         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59570         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59571         strnlen.o in the library, and that makes some versions of ranlib
59572         object.
59573
59574 2002-04-12  Jim Meyering  <meyering@lucent.com>
59575
59576         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59577
59578 2002-04-09  Jim Meyering  <meyering@lucent.com>
59579
59580         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59581         to be more precise.  Rather than saying we're checking whether the
59582         function `works', say what we're testing.
59583         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59584         Reported by Bruno Haible.
59585
59586 2002-03-10  Jim Meyering  <meyering@lucent.com>
59587
59588         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59589         Suggestion from Santiago Vila.
59590
59591 2002-03-08  Jim Meyering  <meyering@lucent.com>
59592
59593         * lib/rename.c: Mention that this wrapper is needed also on
59594         mips-dec-ultrix4.4 systems.
59595
59596 2002-03-02  Jim Meyering  <meyering@lucent.com>
59597
59598         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59599         not HAVE_CLOCK_SETTIME.
59600
59601 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59602
59603         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59604         Check for clock_settime.
59605
59606 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59607
59608         * lib/nanosleep.h: Rename to....
59609         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59610
59611         * lib/gettime.c: New file.
59612         * lib/settime.c: New file.
59613         * lib/stime.c: Remove.
59614
59615         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59616         timespec.h.  Remove nanosleep.h.
59617
59618 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59619
59620         * m4/acl.m4: New file.
59621         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59622         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59623
59624 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59625
59626         * lib/acl.c, lib/acl.h: New files.
59627         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59628
59629 2002-02-24  Jim Meyering  <meyering@lucent.com>
59630
59631         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59632         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59633         cause trouble.  Reported by Nelson Beebe.
59634
59635 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59636
59637         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59638         compilers that don't know that xalloc_die never returns.
59639
59640 2002-02-20  Jim Meyering  <meyering@lucent.com>
59641
59642         * lib/getdate.c: Regenerate using bison-1.33.
59643
59644 2002-02-17  Jim Meyering  <meyering@lucent.com>
59645
59646         * config/config.guess (main): Don't use `head -1'; it's no longer
59647         portable. Use `sed 1q' instead.
59648
59649 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59650
59651         * m4/codeset.m4: Upgrade to gettext-0.11.
59652         * m4/gettext.m4: Upgrade to gettext-0.11.
59653         * m4/glibc21.m4: Upgrade to gettext-0.11.
59654         * m4/iconv.m4: Upgrade to gettext-0.11.
59655         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59656         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59657         * m4/lib-ld.m4: New file, from gettext-0.11.
59658         * m4/lib-link.m4: New file, from gettext-0.11.
59659         * m4/lib-prefix.m4: New file, from gettext-0.11.
59660         * m4/progtest.m4: Upgrade to gettext-0.11.
59661
59662 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59663
59664         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59665         (jm_PREREQ): Use it.
59666
59667 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59668
59669         * lib/posixver.c, lib/posixver.h: New files.
59670         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59671
59672 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59673             Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59676         (fwrite_success_callback): New declaration.
59677         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59678         print_unicode_char. Call failure callback instead of error.
59679         (fwrite_success_callback): New function.
59680         (exit_failure_callback): New function.
59681         (fallback_failure_callback): New function.
59682         (print_unicode_char): Call unicode_to_mb.
59683
59684 2002-01-26  Jim Meyering  <meyering@lucent.com>
59685
59686         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59687         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59688
59689 2002-01-26  Jim Meyering  <meyering@lucent.com>
59690
59691         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59692
59693 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59694
59695         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59696
59697 2002-01-22  Jim Meyering  <meyering@lucent.com>
59698
59699         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59700         Otherwise, some versions of automake would omit the rule that makes
59701         Makefile from Makefile.in.
59702
59703 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59704
59705         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59706         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59707         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59708         (memcoll): Set errno to zero if there is no error.
59709
59710         * lib/quotearg.c (quotearg_buffer_restyled):
59711         Fix bug with quoting buffers containing NUL when backslashing escapes.
59712         This bug was exposed by the other changes in this patch.
59713         (quotearg_n_options): New arg ARGSIZE.
59714         All callers changed.
59715         (quoting_options_from_style): New function.
59716         (quotearg_n_style): Use it.
59717         (quotearg_n_style_mem): New function.
59718
59719         * lib/quotearg.h (quotearg_n_style_mem): New function.
59720
59721 2002-01-19  Jim Meyering  <meyering@lucent.com>
59722
59723         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59724         Remove useless quotes: DF_PROG="df".
59725         * m4/strnlen.m4: New file.
59726
59727 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59728
59729         * lib/backupfile.c (ISDIGIT): Comment fix.
59730         * lib/getdate.y (ISDIGIT): Likewise.
59731         * lib/posixtm.c (ISDIGIT, year): Likewise.
59732         * lib/strverscmp.c (ISDIGIT): Likewise.
59733         * lib/userspec.c (ISDIGIT): Likewise.
59734
59735 2002-01-16  Jim Meyering  <meyering@lucent.com>
59736
59737         * lib/getdate.y: Add three semicolons, each just before a closing
59738         brace. Bison (as of version 1.31) no longer papers over that mistake.
59739
59740 2002-01-05  Jim Meyering  <meyering@lucent.com>
59741
59742         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59743
59744 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59745
59746         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59747         not silently exit merely because the output buffer happens to
59748         have nothing pending.
59749
59750 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59751
59752         See the big note in ../ChangeLog.
59753         * lib/human.c (suffixes): Prefer K to k for 1024.
59754         (generate_suffix_backwards): New function.
59755         (human_readable_inexact): Use it.
59756         * lib/xstrtol.c (__xstrtol): If there is no number but there
59757         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59758         Accept 'K' as well as 'k'.
59759
59760 2001-12-15  Jim Meyering  <meyering@lucent.com>
59761
59762         * lib/regex.h (__restrict_arr): Update from libc.
59763
59764         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59765         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59766         (STREQ): Define.
59767
59768 2001-12-14  Jim Meyering  <meyering@lucent.com>
59769
59770         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59771         Suggestion from Bruno Haible.
59772
59773 2001-12-10  Jim Meyering  <meyering@lucent.com>
59774
59775         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59776         xrealloc, Instead, include "xalloc.h".
59777         (initbuffer): Don't cast xmalloc return value to char*.
59778         (readline): Reword comment.
59779         Don't cast xrealloc return value to char*
59780         Return NULL, not 0.
59781
59782 2001-12-09  Jim Meyering  <meyering@lucent.com>
59783
59784         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59785         about `signed and unsigned type in conditional expression'.
59786         * lib/posixtm.c (posix_time_parse): Likewise.
59787
59788         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59789
59790         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59791         to avoid a pedantic warning.
59792
59793         * lib/getstr.c: Don't include assert.h.
59794         (getstr): Remove warning-evoking assertions.
59795         Return -1 if offset parameter is out of bounds.
59796         Change the type of a local from int to size_t.
59797
59798         * lib/strftime.c (my_strftime_localtime_r): Include this function
59799         definition in the `#if ! HAVE_TM_GMTOFF' block.
59800
59801         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59802         Include xalloc.h instead.
59803
59804 2001-12-02  Jim Meyering  <meyering@lucent.com>
59805
59806         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59807         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59808         included.
59809
59810         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59811         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59812
59813 2001-11-30  Akim Demaille  <akim@epita.fr>
59814
59815         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59816         before being defined.
59817
59818 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59819
59820         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59821         First arg is int, not unsigned.
59822         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59823         (SIZE_MAX, UINT_MAX): New macros.
59824         (quotearg_n_options): Abort if N is negative.
59825         Avoid overflow check on hosts where size_t is 64 bits and int
59826         is 32 bits, as overflow is impossible there.
59827         Fix off-by-one typo that caused unnecessary reallocation.
59828
59829 2001-11-27  Jim Meyering  <meyering@lucent.com>
59830
59831         * lib/tempname.c: Merge with version from libc.
59832         * lib/regex.c: Likewise.
59833
59834         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59835         systems for which STDC_HEADERS is 0, it was not included, resulting in
59836         a warning about an integer-to-pointer conversion problem with getenv.
59837         Reported by Volker Borchert.
59838
59839 2001-11-26  Jim Meyering  <meyering@lucent.com>
59840
59841         * lib/gtod.h: Remove file.
59842         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59843         * lib/gettimeofday.c: Don't include gtod.h.
59844         (GTOD_init): Remove function.
59845         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59846         Suggestion from Volker Borchert.
59847
59848 2001-11-23  Jim Meyering  <meyering@lucent.com>
59849
59850         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59851         it.
59852         * lib/hash.c (struct hash_table): Define it here instead.
59853
59854 2001-11-22  Jim Meyering  <meyering@lucent.com>
59855
59856         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59857
59858 2001-11-20  Jim Meyering  <meyering@lucent.com>
59859
59860         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59861         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59862
59863 2001-11-19  Jim Meyering  <meyering@lucent.com>
59864
59865         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59866         directory.  Use "conftestXXXXXX" as the template.
59867         Suggestion from Paul Eggert.
59868
59869         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59870         immediately, so the test doesn't mistakenly hit the max-open-files
59871         limit.
59872
59873 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59874
59875         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59876         (TEMPORARIES): New macro.
59877         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59878         removes an artificial limitation (e.g. HP-UX 10.20, where
59879         TMP_MAX is 17576).
59880
59881 2001-11-18  Jim Meyering  <meyering@lucent.com>
59882
59883         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59884
59885 2001-11-18  Jim Meyering  <meyering@lucent.com>
59886
59887         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59888         on SunOS 4.
59889
59890         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59891         files will be created before anything else.
59892
59893 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59894
59895         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59896         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59897
59898 2001-11-17  Jim Meyering  <meyering@lucent.com>
59899
59900         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59901         Prompted by a report from Bob Proulx.
59902
59903         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59904         Instead, require UTILS_FUNC_MKSTEMP.
59905
59906 2001-11-17  Jim Meyering  <meyering@lucent.com>
59907
59908         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59909         Now, that's done as part of AC_FUNC_STRTOD.
59910
59911 2001-11-17  Jim Meyering  <meyering@lucent.com>
59912
59913         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59914         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59915         rather than group writable.  Patch by Juan F. Codagnone.
59916
59917         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59918         xrealloc, Instead, include "xalloc.h".
59919
59920         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59921         Remove explicit declarations of xmalloc, xrealloc,
59922         and xstrdup.  Instead, include "xalloc.h".
59923
59924         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59925         unlocked-io.h.
59926         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59927         Likewise.
59928         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59929
59930         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59931         Reported by Padraig Brady.
59932
59933         * lib/mkstemp.c: #undef mkstemp.
59934         Include config.h.
59935         (rpl_mkstemp): Rename from mkstemp.
59936         Protoize.
59937
59938 2001-11-16  Jim Meyering  <meyering@lucent.com>
59939
59940         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59941         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59942         determine the amount of total physical memory, use pstat_getstatic.
59943         HPUX-11 doesn't define _SC_PHYS_PAGES.
59944         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59945         If sysconf couldn't be used to determine the amount of available
59946         physical memory, use both pstat_getstatic and pstat_getdynamic.
59947         Based on a patch from Bob Proulx.
59948
59949 2001-11-10  Jim Meyering  <meyering@lucent.com>
59950
59951         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59952         (jm_PREREQ): Use it.
59953
59954 2001-11-09  Jim Meyering  <meyering@lucent.com>
59955
59956         * m4/jm-macros.m4: Require autoconf-2.52f.
59957         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59958         Use these AC_-prefixed names, not the AM_-prefixed ones.
59959
59960         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59961
59962 2001-11-05  Jim Meyering  <meyering@lucent.com>
59963
59964         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59965
59966 2001-11-04  Jim Meyering  <meyering@lucent.com>
59967
59968         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59969         $DEFS.
59970
59971 2001-11-03  Jim Meyering  <meyering@lucent.com>
59972
59973         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59974         of AC_DEFUN.
59975
59976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59977         know the name of the variable in the macro definition.
59978
59979 2001-11-03  Jim Meyering  <meyering@lucent.com>
59980
59981         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59982         in argmatch_to_argument call.
59983
59984         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59985         argument.
59986
59987         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59988         e.g., a fault due to an attempt to free a NULL pointer.
59989
59990 2001-11-01  Jim Meyering  <meyering@lucent.com>
59991
59992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59993         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59994
59995 2001-11-01  Jim Meyering  <meyering@lucent.com>
59996
59997         * lib/dirfd.c, lib/dirfd.h: New files.
59998         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59999
60000         * lib/hash.c (hash_print) [TESTING]: Clean up.
60001
60002 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60003
60004         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60005         to avoid a warning if -Wall.
60006
60007 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60008
60009         * README: New file
60010         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60011         (per RMS's instructions, this is now the canonical source)
60012         * lgpl/, gpl/: New directories.
60013
60014 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60015
60016         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60017
60018 2001-10-21  Jim Meyering  <meyering@lucent.com>
60019
60020         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60021         this code would end up calling gettext even in packages built
60022         with --disable-nls.
60023         * lib/getopt.c (_): Likewise.
60024         * lib/regex.c (_): Likewise.
60025
60026 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60027
60028         * m4/error.m4 (jm_PREREQ_ERROR):
60029         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60030         AC_FUNC_STRERROR_R does that.
60031         Check for strerror declaration.
60032
60033         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60034         are supposed to have them these days.
60035         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60036         Merge changes from latest Autoconf CVS.
60037         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60038         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60039         POSIX decided to standardize on the int flavor of strerror_r.
60040
60041 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60042
60043         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60044         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60045         Use strerror_r that is only a macro, even if it is not a function.
60046         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60047         (private_strerror): Use prototypes, not old-style function definition.
60048         (print_errno_message): New function.
60049         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60050         char*-flavored one.
60051         (error_tail, error, error_at_line): Use it.
60052
60053 2001-10-11  Jim Meyering  <meyering@lucent.com>
60054
60055         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60056         and quote_n (1, ... to avoid clobbering a buffer.
60057
60058 2001-10-05  Jim Meyering  <meyering@lucent.com>
60059
60060         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60061         hash-pjw.h.
60062         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60063         * lib/hash-pjw.h: New file.
60064
60065 2001-09-30  Jim Meyering  <meyering@lucent.com>
60066
60067         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60068         `struct fsstat' has the `f_fstypename' member.
60069         Use that to define FS_TYPE, which is now used to make
60070         the getfsstat link test tighter.
60071
60072 2001-09-30  Jim Meyering  <meyering@lucent.com>
60073
60074         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60075         Include <sys/ucred.h>, for Apple Darwin.
60076         Include sys/mount.h and sys/fs_types.h only if available.
60077         (FS_TYPE): Define.
60078         (read_filesystem_list): Use FS_TYPE.
60079
60080 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60081
60082         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60083         a boolean context.
60084
60085 2001-09-29  Jim Meyering  <meyering@lucent.com>
60086
60087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60088         [one-argument getmntent function]): Include stdio.h before mntent.h.
60089         SunOS 4.1.x needs it for the declaration of `FILE'.
60090         Patch by Volker Borchert.
60091
60092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60093         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60094         sys/fs_types.h, and make the link-test for getfsstat guard #include
60095         directives with appropriate #if HAVE_*_H tests so that we can
60096         detect getfsstat on Apple Darwin1.3.7 systems.
60097         Reported by Nelson Beebe.
60098         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60099
60100 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60101
60102         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60103         #defines strtoimax.  Also treat the other strto* functions
60104         like strtoimax.
60105
60106         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60107         Check for strtoul and strtoumax,
60108         as those declarations are made even in the signed case.
60109         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60110         Likewise, for strtol and strtoimax.
60111
60112 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60113
60114         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60115         #defines strtoimax.  Also treat the other strto* functions
60116         like strtoimax.
60117
60118         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60119         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60120         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60121
60122 2001-09-26  Jim Meyering  <meyering@lucent.com>
60123
60124         Most macros in unlocked-io.h had the wrong number of arguments.
60125         * lib/gen-uio: New script.
60126         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60127         * lib/unlocked-io.hin: Remove file.
60128         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60129         rather than trying to embed it here.
60130         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60131         Reported by Padraig Brady.
60132
60133 2001-09-25  Volker Borchert  <bt@teknon.de>
60134
60135         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60136         `result'.
60137
60138 2001-09-24  Jim Meyering  <meyering@lucent.com>
60139
60140         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60141
60142 2001-09-23  Jim Meyering  <meyering@lucent.com>
60143
60144         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60145         instead of the mere test for existence of mntent.h.  The latter
60146         would get a false-positive on AIX 3.4 systems.
60147         In the outer getmntent if-block, don't die if neither of the getmntent
60148         tests succeeds.  Instead, just fall through and continue with the
60149         remaining tests.
60150
60151 2001-09-23  Jim Meyering  <meyering@lucent.com>
60152
60153         * lib/mountlist.c: Remove useless parentheses in #if directives.
60154         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60155         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60156
60157 2001-09-22  Jim Meyering  <meyering@lucent.com>
60158
60159         * m4/gettext.m4: New file.  From gettext.
60160         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60161         * m4/progtest.m4: Likewise
60162         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60163         * m4/glibc21.m4: Likewise.
60164
60165         * m4/libintl.m4: Remove.  No longer used.
60166
60167 2001-09-22  Jim Meyering  <meyering@lucent.com>
60168
60169         * lib/localcharset.c: Update from latest gettext.
60170         * lib/config.charset: Likewise.
60171
60172 2001-09-20  Jim Meyering  <meyering@lucent.com>
60173
60174         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60175         strtoimax.
60176         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60177         strtoumax.
60178
60179 2001-09-20  Jim Meyering  <meyering@lucent.com>
60180
60181         * lib/xstrtol.c (strtoimax): Guard declaration with
60182         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60183         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60184         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60185         (strtoumax): Likewise, for completeness (it wasn't necessary).
60186
60187 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60188
60189         * lib/strtoimax.c (HAVE_LONG_LONG):
60190         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60191         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60192         to work around bug in IBM C compiler.
60193
60194 2001-09-17  Jim Meyering  <meyering@lucent.com>
60195
60196         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60197         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60198         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60199         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60200         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60201         whenever the right hand side need not be expanded by the shell.
60202
60203 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60204
60205         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60206         library.  It's not correct, as some older glibcs are buggy.
60207         fnmatch wasn't fixed until glibc 2.2.
60208
60209         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60210         special shell magic here.
60211
60212 2001-09-16  Jim Meyering  <meyering@lucent.com>
60213
60214         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60215         * m4/jm-macros.m4: Require it.
60216
60217 2001-09-16  Jim Meyering  <meyering@lucent.com>
60218
60219         * lib/mkdir.c: New file.
60220
60221 2001-09-15  Jim Meyering  <meyering@lucent.com>
60222
60223         * m4/jm-macros.m4: Check for help2man.
60224
60225 2001-09-11  Jim Meyering  <meyering@lucent.com>
60226
60227         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60228         The body, by Paul Eggert, was moved here from configure.in.
60229         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60230
60231 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60232
60233         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60234         (jm_PREREQ): Use it.
60235
60236 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60237
60238         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60239         Use ssize_t, not int, to store result of readlink.
60240         Check for ssize_t overflow as well as size_t overflow,
60241         as POSIX says the result of readlink is implementation-defined
60242         when ssize_t overflows.
60243         Remove unnecessary cast to char*.
60244         Use free+malloc instead of realloc, as the storage doesn't need
60245         to be preserved and it's clearer and can be more efficient that way.
60246         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60247         * lib/xreadlink.h (xreadlink): Update prototype.
60248
60249 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60250
60251         * lib/xgetcwd.c: Revert some of the previous change; intead,
60252         fix the HAVE_GETCWD_NULL code to behave more like the
60253         !HAVE_GETCWD_NULL code used to.
60254
60255         Include "xalloc.h".
60256         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60257         invoke xalloc_die.
60258
60259 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60260
60261         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60262         sys/param.h, as pathmax.h includes them.
60263
60264 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60265
60266         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60267         (jm_PREREQ_XGETCWD): New macro.
60268
60269         * m4/getcwd.m4: New file.
60270
60271 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60272
60273         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60274         like the HAVE_GETCWD_NULL code.
60275         Include pathmax.h if not HAVE_GETCWD.
60276         Do not include xalloc.h.
60277         (INITIAL_BUFFER_SIZE): New symbol.
60278         Do not use xmalloc / xrealloc, since the caller is responsible for
60279         handling errors.  Preserve errno around `free' during failure.
60280         Do not overrun buffer when using getwd.
60281
60282 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60283
60284         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60285         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60286         getcwd (NULL, 0).
60287
60288 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60289
60290         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60291         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60292         spotted by Jim Meyering.
60293
60294 2001-09-03  Jim Meyering  <meyering@lucent.com>
60295
60296         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60297         failure.
60298
60299 2001-09-02  Jim Meyering  <meyering@lucent.com>
60300
60301         * lib/error.c: Update from GNU libc.
60302
60303 2001-09-01  Jim Meyering  <meyering@lucent.com>
60304
60305         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60306         Used by df.
60307
60308 2001-09-01  Jim Meyering  <meyering@lucent.com>
60309
60310         * lib/xreadlink.c: New file.
60311         * lib/xreadlink.h: New file.
60312         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60313         xreadlink.h.
60314
60315         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60316         doesn't conflict with sparc Solaris 7's definition in
60317         /usr/include/sys/int_types.h.
60318
60319         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60320         files.
60321         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60322         and strncasecmp as r-values.  Unixware didn't have declarations.
60323
60324 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60325
60326         * lib/xstrtol.h: Add copyright notice.
60327         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60328         LONGINT_INVALID_SUFFIX_CHAR.
60329
60330 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60331
60332         * lib/xstrtol.c (strtoimax): New decl.
60333
60334 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60335
60336         * lib/xgetcwd.c: Don't include pathmax.h.
60337         Include stdlib.h and unistd.h if available.
60338         Include xalloc.h.
60339         (xmalloc, xstrdup, free): Remove decls.
60340         (xgetcwd): Don't assume sizes fit in unsigned.
60341         Check for overflow when computing sizes.
60342         Simplify reallocation code.
60343
60344 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60345
60346         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60347         a directory's st_size can have an arbitrary value, so the old
60348         usage could waste an arbitrary amount of memory.  All uses
60349         changed.
60350         * lib/savedir.h: Update prototype.
60351
60352 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60353
60354         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60355
60356         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60357         old strtoimax.c.
60358
60359         Also, make the following further changes to make this file's
60360         configuration more similar to that of strtol.c:
60361         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60362         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60363         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60364         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60365         changed to signed values.
60366
60367         And make the following changes as well:
60368         Fix copyright notice, as 1999 was missing.
60369         (verify): New macro.
60370         (strtoimax): Check sizes at compile-time, not run-time.
60371         Prefer strtol to strtoll if both work.
60372         (main): Remove; it was not that useful and was a pain to maintain.
60373
60374         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60375
60376 2001-08-31  Jim Meyering  <meyering@lucent.com>
60377
60378         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60379         Use an initial, malloc'd, buffer of length 128 rather than
60380         a statically allocated one of length 1024.
60381
60382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60383
60384         Simplify code, partly by assuming autoconf 2.52 semantics.
60385
60386         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60387
60388         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60389         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60390         All uses removed.
60391         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60392         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60393         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60394         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60395         jm_AC_HEADER_INTTYPES_H.
60396         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60397
60398         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60399
60400         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60401         Quote first arg of AC_DEFUN.
60402         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60403         since they are needed to parse the include file even if we need
60404         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60406         but with opposite signedness.
60407
60408 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60409
60410         Merge 'exclude' changes from tar 1.13.22.
60411         This fixes one or two unlikely storage allocation overflow bugs,
60412         but doesn't change user-visible behavior otherwise.
60413
60414 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60415
60416         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60417         (jm_PREREQ_EXCLUDE): New macro.
60418
60419 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60420
60421         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60422         tm to be declared.
60423
60424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60425
60426         * lib/hash.c: Remove '2001' from copyright notice.
60427
60428 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60429
60430         * lib/full-write.h: New file.
60431         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60432         * lib/full-write.c: Correct credits, as cccp.c no longer
60433         exists and anyway it was so heavily changed from the old cccp
60434         code as to be unrecognizable.  Include full-write.h.
60435         (full_write) Return size_t, with short writes meaning failure.
60436         All callers changed.  This fixes a bug with large buffers
60437         on 64-bit hosts.
60438         * lib/utime.c: Include full-write.h.
60439
60440 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60441
60442         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60443         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60444         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60445         Include if available.
60446         (<xalloc.h>): Include
60447         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60448         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60449         collide with FNM macros.
60450         (struct patopts): New struct.
60451         (struct exclude): Use it, as exclude patterns now come with options.
60452         (new_exclude): Support above changes.
60453         (new_exclude, add_exclude_file):
60454         Initial size must now be a power of two to simplify overflow checking.
60455         (free_exclude, fnmatch_no_wildcards): New function.
60456         (excluded_filename): No longer requires options arg, as the options
60457         are determined by add_exclude.  Now returns bool, not int.
60458         (excluded_filename, add_exclude):
60459         Add support for the fancy new exclusion options.
60460         (add_exclude, add_exclude_file): Now takes int options arg.
60461         Check for arithmetic overflow when computing sizes.
60462         (add_exclude_file): xrealloc might modify errno, so don't
60463         realloc until after errno might be used.
60464
60465         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60466         New macros.
60467         (free_exclude): New decl.
60468         (add_exclude, add_exclude_file): Now takes int options arg.
60469         (excluded_filename): No longer requires options arg, as the options
60470         are determined by add_exclude.  Now returns bool, not int.
60471
60472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60473
60474         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60475
60476 2001-08-27  Jim Meyering  <meyering@lucent.com>
60477
60478         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60479
60480         * lib/version-etc.c (N_): Remove definition.
60481         Revert most of last change.
60482         Instead, simply don't mark the `Copyright...' string for translation.
60483         Based on advice from Paul Eggert.
60484
60485         * lib/strtoxmax.c: Tweak comment.
60486
60487 2001-08-26  Jim Meyering  <meyering@lucent.com>
60488
60489         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60490
60491         * m4/xstrtoimax.m4: New file.
60492         * m4/xstrtoumax.m4: Add comments explaining why we
60493         AC_REPLACE_FUNCS(strtol).
60494
60495 2001-08-26  Jim Meyering  <meyering@lucent.com>
60496
60497         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60498         of copyright with `%s' so translators don't get an untranslated
60499         message in 2002.
60500         (COPYRIGHT_YEAR): Define.
60501         (version_etc): Use fprintf rather than fputs.
60502         Suggestion from Ulrich Drepper.
60503
60504         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60505
60506         * lib/strtoll.c: New file, from GNU libc.
60507         * lib/xstrtoimax.c: New file.
60508
60509         * lib/xstrtol.h: Add xstrtoimax.
60510         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60511         * lib/strtoimax.c: New file.  Likewise, but first define
60512         STRTOUXMAX_SIGNED.
60513
60514         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60515         ...
60516         * lib/strtoxmax.c: ... then renamed to this.
60517
60518 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60519
60520         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60521         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60522         (jm_AC_TYPE_INTMAX_T): New macro.
60523         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60524
60525         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60526
60527         * m4/longlong.m4: Renamed from ulonglong.m4.
60528         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60529         * m4/uintmax_t.m4: Removed.
60530
60531 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60532
60533         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60534         Port to Solaris 8, where 'sed' requires a space after the 'r'
60535         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60536         Redirect output to $tmp just once.
60537
60538 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60539
60540         * lib/addext.c (<errno.h>): Include.
60541         (errno): Declare if not defined.
60542         (addext): Work correctly when pathconf returns -1 and leaves
60543         errno alone because there is no limit.  Also, work even if
60544         pathconf returns a value greater than SIZE_MAX.
60545
60546 2001-08-12  Jim Meyering  <meyering@lucent.com>
60547
60548         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60549         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60550         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60551         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60552         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60553         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60554         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60555         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60556         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60557         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60558         utime.m4, utimes.m4, xstrtoumax.m4:
60559         Quote the first argument in each use of AC_DEFUN.
60560
60561 2001-08-12  Jim Meyering  <meyering@lucent.com>
60562
60563         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60564         Simply `return getcwd (NULL, 0);'.
60565         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60566         Use 1300 as initial value for length, not PATH_MAX.
60567
60568         * lib/pathmax.h: Clean up cpp syntax.
60569
60570 2001-08-12  Jim Meyering  <meyering@lucent.com>
60571
60572         * lib/gettimeofday.c: New file.
60573         * lib/gtod.h: New file.
60574         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60575
60576 2001-08-05  Jim Meyering  <meyering@lucent.com>
60577
60578         * m4/jm-macros.m4: Require autoconf-2.52.
60579
60580 2001-08-04  Jim Meyering  <meyering@lucent.com>
60581
60582         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60583         stmt, to get in sync with glibc.
60584
60585 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60586
60587         The following changes are from gettext 0.10.39 as maintained by
60588         Bruno Haible.
60589
60590         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60591         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60592         with inverted sense.  All uses changed.
60593
60594         * lib/mbswidth.c: Don't include <limits.h>.
60595         Include <stdlib.h> and <string.h> unconditionally.
60596         (iswcntrl, mbsinit, ISCNTRL): New macros.
60597         (mbsnwidth): Use K&R style function declarations.
60598         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60599         can optimize it when MB_CUR_MAX == 1.
60600         The width of control characters is zero, not 1.
60601
60602 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60603
60604         The following changes are from gettext 0.10.39 as maintained by
60605         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60606
60607         * m4/codeset.m4: Upgrade to serial AM1.
60608         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60609         all uses changed.  Quote first arg of AC_DEFUN.
60610         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60611
60612         * m4/iconv.m4: Upgrade to serial AM2.
60613         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60614         Add --with-libconv-prefix.
60615         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60616         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60617         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60618         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60619         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60620
60621         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60622         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60623         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60624         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60625         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60626         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60627         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60628         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60629         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60630
60631         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60632         string.h any more.
60633
60634         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60635         not the default value.
60636
60637         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60638         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60639         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60640         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60641         Also check for iswcntrl, used for wcwidth fallback.
60642         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60643         to Autoconf 2.13.
60644
60645 2001-08-03  Jim Meyering  <meyering@lucent.com>
60646
60647         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60648         as it was in the original.  Reported by Paul Eggert.
60649
60650 2001-07-16  Jim Meyering  <meyering@lucent.com>
60651
60652         * m4/gettimeofday.m4: New file.
60653         Prompted by a report from Bernhard Baehr.
60654
60655 2001-07-15  Jim Meyering  <meyering@lucent.com>
60656
60657         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60658         stuff. Now it's in ../Makefile.cfg.
60659
60660 2001-07-15  Jim Meyering  <meyering@lucent.com>
60661
60662         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60663         (BUILT_SOURCES): Add unlocked-io.h.
60664         (io_functions): Define.
60665         (unlocked-io.h): New rule.
60666         (DISTCLEANFILES): Add unlocked-io.h.
60667         (all-local): Depend on unlocked-io.h, to ensure it is created.
60668
60669         * lib/unlocked-io.hin: New file
60670
60671         * lib/regex.c: Update from glibc.
60672
60673 2001-07-05  Jim Meyering  <meyering@lucent.com>
60674
60675         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60676         recommendation.
60677         (libfetish_a_SOURCES): Put all .h files here instead.
60678         Remove a thus-exposed (better checks in automake) duplicate and
60679         two unnecessary .h files.
60680
60681 2001-07-04  Jim Meyering  <meyering@lucent.com>
60682
60683         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60684         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60685         distcheck failure.
60686
60687 2001-07-02  Jim Meyering  <meyering@lucent.com>
60688
60689         The following changes were prompted by suggestions from Bruno Haible.
60690
60691         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60692         is now generated.
60693         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60694         definition of EXTRA_DIST.
60695         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60696         ensure that the generated file is created/updated whenever the list
60697         of $(unlocked_functions) is changed.
60698         (jm-glibc-io.m4): New rule.
60699         (unlocked-io.h): New rule -- currently unused.
60700
60701 2001-06-24  Jim Meyering  <meyering@lucent.com>
60702
60703         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60704         unmatched right bracket, rather than kludging it with an extra,
60705         falsely-matching quote in a comment.  Patch by Akim Demaille.
60706
60707 2001-06-11  Jim Meyering  <meyering@lucent.com>
60708
60709         * lib/regex.c: Update from GNU libc.
60710
60711 2001-05-27  Jim Meyering  <meyering@lucent.com>
60712
60713         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60714         Check for ut_type in struct utmp.
60715
60716 2001-05-27  Jim Meyering  <meyering@lucent.com>
60717
60718         * lib/readutmp.h (UT_TYPE): Define.
60719
60720 2001-05-24  Jim Meyering  <meyering@lucent.com>
60721
60722         * lib/argmatch.c: Include "quote.h".
60723         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60724         quote function.  Reported by Göran Uddeborg.
60725
60726 2001-05-22  Jim Meyering  <meyering@lucent.com>
60727
60728         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60729         now that we use the package-supplied version unconditionally.
60730         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60731
60732 2001-05-21  Jim Meyering  <meyering@lucent.com>
60733
60734         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60735         shell syntax errors.
60736
60737 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60738
60739         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60740
60741 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60742
60743         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60744         Don't bother to check library strftime, since
60745         we'll be using our own my_strftime function anyway.
60746         Define my_strftime instead of strftime.
60747
60748 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60749
60750         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60751         which is not yet declared.
60752
60753 2001-05-15  Jim Meyering  <meyering@lucent.com>
60754
60755         * m4/regex.m4: Use proper quoting so brackets appear in the test
60756         program.
60757         Reported by, and with help from, Bruno Haible.
60758
60759 2001-05-13  Jim Meyering  <meyering@lucent.com>
60760
60761         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60762         undefined.
60763
60764 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60765
60766         dirname code cleanup.  base_name now behaves more compatibly
60767         with POSIX basename when given file names that have trailing
60768         slashes, and similarly for dir_name.  Add new primitives
60769         base_len and dir_len.  Put the directory-name-related decls
60770         into dirname.h.
60771
60772         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60773         * lib/backupfile.c (base_name): Likewise.
60774         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60775         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60776         * lib/makepath.c (strip_trailing_slashes): Likewise.
60777         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60778         ISSLASH): Likewise.
60779         * lib/rename.c (strip_trailing_slashes): Likewise.
60780         * lib/same.c (base_name): Likewise.
60781         * lib/stripslash.c (ISSLASH): Likewise.
60782
60783         * lib/addext.c: Include <dirname.h> after size_t is defined.
60784         * lib/backupfile.c: Likewise.
60785
60786         * lib/addext.c (addext): Use base_len to trim redundant
60787         trailing slashes instead of doing it ourselves.
60788         But do not trim the last slash if it is not redundant.
60789
60790         * lib/backupfile.c (find_backup_file_name,
60791         max_backup_version): Use base_len instead of rolling it ourselves.
60792         Handle the case of "" and (on DOS) "C:" correctly.
60793
60794         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60795         needed. Include <string.h>, <dirname.h>.
60796         (base_name): Allow file names ending in slashes, other than names
60797         that are all slashes.  In this case, return the basename followed
60798         by the slashes.  This is more general, and can be used in places
60799         where the original base_name purposely had an assertion failure.
60800         (base_len): New function.
60801
60802         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60803         Do not include <assert.h>; no longer needed.
60804         Include xalloc.h.
60805         (memrchr): Remove decl.
60806         (dir_name_r): Remove.
60807         (dir_len): Renamed from dirlen.  All callers changed.
60808         Rewrite in terms of base_name, for simplicity and consistency.
60809         (dir_name): Never return NULL.  All callers changed.
60810         Do not include <stdlib.h> in test program; no longer needed.
60811         return 0; is fine for test program.
60812
60813         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60814         New macros.
60815         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60816
60817         * lib/path-concat.c (path_concat): Use base_len to compute
60818         base length, not strlen; this means we cannot rely on memcpy
60819         to null-terminate.
60820
60821         * lib/same.c (STREQ): Remove.
60822         (same_name): Handle the case where the basename ends in trailing '/'.
60823
60824         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60825         a slash was stripped.  Do not strip the last slash after a
60826         file system prefix.
60827
60828 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60829
60830         * lib/Makefile.am (libfetish_a_SOURCES):
60831         Add strftime.c, since we now compile it on all hosts.
60832
60833         * lib/strftime.c (my_strftime):
60834         Define to nstrftime if emacs, but only if my_strftime is not defined.
60835         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60836         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60837         Add one more extra argument: a nanoseconds value.
60838         All uses changed.
60839         (ns): New macro.
60840         (my_strftime function): Add %N format.
60841         (emacs_strftimeu): Renamed from emacs_strftime,
60842         with extra ut argument.
60843
60844 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60845
60846         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60847
60848 2001-04-21  Jim Meyering  <meyering@lucent.com>
60849
60850         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60851         doesn't interfere.
60852
60853 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60854
60855         * m4/ftruncate.m4: Check for chsize.
60856         Link with ftruncate.o unconditionally if ftruncate is missing.
60857         This was required when cross-compiling to i586-mingw32msvc.
60858
60859 2001-04-08  Jim Meyering  <meyering@lucent.com>
60860
60861         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60862         recomputed; that's necessary when the offset spans a DST transition.
60863         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60864
60865 2001-04-02  Jim Meyering  <meyering@lucent.com>
60866
60867         * lib/regex.h, regex.c: Update from GNU libc.
60868
60869 2001-03-24  Jim Meyering  <meyering@lucent.com>
60870
60871         * m4/jm-macros.m4: Require autoconf-2.49d.
60872
60873 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60874
60875         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60876
60877 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60878
60879         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60880
60881 2001-03-17  Jim Meyering  <meyering@lucent.com>
60882
60883         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60884         now that the version in autoconf is equivalent.
60885         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60886
60887         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60888         Suggestion from Akim Demaille.
60889
60890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60891         (jm_PREREQ_TEMPNAME): New function.
60892
60893 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60894
60895         * lib/tempname.c (uint64_t): Define to uintmax_t if
60896         not defined, and if UINT64_MAX is not defined.
60897         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60898         Reported by John David Anglin.
60899
60900 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60901
60902         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60903         resolve alias if codeset is empty.
60904         * lib/config.charset (BeOS): Use wildcard syntax.
60905
60906 2001-03-13  Jim Meyering  <meyering@lucent.com>
60907
60908         * lib/path-concat.c (path_concat)
60909         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60910         concatenating e.g., `C:' and `foo'.
60911         From Bruno Haible.
60912
60913 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60914
60915         * lib/localcharset.c (locale_charset): Don't use
60916         setlocale(LC_CTYPE,NULL). Don't return NULL.
60917         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60918
60919 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60920
60921         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60922         support for DOS/DJGPP.
60923
60924 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60925
60926         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60927         lacks mkstemp.  Compile our own tempname.c if we compile our own
60928         mkstemp.c, as mkstemp relies on tempname.
60929
60930 2001-03-01  Jim Meyering  <meyering@lucent.com>
60931
60932         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60933         AH_VERBATIM really does output its argument verbatim.
60934
60935 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60936
60937         * lib/Makefile.am (libfetish_a_SOURCES):
60938         Add dup-safer.c, fopen-safer.c.
60939         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60940
60941         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60942         * lib/unistd-safer.h: New files.
60943
60944 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60945
60946         The mkstemp replacement is taken from glibc 2.2.2, with some
60947         portability fixes for use outside glibc, as follows:
60948
60949         * lib/tempname.c (struct_stat64): New macro.
60950         (direxists, __gen_tempname): Use it.
60951         This avoids a portability problem with Solaris 8.
60952
60953         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60954         (<stddef.h>, <stdint.h>, <string.h>):
60955         Include only if STDC_HEADERS || _LIBC.
60956         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60957         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60958         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60959         (__set_errno): Define this macro if <errno.h> doesn't.
60960         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60961         Define these macros if <stdio.h> doesn't.
60962         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60963         Define these macros if <sys/stat.h>
60964         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60965         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60966         __xstat64): Define if not _LIBC.
60967         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60968         (__gen_tempname): Invoke gettimeofday only if
60969         HAVE_GETTIMEOFDAY || _LIBC;
60970         otherwise, fall back on plain "time".
60971         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60972
60973         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60974
60975         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60976
60977 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60978
60979         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60980
60981 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60982
60983         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60984         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60985         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60986         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60987
60988 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60989
60990         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60991         Remove workaround macros for hosts that have mbrtowc but not
60992         mbstate_t, as we now insist on proper declarations for both
60993         before using mbrtowc.
60994
60995 2001-02-17  Jim Meyering  <meyering@lucent.com>
60996
60997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60998         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60999         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61000         UnixWare 7.1.1.
61001
61002         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61003         rather than AC_CACHE_VAL.
61004
61005 2001-02-17  Jim Meyering  <meyering@lucent.com>
61006
61007         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61008         around included file name.
61009
61010         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61011
61012         * lib/strftime.c: Update from GNU libc (the only changes were to
61013         comments).
61014
61015 2001-02-17  Jim Meyering  <meyering@lucent.com>
61016
61017         * lib/regex.c: Update from libc.
61018
61019 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61020
61021         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61022         clash.
61023
61024 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61025
61026         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61027         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61028         Reported by Mark Hounschell via Paul Eggert.
61029
61030 2001-02-07  Jim Meyering  <meyering@lucent.com>
61031
61032         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61033
61034 2001-02-05  Jim Meyering  <meyering@lucent.com>
61035
61036         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61037         it includes the patch required for `large file' support with at least
61038         HP-UX's 10.20 /bin/cc.
61039
61040 2001-02-03  Jim Meyering  <meyering@lucent.com>
61041
61042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61043         AS_IF, now that it works once again (mysteriously).
61044         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61045
61046 2001-01-30  Jim Meyering  <meyering@lucent.com>
61047
61048         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61049         * m4/chown.m4: Rename conftestchown to conftest.chown.
61050         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61051         s/conftestdir2/conftest.d2/.
61052         * m4/utimes.m4: s/conftestdata/conftest.data/
61053         Inspired by Pavel Roskin's change in autoconf.
61054
61055 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61056
61057         * lib/config.charset: Update for FreeBSD 4.2.
61058
61059 2001-01-27  Jim Meyering  <meyering@lucent.com>
61060
61061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61062         a use of AS_IF.
61063         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61064
61065 2001-01-26  Jim Meyering  <meyering@lucent.com>
61066
61067         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61068         quotearg.c includes it.
61069
61070 2001-01-26  Jim Meyering  <meyering@lucent.com>
61071
61072         * lib/quotearg.c: Include stddef.h.
61073         * lib/quote.c: Include stddef.h.
61074         Reported by Axel Kittenberger.
61075
61076         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61077         line in double quotes so that it evokes a better diagnostic.
61078         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61079         Reported by Axel Kittenberger.
61080
61081 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61082
61083         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61084         as if it was a `charset'.
61085
61086 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61087
61088         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61089         has const.
61090
61091 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61092
61093         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61094         to avoid a warning.  Add back 'const' to inptr.
61095
61096 2001-01-20  Jim Meyering  <meyering@lucent.com>
61097
61098         Be sure that headers are checked before used in code compiled
61099         for the type checks.
61100         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61101         In place of that, invoke jm_CHECK_ALL_TYPES.
61102         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61103         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61104         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61105         The check for ssize_t was mistakenly run before the test for unistd.h.
61106
61107         The configure-time check for stdbool.h was missing.
61108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61109         (jm_PREREQ_HASH): New function.
61110
61111 2001-01-17  Jim Meyering  <meyering@lucent.com>
61112
61113         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61114         for autoconf-2.49c.
61115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61116
61117 2001-01-16  Jim Meyering  <meyering@lucent.com>
61118
61119         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61120         From Bruno Haible.
61121
61122 2001-01-14  Jim Meyering  <meyering@lucent.com>
61123
61124         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61125         foo and bar.  Create conftestdir/ in the script, not in the C code.
61126         Remove directories in the script, not in the C code.
61127         Remove conftestdir{,2} before trying to create the directory.
61128         Make the entire configure script fail if the mkdir fails.
61129
61130 2001-01-14  Jim Meyering  <meyering@lucent.com>
61131
61132         * lib/rename.c: New file.  From Volker Borchert.
61133         Include stdlib.h, string.h or strings.h, and xalloc.h.
61134         Use strip_trailing_slashes rather than open-coding it.
61135
61136 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61137
61138         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61139
61140 2001-01-03  Jim Meyering  <meyering@lucent.com>
61141
61142         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61143         of local `inptr' to avoid warning with some system declarations of
61144         iconv.
61145
61146 2001-01-02  Volker Borchert  <bt@teknon.de>
61147
61148         * m4/rename.m4: New file.
61149         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61150
61151 2001-01-01  Jim Meyering  <meyering@lucent.com>
61152
61153         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61154         even on systems with utmpx.h.  It's necessary for the declaration of
61155         utmp's ut_user member.  Reported by Andreas Jaeger.
61156
61157         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61158         available. They are required for the declarations of getgrgid and
61159         getpwuid resp.
61160         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61161         Reported by Andreas Jaeger.
61162
61163 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61164
61165         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61166         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61167         so `make install' also works in VPATH builds.
61168
61169 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61170
61171         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61172         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61173         can be used in subdirectories.
61174
61175 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61176
61177         * lib/modechange.c: Do not assume that mode_t uses the
61178         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61179         the other-execute bit of FOO even if S_IXOTH != 1.
61180
61181         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61182         WOTH, XOTH, ALLM): New macros.
61183         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61184          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61185         Use them.
61186         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61187         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61188         (mode_compile):
61189         No need to use uintmax_t; unsigned long is long enough.
61190         Don't bother to get suffix since we don't use it.
61191
61192 2000-12-26  Jim Meyering  <meyering@lucent.com>
61193
61194         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61195         better with autoheader.
61196
61197 2000-12-24  Jim Meyering  <meyering@lucent.com>
61198
61199         * lib/hash.c (is_prime): Return explicit boolean values.
61200         (hash_get_first): Return NULL to appease Irix5.6's 89.
61201         Reported by Nelson Beebe.
61202
61203 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61204
61205         * lib/localcharset.c (locale_charset): Add support for Win32.
61206
61207 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61208
61209         * lib/physmem.h, lib/physmem.c: New files.
61210
61211         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61212         (noinst_HEADERS): Add physmem.h.
61213
61214         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61215         't' for compatibility with Solaris 8 sort.
61216
61217 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61218
61219         * lib/config.charset: Add support for BeOS.
61220
61221 2000-12-17  Jim Meyering  <meyering@lucent.com>
61222
61223         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61224         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61225
61226 2000-12-16  Jim Meyering  <meyering@lucent.com>
61227
61228         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61229         N and M) would have treated it like `chown N:N FILE'.
61230
61231         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61232
61233 2000-12-16  Jim Meyering  <meyering@lucent.com>
61234
61235         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61236         SHELLS_FILE to a file name that's useful on djgpp systems.
61237         Include stdlib.h.
61238         (ADDITIONAL_DEFAULT_SHELLS): Define.
61239         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61240         Based mostly on a patch from Prashant TR.
61241
61242 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61243
61244         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61245         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61246         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61247
61248 2000-12-08  Andreas Schwab  <schwab@suse.de>
61249
61250         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61251         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61252
61253 2000-12-07  Jim Meyering  <meyering@lucent.com>
61254
61255         * lib/stripslash.c (ISSLASH): Define.
61256         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61257         `/'.
61258         From Prashant TR.
61259
61260         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61261         (dir_name_r): Declare this function as static.
61262         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61263         manifest itself on a name containing a mix of slashes and
61264         backslashes.
61265         Make this function work with names starting with a DOS-style
61266         drive letter and colon prefix.
61267         (dir_name): Append `.' if necessary.
61268         Based mostly on patches from Prashant TR and Eli Zaretskii.
61269
61270         * lib/dirname.h (dir_name_r): Remove prototype.
61271
61272 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61273
61274         * m4/off_t-format.m4: Remove this file.
61275         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61276
61277 2000-12-06  Jim Meyering  <meyering@lucent.com>
61278
61279         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61280         replacement strtoull, we may well need the replacement strtoul, too.
61281         Check for declarations of strtoul and strtoull.
61282         Check for strtol.  Mainly as a cue to cause automake to include
61283         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61284         Check for limits.h -- strtol.c needs it.
61285
61286 2000-12-05  Jim Meyering  <meyering@lucent.com>
61287
61288         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61289
61290 2000-12-04  Jim Meyering  <meyering@lucent.com>
61291
61292         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61293         Also include memory.h, stdlib.h, unistd.h if appropriate.
61294         Reported by Andreas Jaeger (conflicting declaration of malloc).
61295
61296 2000-12-02  Jim Meyering  <meyering@lucent.com>
61297
61298         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61299         * m4/jm-macros.m4 (jm_MACROS): require it.
61300
61301 2000-12-02  Jim Meyering  <meyering@lucent.com>
61302
61303         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61304
61305 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61306
61307         * lib/memrchr.c: Include <config.h> before any system include file.
61308
61309 2000-11-30  Jim Meyering  <meyering@lucent.com>
61310
61311         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61312
61313 2000-11-30  Jim Meyering  <meyering@lucent.com>
61314
61315         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61316
61317 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61318
61319         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61320
61321 2000-11-26  Jim Meyering  <meyering@lucent.com>
61322
61323         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61324
61325 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61326
61327         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61328         size of (size_t) -1; it's not portable.
61329
61330 2000-11-17  Jim Meyering  <meyering@lucent.com>
61331
61332         * lib/strstr.c: Update from GNU libc.
61333
61334 2000-11-17  Akim Demaille  <akim@epita.fr>
61335
61336         * lib/obstack.h: Formatting changes.
61337         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61338         prevent type checking.
61339         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61340         cast the value to (void *): assigning a `foo *' to a `void *'
61341         variable is valid.
61342         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61343
61344 2000-11-16  Jim Meyering  <meyering@lucent.com>
61345
61346         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61347
61348 2000-11-11  Jim Meyering  <meyering@lucent.com>
61349
61350         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61351
61352 2000-11-10  Jim Meyering  <meyering@lucent.com>
61353
61354         * lib/obstack.h: Update from GNU libc.
61355         * lib/obstack.c: Likewise.
61356
61357 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61358
61359         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61360
61361 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61362
61363         * lib/getusershell.c (setusershell): Use rewind rather than
61364         fseek/fseeko, to avoid configuration hassles with fseeko.
61365         Don't bother opening SHELLS_FILE if shellstream is NULL;
61366         it's not necessary.
61367
61368 2000-11-05  Jim Meyering  <meyering@lucent.com>
61369
61370         * lib/makepath.h (make_dir): Declare.
61371         * lib/makepath.c (make_dir): Remove `static' attribute.
61372         Tweak a comment.
61373
61374 2000-11-04  Jim Meyering  <meyering@lucent.com>
61375
61376         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61377
61378 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61379
61380         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61381         last one in a bucket, advance to the next bucket.
61382
61383 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61384
61385         * lib/fnmatch.c: Do not comment out all the code if we are using
61386         the GNU C library, because in some cases we are replacing buggy
61387         code in the GNU C library itself.
61388
61389 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61390
61391         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61392         (regex_compile): Catch bogus \(\1\).
61393
61394 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61395
61396         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61397         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61398         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61399
61400 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61401
61402         * lib/error.h, getline.h, modechange.h:
61403         Remove "2000" from Copyright line, as the file hasn't been
61404         changed this year other than in the copyright notice.
61405
61406         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61407         was changed this year.
61408
61409 2000-10-29  Jim Meyering  <meyering@lucent.com>
61410
61411         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61412         renaming.
61413         * m4/ls-mntd-fs.m4: Likewise
61414
61415 2000-10-29  Jim Meyering  <meyering@lucent.com>
61416
61417         * lib/xstat.in: Fix grammar in comment.
61418
61419 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61420
61421         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61422         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61423         doesn't define __restrict_arr.
61424
61425 2000-10-28  Jim Meyering  <meyering@lucent.com>
61426
61427         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61428         (jm_PREREQ_MEMCHR): New function.
61429
61430 2000-10-28  Jim Meyering  <meyering@lucent.com>
61431
61432         * lib/memchr.c: Update from libc.
61433         Adjust for portability:
61434         [HAVE_STDLIB_H]: Include stdlib.h.
61435         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61436         Undef __memchr, too.
61437         [!weak_alias]: Define __memchr to memchr.
61438
61439         * lib/regex.c: Update from libc.
61440         * lib/regex.h: Likewise.
61441         * lib/getopt1.c: Likewise.
61442         * lib/memcmp.c: Likewise.
61443
61444         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61445         Avoid using fseek, when possible -- it's broken by design.
61446         Patch by Ulrich Drepper.
61447
61448 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61449
61450         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61451         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61452         Giving in to popular pressure to shut up the compiler with casts.
61453
61454 2000-10-26  Jim Meyering  <meyering@lucent.com>
61455
61456         * lib/strftime.c: Update from libc.
61457
61458 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61459
61460         * regex.c: More `unsigned char' -> `re_char' changes.
61461         Also change several `int' into `re_wchar_t'.
61462         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61463         (PUSH_FAILURE_POINTER): Don't cast any more.
61464         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61465         We want GCC to complain, since this piece of code makes
61466         re_match non-reentrant, which *should* be fixed.
61467         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61468         (EXTEND_BUFFER): Use RETALLOC.
61469         (SET_LIST_BIT): Don't cast.
61470         (re_wchar_t): New type.
61471         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61472         that those two functions will always properly return.
61473         (IMMEDIATE_QUIT_CHECK): Cast to void.
61474         (analyse_first): Use recursion rather than an explicit stack.
61475         (re_compile_fastmap): Can't fail anymore.
61476         (re_search_2): Don't check re_compile_fastmap for failure.
61477         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61478         Now also sets the new value (passed in a new argument).
61479         (re_match_2_internal): Use it.
61480         Also, use a new var `reg' of type size_t when looping through regs
61481         rather than reuse the inappropriate `mcnt'.
61482
61483 2000-10-25  Jim Meyering  <meyering@lucent.com>
61484
61485         * lib/obstack.c: Update from libc.
61486
61487 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61488
61489         * regex.c (regex_compile): Change the way of handling a range from
61490         a char less than 256 to a char not less than 256.
61491
61492 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61493
61494         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61495         NT-Emacs only.
61496         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61497         so that re_search functions only quit when callers expect them to.
61498
61499 2000-10-23  Jim Meyering  <meyering@lucent.com>
61500
61501         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61502         wrong.  That set_locale call must not have any side effects.
61503         From Paul Eggert.
61504
61505 2000-10-22  Jim Meyering  <meyering@lucent.com>
61506
61507         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61508         [CYCLIC]: Remove now-unused definition.
61509
61510         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61511         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61512         Suggestion from Ulrich Drepper.
61513
61514 2000-10-21  Jim Meyering  <meyering@lucent.com>
61515
61516         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61517         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61518         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61519
61520 2000-10-21  Jim Meyering  <meyering@lucent.com>
61521
61522         * lib/dirname.c (memrchr): Declare if necessary.
61523         (dir_name): Remove the restriction that there be no
61524         trailing slashes.  Now, this code skips past them, effectively
61525         ignoring them.
61526         [TEST_DIRNAME] (main): New unit tests.
61527
61528         * lib/memrchr.c: New file from GNU libc.
61529         Undef __memrchr, too.
61530         [!weak_alias]: Define __memrchr to memrchr.
61531         Guard weak_alias use with `#ifdef weak_alias'.
61532
61533 2000-10-21  Jim Meyering  <meyering@lucent.com>
61534
61535         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61536         (dir_name): Use dir_name_r.
61537         * lib/dirname.h (dir_name_r): Declare it.
61538
61539 2000-10-17  Jim Meyering  <meyering@lucent.com>
61540
61541         * lib/quote.h (PARAMS): Define and use.
61542         Reported by Akim Demaille.
61543
61544         * lib/getopt.c: Update from libc.
61545
61546 2000-10-16  Jim Meyering  <meyering@lucent.com>
61547
61548         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61549         setlocale.
61550         From Jan Fedak.
61551
61552 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61553
61554         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61555
61556 2000-09-25  Jim Meyering  <meyering@lucent.com>
61557
61558         * lib/md5.h (rol): Define (from GnuPG).
61559
61560         * lib/sha.c: Give credit (GnuPG) where due.
61561         (M): Use rol rather than open-coding it.
61562         Add a FIXME comment.
61563
61564 2000-09-21  Jim Meyering  <meyering@lucent.com>
61565
61566         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61567         Reported by Michael Stone.
61568
61569 2000-09-20  Jim Meyering  <meyering@lucent.com>
61570
61571         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61572         (noinst_HEADERS): Add sha.h.
61573         Based on code from Scott G. Miller and from GnuPG.
61574
61575 2000-09-18  Jim Meyering  <meyering@lucent.com>
61576
61577         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61578         LIBS. Otherwise, everyone ends up linking with -lelf for some
61579         configurations.
61580         Reported by Mike Stone.
61581
61582 2000-09-15  Jim Meyering  <meyering@lucent.com>
61583
61584         * lib/regex.c: Update from libc.
61585
61586 2000-09-10  Jim Meyering  <meyering@lucent.com>
61587
61588         * lib/getopt.c (_getopt_internal): Update from glibc.
61589
61590 2000-09-09  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61593         think it should be used as a general replacement for isascii.
61594         * lib/fnmatch.c: Likewise.
61595         * lib/mbswidth.c: Likewise
61596         * lib/regex.c: Likewise.
61597
61598         Don't use atoi.
61599         * lib/userspec.c: Include sys/param.h and limits.h.
61600         Include xstrtol.h.
61601         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61602         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61603         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61604         UID, GID.  Check range.
61605
61606 2000-09-06  Jim Meyering  <meyering@lucent.com>
61607
61608         * lib/getopt.c (_getopt_internal): Update from glibc.
61609
61610 2000-08-30  Jim Meyering  <meyering@lucent.com>
61611
61612         * lib/strftime.c: Merge in changes from GNU libc.
61613
61614 2000-08-26  Jim Meyering  <meyering@lucent.com>
61615
61616         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61617         * m4/fpending.m4: New file.
61618
61619 2000-08-26  Jim Meyering  <meyering@lucent.com>
61620
61621         * lib/closeout.c: Include "__fpending.h".
61622         (close_stdout_status): Return right away if there's nothing to flush.
61623
61624         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61625         * lib/__fpending.c: New file.
61626         * lib/__fpending.h: New file.
61627
61628 2000-08-20  Jim Meyering  <meyering@lucent.com>
61629
61630         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61631         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61632         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61633
61634 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61635
61636         Improve fileutils installation on systems where running
61637         programs (like install) can't be unlinked.
61638         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61639         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61640
61641 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61642
61643         Standardize on "memory exhausted" instead of "Memory exhausted"
61644         or "virtual memory exhausted".
61645         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61646         "virtual memory exhausted".
61647         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61648         our own message.
61649         * lib/userspec.c (parse_user_spec): Likewise.
61650         * lib/bumpalloc.h: comment fix
61651         * lib/same.c, userspec.c: Include xalloc.h.
61652
61653         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61654         not char *const and pointing to a constant array.
61655         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61656         (xrealloc): Comment fix.
61657
61658         * lib/userspec.c (parse_user_spec):
61659         Don't translate a message until just before returning,
61660         to avoid unnecessary translation.
61661
61662 2000-08-07  Jim Meyering  <meyering@lucent.com>
61663
61664         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61665         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61666         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61667         getgroups.c, gethostname.c, getopt.h, group-member.c,
61668         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61669         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61670         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61671         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61672         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61673         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61674         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61675         yesno.c: Back out Copyright date changes for each file with no change
61676         this year.  This eases coordination with other programs using the same
61677         source code modules.  From Paul Eggert.
61678
61679 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61680
61681         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61682         not char, for compatibility with glibc 2.1.3 strftime.c.
61683
61684 2000-08-03  Greg McGary  <greg@mcgary.org>
61685
61686         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61687         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61688         (EXTEND_BUFFER): Use them.
61689
61690 2000-08-01  Jim Meyering  <meyering@lucent.com>
61691
61692         * lib/dirname.c (ISSLASH): Define.
61693         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61694         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61695         both `\' and `/' may be use as path separators.
61696         Based on a patch from Prashant TR.
61697
61698 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61699
61700         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61701         slot vector a constant, since it might get modified.
61702
61703 2000-07-31  Jim Meyering  <meyering@lucent.com>
61704
61705         * lib/xmalloc.c: Use `virtual memory exhausted', not
61706         `Memory exhausted'.
61707         * lib/obstack.c (print_and_abort): Likewise.
61708
61709 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61710
61711         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61712         buffer, so that the caller can always quote one small
61713         component of a "memory exhausted" message in slot 0.
61714         From a suggestion by Jim Meyering.
61715
61716 2000-07-30  Jim Meyering  <meyering@lucent.com>
61717
61718         * lib/makepath.c (make_path): Quote the other instance, too.
61719
61720         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61721         (STATIC_BUF_SIZE): Define.
61722         (quotearg_n_options): Use only statically allocated storage when
61723         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61724         than STATIC_BUF_SIZE.
61725
61726 2000-07-29  Jim Meyering  <meyering@lucent.com>
61727
61728         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61729         * lib/dirname.c (dir_name): Likewise.
61730
61731         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61732         `/'.
61733
61734         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61735         (dir_name): Assert that there are no trailing slashes.
61736
61737 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61738
61739         * lib/mbswidth.h (mbswidth): Add a flags argument.
61740         (mbswidth): New declaration.
61741         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61742         * lib/mbswidth.c (mbswidth): Add a flags argument.
61743         (mbsnwidth): New function.
61744
61745 2000-07-24  Jim Meyering  <meyering@lucent.com>
61746
61747         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61748
61749 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61750
61751         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61752
61753 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61754
61755         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61756         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61757         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61758         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61759         invoke multibyte primitives.
61760
61761 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61762
61763         * lib/quotearg.c:
61764         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61765         so that mbstate_t is always defined.
61766
61767         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61768         be 1 in at least one GCC installation, and this configuration
61769         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61770         performance on hosts that have mbrtowc but have only unibyte
61771         locales, but I assume these hosts are rare.
61772
61773 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61774
61775         * lib/mbswidth.c (_XOPEN_SOURCE):
61776         Don't define; this causes problems on Solaris 7.
61777         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61778
61779 2000-07-23  Jim Meyering  <meyering@lucent.com>
61780
61781         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61782         too: getgrgid, getpwuid, getuid.
61783
61784 2000-07-23  Jim Meyering  <meyering@lucent.com>
61785
61786         * lib/basename.c (base_name): Add an assertion.
61787
61788 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61789
61790         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61791         shadow its mbsinit function.
61792
61793 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61794
61795         * lib/mbswidth.h: New file.
61796         * lib/mbswidth.c: New file.
61797         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61798         (noinst_HEADERS): Add mbswidth.h.
61799
61800 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61801
61802         * lib/config.charset: Add support for FreeBSD. Improve support for
61803         HP-UX and IRIX 6.
61804
61805 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61806
61807         * m4/mbswidth.m4: New file.
61808         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61809
61810 2000-07-15  Jim Meyering  <meyering@lucent.com>
61811
61812         * lib/makepath.c: Include quote.h.
61813         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61814         corresponding argument in a `quote (...)' call.
61815         Give better diagnostics.
61816
61817         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61818         (noinst_HEADERS): Add quote.h.
61819
61820         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61821         from tar's src/misc.c.
61822         * lib/quote.h: New file.  Prototypes for same.
61823
61824 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61825
61826         From a suggestion by Bruno Haible.
61827         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61828         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61829         to decide whether to define the BeOS workaround macro;
61830         this adjusts to the change to AC_MBSTATE_T.
61831
61832 2000-07-14  Jim Meyering  <meyering@lucent.com>
61833
61834         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61835         jm_AC_TYPE_UINTMAX_T.
61836
61837 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61838
61839         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61840
61841         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61842         quotearg_buffer_restyled): Add support for
61843         clocale_quoting_style.  Undo previous change to
61844         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61845         and "{RIGHT QUOTATION MARK}" msgids.
61846
61847 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61848
61849         From a suggestion by Bruno Haible.
61850         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61851         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61852         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61853         and mbstate_t, to a single-part test that simply defines mbstate_t.
61854         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61855         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61856
61857 2000-07-10  Jim Meyering  <meyering@lucent.com>
61858
61859         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61860
61861         * m4/gnu-source.m4: Output to confdefs.h directly.
61862         Suggestion from Akim Demaille.
61863
61864 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61865
61866         The old behavior of quoting `like this' doesn't look good with
61867         newer, ISO-style fonts.  See:
61868         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61869
61870         Instead, quote "like this" by default.  Let the translator
61871         tailor the locale-specific quoting behavior by providing
61872         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61873
61874         * lib/quotearg.c (N_): New macro.
61875         (gettext_default): New function.
61876         (quotearg_buffer_restyled): Use
61877         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61878         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61879
61880 2000-07-09  Jim Meyering  <meyering@lucent.com>
61881
61882         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61883         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61884
61885         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61887
61888 2000-07-09  Jim Meyering  <meyering@lucent.com>
61889
61890         * lib/Most files: Update copyright dates to include 2000.
61891
61892 2000-07-08  Jim Meyering  <meyering@lucent.com>
61893
61894         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61895         if not defined.
61896         (xgethostname): Remove now-unnecessary #ifdef.
61897         Move declaration of `err' into loop where it's used.
61898
61899 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61900         and Bruno Haible  <haible@clisp.cons.org>
61901
61902         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61903         only if the test for an object-type mbstate_t fails.  This
61904         prevents us from mistakenly reporting that mbstate_t is a
61905         system object type after we "#define mbstate_t int" to work
61906         around its lack.
61907
61908 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61909         and Bruno Haible  <haible@clisp.cons.org>
61910
61911         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61912
61913 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61914
61915         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61916         to strerror_r.
61917         Include <ctype.h> for use of isalpha.
61918
61919 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61920
61921         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61922         by allocating a larger buffer. Test the gethostname return value for
61923         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61924         returns an error and ENAMETOOLONG isn't defined.
61925
61926 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61927
61928         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61929         dimension.
61930
61931 2000-07-04  Jim Meyering  <meyering@lucent.com>
61932
61933         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61934         of the deprecated AC_CHECKING.
61935
61936 2000-07-04  Jim Meyering  <meyering@lucent.com>
61937
61938         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61939         Reported by Bruno Haible.
61940
61941 2000-07-04  Jim Meyering  <meyering@lucent.com>
61942
61943         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61944         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61945         lacks mbrtowc.
61946
61947 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61948
61949         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61950         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61951
61952 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61953         and Bruno Haible  <haible@clisp.cons.org>
61954
61955         * lib/quotearg.c (mbrtowc):
61956         Assign to *pwc, and return 1 only if result is nonzero.
61957         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61958
61959 2000-07-03  Jim Meyering  <meyering@lucent.com>
61960
61961         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61962
61963 2000-07-03  Jim Meyering  <meyering@lucent.com>
61964
61965         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61966         This is necessary to get a definition of e.g., UTMP_FILE on
61967         HP-UX 10.20.
61968         From Bob Proulx.
61969
61970 2000-07-02  Jim Meyering  <meyering@lucent.com>
61971
61972         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61973
61974         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61975         AC_LIBOBJ(function_name).
61976         * m4/chown.m4: Likewise.
61977         * m4/fnmatch.m4: Likewise.
61978         * m4/ftruncate.m4: Likewise.
61979         * m4/getgroups.m4: Likewise.
61980         * m4/getline.m4: Likewise.
61981         * m4/group-member.m4: Likewise.
61982         * m4/jm-macros.m4: Likewise.
61983         * m4/lstat.m4: Likewise.
61984         * m4/malloc.m4: Likewise.
61985         * m4/memcmp.m4: Likewise.
61986         * m4/nanosleep.m4: Likewise.
61987         * m4/putenv.m4: Likewise.
61988         * m4/realloc.m4: Likewise.
61989         * m4/regex.m4: Likewise.
61990         * m4/stat.m4: Likewise.
61991         * m4/strftime.m4: Likewise.
61992
61993 2000-07-02  Jim Meyering  <meyering@lucent.com>
61994
61995         * lib/quotearg.c (mbstate_t): Don't define here.
61996
61997 2000-07-02  Jim Meyering  <meyering@lucent.com>
61998
61999         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62000
62001 2000-07-01  Jim Meyering  <meyering@lucent.com>
62002
62003         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62004
62005 2000-07-01  Jim Meyering  <meyering@lucent.com>
62006
62007         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62008         problem.
62009
62010 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62011
62012         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62013         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62014
62015 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62016
62017         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62018         per change in ../m4/ls-mntd-fs.m4.
62019         (read_filesystem_list): Ignore symbolic links.
62020
62021 2000-06-29  Jim Meyering  <meyering@lucent.com>
62022
62023         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62024         for declaration of strcmp.
62025
62026         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62027
62028         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62029         Avoid warning by casting result to `char *' to remove `const'.
62030
62031 2000-06-28  Jim Meyering  <meyering@lucent.com>
62032
62033         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62034         included by quotearg.c, for which we perform this test.  From
62035         Bruno Haible.
62036
62037 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62038
62039         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62040         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62041         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62042
62043 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62044
62045         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62046
62047 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62048
62049         savedir now sets errno on failure and invokes xmalloc to get memory.
62050         Fix a couple of other minor bugs while we're at it.
62051
62052         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62053         (NAMLEN): Remove macro.
62054         (malloc, realloc): Remove decls.
62055         (stpcpy): Likewise.
62056         ("xalloc.h"): Include.
62057         (NAME_SIZE_DEFAULT): New macro.
62058         (savedir): Use xmalloc / xrealloc to allocate memory.
62059         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62060         Skip "" directory entries.
62061         Use strlen to calculate directory entry length, since the old method
62062         is rarely used these days and isn't worth supporting.
62063         Don't use a pointer after freeing it.
62064         Check for integer overflow when calculating allocation size.
62065         Use memcpy to copy entries, instead of stpcpy.
62066         Set errno properly when returning NULL.
62067         Check for readdir error.
62068
62069 2000-06-26  Jim Meyering  <meyering@lucent.com>
62070
62071         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62072
62073 2000-06-25  Jim Meyering  <meyering@lucent.com>
62074
62075         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62076         Linux header bug when _XOPEN_SOURCE is defined to 500.
62077
62078 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62079
62080         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62081         deficiency.
62082
62083 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62084
62085         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62086         Include xalloc.h.
62087         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62088
62089 2000-06-24  Jim Meyering  <meyering@lucent.com>
62090
62091         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62092         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62093         for which strerror does return char*, but which lacks a conveniently
62094         accessible declaration of the function.  If the compile-test says
62095         strerror_r doesn't work, then resort to a `run'-test that works on
62096         BeOS and segfaults on DEC Unix.
62097
62098 2000-06-24  Jim Meyering  <meyering@lucent.com>
62099
62100         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62101
62102 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62103
62104         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62106
62107 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62108
62109         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62110         (mbrtowc, mbstate_t): Define substitutes if
62111         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62112         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62113         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62114
62115 2000-06-23  Jim Meyering  <meyering@lucent.com>
62116
62117         * m4/afs.m4: Add missing AC_MSG_RESULT.
62118         Reported by Bruno Haible.
62119
62120         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62121         Suggestion from Bruno Haible.
62122
62123 2000-06-23  Jim Meyering  <meyering@lucent.com>
62124
62125         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62126
62127 2000-06-21  Jim Meyering  <meyering@lucent.com>
62128
62129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62130
62131 2000-06-21  Jim Meyering  <meyering@lucent.com>
62132
62133         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62134         (noinst_HEADERS): Add getstr.h.
62135
62136         * lib/getline.c (getstr): Move into a separate file.
62137         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62138         the following changes: new parameter, delim2; both delim[12]
62139         parameters have type `int', not `char'.  The latter would lose
62140         with 8-bit delimiters.
62141         * lib/getstr.h: New file.
62142
62143 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62144
62145         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62146         than 1024, return a memory chunk of least possible size, instead
62147         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62148         Use free/xmalloc instead of xrealloc to avoid copying for very long
62149         paths.
62150
62151 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62152
62153         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62154         the empty string.
62155
62156 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62157
62158         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62159         address, not strdup.  Include <stdlib.h> and don't declare free().
62160
62161 2000-06-19  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62164
62165 2000-06-18  Jim Meyering  <meyering@lucent.com>
62166
62167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62168
62169         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62170         `checking whether...' message to be consistent with that of the
62171         lstat test.
62172
62173 2000-06-18  Jim Meyering  <meyering@lucent.com>
62174
62175         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62176         Besides, these days every porting target provides a mkdir function.
62177
62178         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62179         needed. (this snippet comes from src/system.h).
62180
62181 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62182
62183         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62184
62185 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62186
62187         * lib/human.c (adjust_value): New function.
62188         (human_readable_inexact): Apply rounding style even when
62189         printing approximate values.
62190
62191 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62192
62193         * lib/human.c (human_readable_inexact): Allow an input block
62194         size that is not a multiple of the output block size, and vice versa.
62195         Reported by Piergiorgio Sartor.
62196
62197 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62198
62199         * lib/getdate.y (get_date): Apply relative times after time
62200         zone indicator, not before.  Reported by Todd A. Jacobs.
62201
62202 2000-06-13  Jim Meyering  <meyering@lucent.com>
62203
62204         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62205
62206         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62207
62208 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62209
62210         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62211
62212 2000-06-12  Jim Meyering  <meyering@lucent.com>
62213
62214         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62215         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62216         optional argument.
62217         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62218         the optional argument, `lib'.
62219
62220 2000-06-08  Jim Meyering  <meyering@lucent.com>
62221
62222         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62223
62224 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62225
62226         Rewrite largefile configuration so that we don't need to run
62227         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62228         AC_CANONICAL_HOST in configure.in -- jmm]
62229
62230         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62231         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62232         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62233         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62234         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62235         All uses changed.
62236         Instead of inspecting the output of getconf, try to compile the
62237         test program without and with the macro definition.
62238         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62239         for getconf.  Instead, check for the needed flags by compiling
62240         test programs.
62241
62242 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62243
62244         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62245
62246 2000-06-04  Jim Meyering  <meyering@lucent.com>
62247
62248         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62249         SunOS 4.1.4 for which gid_t is an unsigned type.
62250
62251 2000-06-03  Jim Meyering  <meyering@lucent.com>
62252
62253         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62254         now that autoconf requires that.
62255
62256         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62257         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62258         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62259
62260 2000-06-03  Jim Meyering  <meyering@lucent.com>
62261
62262         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62263
62264 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62265
62266         * m4/glibc21.m4: New file.
62267         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62268
62269 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62270
62271         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62272         newer, don't install charset.alias.
62273         * lib/config.charset: Change the Linux/glibc rules so they become empty
62274         on glibc-2.1 or newer.
62275
62276 2000-06-02  Jim Meyering  <meyering@lucent.com>
62277
62278         * lib/mountlist.c: Back out last change.  Instead, do this...
62279         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62280         me_dummy member using the same `ignore'-testing code.
62281         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62282         fs_type strings.
62283         From Mark D. Roth.
62284
62285 2000-05-29  Jim Meyering  <meyering@lucent.com>
62286
62287         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62288         mounts with the `ignore' attribute.  Based on a patch from
62289         Mark D. Roth.
62290
62291 2000-05-28  Jim Meyering  <meyering@lucent.com>
62292
62293         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62294         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62295         * m4/stat.m4: Likewise.
62296         * m4/lstat.m4: Likewise.
62297         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62298
62299         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62300         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62301
62302 2000-05-26  Jim Meyering  <meyering@lucent.com>
62303
62304         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62305
62306 2000-05-24  Jim Meyering  <meyering@lucent.com>
62307
62308         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62309         autoconf requires that.
62310         * m4/lib-check.m4: Likewise.
62311         * m4/jm-macros.m4: Likewise.
62312         * m4/strftime.m4: Likewise.
62313
62314         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62315         AC_CHECK_DECLS, now that autoconf requires that.
62316
62317 2000-05-22  Jim Meyering  <meyering@lucent.com>
62318
62319         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62320         * m4/lstat.m4: Likewise.
62321
62322 2000-05-22  Jim Meyering  <meyering@lucent.com>
62323
62324         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62325
62326 2000-05-20  Jim Meyering  <meyering@lucent.com>
62327
62328         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62329         (jm_PREREQ): Use it.
62330
62331 2000-05-18  Jim Meyering  <meyering@lucent.com>
62332
62333         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62334         back, too, since it may have been modified by allocate_entry.
62335         (hash_delete): Rewrite to use neither the assignment operator
62336         nor the comma operator in an if-expression.
62337
62338 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62339
62340         * lib/closeout.c:
62341         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62342         Remove; no longer needed.
62343         "quotearg.h": Add include.
62344         (file_name): Do not bother to explicitly initialize to NULL; it's less
62345         efficient on some hosts.
62346         (close_stdout_status): Remove test as to whether stdout was already
62347         closed; it breaks for the case "echo x | sort >&-".
62348         Quote file name colons.
62349         Do not assume that _("write error") lacks format strings.
62350
62351 2000-05-15  Jim Meyering  <meyering@lucent.com>
62352
62353         * lib/version-etc.c (version_etc_copyright): Update the copyright
62354         string used in all --version output.
62355
62356 2000-05-14  Jim Meyering  <meyering@lucent.com>
62357
62358         * lib/closeout.c (close_stdout_set_file_name): New function.
62359         (close_stdout_status): Use new file-scoped global.
62360         Return right away if fstat says the stdout file descriptor is invalid.
62361         * lib/closeout.h (close_stdout_set_file_name): Declare.
62362
62363 2000-05-10  Jim Meyering  <meyering@lucent.com>
62364
62365         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62366         (close_stdout_set_status): New function.
62367         * lib/closeout.h (close_stdout_set_status): Declare.
62368
62369 2000-05-09  Jim Meyering  <meyering@lucent.com>
62370
62371         * m4/gettext.m4: Rename this...
62372         * m4/libintl.m4: ...to this.
62373
62374 2000-05-08  Jim Meyering  <meyering@lucent.com>
62375
62376         * lib/long-options.c: Don't include closeout.h.
62377         (parse_long_options): Don't call close_stdout for --version.
62378
62379 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62380
62381         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62382         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62383         2.1.3 bug.  This avoids a clash when files like regex.c define
62384         _GNU_SOURCE.
62385
62386 2000-05-06  Jim Meyering  <meyering@lucent.com>
62387
62388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62389         (AC_REPLACE_FUNCS): Add strnlen.
62390
62391         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62392         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62393
62394         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62395         AC_SEARCH_LIBS call for nanosleep.
62396         (LIB_NANOSLEEP): Set and AC_SUBST.
62397
62398 2000-05-06  Jim Meyering  <meyering@lucent.com>
62399
62400         * lib/strnlen.c: Undefine __strnlen and strnlen.
62401         [!weak_alias]: Define __strnlen to strnlen.
62402
62403         * lib/atexit.c: New file, from libiberty.
62404
62405 2000-05-06  Jim Meyering  <meyering@lucent.com>
62406
62407         * lib/closeout.c (close_stdout_status): Also check for errors on the
62408         stderr stream.
62409
62410 2000-05-05  Jim Meyering  <meyering@lucent.com>
62411
62412         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62413         AC_SEARCH_LIBS call for clock_gettime.
62414         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62415
62416         * m4/search-libs.m4: Update from autoconf.
62417
62418         su doesn't work on Solaris 2.6.
62419         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62420         <shadow.h>.  Reported by Dragos Harabor.
62421
62422 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62423
62424         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62425         memcpy instead of xmalloc, xrealloc, path_concat.
62426         (locale_charset): Treat empty environment variables as absent.
62427         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62428
62429 2000-05-04  Jim Meyering  <meyering@lucent.com>
62430
62431         * lib/getopt.c: Update from glibc.
62432         * lib/obstack.c: Likewise.
62433         * lib/obstack.h: Likewise.
62434         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62435         file
62436
62437         * lib/regex.h: Likewise.
62438         * lib/strndup.c: Likewise.
62439         * lib/strnlen.c: New file, from glibc.
62440
62441 2000-05-03  Jim Meyering  <meyering@lucent.com>
62442
62443         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62444
62445 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62446
62447         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62448         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62449         compile-time test, rather than inspecting host and OS, to
62450         decide whether to define _LARGEFILE_SOURCE.
62451
62452 2000-05-01  Jim Meyering  <meyering@lucent.com>
62453
62454         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62455
62456         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62457         Based on a patch from Bruno Haible.
62458
62459 2000-05-01  Jim Meyering  <meyering@lucent.com>
62460
62461         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62462
62463 2000-04-29  Jim Meyering  <meyering@lucent.com>
62464
62465         * lib/path-concat.c: Declare strdup only if it's not defined.
62466         * lib/canon-host.c: Likewise.
62467
62468 2000-04-28  Jim Meyering  <meyering@lucent.com>
62469
62470         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62471         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62472         is included first, then limits.h is included by locale.h by libintl.h.
62473         From John David Anglin.
62474
62475 2000-04-25  Jim Meyering  <meyering@lucent.com>
62476
62477         * lib/makepath.c (S_IRWXUGO): Define.
62478         (make_path): Always perform explicit chmod if MODE specifies any
62479         of the `special' permission bits.  Prompted by a bug report against
62480         install from Mate Wierdl and Joost van Baal.
62481
62482 2000-04-18  Jim Meyering  <meyering@lucent.com>
62483
62484         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62485         (jm_PREREQ): Use it.
62486
62487 2000-04-18  Jim Meyering  <meyering@lucent.com>
62488
62489         * lib/README: New file.
62490
62491         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62492         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62493
62494 2000-04-17  Jim Meyering  <meyering@lucent.com>
62495
62496         Get it right :-)
62497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62498         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62499         Suggestion from Akim Demaille.
62500
62501 2000-04-17  Jim Meyering  <meyering@lucent.com>
62502
62503         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62504         the definition of it to rpl_strftime also defined-away the system's
62505         declaration.
62506
62507 2000-04-15  Jim Meyering  <meyering@lucent.com>
62508
62509         Use `C' to denote so-called `contiguous' files, the same way
62510         that tar does.
62511         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62512         (ftypelet): Use S_ISCTG.
62513         From Michael Deutschmann.
62514
62515 2000-04-14  Jim Meyering  <meyering@lucent.com>
62516
62517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62518         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62519         clobbered.
62520
62521 2000-04-14  Jim Meyering  <meyering@lucent.com>
62522
62523         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62524
62525 2000-04-13  Jim Meyering  <meyering@lucent.com>
62526
62527         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62528         AH_VERBATIM to insert required #ifndef into config.h.in.
62529         Suggestion from Akim Demaille.
62530
62531 2000-04-12  Jim Meyering  <meyering@lucent.com>
62532
62533         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62534         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62535         Christian Krackowizer.
62536
62537         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62538         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62539         (AC_SYS_LARGEFILE): Require.
62540         (AM_C_PROTOTYPES): Require.
62541
62542 2000-04-08  Jim Meyering  <meyering@lucent.com>
62543
62544         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62545         names don't conflict.  Reported by Eli Zaretskii.
62546
62547 2000-04-07  Jim Meyering  <meyering@lucent.com>
62548
62549         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62550         sys/types.h, to work around system header problems on AIX 3.2.5.
62551         From Bruno Haible.
62552
62553 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62554
62555         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62556         bug.  Deal with the different error behavior of Irix iconv.
62557
62558 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62559
62560         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62561         IRIX if the installer said otherwise.
62562
62563 2000-04-05  Jim Meyering  <meyering@lucent.com>
62564
62565         Portability tweaks required for ultrix4.3.
62566         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62567         (jm_CHECK_DECLS): Add getutent to the list of functions.
62568         (_jm_DECL_HEADERS): Add utmpx.h.
62569         From John David Anglin.
62570
62571         * m4/strftime.m4: Back out the 2000-04-02 change.
62572         Instead of that change, simply undefine putenv in the test program.
62573
62574 2000-04-05  Jim Meyering  <meyering@lucent.com>
62575
62576         Portability tweaks required for ultrix4.3.
62577         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62578         getutent.
62579         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62580         * lib/canon-host.c: Declare strdup.
62581         * lib/path-concat.c: Likewise.
62582         From John David Anglin.
62583
62584 2000-04-04  Jim Meyering  <meyering@lucent.com>
62585
62586         Be more DOS 8.3-friendly.
62587         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62588         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62589         * lib/Makefile.am: Reflect renaming.
62590         Reported by Eli Zaretskii.
62591
62592         Use a temporary file name that won't clash with `charset.alias'
62593         in the DOS 8.3 name space.
62594         * lib/Makefile.am (charset_tmp): Define.
62595         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62596         (uninstall-local): Likewise.
62597         Reported by Eli Zaretskii.
62598
62599 2000-04-03  Jim Meyering  <meyering@lucent.com>
62600
62601         * m4/gettext.m4: Fix typo in comment.
62602
62603         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62604         textutils/configure.in).  Suggestion from Paul Eggert.
62605         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62606
62607 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62608
62609         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62610         variable in the shell rather than using putenv, which isn't
62611         portable.  This avoids the configure-time inter-test dependency
62612         on the potentially-renamed putenv function.
62613
62614 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62615
62616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62617         before checking struct stat.st_blksize, so that
62618         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62619
62620 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62621
62622         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62623         since strftime.c uses HAVE_STRFTIME to decide whether to use
62624         the underlying strftime.
62625
62626 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62627
62628         * lib/time/strftime.c (my_strftime): Make sure we call the system
62629         strftime, not ourselves, when invoking the underlying strftime.
62630
62631 2000-03-24  Jim Meyering  <meyering@lucent.com>
62632
62633         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62634         (charset_alias): Define.
62635         (install-exec-local): Factor out common code.
62636         (uninstall-local): Split lines longer than 80.
62637         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62638         (SUFFIXES): Define.
62639         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62640         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62641
62642 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62643
62644         * lib/config.charset: Output a line containing "Packages using this
62645         file".
62646         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62647         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62648         ref-del.sed): New rules.
62649
62650 2000-03-17  Jim Meyering  <meyering@lucent.com>
62651
62652         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62653         Otherwise, include <strings.h>
62654
62655 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62656
62657         * lib/unicodeio.c (utf8_wctomb): New function.
62658         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62659         format instead of in UCS-4 with platform dependent endianness.
62660
62661 2000-03-10  Jim Meyering  <meyering@lucent.com>
62662
62663         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62664         From Marco Franzen.
62665
62666 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62667
62668         * lib/savedir.c (savedir): Work even if directory size is
62669         negative; this can happen with some screwy NFS configurations.
62670
62671 2000-03-06  Jim Meyering  <meyering@lucent.com>
62672
62673         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62674         if it's NULL (because we ran out of memory).  From Bruno Haible.
62675
62676 2000-03-05  Jim Meyering  <meyering@lucent.com>
62677
62678         * lib/localcharset.c ("path-concat.h"): Include.
62679         (get_charset_aliases): Use path_concat instead of ANSI string
62680         concatenation.
62681
62682         * lib/unicodeio.h (PARAMS): Define.
62683         Use it to guard prototype.
62684
62685 2000-03-04  Jim Meyering  <meyering@lucent.com>
62686
62687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62688         for lib/localcharset.c.
62689
62690 2000-03-04  Jim Meyering  <meyering@lucent.com>
62691
62692         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62693         installing into it.
62694         (uninstall-local): Uncomment this rule so `make distcheck' works
62695         once again.
62696
62697         * lib/unicodeio.c (<errno.h>): Include it.
62698         (errno): Declare if not defined.
62699
62700         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62701
62702         * lib/config.charset: New version, incorporating remarks from a linux
62703         i18n mailing list.  From Bruno Haible.
62704
62705 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62706
62707         * m4/codeset.m4: New file.
62708         * m4/iconv.m4: New file.
62709         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62710
62711 2000-03-03  Jim Meyering  <meyering@lucent.com>
62712
62713         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62714
62715 2000-03-02  Jim Meyering  <meyering@lucent.com>
62716
62717         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62718         the messages come out on separate lines.
62719
62720         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62721         rather than jm_CHECK_DECLARATIONS.
62722         * m4/decl.m4: Remove now-unused file.
62723
62724         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62725         geteuid.
62726
62727 2000-03-02  Jim Meyering  <meyering@lucent.com>
62728
62729         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62730
62731 2000-03-01  Jim Meyering  <meyering@lucent.com>
62732
62733         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62734         * lib/unicodeio.c: Likewise.
62735
62736 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62737
62738         * lib/config.charset: New file.
62739         * lib/localcharset.c: New file.
62740         * lib/unicodeio.h, lib/unicodeio.c: New files.
62741         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62742         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62743         (noinst_HEADERS): Add unicodeio.h.
62744         (all-local, install-exec-local, charset.alias): New targets.
62745
62746 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62747
62748         * lib/quotearg.c (ALERT_CHAR): New macro.
62749         (quotearg_buffer_restyled): Use it.
62750
62751 2000-02-27  Jim Meyering  <meyering@lucent.com>
62752
62753         * m4/check-decl.m4: Add getenv to the list.
62754
62755 2000-02-27  Jim Meyering  <meyering@lucent.com>
62756
62757         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62758         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62759
62760         * lib/backupfile.c: Guard inclusion of stdlib.h with
62761         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62762         Declare malloc if needed.
62763
62764         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62765         `#ifndef HAVE_DECL..'
62766         now that autoconf always defines the HAVE_DECL_ symbols.
62767         * lib/human.c: Likewise.
62768         * lib/same.c: Likewise.
62769         * lib/strtoumax.c: Likewise.
62770
62771         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62772         declaration check was not run.
62773         * lib/hash.c: Likewise.
62774         * lib/human.c: Likewise.
62775         * lib/same.c: Likewise.
62776         * lib/strtoumax.c: Likewise.
62777
62778         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62779         `.', then first look up the entire `.'-containing string as a login
62780         name.
62781
62782 2000-02-23  Jim Meyering  <meyering@lucent.com>
62783
62784         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62785         in place of my hack.
62786
62787 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62788
62789         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62790         (textint): New typedef.
62791         (parser_control): Member year changed from int to textint.
62792         All uses changed.
62793         (YYSTYPE): Removed; replaced by %union with int and textint members.
62794         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62795         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62796         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62797         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62798         (date, number, to_year): Use width of number in digits, not its value,
62799         to determine whether it's a 2-digit year, or a 2-digit time.
62800         (yylex): Store number of digits of numeric tokens.
62801         Reported by John Kendall.
62802
62803         (parser_control): Changed from struct parser_control to typedef (for
62804         consistency).  All uses changed.
62805
62806         (tID): Removed; not used.
62807         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62808
62809 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62810
62811         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62812         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62813
62814 2000-02-12  Jim Meyering  <meyering@lucent.com>
62815
62816         * lib/userspec.c (ISDIGIT): Define it.
62817         (isdigit): Remove definition.
62818         (is_number): Use ISDIGIT, not isdigit.
62819         <libintl.h>: Include.
62820         (_ and N_): Define.
62821         (parse_user_spec): Mark translatable strings.
62822
62823 2000-02-10  Jim Meyering  <meyering@lucent.com>
62824
62825         With these changes, nanosleep.[ch] are finally enough like the other
62826         lib/* replacement files to compile on a few more losing systems.
62827
62828         * lib/nanosleep.h: Don't include config.h.
62829         Remove prototype from declaration of nanosleep.
62830         (PARAMS): Remove now-unneeded definition.
62831         * lib/nanosleep.c: #undef nanosleep.
62832         (rpl_nanosleep): Rename from nanosleep.
62833
62834 2000-02-10  Jim Meyering  <meyering@lucent.com>
62835
62836         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62837         gnu_nanosleep to rpl_nanosleep.
62838
62839 2000-02-09  Jim Meyering  <meyering@lucent.com>
62840
62841         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62842         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62843
62844 2000-02-08  Akim Demaille  <akim@epita.fr>
62845
62846         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62847         `[' and `]' and remove uses of `changequote'.
62848         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62849         (AC_SYS_LARGEFILE): Likewise.
62850         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62851         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62852         of changequote.
62853         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62854         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62855         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62856         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62857
62858 2000-02-05  Jim Meyering  <meyering@lucent.com>
62859
62860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62861         Remove explicit use of AC_HEADER_TIME.  It is required by
62862         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62863         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62864         in autoconf whereby the expansion of the latter ended up preceding
62865         the expansion of its prerequisite, AC_HEADER_TIME.
62866         Reported by Volker Borchert.
62867
62868 2000-02-03  Jim Meyering  <meyering@lucent.com>
62869
62870         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62871
62872 2000-02-03  Jim Meyering  <meyering@lucent.com>
62873
62874         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62875         rather than with `#if HAVE_UTMPNAME'.
62876
62877 2000-02-02  Jim Meyering  <meyering@lucent.com>
62878
62879         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62880         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62881         Reported by Eli Zaretskii.
62882
62883 2000-02-01  Jim Meyering  <meyering@lucent.com>
62884
62885         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62886
62887 2000-01-31  Jim Meyering  <meyering@lucent.com>
62888
62889         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62890         functions.  Add the time.h and sys/time.h headers along with the
62891         AC_REQUIRE'ment of AC_HEADER_TIME.
62892
62893 2000-01-31  Jim Meyering  <meyering@lucent.com>
62894
62895         * lib/nanosleep.h (nanosleep): Guard declaration with
62896         `#if ! HAVE_DECL_NANOSLEEP'.
62897         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62898         the declaration in that vendor's sys/timers.h.
62899         Reported by Christian Krackowizer.
62900
62901         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62902         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62903         (ISPRINT): Likewise.
62904         Reported by Tom Tromey.
62905
62906 2000-01-30  Jim Meyering  <meyering@lucent.com>
62907
62908         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62909
62910         * m4/prereq.m4 (utmp_includes): Define.
62911         Check for ut_user and ut_name members in both struct utmpx
62912         and struct utmp.
62913
62914 2000-01-30  Jim Meyering  <meyering@lucent.com>
62915
62916         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62917         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62918         header files where only utmpx.ut_user is declared.
62919
62920         * lib/readutmp.h (UT_USER): Define.
62921
62922 2000-01-29  Jim Meyering  <meyering@lucent.com>
62923
62924         * m4/lib-check.m4: New file containing library-related checks from
62925         fileutils and sh-utils (textutils had none).
62926
62927 2000-01-28  Jim Meyering  <meyering@lucent.com>
62928
62929         * m4/perl.m4: Change format of warning message to look more like that
62930         from the missing script.  Suggestion from François Pinard.
62931
62932 2000-01-25  Jim Meyering  <meyering@lucent.com>
62933
62934         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62935         well as time.h in the compile check.
62936         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62937         Fix typo in cross-compiling case: s/yes/no/.
62938
62939 2000-01-23  Jim Meyering  <meyering@lucent.com>
62940
62941         * m4/jm-macros.m4: Move df-related tests here from
62942         fileutils/configure.in
62943
62944         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62945         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62946
62947         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62948         s/space/ac_fsusage_space/.
62949         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62950
62951         * m4/ftruncate.m4: New file (derived from part of
62952         fileutils/configure.in).
62953         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62954         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62955
62956         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62957         AC_SUBST these here, rather than just in sh-util/configure.in, so
62958         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62959         all the same.
62960         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62961         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62962         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62963         (AC_SUBST(POW_LIBM)): Likewise.
62964         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62965
62966 2000-01-23  Jim Meyering  <meyering@lucent.com>
62967
62968         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62969         obstack.c.
62970
62971 2000-01-22  Jim Meyering  <meyering@lucent.com>
62972
62973         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62974
62975         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62976
62977         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62978         configure.in
62979         (AC_CHECK_HEADERS): Likewise for sh-utils.
62980         (AC_CHECK_HEADERS): Likewise for textutils.
62981         Merge the three lists of headers.
62982
62983         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62984         from fileutils' configure.in.
62985
62986         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62987         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62988         check-decl.m4.
62989
62990         * m4/check-decl.m4: Use #if rather than #ifdef.
62991         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62992         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62993         (_jm_DECL_HEADERS): Define new function.
62994         (jm_CHECK_DECLARATIONS): Require it.
62995
62996 2000-01-22  Jim Meyering  <meyering@lucent.com>
62997
62998         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62999         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63000         Required for some AIX systems.  Reported by Christian Krackowizer.
63001         [TESTING] (main): New function.
63002
63003         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63004         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63005         letters.
63006
63007         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63008         iswprint.
63009
63010         * lib/strverscmp.c (ISDIGIT): Define.
63011         (strverscmp): Use ISDIGIT, not isdigit.
63012
63013 2000-01-19  Jim Meyering  <meyering@lucent.com>
63014
63015         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63016         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63017         defines `struct timespec' in <sys/time.h>
63018
63019         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63020         Thanks to Akim for explaining.
63021
63022 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63023
63024         * lib/nanosleep.c (nanosleep):
63025         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63026         POSIX.1 doesn't require SA_INTERRUPT and some systems
63027         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63028         it's been part of POSIX.1 since day 1 (in 1988).
63029
63030 2000-01-17  Jim Meyering  <meyering@lucent.com>
63031
63032         * lib/interlock: Remove unused file.  Reported by François Pinard.
63033
63034 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63035
63036         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63037         alert, backslash, formfeed, and vertical tab unnecessarily in
63038         shell quoting style.
63039
63040 2000-01-16  Jim Meyering  <meyering@lucent.com>
63041
63042         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63043         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63044         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63045         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63046
63047 2000-01-16  Jim Meyering  <meyering@lucent.com>
63048
63049         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63050         because the latter didn't work.
63051
63052 2000-01-15  Jim Meyering  <meyering@lucent.com>
63053
63054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63055         (AC_REPLACE_FUNCS): Add memcpy and memset.
63056         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63057         Add strpbrk.
63058         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63059
63060 2000-01-12  Jim Meyering  <meyering@lucent.com>
63061
63062         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63063         (jm_PREREQ): Use it.
63064         (jm_PREREQ_READUTMP): New macro.
63065         (jm_PREREQ): Use it.
63066
63067 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63068
63069         Quote multibyte characters correctly.
63070         * m4/c-bs-a.m4: New file.
63071         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63072         (jm_PREREQ): Use it.
63073
63074 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63075
63076         * m4/uintmax_t.m4: Port to autoconf 2.13.
63077
63078 2000-01-08  Jim Meyering  <meyering@ascend.com>
63079
63080         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63081         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63082
63083 2000-01-04  Jim Meyering  <meyering@ascend.com>
63084
63085         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63086         jm_STRUCT_DIRENT_D_TYPE.
63087         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63088         jm_STRUCT_DIRENT_D_INO.
63089         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63090         jm_STRUCT_UTIMBUF.
63091         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63092         renamings.
63093         * m4/utime.m4: Likewise.
63094
63095         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63096         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63097
63098 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63099
63100         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63101         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63102
63103 2000-01-02  Jim Meyering  <meyering@ascend.com>
63104
63105         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63106         remember if this is necessary.
63107
63108 1999-12-26  Jim Meyering  <meyering@ascend.com>
63109
63110         * m4/jm-macros.m4: Use it here.
63111         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63112
63113 1999-12-23  Jim Meyering  <meyering@ascend.com>
63114
63115         * m4/jm-macros.m4: Check for clock_gettime (moved from
63116         fileutils/configure.in)
63117         Check for gettimeofday.
63118
63119 1999-12-20  Jim Meyering  <meyering@ascend.com>
63120
63121         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63122         autoconf-2.14a-1999-12-20.
63123
63124 1999-12-19  Jim Meyering  <meyering@ascend.com>
63125
63126         * m4/lstat-slash.m4: New file.
63127         * m4/jm-macros.m4: Use the new macro:
63128         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63129
63130 1999-12-07  Jim Meyering  <meyering@ascend.com>
63131
63132         * m4/perl.m4: Require that File::Compare be available, too.
63133         Too many systems seem to lack it.
63134
63135         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63136         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63137
63138 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63139
63140         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63141         problem with the QNX 4.25 shell, which doesn't propagate exit
63142         status of failed commands inside shell assignments.
63143
63144 1999-11-17  Jim Meyering  <meyering@ascend.com>
63145
63146         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63147
63148 1999-11-07  Jim Meyering  <meyering@ascend.com>
63149
63150         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63151
63152 1999-11-06  Jim Meyering  <meyering@ascend.com>
63153
63154         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63155         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63156
63157 1999-11-05  Jim Meyering  <meyering@ascend.com>
63158
63159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63160         configure.in of textutils, fileutils, and sh-utils into this one
63161         (shared between those packages) file.
63162         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63163         AC_STRUCT_ST_BLKSIZE.
63164
63165 1999-11-03  Jim Meyering  <meyering@ascend.com>
63166
63167         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63168         of AC_CHECK_TYPE checks includes unistd.h.
63169         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63170         Suggestion from Akim Demaille.
63171
63172 1999-10-30  Jim Meyering  <meyering@ascend.com>
63173
63174         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63175         m4-quoted string.
63176         * m4/ls-mntd-fs.m4: Likewise.
63177         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63178         * m4/jm-winsz1.m4: Likewise.
63179
63180         * m4/const.m4: Remove file, since the fix made it into the experimental
63181         version of autoconf.
63182         * m4/mktime.m4: Likewise.
63183
63184         * m4/check-type.m4: Remove file, now that the latest version of
63185         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63186
63187         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63188         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63189         AC_CHECK_TYPE.
63190
63191 1999-10-04  Jim Meyering  <meyering@ascend.com>
63192
63193         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63194
63195 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63196
63197         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63198         2.95.1 bug with HP-UX 10.20.
63199
63200 1999-09-17  Jim Meyering  <meyering@ascend.com>
63201
63202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63203         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63204         due to missing strdup (against sh-utils-2.0).
63205
63206 1999-08-29  Jim Meyering  <meyering@ascend.com>
63207
63208         * m4/jm-macros.m4: Require jm_BISON.
63209         * m4/bison.m4: New file.
63210
63211 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63212
63213         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63214         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63215
63216 1999-08-05  Jim Meyering  <meyering@ascend.com>
63217
63218         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63219         to avoid conflicts with `conftest' on 8+3 filesystems.
63220         Suggestion from Eli Zaretskii.
63221
63222 1999-08-04  Jim Meyering  <meyering@ascend.com>
63223
63224         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63225         fileutils and sh-utils (textutils's getline test was inadequate).
63226         (AM_FUNC_GETLINE): Run this test.
63227         (AC_CHECK_FUNCS): Check for getdelim.
63228         Reported by Bob Proulx.
63229
63230 1999-08-02  Jim Meyering  <meyering@ascend.com>
63231
63232         * m4/jm-macros.m4: Add a comment.
63233
63234 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63235
63236         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63237         <inttypes.h> defines strtoumax as a macro (and not as a
63238         function).
63239
63240 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63241
63242         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63243         that we can shift, multiply and divide unsigned long long
63244         values; Ultrix cc can't do it.
63245
63246 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63247
63248         * m4/mktime.m4: New file, which is a preview of what should appear
63249         in the next public autoconf release.
63250
63251 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63252
63253         * m4/lfs.m4: Remove this file.
63254         * m4/largefile.m4: New file.  It contains the old contents of
63255         lfs.m4, except that all names with prefix AC_LFS have been
63256         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63257         compatible with future autoconf versions.  Also, some minor m4
63258         quoting problems have been fixed.
63259
63260 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63261
63262         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63263         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63264         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63265         and simplify the shell code.
63266
63267 1999-08-01  Jim Meyering  <meyering@ascend.com>
63268
63269         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63270         m4.
63271
63272 1999-07-20  Jim Meyering  <meyering@ascend.com>
63273
63274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63275
63276 1999-07-15  Jim Meyering  <meyering@ascend.com>
63277
63278         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63279
63280 1999-05-22  Jim Meyering  <meyering@ascend.com>
63281
63282         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63283
63284 1999-05-20  Jim Meyering  <meyering@ascend.com>
63285
63286         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63287         Add a colon after each `then' in case $4 is empty.
63288
63289 1999-05-16  Jim Meyering  <meyering@ascend.com>
63290
63291         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63292
63293 1999-05-10  Jim Meyering  <meyering@ascend.com>
63294
63295         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63296
63297         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63298         AC_FUNC_MKTIME.
63299
63300 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63301
63302         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63303
63304 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63305
63306         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63307         not CPPFLAGS, so that linking works correctly in IRIX.
63308
63309 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63310
63311         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63312
63313 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63314
63315         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63316         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63318         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63319         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63320
63321         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63322
63323 1999-04-20  Jim Meyering  <meyering@ascend.com>
63324
63325         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63326         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63327         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63328
63329 1999-04-18  Jim Meyering  <meyering@ascend.com>
63330
63331         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63332         * m4/jm-macros.m4: Use it.
63333
63334 1999-04-06  Jim Meyering  <meyering@ascend.com>
63335
63336         * m4/strftime.m4: Remove test for %f.
63337
63338 1999-03-29  Jim Meyering  <meyering@ascend.com>
63339
63340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63341         superset of the AC_TYPE_* checks in the textutils, fileutils,
63342         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63343         AC_TYPE_PID_T.
63344
63345 1999-03-28  Jim Meyering  <meyering@ascend.com>
63346
63347         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63348         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63349         replaced e.g., in the *.sh files of the sh-utils.
63350
63351 1999-03-20  Jim Meyering  <meyering@ascend.com>
63352
63353         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63354         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63355         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63356
63357 1999-03-19  Jim Meyering  <meyering@ascend.com>
63358
63359         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63360
63361 1999-03-12  Jim Meyering  <meyering@ascend.com>
63362
63363         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63364
63365 1999-03-07  Jim Meyering  <meyering@ascend.com>
63366
63367         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63368         declared.
63369
63370 1999-02-17  Jim Meyering  <meyering@ascend.com>
63371
63372         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63373         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63374
63375 1999-02-07  Jim Meyering  <meyering@ascend.com>
63376
63377         * m4/group-member.m4: New file -- extracted from sh-utils'
63378         configure.in.
63379
63380         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63381         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63382
63383 1999-02-06  Jim Meyering  <meyering@ascend.com>
63384
63385         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63386         * m4/fnmatch.m4: Likewise.
63387         * m4/getgroups.m4: Likewise.
63388         * m4/lstat.m4: Likewise.
63389         * m4/malloc.m4: Likewise.
63390         * m4/putenv.m4: Likewise.
63391         * m4/realloc.m4: Likewise.
63392         * m4/regex.m4: Likewise.
63393         * m4/stat.m4: Likewise.
63394         * m4/strftime.m4: Likewise.
63395         Suggestion from Alain Magloire.
63396
63397         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63398         * m4/fnmatch.m4: Likewise.
63399         * m4/getgroups.m4: Likewise.
63400         * m4/getline.m4: Likewise.
63401         * m4/lstat.m4: Likewise.
63402         * m4/malloc.m4: Likewise.
63403         * m4/memcmp.m4: Likewise.
63404         * m4/putenv.m4: Likewise.
63405         * m4/realloc.m4: Likewise.
63406         * m4/regex.m4: Likewise.
63407         * m4/stat.m4: Likewise.
63408         * m4/strftime.m4: Likewise.
63409         Suggestion from Alain Magloire.
63410
63411         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63412         an argument.
63413
63414         * m4/regex.m4: Add a run-time Test for proper operation of
63415         re_compile_pattern.
63416
63417 1999-01-31  Jim Meyering  <meyering@ascend.com>
63418
63419         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63420
63421 1999-01-30  Jim Meyering  <meyering@ascend.com>
63422
63423         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63424
63425         * m4/jm-mktime.m4: Make this a wrapper around the official
63426         AM_FUNC_MKTIME rather than my private copy, now that the official one
63427         is up to date.
63428         * m4/mktime.m4: Remove file.
63429
63430         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63431         * m4/uptime.m4: Likewise.
63432         * m4/uintmax_t.m4: Likewise.
63433
63434 1999-01-28  Jim Meyering  <meyering@ascend.com>
63435
63436         * m4/jm-macros.m4: Use jm_AFS.
63437         * m4/afs.m4: New file (from fileutils' configure.in).
63438
63439         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63440         * m4/chown.m4: Likewise.
63441         * m4/d-ino.m4: Likewise.
63442         * m4/d-type.m4: Likewise.
63443         * m4/fnmatch.m4: Likewise.
63444         * m4/getgroups.m4: Likewise.
63445         * m4/gettext.m4: Likewise.
63446         * m4/jm-mktime.m4: Likewise.
63447         * m4/jm-winsz2.m4: Likewise.
63448         * m4/lcmessage.m4: Likewise.
63449         * m4/ls-mntd-fs.m4: Likewise.
63450         * m4/malloc.m4: Likewise.
63451         * m4/memcmp.m4: Likewise.
63452         * m4/putenv.m4: Likewise.
63453         * m4/realloc.m4: Likewise.
63454         * m4/st_mtim.m4: Likewise.
63455         * m4/strftime.m4: Likewise.
63456
63457 1999-01-16  Jim Meyering  <meyering@ascend.com>
63458
63459         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63460         (ARGMATCH_DIE_DECL): Define.
63461
63462 1999-01-12  Jim Meyering  <meyering@ascend.com>
63463
63464         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63465         Reported by Lars Hecking.
63466
63467 1999-01-10  Jim Meyering  <meyering@ascend.com>
63468
63469         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63470         gross kludge.
63471         * m4/inttypes_h.m4: Likewise.
63472         * m4/lstat.m4: Likewise.
63473         * m4/malloc.m4: Likewise.
63474         * m4/readdir.m4: Likewise.
63475         * m4/realloc.m4: Likewise.
63476         * m4/st_dm_mode.m4: Likewise.
63477         * m4/stat.m4: Likewise.
63478         * m4/utimbuf.m4: Likewise.
63479         * m4/utimes.m4: Likewise.
63480
63481         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63482         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63483         comments in config.h.in are meaningful.
63484
63485         * m4/jm-macros.m4: Require autoconf-2.13 here.
63486
63487         * m4/regex.m4: By default, don't use the included regex.c on systems
63488         with glibc 2.  Suggestion from Uli Drepper.
63489
63490 1999-01-02  Jim Meyering  <meyering@ascend.com>
63491
63492         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63493
63494 1998-12-18  Jim Meyering  <meyering@ascend.com>
63495
63496         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63497         Based on a suggestion from Lars Hecking.
63498
63499 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63500
63501         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63502
63503 1998-11-16  Jim Meyering  <meyering@ascend.com>
63504
63505         * m4/lfs.m4: Double-quote the `uname...` expression.
63506
63507 1998-11-14  Jim Meyering  <meyering@ascend.com>
63508
63509         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63510         * m4/stat.m4: Likewise.
63511
63512 1998-11-03  Jim Meyering  <meyering@ascend.com>
63513
63514         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63515         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63516
63517 1998-10-18  Jim Meyering  <meyering@ascend.com>
63518
63519         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63520
63521 1998-10-17  Jim Meyering  <meyering@ascend.com>
63522
63523         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63524         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63525         calls for those previously hard-coded headers.  Instead, take a new
63526         parameter.
63527         (jm_CHECK_DECLARATIONS): Reflect interface change.
63528         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63529         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63530
63531         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63532
63533 1998-10-14  Jim Meyering  <meyering@ascend.com>
63534
63535         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63536         instead of "TZ=America/Vancouver".  From Paul Eggert.
63537
63538 1998-10-11  Jim Meyering  <meyering@ascend.com>
63539
63540         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63541         This adds a test for a recently added compatibility fix for mktime.c.
63542         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63543
63544 1998-09-27  Jim Meyering  <meyering@ascend.com>
63545
63546         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63547
63548         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63549         ../configure.in, including a change from Gordon Matzigkeit to allow
63550         cross-compiling for the Hurd.
63551
63552         * m4/glibc.m4: New file/macro to test for the GNU C Library
63553         versions 1 and 2.  From Gordon Matzigkeit.
63554         Indent.
63555
63556 1998-09-21  Jim Meyering  <meyering@ascend.com>
63557
63558         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63559
63560 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63561
63562         Port nanosecond-resolution times to UnixWare 2.1.2 and
63563         pedantic Solaris 2.6.
63564
63565         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63566         AC_STRUCT_ST_MTIM.
63567         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63568         Generate name of ns member, instead of just 1 or undef.
63569         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63570
63571 1998-08-15  Jim Meyering  <meyering@ascend.com>
63572
63573         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63574         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63575         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63576         instead of jm_TYPE_SSIZE_T.
63577
63578 1998-08-12  Jim Meyering  <meyering@ascend.com>
63579
63580         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63581
63582 1998-08-02  Jim Meyering  <meyering@ascend.com>
63583
63584         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63585         in acconfig.h manually.
63586
63587 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63588
63589         * m4/st_mtim.m4: New file.
63590
63591 1998-07-28  Jim Meyering  <meyering@ascend.com>
63592
63593         * m4/utimes.m4: Undef stat.
63594
63595 1998-07-25  Jim Meyering  <meyering@ascend.com>
63596
63597         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63598         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63599
63600 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63601
63602         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63603         uid and gid actually remain unchanged.
63604
63605 1998-07-07  Jim Meyering  <meyering@ascend.com>
63606
63607         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63608
63609 1998-07-04  Jim Meyering  <meyering@ascend.com>
63610
63611         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63612         to prove that this macro can be used in packages without regex.c.
63613
63614 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63615
63616         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63617         is to be used.
63618
63619 1998-07-03  Jim Meyering  <meyering@ascend.com>
63620
63621         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63622
63623         * m4/gettext.m4: New file -- from gettext-0.10.35.
63624         * m4/lcmessage.m4: Likewise.
63625         * m4/progtest.m4: Likewise.
63626
63627         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63628         * m4/jm-macros.m4: Require the new macro.
63629
63630 1998-06-29  Jim Meyering  <meyering@ascend.com>
63631
63632         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63633         for the definition of NGROUPS (used in a system header included
63634         by sys/mount.h).
63635
63636 1998-06-28  Jim Meyering  <meyering@ascend.com>
63637
63638         * m4/ls-mntd-fs.m4: New file.
63639         * m4/fstypename.m4: New file.
63640
63641         * m4/jm-macros.m4: Require the new macro.
63642         * m4/jm-glibc-io.m4: New file.
63643
63644 1998-05-19  Jim Meyering  <meyering@ascend.com>
63645
63646         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63647         * m4/lchown.m4: New file.
63648
63649         * m4/Makefile.am.in: New file.
63650         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63651
63652 1998-05-14  Jim Meyering  <meyering@ascend.com>
63653
63654         * m4/Makefile.am (EXTRA_DIST): Add them.
63655         * m4/jm-macros.m4: New file.
63656         * m4/utimbuf.m4: New file.
63657
63658 1998-05-12  Jim Meyering  <meyering@ascend.com>
63659
63660         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63661
63662 1998-05-11  Jim Meyering  <meyering@ascend.com>
63663
63664         * m4/isc-posix.m4: New file.
63665
63666 1998-05-10  Jim Meyering  <meyering@ascend.com>
63667
63668         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63669
63670 1998-05-09  Jim Meyering  <meyering@ascend.com>
63671
63672         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63673         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63674         with automake.
63675
63676         * m4/ssize_t.m4: New file.
63677         * m4/mktime.m4: Remove file -- the new automake has this now.
63678
63679 1998-04-26  Jim Meyering  <meyering@ascend.com>
63680
63681         * m4/assert.m4: New file.
63682         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63683
63684 1998-04-05  Jim Meyering  <meyering@ascend.com>
63685
63686         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63687         (jm_PREREQ): Use it here.
63688
63689 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63690
63691         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63692         in acconfig.h.
63693
63694 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63695
63696         * m4/prereq.m4: New file.
63697         * m4/error.m4: New file.
63698         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63699
63700 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63701
63702         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63703         cache-check for the same variable -- that defeated the purpose of
63704         the test; the test program was never run.  This was a problem only
63705         on systems with losing getline functions -- HP-UX 10.20 is one.
63706         Reported by Bjorn Helgaas.
63707
63708 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63709
63710         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63711
63712 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63713
63714         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63715
63716         * m4/const.m4: New file.  Use an initializer in this declaration
63717         typedef int charset[2]; const charset x;
63718         Reported by Bob Glickstein.
63719
63720 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63721
63722         * m4/chown.m4: Fix reversed types on -1 args to chown.
63723         From Kaveh Ghazi.
63724
63725 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63726
63727         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63728         Add lseek and memchr.
63729
63730         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63731         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63732         have a 20-character limit on names.
63733
63734 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63735
63736         * m4/inttypes_h.m4: New file.
63737         * m4/uintmax_t.m4: New file.
63738         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63739
63740
63741         -----
63742
63743         Local Variables:
63744         coding: utf-8
63745         End:
63746
63747         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63748
63749         Copying and distribution of this file, with or without
63750         modification, are permitted provided the copyright notice
63751         and this notice are preserved.