Tests of module 'sys_socket' in C++ mode.
[gnulib.git] / ChangeLog
1 2010-03-07  Bruno Haible  <bruno@clisp.org>
2
3         Tests of module 'sys_socket' in C++ mode.
4         * tests/test-sys_socket-c++.cc: New file.
5         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6         (Depends-on): Add ansi-c++-opt.
7         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
8         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9         gl_MODULE_INDICATOR.
10
11         Tests of module 'sys_select' in C++ mode.
12         * tests/test-sys_select-c++.cc: New file.
13         * modules/sys_select-tests (Files): Add it and tests/signature.h.
14         (Depends-on): Add ansi-c++-opt.
15         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17         gl_MODULE_INDICATOR.
18
19         Tests of module 'sys_ioctl' in C++ mode.
20         * tests/test-sys_ioctl-c++.cc: New file.
21         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22         (Depends-on): Add ansi-c++-opt.
23         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
25         gl_MODULE_INDICATOR.
26
27         Tests of module 'string' in C++ mode.
28         * tests/test-string-c++.cc: New file.
29         * modules/string-tests (Files): Add it and tests/signature.h.
30         (Depends-on): Add ansi-c++-opt.
31         (Makefile.am): Arrange to compile and run test-string-c++.
32         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33         gl_MODULE_INDICATOR.
34
35         Tests of module 'stdlib' in C++ mode.
36         * tests/test-stdlib-c++.cc: New file.
37         * modules/stdlib-tests (Files): Add it and tests/signature.h.
38         (Depends-on): Add ansi-c++-opt.
39         (Makefile.am): Arrange to compile and run test-stdlib-c++.
40         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
41         gl_MODULE_INDICATOR.
42
43         Tests of module 'stdio' in C++ mode.
44         * tests/test-stdio-c++.cc: New file.
45         * modules/stdio-tests (Files): Add it and tests/signature.h.
46         (Depends-on): Add ansi-c++-opt.
47         (Makefile.am): Arrange to compile and run test-stdio-c++.
48         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
49         gl_MODULE_INDICATOR.
50
51         Tests of module 'spawn' in C++ mode.
52         * tests/test-spawn-c++.cc: New file.
53         * modules/spawn-tests (Files): Add it and tests/signature.h.
54         (Depends-on): Add ansi-c++-opt.
55         (Makefile.am): Arrange to compile and run test-spawn-c++.
56         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
57         gl_MODULE_INDICATOR.
58
59         Tests of module 'signal' in C++ mode.
60         * tests/test-signal-c++.cc: New file.
61         * modules/signal-tests (Files): Add it and tests/signature.h.
62         (Depends-on): Add ansi-c++-opt.
63         (Makefile.am): Arrange to compile and run test-signal-c++.
64         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
65         gl_MODULE_INDICATOR.
66
67         Tests of module 'search' in C++ mode.
68         * tests/test-search-c++.cc: New file.
69         * modules/search-tests (Files): Add it and tests/signature.h.
70         (Depends-on): Add ansi-c++-opt.
71         (Makefile.am): Arrange to compile and run test-search-c++.
72         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
73         gl_MODULE_INDICATOR.
74
75         Tests of module 'math' in C++ mode.
76         * tests/test-math-c++.cc: New file.
77         * modules/math-tests (Files): Add it and tests/signature.h.
78         (Depends-on): Add ansi-c++-opt.
79         (Makefile.am): Arrange to compile and run test-math-c++.
80         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
81
82         Tests of module 'locale' in C++ mode.
83         * tests/test-locale-c++.cc: New file.
84         * modules/locale-tests (Files): Add it and tests/signature.h.
85         (Depends-on): Add ansi-c++-opt.
86         (Makefile.am): Arrange to compile and run test-locale-c++.
87         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
88         gl_MODULE_INDICATOR.
89
90         Tests of module 'langinfo' in C++ mode.
91         * tests/test-langinfo-c++.cc: New file.
92         * modules/langinfo-tests (Files): Add it and tests/signature.h.
93         (Depends-on): Add ansi-c++-opt.
94         (Makefile.am): Arrange to compile and run test-langinfo-c++.
95         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
96         gl_MODULE_INDICATOR.
97
98         Tests of module 'iconv-h' in C++ mode.
99         * tests/test-iconv-h-c++.cc: New file.
100         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
101         (Depends-on): Add ansi-c++-opt.
102         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
103
104         Tests of module 'glob' in C++ mode.
105         * tests/test-glob-c++.cc: New file.
106         * modules/glob-tests (Files): Add it.
107         (Depends-on): Add ansi-c++-opt.
108         (Makefile.am): Arrange to compile and run test-glob-c++.
109
110         Tests of module 'fcntl-h' in C++ mode.
111         * tests/test-fcntl-h-c++.cc: New file.
112         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
113         (Depends-on): Add ansi-c++-opt.
114         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
115         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
116         gl_MODULE_INDICATOR.
117
118         Tests of module 'dirent' in C++ mode.
119         * tests/test-dirent-c++.cc: New file.
120         * modules/dirent-tests (Files): Add it and tests/signature.h.
121         (Depends-on): Add ansi-c++-opt.
122         (Makefile.am): Arrange to compile and run test-dirent-c++.
123         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
124         gl_MODULE_INDICATOR.
125
126         New module 'ansi-c++-opt'.
127         * modules/ansi-c++-opt: New file.
128         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
129
130         Document C++ namespace mode.
131         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
132
133         wctype: Avoid #define replacements in C++ mode.
134         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
135         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
136         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
137         In C++, define a namespaced alias symbol.
138         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
139         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
140         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
141         rule.
142
143         wchar: Avoid #define replacements in C++ mode.
144         * lib/wchar.in.h: Include c++defs.h.
145         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
146         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
147         symbol.
148         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
149         * modules/wchar (Depends-on): Add c++defs.
150         (Makefile.am): Update wchar.h rule.
151
152         unistd: Avoid #define replacements in C++ mode.
153         * lib/unistd.in.h: Include c++defs.h.
154         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
155         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
156         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
157         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
158         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
159         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
160         symbol.
161         (environ): Update.
162         * modules/unistd (Depends-on): Add c++defs.
163         (Makefile.am): Update unistd.h rule.
164
165         time: Avoid #define replacements in C++ mode.
166         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
167         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
168         define a namespaced alias symbol.
169         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
170         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
171         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
172         * modules/time (Depends-on): Add c++defs, warn-on-use.
173         (Makefile.am): Update time.h rule.
174         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
175         * modules/nanosleep (configure.ac): Likewise.
176         * modules/strptime (configure.ac): Likewise.
177         * modules/timegm (configure.ac): Likewise.
178
179         sys_time: Avoid #define replacements in C++ mode.
180         * lib/sys_time.in.h: Include c++defs.h.
181         (gettimeofday): In C++, define a namespaced alias symbol.
182         * modules/sys_time (Depends-on): Add c++defs.
183         (Makefile.am): Update sys/time.h rule.
184
185         sys_stat: Avoid #define replacements in C++ mode.
186         * lib/sys_stat.in.h: Include c++defs.h.
187         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
188         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
189         namespaced alias symbol.
190         In C++, define a namespaced alias symbol.
191         * modules/sys_stat (Depends-on): Add c++defs.
192         (Makefile.am): Update sys/stat.h rule.
193
194         sys_socket: Avoid #define replacements in C++ mode.
195         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
196         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
197         definitions also when the system has a <sys/socket.h>.
198         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
199         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
200         In C++, define a namespaced alias symbol.
201         * modules/sys_socket (Depends-on): Add c++defs.
202         (Makefile.am): Update sys/socket.h rule.
203
204         sys_select: Avoid #define replacements in C++ mode.
205         * lib/sys_select.in.h: Include c++defs.h. Enable the function
206         definitions also when the system has a <sys/select.h>.
207         (select): In C++, define a namespaced alias symbol.
208         * modules/sys_select (Depends-on): Add c++defs.
209         (Makefile.am): Update sys/select.h rule.
210
211         sys_ioctl: Avoid #define replacements in C++ mode.
212         * lib/sys_ioctl.in.h: Include c++defs.h.
213         (ioctl): In C++, define a namespaced alias symbol.
214         * modules/sys_ioctl (Depends-on): Add c++defs.
215         (Makefile.am): Update sys/ioctl.h rule.
216
217         string: Avoid #define replacements in C++ mode.
218         * lib/string.in.h: Include c++defs.h.
219         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
220         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
221         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
222         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
223         strsignal, strverscmp): In C++, define a namespaced alias symbol.
224         * modules/string (Depends-on): Add c++defs.
225         (Makefile.am): Update string.h rule.
226
227         stdlib: Avoid #define replacements in C++ mode.
228         * lib/stdlib.in.h: Include c++defs.h.
229         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
230         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
231         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
232         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
233         symbol.
234         * modules/stdlib (Depends-on): Add c++defs.
235         (Makefile.am): Update stdlib.h rule.
236
237         stdio: Avoid #define replacements in C++ mode.
238         * lib/stdio.in.h: Include c++defs.h.
239         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
240         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
241         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
242         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
243         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
244         namespaced alias symbol.
245         * modules/stdio (Depends-on): Add c++defs.
246         (Makefile.am): Update stdio.h rule.
247
248         spawn: Avoid #define replacements in C++ mode.
249         * lib/spawn.in.h: Include c++defs.h.
250         (posix_spawn, posix_spawnp, posix_spawnattr_init,
251         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
252         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
253         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
254         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
255         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
256         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
257         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
258         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
259         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
260         In C++, define a namespaced alias symbol.
261         * modules/spawn (Depends-on): Add c++defs.
262         (Makefile.am): Update spawn.h rule.
263
264         signal: Avoid #define replacements in C++ mode.
265         * lib/signal.in.h: Include c++defs.h.
266         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
267         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
268         namespaced alias symbol.
269         * modules/signal (Depends-on): Add c++defs.
270         (Makefile.am): Update signal.h rule.
271
272         search: Avoid #define replacements in C++ mode.
273         * lib/search.in.h: Include c++defs.h.
274         (_gl_search_compar_fn, _gl_search_action_fn): New types.
275         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
276         symbol.
277         * modules/search (Depends-on): Add c++defs.
278         (Makefile.am): Update search.h rule.
279
280         math: Avoid #define replacements in C++ mode.
281         * lib/math.in.h: Include c++defs.h.
282         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
283         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
284         trunc, truncl): In C++, define a namespaced alias symbol.
285         * modules/math (Depends-on): Add c++defs.
286         (Makefile.am): Update math.h rule.
287
288         locale: Avoid #define replacements in C++ mode.
289         * lib/locale.in.h: Include c++defs.h.
290         (duplocale): In C++, define a namespaced alias symbol.
291         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
292         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
293         * modules/locale (Depends-on): Add c++defs.
294         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
295
296         langinfo: Avoid #define replacements in C++ mode.
297         * lib/langinfo.in.h: Include c++defs.h.
298         (nl_langinfo): In C++, define a namespaced alias symbol.
299         * modules/langinfo (Depends-on): Add c++defs.
300         (Makefile.am): Update langinfo.h rule.
301
302         iconv-h: Avoid #define replacements in C++ mode.
303         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
304         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
305         symbol.
306         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
307         whenever iconv is present.
308         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
309         (Makefile.am): Update iconv.h rule.
310
311         glob: Avoid #define replacements in C++ mode.
312         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
313         (_gl_glob_errfunc_fn): New type.
314         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
315         symbol.
316         * modules/glob (Depends-on): Add c++defs, warn-on-use.
317         (Makefile.am): Update glob.h rule.
318
319         fcntl-h: Avoid #define replacements in C++ mode.
320         * lib/fcntl.in.h: Include c++defs.h.
321         (fcntl, open, openat): In C++, define a namespaced alias symbol.
322         * modules/fcntl-h (Depends-on): Add c++defs.
323         (Makefile.am): Update fcntl.h rule.
324
325         dirent: Avoid #define replacements in C++ mode.
326         * lib/dirent.in.h: Include c++defs.h.
327         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
328         namespaced alias symbol.
329         (dirfd): Update declaration.
330         * modules/dirent (Depends-on): Add c++defs.
331         (Makefile.am): Update dirent.h rule.
332
333         ctype: Make it usable in C++ code.
334         * lib/ctype.in.h: Include c++defs.h.
335         (isblank): Declare as extern "C".
336         * modules/ctype (Depends-on): Add c++defs.
337         (Makefile.am): Update ctype.h rule.
338
339         New module 'c++defs'.
340         * modules/c++defs: New file.
341         * build-aux/c++defs.h: New file.
342         Reported by John W. Eaton <jwe@gnu.org>.
343
344 2010-03-07  Bruno Haible  <bruno@clisp.org>
345
346         logb: Provide missing declaration for Cygwin.
347         * lib/math.in.h (logb): New declaration.
348         * m4/logb.m4: New file.
349         * modules/logb (Files): Add m4/logb.m4.
350         (Depends-on): Add math.
351         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
352         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
354         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
355         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
356
357 2010-03-07  Bruno Haible  <bruno@clisp.org>
358
359         Fix test-cond link error.
360         * tests/test-cond.c: Include <stdio.h>.
361
362 2010-03-07  Bruno Haible  <bruno@clisp.org>
363
364         Fix test-dirent-safer link error.
365         * modules/dirent-safer-tests (Makefile.am): Define
366         test_dirent_safer_LDADD.
367
368 2010-03-07  Bruno Haible  <bruno@clisp.org>
369
370         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
371         among default module list.
372
373 2010-03-07  Bruno Haible  <bruno@clisp.org>
374
375         Fix link error on platforms with GNU libiconv.
376         * modules/unistr/u8-strcoll-tests (Makefile): Define
377         test_u8_strcoll_LDADD.
378         * modules/unistr/u16-strcoll-tests (Makefile): Define
379         test_u16_strcoll_LDADD.
380         * modules/unistr/u32-strcoll-tests (Makefile): Define
381         test_u32_strcoll_LDADD.
382
383 2010-03-07  Bruno Haible  <bruno@clisp.org>
384
385         Use POSIX declarations for socket functions.
386         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
387         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
388         rpl_sendto): Change declaration to match POSIX.
389         * lib/connect.c (rpl_connect): Likewise.
390         * lib/accept.c (rpl_accept): Likewise.
391         * lib/bind.c (rpl_bind): Likewise.
392         * lib/getpeername.c (rpl_getpeername): Likewise.
393         * lib/getsockname.c (rpl_getsockname): Likewise.
394         * lib/recv.c (rpl_recv): Likewise.
395         * lib/send.c (rpl_send): Likewise.
396         * lib/recvfrom.c (rpl_recvfrom): Likewise.
397         * lib/sendto.c (rpl_sendto): Likewise.
398
399 2010-03-06  Bruno Haible  <bruno@clisp.org>
400
401         Clarify access, euidaccess, faccessat.
402         * doc/posix-functions/faccessat.texi: Mention security problem under
403         "Other problems", not "Portability problems".
404         * doc/posix-functions/access.texi: Likewise. Mention a related security
405         problem.
406         * doc/glibc-functions/euidaccess.texi: Mention security problems.
407         * lib/euidaccess.c: Add comments about platforms.
408         * lib/unistd.in.h (access, euidaccess): Add warnings.
409
410 2010-03-07  Bruno Haible  <bruno@clisp.org>
411
412         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
413         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
414         (POSIX_SPAWN_SETSCHEDULER): Likewise.
415         (POSIX_SPAWN_USEVFORK): Define in a way that works when
416         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
417         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
418         declare when POSIX_SPAWN_SETSCHEDULER is zero.
419         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
420         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
421         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
422         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
423         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
424         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
425         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
426         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
427         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
428         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
429         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
430         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
431         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
432         Likewise.
433         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
434         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
435         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
436         Likewise.
437         * tests/test-spawn.c (main): Make it work when
438         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
439
440 2010-03-07  Bruno Haible  <bruno@clisp.org>
441
442         Fix incorrect Makefile.am generation in German locale.
443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
444         Execute sed command with character range in C locale.
445
446 2010-03-06  Bruno Haible  <bruno@clisp.org>
447
448         Tests for module 'iconv-h'.
449         * modules/iconv-h-tests: New file.
450         * tests/test-iconv-h.c: New file.
451
452         New module 'iconv-h'.
453         * modules/iconv-h: New file.
454         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
455         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
456         (configure.ac): Remove gl_ICONV_H.
457         (Makefile.am): Remove rule for iconv.h.
458
459 2010-03-06  Bruno Haible  <bruno@clisp.org>
460
461         More consistent naming of *.m4 files.
462         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
463         * modules/wctype (Files): Update.
464
465         More consistent naming of *.m4 files.
466         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
467         * modules/wchar (Files): Update.
468
469 2010-03-06  Jim Meyering  <meyering@redhat.com>
470
471         euidaccess: relax license to LGPLv2+
472         * modules/euidaccess (License): Relax to LGPLv2+.
473
474 2010-03-06  Bruno Haible  <bruno@clisp.org>
475
476         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
477         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
478         (Makefile.am): Augment lib_SOURCES instead.
479
480 2010-03-04  Jim Meyering  <meyering@redhat.com>
481
482         utime: remove obsolete module
483         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
484         unnecessary for years, and has been marked as obsolete for 10 months.
485         * modules/utime: Remove file.
486         * lib/utime.c: Remove file.
487         * m4/utime.m4: Remove file.
488         * m4/utimes-null.m4: Remove file.
489         * doc/posix-functions/utime.texi (utime): Remove reference to
490         the module.  Move the sole "fixed by gnulib" item into the
491         "problems not fixed by Gnulib" list.
492         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
493
494 2010-03-05  Simon Josefsson  <simon@josefsson.org>
495
496         * modules/exit (License): Relax license to LGPLv2+.
497         (Status): Mark as obsolete.
498         * NEWS: Mention deprecated 'exit' module.
499         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
500         of now obsolete 'exit'.
501
502 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
503
504         fts-lgpl: remove unused module
505         * modules/fts-lgpl: Remove.
506         * MODULES.html.sh (func_all_modules): Adjust.
507         * check-module (find_included_lib_files): Adjust.
508         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
509
510 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
511
512         copy-acl: enhance Solaris ACL error handling
513         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
514         * lib/set-mode-acl.c (qset_acl): Likewise.
515
516 2010-03-02  Bruno Haible  <bruno@clisp.org>
517
518         spawn: Don't override the system defined values on FreeBSD 8.
519         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
520         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
521         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
522         if HAVE_POSIX_SPAWN is 1.
523         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
524
525 2010-03-01  Bruno Haible  <bruno@clisp.org>
526
527         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
528         regarding Automake.
529
530 2010-02-25  Bruno Haible  <bruno@clisp.org>
531
532         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
533         * gnulib-tool: Define 'echo' as a function only before the ksh alias
534         setting, not afterwards.
535         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
536
537 2010-02-24  Eric Blake  <eblake@redhat.com>
538
539         bootstrap, git-version-gen: use timestamp
540         * build-aux/git-version-gen (scriptversion): Force UTC.
541         * build-aux/bootstrap (scriptversion): New variable.
542
543         bootstrap: allow older git
544         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
545         older than 1.6.4.  Requested by the libvirt project.
546
547 2010-02-23  Eric Blake  <eblake@redhat.com>
548
549         warn-on-use: work with old autoconf
550         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
551         AS_VAR semantics of autoconf 2.60.
552         Reported by Bruno Haible.
553
554         bootstrap: improve some comments
555         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
556         clarification comments.
557
558         gettimeofday: provide correct function
559         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
560         when replacement is declared, otherwise provide gettimeofday.
561         Reported by Michael Goffioul.
562
563 2010-02-23  Jim Meyering  <meyering@redhat.com>
564
565         lib-ignore: relax license to "unlimited", not LGPLv2+
566         * modules/lib-ignore (License): Relax to "unlimited".
567
568 2010-02-23  Jim Meyering  <meyering@redhat.com>
569
570         lib-ignore: relax license to LGPLv2+
571         * modules/lib-ignore (License): Relax to LGPLv2+.
572
573 2010-02-22  Eric Blake  <eblake@redhat.com>
574
575         lseek: avoid bash 3.2 broken pipe bug
576         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
577         warning from bash 3.2.
578         Reported by Ben Pfaff, with analysis from Bruno Haible.
579
580         bootstrap: support non-FSF copyright holder
581         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
582         bootstrap.conf override of COPYRIGHT_HOLDER.
583         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
584
585         bootstrap: interoperate with gettext 0.14.1
586         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
587
588         bootstrap: allow for alternate submodule location
589         * build-aux/bootstrap (gnulib_path): New variable; use instead of
590         hardcoding submodule location.
591         (gnulib_mk): Allow direct use of Makefile.am.
592
593         bootstrap: use GNULIB_SRCDIR to reduce disk usage
594         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
595         rather than reconfiguring where the submodule points.
596
597         gettimeofday: restore support for platforms that lack function
598         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
599         replacement if function is missing.
600         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
601         * modules/sys_time (Makefile.am): Substitute it.
602         * lib/sys_time.in.h (gettimeofday): Check it.
603         Reported by Michael Goffioul.
604
605 2010-02-21  Bruno Haible  <bruno@clisp.org>
606
607         * lib/stdio.in.h (obstack_printf): Fix typo.
608
609 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
610
611         vc-list-files: use bzr ls's -R option
612         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
613         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
614
615 2010-02-21  Jim Meyering  <meyering@redhat.com>
616
617         init.sh: fix EXEEXT shims to work also for names like test-prog
618         * tests/init.sh: Re-exec a better shell, when needed.
619         If the current shell lacks support for posix $(...), an init.sh-using
620         test will now try to find a shell that supports that.  If EXEEXT is
621         nonempty, we also require support for hyphen-in-alias-name and shell
622         substitutions like ${var#glob}.  Failure to find such a shell results
623         in a skipped test.
624
625 2010-02-21  Bruno Haible  <bruno@clisp.org>
626
627         Really work around around "broken pipe" error message from bash 3.2.
628         * gnulib-tool (func_reset_sigpipe): Remove function.
629         (echo): In bash 3.2, define to a function that uses printf.
630         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
631
632 2010-02-20  Bruno Haible  <bruno@clisp.org>
633
634         Restore support for automake 1.9.6 with autoconf 2.61.
635         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
636         Reported by James Youngman <jay@gnu.org>.
637
638 2010-02-20  Bruno Haible  <bruno@clisp.org>
639
640         Improve *printf warning condition.
641         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
642         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
643         and the function is overridden due to SIGPIPE emulation.
644
645 2010-02-20  Bruno Haible  <bruno@clisp.org>
646
647         * lib/stdio.in.h: Tweak comments.
648
649 2010-02-19  Bruno Haible  <bruno@clisp.org>
650
651         Make it easier to find modules. New gnulib-tool option '--find'.
652         * gnulib-tool: New option --find.
653         (func_usage): Document it.
654         (func_sanitize_modulelist): New function, extracted from
655         func_all_modules.
656         (func_all_modules): Invoke it.
657         * doc/gnulib-tool.texi (Which modules?): New node.
658
659 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
660
661         * lib/sys_select.in.h: Provide select replacement even if
662         sys/select.h exists on a system, for Interix.
663
664 2010-02-18  Jim Meyering  <meyering@redhat.com>
665
666         init.sh: don't use $(...) just yet
667         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
668         to accommodate e.g., Solaris' /bin/sh.
669
670 2010-02-17  Bruno Haible  <bruno@clisp.org>
671
672         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
673         Reported by Ludovic Courtès <ludo@gnu.org>.
674
675 2010-02-16  Simon Josefsson  <simon@josefsson.org>
676
677         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
678         linking with -lintl.
679
680 2010-02-17  Simon Josefsson  <simon@josefsson.org>
681
682         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
683         if not provided by the system's netdb.h.  Reported by
684         ludo@gnu.org (Ludovic Courtès).
685
686 2010-02-15  Jim Meyering  <meyering@redhat.com>
687
688         init.sh: improve portability and efficiency
689         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
690         "dummy" in a for loop.
691         Use '!', not '^' to select the complement of a character set used
692         in a "case" statement.
693         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
694         Suggestions from Eric Blake.
695
696         init.sh: automatically accommodate programs with the .exe suffix
697         Automatically arrange for an invocation of "prog" to execute the
698         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
699         may use the simpler "prog", yet still work when built on a system
700         that requires specifying the added suffix.
701         Do this by constructing a function named "prog" that invokes
702         "prog.exe" for each .exe file in selected directories.
703         * tests/init.sh (find_exe_basenames_): New function.
704         (create_exe_shim_functions_): New function.
705         (path_prepend_): Use it.
706
707         maint.mk: mark syntax-check sc_*.m rules as .PHONY
708         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
709         "make -t syntax-check" doesn't create a ton of sc_*.m files.
710
711 2010-02-14  Jim Meyering  <meyering@redhat.com>
712
713         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
714         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
715         (sc_prohibit_hash_pjw_without_use): New rule.
716
717         maint.mk: allow the default upload destination dir to be overridden
718         * top/maint.mk (upload_dest_dir_): Define with a default that
719         preserves the status quo.
720         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
721         Reported by Peter Simons.
722
723         maint.mk: prohibit inclusion of "hash.h" without_use
724         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
725
726 2010-02-10  Jim Meyering  <meyering@redhat.com>
727
728         maint.mk: prohibit inclusion of "ignore-value.h" without_use
729         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
730
731 2010-02-09  Eric Blake  <ebb9@byu.net>
732         and Bruno Haible  <bruno@clisp.org>
733
734         obstack-printf-posix: ensure declaration
735         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
736         extracted from gl_FUNC_OBSTACK_PRINTF.
737         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
738         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
739         Likewise.
740         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
741         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
742         0.
743
744 2010-02-08  Bruno Haible  <bruno@clisp.org>
745
746         gnulib-tool: Fix typo in 2010-02-07 commit.
747         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
748         Reported by Eric Blake.
749
750 2010-02-07  Bruno Haible  <bruno@clisp.org>
751
752         gnulib-tool: Fix up caching patches.
753         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
754         option --no-cache. Use associative arrays when supported by the shell.
755         (sed_comments): New variable.
756         (modcache): Renamed from do_cache.
757         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
758         abbreviate unnecessarily.
759         (have_associative): New variable.
760         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
761         way also for ksh and zsh.
762         (func_init_sed_convert_to_cache_statements): New function, extracted
763         from func_cache_lookup_module. Add support for associative arrays.
764         Don't set the c_MODULE_cached variable here. Ignore all lines before
765         the first field header. Remove only the final newline, not all trailing
766         newlines. Support empty fields correctly. Limit the use of 'eval' to
767         assignments.
768         (func_get_description, func_get_status, func_get_notice,
769         func_get_applicability, func_get_filelist, func_get_dependencies,
770         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
771         func_get_automake_snippet, func_get_include_directive,
772         func_get_link_directive, func_get_license, func_get_maintainer):
773         Update documentation. List the unoptimized code first. Add support for
774         associative arrays. Limit the use of 'eval' to assignments.
775         (func_get_applicability): Undo stylistic pessimisations.
776         (func_get_automake_snippet, func_get_include_directive): Reduce code
777         duplication.
778         (func_modules_transitive_closure, func_modules_add_dummy,
779         func_modules_notice, func_modules_to_filelist, func_add_file,
780         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
781         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
782         func_create_testdir, func_create_megatestdir): Update documentation.
783
784 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
785
786         * gnulib-tool (func_cache_lookup_module): Store the module name
787         belonging to the cache variable; error out if two different
788         module names map to the same cache variable name.
789
790 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
791
792         gnulib-tool: Make caching optional.
793         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
794         Update matching short versions of --no-changelog.
795         (func_usage): Update.
796         (sed_extract_cache_prog): Renamed from ...
797         (sed_extract_prog): ... this; revert to old extraction script.
798         (func_get_description, func_get_status)
799         (func_get_notice, func_get_applicability, func_get_filelist)
800         (func_get_dependencies, func_get_autoconf_early_snippet)
801         (func_get_autoconf_snippet, func_get_automake_snippet)
802         (func_get_include_directive, func_get_link_directive)
803         (func_get_license, func_get_maintainer): If $do_cache is false,
804         use old, non-caching extraction scripts.
805         Suggestion by Bruno Haible.
806
807 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
808
809         gnulib-tool: cache module metainformation.
810         * gnulib-tool (sed_extract_prog): Match newline before each
811         header, and rewrite header to a shell variable suffix.
812         (func_cache_var, func_cache_lookup_module): New functions,
813         to turn a module name into a cache variable prefix, and to
814         look up and cache module metainformation.
815         (func_get_description, func_get_status)
816         (func_get_notice, func_get_applicability, func_get_filelist)
817         (func_get_dependencies, func_get_autoconf_early_snippet)
818         (func_get_autoconf_snippet, func_get_automake_snippet)
819         (func_get_include_directive, func_get_link_directive)
820         (func_get_license, func_get_maintainer): Use
821         func_cache_lookup_module.
822
823 2010-02-07  Bruno Haible  <bruno@clisp.org>
824
825         fnctl: Fix missing dependency.
826         * modules/fcntl (Depends-on): Add getdtablesize.
827         Reported by John W. Eaton <jwe@gnu.org>.
828
829 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
830
831         Argp: fix recognition of short alias options.
832
833         * lib/argp-parse.c (convert_options): Fix improper use of
834         `|' between character values.
835         * tests/test-argp.c (group1_option): New alias option
836         --read (-r).
837         (group1_parser): Special handling for 'r'.
838         (test15): New test case.
839         (test_fun): Add test15.
840         * tests/test-argp-2.sh: Update expected --help and --usage
841         outputs.
842
843 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
844
845         * tests/test-argp.c: Fix indentation.
846
847 2010-02-04  Eric Blake  <ebb9@byu.net>
848
849         gettimeofday: expose type of second argument
850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
851         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
852         * tests/test-gettimeofday.c: Use it to silence warning.
853         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
854         the issue.
855
856 2010-02-03  Jim Meyering  <meyering@redhat.com>
857
858         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
859         * lib/regcomp.c (TYPE_SIGNED): Define.
860         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
861
862         regcomp.c: avoid a new -Wshadow warning
863         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
864
865 2010-02-01  Jim Meyering  <meyering@redhat.com>
866
867         removing useless parentheses in cpp #define directives
868         For motivation, see commit c0221df4, "define STREQ(a,b)
869         consistently, removing useless parentheses"
870         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
871         * lib/mountlist.c (MNT_IGNORE): Likewise.
872         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
873
874 2010-02-01  Eric Blake  <ebb9@byu.net>
875
876         sys_time: use link-warning
877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
878         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
879         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
880         * modules/sys_time (Depends-on): Add warn-on-use.
881         (Makefile.am): Always build replacement.
882         (configure.ac): Update substitutions.
883         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
884         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
885         bother with SYS_TIME_H.
886         * modules/gettimeofday (configure.ac): Declare indicator.
887         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
888         in use.
889
890         closein-tests: silence compiler warning
891         * tests/test-closein.c (main): Ignore fread result.
892         * modules/closein-tests (Depends-on): Add ignore-value.
893
894         tests: silence warning about system return
895         * tests/test-areadlink-with-size.c (main): Ignore system result.
896         * tests/test-areadlink.c (main): Likewise.
897         * tests/test-areadlinkat-with-size.c (main): Likewise.
898         * tests/test-areadlinkat.c (main): Likewise.
899         * tests/test-canonicalize-lgpl.c (main): Likewise.
900         * tests/test-canonicalize.c (main): Likewise.
901         * tests/test-chown.c (main): Likewise.
902         * tests/test-fchownat.c (main): Likewise.
903         * tests/test-fdutimensat.c (main): Likewise.
904         * tests/test-fstatat.c (main): Likewise.
905         * tests/test-futimens.c (main): Likewise.
906         * tests/test-lchown.c (main): Likewise.
907         * tests/test-link.c (main): Likewise.
908         * tests/test-linkat.c (main): Likewise.
909         * tests/test-lstat.c (main): Likewise.
910         * tests/test-mkdir.c (main): Likewise.
911         * tests/test-mkdirat.c (main): Likewise.
912         * tests/test-mkfifo.c (main): Likewise.
913         * tests/test-mkfifoat.c (main): Likewise.
914         * tests/test-mknod.c (main): Likewise.
915         * tests/test-readlink.c (main): Likewise.
916         * tests/test-remove.c (main): Likewise.
917         * tests/test-rename.c (main): Likewise.
918         * tests/test-renameat.c (main): Likewise.
919         * tests/test-rmdir.c (main): Likewise.
920         * tests/test-symlink.c (main): Likewise.
921         * tests/test-symlinkat.c (main): Likewise.
922         * tests/test-unlink.c (main): Likewise.
923         * tests/test-unlinkat.c (main): Likewise.
924         * tests/test-utimens.c (main): Likewise.
925         * tests/test-utimensat.c (main): Likewise.
926         * modules/areadlink-tests (Depends-on): Add ignore-value.
927         * modules/areadlink-with-size-tests (Depends-on): Likewise.
928         * modules/areadlinkat-tests (Depends-on): Likewise.
929         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
930         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
931         * modules/canonicalize-tests (Depends-on): Likewise.
932         * modules/chown-tests (Depends-on): Likewise.
933         * modules/fdutimensat-tests (Depends-on): Likewise.
934         * modules/futimens-tests (Depends-on): Likewise.
935         * modules/lchown-tests (Depends-on): Likewise.
936         * modules/link-tests (Depends-on): Likewise.
937         * modules/linkat-tests (Depends-on): Likewise.
938         * modules/lstat-tests (Depends-on): Likewise.
939         * modules/mkdir-tests (Depends-on): Likewise.
940         * modules/mkfifo-tests (Depends-on): Likewise.
941         * modules/mkfifoat-tests (Depends-on): Likewise.
942         * modules/mknod-tests (Depends-on): Likewise.
943         * modules/openat-tests (Depends-on): Likewise.
944         * modules/readlink-tests (Depends-on): Likewise.
945         * modules/remove-tests (Depends-on): Likewise.
946         * modules/rename-tests (Depends-on): Likewise.
947         * modules/renameat-tests (Depends-on): Likewise.
948         * modules/rmdir-tests (Depends-on): Likewise.
949         * modules/symlink-tests (Depends-on): Likewise.
950         * modules/symlinkat-tests (Depends-on): Likewise.
951         * modules/unlink-tests (Depends-on): Likewise.
952         * modules/utimens-tests (Depends-on): Likewise.
953         * modules/utimensat-tests (Depends-on): Likewise.
954
955 2010-01-31  Bruno Haible  <bruno@clisp.org>
956
957         Perform the same test for many <math.h> functions.
958         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
959         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
960         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
961         of gl_MATHFUNC.
962         * modules/acos (configure.ac): Likewise.
963         * modules/asin (configure.ac): Likewise.
964         * modules/atan (configure.ac): Likewise.
965         * modules/atan2 (configure.ac): Likewise.
966         * modules/cbrt (configure.ac): Likewise.
967         * modules/copysign (configure.ac): Likewise.
968         * modules/cos (configure.ac): Likewise.
969         * modules/cosh (configure.ac): Likewise.
970         * modules/erf (configure.ac): Likewise.
971         * modules/erfc (configure.ac): Likewise.
972         * modules/exp (configure.ac): Likewise.
973         * modules/fmod (configure.ac): Likewise.
974         * modules/hypot (configure.ac): Likewise.
975         * modules/j0 (configure.ac): Likewise.
976         * modules/j1 (configure.ac): Likewise.
977         * modules/jn (configure.ac): Likewise.
978         * modules/lgamma (configure.ac): Likewise.
979         * modules/log (configure.ac): Likewise.
980         * modules/log10 (configure.ac): Likewise.
981         * modules/log1p (configure.ac): Likewise.
982         * modules/pow (configure.ac): Likewise.
983         * modules/remainder (configure.ac): Likewise.
984         * modules/sin (configure.ac): Likewise.
985         * modules/sinh (configure.ac): Likewise.
986         * modules/tan (configure.ac): Likewise.
987         * modules/tanh (configure.ac): Likewise.
988         * modules/y0 (configure.ac): Likewise.
989         * modules/y1 (configure.ac): Likewise.
990         * modules/yn (configure.ac): Likewise.
991         Suggested by Paolo Bonzini.
992
993 2010-01-31  Bruno Haible  <bruno@clisp.org>
994
995         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
996
997 2010-01-31  Bruno Haible  <bruno@clisp.org>
998
999         Work around getdelim() bug on FreeBSD 8.0.
1000         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1001         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1002         not work.
1003         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1004         is 1.
1005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1006         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1007         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1008         a non-zero size.
1009         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1010
1011 2010-01-31  Bruno Haible  <bruno@clisp.org>
1012
1013         Work around getline() bug on FreeBSD 8.0.
1014         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1015         and a non-zero size.
1016         * tests/test-getline.c (main): Likewise.
1017         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1018         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1019
1020 2010-01-28  Eric Blake  <ebb9@byu.net>
1021
1022         regex: fix build failure
1023         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1024         platforms.
1025
1026 2010-01-28  Jim Meyering  <meyering@redhat.com>
1027
1028         regex: do not ignore memory allocation failure
1029         * lib/regex_internal.c (create_cd_newstate): Detect
1030         re_node_set_init_copy failure.   Extracted from glibc commit
1031         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1032
1033         regex: sync more white-space changes from libc
1034         * lib/regex_internal.c: White-space only changes.
1035         * lib/regexec.c: Likewise.
1036
1037         regex: add many uses of __attribute_warn_unused_result__
1038         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1039         * lib/regexec.c: Likewise.
1040         Extracted from a messy glibc commit.
1041
1042         regcomp.c: spelling and merge-artifact from glibc
1043         * lib/regcomp.c: Merge remainder of glibc's
1044         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1045
1046         regcomp.c: sync white-space changes from glibc
1047         * lib/regcomp.c: Merge to accommodate white space
1048         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1049
1050         regcomp.c: do not ignore internal return values
1051         * lib/regcomp.c: Do not ignore internal return values.
1052         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1053         but without its white-space changes and spelling fixes.
1054
1055         regex_internal.h: define __attribute_warn_unused_result__
1056         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1057
1058         maint: add a syntax-check rule to check for vulnerable Makefile.in
1059         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1060
1061 2010-01-27  Jim Meyering  <meyering@redhat.com>
1062
1063         ncftpput-ftp: clean up spaces
1064         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1065         Remove trailing blanks.
1066
1067 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1068
1069         * build-aux/git-version-gen: Fix copyright statement.
1070         * build-aux/gnupload: Likewise.
1071         * tests/test-arcfour.c: Likewise.
1072         * tests/test-arctwo.c: Likewise.
1073         * tests/test-count-one-bits.c: Likewise.
1074         * tests/test-crc.c: Likewise.
1075         * tests/test-des.c: Likewise.
1076         * tests/test-gc-arcfour.c: Likewise.
1077         * tests/test-gc-arctwo.c: Likewise.
1078         * tests/test-gc-des.c: Likewise.
1079         * tests/test-gc-hmac-md5.c: Likewise.
1080         * tests/test-gc-hmac-sha1.c: Likewise.
1081         * tests/test-gc-md2.c: Likewise.
1082         * tests/test-gc-md4.c: Likewise.
1083         * tests/test-gc-md5.c: Likewise.
1084         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1085         * tests/test-gc-rijndael.c: Likewise.
1086         * tests/test-gc-sha1.c: Likewise.
1087         * tests/test-gc.c: Likewise.
1088         * tests/test-gethostname.c: Likewise.
1089         * tests/test-gettimeofday.c: Likewise.
1090         * tests/test-hash.c: Likewise.
1091         * tests/test-hmac-md5.c: Likewise.
1092         * tests/test-hmac-sha1.c: Likewise.
1093         * tests/test-md2.c: Likewise.
1094         * tests/test-md4.c: Likewise.
1095         * tests/test-md5.c: Likewise.
1096         * tests/test-memchr.c: Likewise.
1097         * tests/test-memchr2.c: Likewise.
1098         * tests/test-memcmp.c: Likewise.
1099         * tests/test-memmem.c: Likewise.
1100         * tests/test-memrchr.c: Likewise.
1101         * tests/test-rawmemchr.c: Likewise.
1102         * tests/test-read-file.c: Likewise.
1103         * tests/test-rijndael.c: Likewise.
1104         * tests/test-sockets.c: Likewise.
1105         * tests/test-strchrnul.c: Likewise.
1106         * tests/test-strstr.c: Likewise.
1107         * tests/test-strtod.c: Likewise.
1108         * build-aux/ncftpput-ftp: Likewise.
1109
1110 2010-01-26  Eric Blake  <ebb9@byu.net>
1111
1112         ignore-value: update recommended header name
1113         * modules/ignore-value (Include): Only use <> for headers that
1114         exist in glibc.
1115
1116 2010-01-26  Jim Meyering  <meyering@redhat.com>
1117
1118         test-userspec.c: avoid compiler warnings
1119         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1120         and "initialization discards qualifiers..." warnings.
1121         Put the first "uid" in its own scope, and make char* members "const".
1122
1123 2010-01-25  Bruno Haible  <bruno@clisp.org>
1124
1125         gnulib-tool: Make warning diagnostics consistent.
1126         * gnulib-tool (func_warning): New function.
1127         Use it everywhere where gnulib-tool produces output to stderr and it is
1128         not a fatal error.
1129
1130 2010-01-25  Bruno Haible  <bruno@clisp.org>
1131
1132         Fix test dependencies.
1133         * modules/xstrtol-tests (Depends-on): Add inttypes.
1134         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1135
1136 2010-01-25 Pádraig Brady <P@draigBrady.com>
1137
1138         syntax-check: detect incorrect boolean macro values in config.h
1139         * modules/maintainer-makefile (configure.ac): Parameterize the location
1140         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1141         The logic is from Eric Blake and the location indicated by Jim Meyering.
1142         Note the more natural CONFIG_HEADER name is prohibited by automake
1143         for backwards compatibility reasons.
1144         * top/maint.mk (sc_Wundef_boolean): New rule.
1145
1146 2010-01-25  Jim Meyering  <meyering@redhat.com>
1147
1148         bootstrap: detect MacOS 10.6's shasum, too
1149         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1150         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1151
1152 2010-01-23  Jim Meyering  <meyering@redhat.com>
1153
1154         xstrtoll: new module
1155         * modules/xstrtoll: New file.
1156         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1157         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1158         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1159         ./configure fails if you use this module and lack "long long".
1160         * modules/xstrtoll-tests: New module.
1161         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1162         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1163         new init.sh-based test framework.
1164
1165 2010-01-24  Bruno Haible  <bruno@clisp.org>
1166
1167         Tests for module 'yn'.
1168         * modules/yn-tests: New file.
1169         * tests/test-yn.c: New file.
1170
1171         Tests for module 'y1'.
1172         * modules/y1-tests: New file.
1173         * tests/test-y1.c: New file.
1174
1175         Tests for module 'y0'.
1176         * modules/y0-tests: New file.
1177         * tests/test-y0.c: New file.
1178
1179         Tests for module 'tanh'.
1180         * modules/tanh-tests: New file.
1181         * tests/test-tanh.c: New file.
1182
1183         Tests for module 'tan'.
1184         * modules/tan-tests: New file.
1185         * tests/test-tan.c: New file.
1186
1187         Tests for module 'sqrt'.
1188         * modules/sqrt-tests: New file.
1189         * tests/test-sqrt.c: New file.
1190
1191         Tests for module 'sinh'.
1192         * modules/sinh-tests: New file.
1193         * tests/test-sinh.c: New file.
1194
1195         Tests for module 'sin'.
1196         * modules/sin-tests: New file.
1197         * tests/test-sin.c: New file.
1198
1199         Tests for module 'rint'.
1200         * modules/rint-tests: New file.
1201         * tests/test-rint.c: New file.
1202
1203         Tests for module 'remainder'.
1204         * modules/remainder-tests: New file.
1205         * tests/test-remainder.c: New file.
1206
1207         Tests for module 'pow'.
1208         * modules/pow-tests: New file.
1209         * tests/test-pow.c: New file.
1210
1211         Tests for module 'nextafter'.
1212         * modules/nextafter-tests: New file.
1213         * tests/test-nextafter.c: New file.
1214
1215         Tests for module 'modf'.
1216         * modules/modf-tests: New file.
1217         * tests/test-modf.c: New file.
1218
1219         Tests for module 'logb'.
1220         * modules/logb-tests: New file.
1221         * tests/test-logb.c: New file.
1222
1223         Tests for module 'log1p'.
1224         * modules/log1p-tests: New file.
1225         * tests/test-log1p.c: New file.
1226
1227         Tests for module 'log10'.
1228         * modules/log10-tests: New file.
1229         * tests/test-log10.c: New file.
1230
1231         Tests for module 'log'.
1232         * modules/log-tests: New file.
1233         * tests/test-log.c: New file.
1234
1235         Tests for module 'lgamma'.
1236         * modules/lgamma-tests: New file.
1237         * tests/test-lgamma.c: New file.
1238
1239         Tests for module 'ldexp'.
1240         * modules/ldexp-tests: New file.
1241         * tests/test-ldexp.c: New file.
1242
1243         Tests for module 'jn'.
1244         * modules/jn-tests: New file.
1245         * tests/test-jn.c: New file.
1246
1247         Tests for module 'j1'.
1248         * modules/j1-tests: New file.
1249         * tests/test-j1.c: New file.
1250
1251         Tests for module 'j0'.
1252         * modules/j0-tests: New file.
1253         * tests/test-j0.c: New file.
1254
1255         Tests for module 'hypot'.
1256         * modules/hypot-tests: New file.
1257         * tests/test-hypot.c: New file.
1258
1259         Tests for module 'fmod'.
1260         * modules/fmod-tests: New file.
1261         * tests/test-fmod.c: New file.
1262
1263         Tests for module 'fabs'.
1264         * modules/fabs-tests: New file.
1265         * tests/test-fabs.c: New file.
1266
1267         Tests for module 'exp'.
1268         * modules/exp-tests: New file.
1269         * tests/test-exp.c: New file.
1270
1271         Tests for module 'erfc'.
1272         * modules/erfc-tests: New file.
1273         * tests/test-erfc.c: New file.
1274
1275         Tests for module 'erf'.
1276         * modules/erf-tests: New file.
1277         * tests/test-erf.c: New file.
1278
1279         Tests for module 'cosh'.
1280         * modules/cosh-tests: New file.
1281         * tests/test-cosh.c: New file.
1282
1283         Tests for module 'cos'.
1284         * modules/cos-tests: New file.
1285         * tests/test-cos.c: New file.
1286
1287         Tests for module 'copysign'.
1288         * modules/copysign-tests: New file.
1289         * tests/test-copysign.c: New file.
1290
1291         Tests for module 'cbrt'.
1292         * modules/cbrt-tests: New file.
1293         * tests/test-cbrt.c: New file.
1294
1295         Tests for module 'atan2'.
1296         * modules/atan2-tests: New file.
1297         * tests/test-atan2.c: New file.
1298
1299         Tests for module 'atan'.
1300         * modules/atan-tests: New file.
1301         * tests/test-atan.c: New file.
1302
1303         Tests for module 'asin'.
1304         * modules/asin-tests: New file.
1305         * tests/test-asin.c: New file.
1306
1307         Tests for module 'acos'.
1308         * modules/acos-tests: New file.
1309         * tests/test-acos.c: New file.
1310
1311 2010-01-24  Bruno Haible  <bruno@clisp.org>
1312
1313         Fix tests for common <math.h> functions.
1314         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1315         code snippet that references the function pointer, rather than merely
1316         calling the function. Substitute the FUNC_LIBM variable.
1317         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1318         * modules/acos (configure.ac): Likewise.
1319         * modules/asin (configure.ac): Likewise.
1320         * modules/atan (configure.ac): Likewise.
1321         * modules/atan2 (configure.ac): Likewise.
1322         * modules/cbrt (configure.ac): Likewise.
1323         * modules/copysign (configure.ac): Likewise.
1324         * modules/cos (configure.ac): Likewise.
1325         * modules/cosh (configure.ac): Likewise.
1326         * modules/erf (configure.ac): Likewise.
1327         * modules/erfc (configure.ac): Likewise.
1328         * modules/exp (configure.ac): Likewise.
1329         * modules/fabs (configure.ac): Likewise.
1330         * modules/fmod (configure.ac): Likewise.
1331         * modules/hypot (configure.ac): Likewise.
1332         * modules/j0 (configure.ac): Likewise.
1333         * modules/j1 (configure.ac): Likewise.
1334         * modules/jn (configure.ac): Likewise.
1335         * modules/ldexp (configure.ac): Likewise.
1336         * modules/lgamma (configure.ac): Likewise.
1337         * modules/log (configure.ac): Likewise.
1338         * modules/log10 (configure.ac): Likewise.
1339         * modules/log1p (configure.ac): Likewise.
1340         * modules/logb (configure.ac): Likewise.
1341         * modules/modf (configure.ac): Likewise.
1342         * modules/nextafter (configure.ac): Likewise.
1343         * modules/pow (configure.ac): Likewise.
1344         * modules/remainder (configure.ac): Likewise.
1345         * modules/rint (configure.ac): Likewise.
1346         * modules/sin (configure.ac): Likewise.
1347         * modules/sinh (configure.ac): Likewise.
1348         * modules/tan (configure.ac): Likewise.
1349         * modules/tanh (configure.ac): Likewise.
1350         * modules/y0 (configure.ac): Likewise.
1351         * modules/y1 (configure.ac): Likewise.
1352         * modules/yn (configure.ac): Likewise.
1353
1354 2010-01-24  Bruno Haible  <bruno@clisp.org>
1355
1356         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1357         * tests/test-acosl.c (x): New variable.
1358         (main): Store argument in x and fetch it from x.
1359         * tests/test-asinl.c (x): New variable.
1360         (main): Store argument in x and fetch it from x.
1361         * tests/test-atanl.c (x): New variable.
1362         (main): Store argument in x and fetch it from x.
1363         * tests/test-cosl.c (x): New variable.
1364         (main): Store argument in x and fetch it from x.
1365         * tests/test-expl.c (x): New variable.
1366         (main): Store argument in x and fetch it from x.
1367         * tests/test-logl.c (x): New variable.
1368         (main): Store argument in x and fetch it from x.
1369         * tests/test-sinl.c (x): New variable.
1370         (main): Store argument in x and fetch it from x.
1371         * tests/test-sqrtl.c (x): New variable.
1372         (main): Store argument in x and fetch it from x.
1373         * tests/test-tanl.c (x): New variable.
1374         (main): Store argument in x and fetch it from x.
1375
1376 2010-01-24  Bruno Haible  <bruno@clisp.org>
1377
1378         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1379         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1380         assignments to the initial TESTS_ENVIRONMENT.
1381         * doc/gnulib.texi (Unit test modules): Document it.
1382         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1383         TESTS_ENVIRONMENT.
1384         * modules/btowc-tests (Makefile.am): Likewise.
1385         * modules/c-stack-tests (Makefile.am): Likewise.
1386         * modules/c-strcase-tests (Makefile.am): Likewise.
1387         * modules/copy-file-tests (Makefile.am): Likewise.
1388         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1389         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1390         * modules/mbrtowc-tests (Makefile.am): Likewise.
1391         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1392         * modules/mbscasestr-tests (Makefile.am): Likewise.
1393         * modules/mbschr-tests (Makefile.am): Likewise.
1394         * modules/mbscspn-tests (Makefile.am): Likewise.
1395         * modules/mbsinit-tests (Makefile.am): Likewise.
1396         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1397         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1398         * modules/mbspbrk-tests (Makefile.am): Likewise.
1399         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1400         * modules/mbsrchr-tests (Makefile.am): Likewise.
1401         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1402         * modules/mbsspn-tests (Makefile.am): Likewise.
1403         * modules/mbsstr-tests (Makefile.am): Likewise.
1404         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1405         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1406         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1407         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1408         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1409         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1410         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1411         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1412         * modules/wcrtomb-tests (Makefile.am): Likewise.
1413         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1414         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1415         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1416         assignments from TESTS_ENVIRONMENT.
1417         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1418         augmentation.
1419         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1420         * modules/atexit-tests (Makefile.am): Likewise.
1421         * modules/binary-io-tests (Makefile.am): Likewise.
1422         * modules/closein-tests (Makefile.am): Likewise.
1423         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1424         * modules/exclude-tests (Makefile.am): Likewise.
1425         * modules/fflush-tests (Makefile.am): Likewise.
1426         * modules/fpending-tests (Makefile.am): Likewise.
1427         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1428         * modules/freadahead-tests (Makefile.am): Likewise.
1429         * modules/freadptr-tests (Makefile.am): Likewise.
1430         * modules/freadseek-tests (Makefile.am): Likewise.
1431         * modules/fseek-tests (Makefile.am): Likewise.
1432         * modules/fseeko-tests (Makefile.am): Likewise.
1433         * modules/ftell-tests (Makefile.am): Likewise.
1434         * modules/ftello-tests (Makefile.am): Likewise.
1435         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1436         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1437         * modules/lseek-tests (Makefile.am): Likewise.
1438         * modules/parse-duration-tests (Makefile.am): Likewise.
1439         * modules/perror-tests (Makefile.am): Likewise.
1440         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1441         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1442         * modules/pipe-tests (Makefile.am): Likewise.
1443         * modules/pread-tests (Makefile.am): Likewise.
1444         * modules/printf-posix-tests (Makefile.am): Likewise.
1445         * modules/select-tests (Makefile.am): Likewise.
1446         * modules/sigpipe-tests (Makefile.am): Likewise.
1447         * modules/tsearch-tests (Makefile.am): Likewise.
1448         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1449         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1450         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1451         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1452         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1453         * modules/version-etc-tests (Makefile.am): Likewise.
1454         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1455         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1456         * modules/xalloc-die-tests (Makefile.am): Likewise.
1457         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1458         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1459         * modules/xstrtol-tests (Makefile.am): Likewise.
1460         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1461         * modules/yesno-tests (Makefile.am): Likewise.
1462         Suggested by Jim Meyering.
1463
1464 2010-01-24  Bruno Haible  <bruno@clisp.org>
1465
1466         More documentation.
1467         * doc/gnulib.texi (Writing modules): New chapter.
1468         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1469         the new chapter.
1470
1471 2010-01-24  Jim Meyering  <meyering@redhat.com>
1472
1473         maint.mk: do not prepend "./" after filtering
1474         * top/maint.mk (_prepend_srcdir_prefix): New variable
1475         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1476         "./" when $(srcdir) is ".".
1477
1478         define STREQ(a,b) consistently, removing useless parentheses
1479         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1480         since the only risk is that "a" or "b" contains an unparenthesized
1481         comma, but if either did that, STREQ would have 3 or more arguments.
1482         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1483         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1484         * lib/hash-triple.c (STREQ): Likewise.
1485         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1486         * lib/getugroups.c (STREQ): Likewise.
1487
1488 2010-01-23  Jim Meyering  <meyering@redhat.com>
1489
1490         maint.mk: fix syntax-check in a non-srcdir build directory
1491         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1492         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1493
1494 2010-01-22  Jim Meyering  <meyering@redhat.com>
1495
1496         userspec: add unit tests
1497         * tests/test-userspec.c: New file.
1498         * modules/userspec-tests: Likewise.
1499
1500 2010-01-21  Jim Meyering  <meyering@redhat.com>
1501
1502         maint.mk: handle source file names containing "." robustly
1503         * top/maint.mk (_dot_escaped_srcdir): Define.
1504         (VC_LIST): Use it in LHS of sed substitution.
1505
1506 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1507
1508         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1509         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1510         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1511         from a non-srcdir build.
1512
1513 2010-01-20  Eric Blake  <ebb9@byu.net>
1514
1515         warn-on-use: use instead of link-warning
1516         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1517         * modules/unistd (Depends-on, Makefile.am): Likewise.
1518         * modules/arpa_inet (Depends-on): Replace link-warning with
1519         warn-on-use.
1520         (Makefile.am): Update rules accordingly.
1521         * modules/ctype (Depends-on, Makefile.am): Likewise.
1522         * modules/dirent (Depends-on, Makefile.am): Likewise.
1523         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1524         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1525         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1526         * modules/locale (Depends-on, Makefile.am): Likewise.
1527         * modules/math (Depends-on, Makefile.am): Likewise.
1528         * modules/search (Depends-on, Makefile.am): Likewise.
1529         * modules/signal (Depends-on, Makefile.am): Likewise.
1530         * modules/spawn (Depends-on, Makefile.am): Likewise.
1531         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1532         * modules/string (Depends-on, Makefile.am): Likewise.
1533         * modules/strings (Depends-on, Makefile.am): Likewise.
1534         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1535         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1536         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1537         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1538         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1539         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1540         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1541         * modules/wchar (Depends-on, Makefile.am): Likewise.
1542         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1543         should be poisoned.
1544         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1545         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1546         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1547         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1548         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1549         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1550         * m4/math_h.m4 (gl_MATH_H): Likewise.
1551         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1552         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1553         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1554         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1555         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1556         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1557         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1558         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1559         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1561         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1563         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1565         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1566         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1567         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1568         GL_LINK_WARNING.
1569         * lib/ctype.in.h: Likewise.
1570         * lib/dirent.in.h: Likewise.
1571         * lib/fcntl.in.h: Likewise.
1572         * lib/inttypes.in.h: Likewise.
1573         * lib/langinfo.in.h: Likewise.
1574         * lib/locale.in.h: Likewise.
1575         * lib/math.in.h: Likewise.
1576         * lib/search.in.h: Likewise.
1577         * lib/signal.in.h: Likewise.
1578         * lib/spawn.in.h: Likewise.
1579         * lib/stdio.in.h: Likewise.
1580         * lib/stdlib.in.h: Likewise.
1581         * lib/string.in.h: Likewise.
1582         * lib/strings.in.h: Likewise.
1583         * lib/sys_file.in.h: Likewise.
1584         * lib/sys_ioctl.in.h: Likewise.
1585         * lib/sys_select.in.h: Likewise.
1586         * lib/sys_socket.in.h: Likewise.
1587         * lib/sys_stat.in.h: Likewise.
1588         * lib/sys_times.in.h: Likewise.
1589         * lib/sys_utsname.in.h: Likewise.
1590         * lib/unistd.in.h: Likewise.
1591         * lib/wchar.in.h: Likewise.
1592
1593 2010-01-20  Bruno Haible  <bruno@clisp.org>
1594
1595         Avoid duplicate -lm.
1596         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1597         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1598         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1599         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1600         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1601         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1602         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1603         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1604         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1605         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1606         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1607         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1608         Reported by Paolo Bonzini.
1609
1610 2010-01-19  Bruno Haible  <bruno@clisp.org>
1611
1612         langinfo, nl_langinfo: Relicense under LGPLv2+.
1613         * modules/langinfo (License): Change to LGPLv2+.
1614         * modules/nl_langinfo (License): Likewise.
1615         Patch by David Lutterkort <lutter@redhat.com>.
1616
1617 2010-01-19  Bruno Haible  <bruno@clisp.org>
1618
1619         Avoid compilation error with cc on OSF/1 5.1.
1620         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1621         statement, not before.
1622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1623
1624 2010-01-18  Bruno Haible  <bruno@clisp.org>
1625
1626         Avoid a link error due to the __printf__ symbol.
1627         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1628         and 2.6.x.
1629         (__format__, __printf__): Remove definitions.
1630         * lib/argp-fmtstream.h: Likewise.
1631         * lib/argp.h: Likewise.
1632         * lib/error.h: Likewise.
1633         * lib/vasnprintf.h: Likewise.
1634         * lib/xprintf.h: Likewise.
1635         * lib/xvasprintf.h: Likewise.
1636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1637
1638 2010-01-18  Bruno Haible  <bruno@clisp.org>
1639
1640         Tests for module 'tanl'.
1641         * modules/tanl-tests: New file.
1642         * tests/test-tanl.c: New file.
1643
1644         Tests for module 'sqrtl'.
1645         * modules/sqrtl-tests: New file.
1646         * tests/test-sqrtl.c: New file.
1647
1648         Tests for module 'sinl'.
1649         * modules/sinl-tests: New file.
1650         * tests/test-sinl.c: New file.
1651
1652         Tests for module 'logl'.
1653         * modules/logl-tests: New file.
1654         * tests/test-logl.c: New file.
1655
1656         Tests for module 'expl'.
1657         * modules/expl-tests: New file.
1658         * tests/test-expl.c: New file.
1659
1660         Tests for module 'cosl'.
1661         * modules/cosl-tests: New file.
1662         * tests/test-cosl.c: New file.
1663
1664         Tests for module 'atanl'.
1665         * modules/atanl-tests: New file.
1666         * tests/test-atanl.c: New file.
1667
1668         Tests for module 'asinl'.
1669         * modules/asinl-tests: New file.
1670         * tests/test-asinl.c: New file.
1671
1672         Tests for module 'acosl'.
1673         * modules/acosl-tests: New file.
1674         * tests/test-acosl.c: New file.
1675
1676         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1677         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1678         tanl): Use the standard gnulib idiom.
1679         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1680         * lib/sinl.c: Likewise.
1681         * lib/tanl.c: Don't include trigl.c.
1682         (kernel_tanl): Make static.
1683         * lib/sincosl.c: Include trigl.h first.
1684         * lib/trigl.c: Likewise.
1685         * m4/acosl.m4: New file.
1686         * m4/asinl.m4: New file.
1687         * m4/atanl.m4: New file.
1688         * m4/cosl.m4: New file.
1689         * m4/expl.m4: New file.
1690         * m4/logl.m4: New file.
1691         * m4/sinl.m4: New file.
1692         * m4/sqrtl.m4: New file.
1693         * m4/tanl.m4: New file.
1694         * m4/mathl.m4: Remove file.
1695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1696         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1697         Don't initialize GNULIB_MATHL.
1698         * modules/acosl: New file.
1699         * modules/asinl: New file.
1700         * modules/atanl: New file.
1701         * modules/cosl: New file.
1702         * modules/expl: New file.
1703         * modules/logl: New file.
1704         * modules/sinl: New file.
1705         * modules/sqrtl: New file.
1706         * modules/tanl: New file.
1707         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1708         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1709         substitute GNULIB_MATHL.
1710         * modules/mathl: Rewritten.
1711         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1712         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1713         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1714         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1715         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1716         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1717         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1718         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1719         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1720
1721 2010-01-18  Bruno Haible  <bruno@clisp.org>
1722
1723         sqrt: Make gl_FUNC_SQRT requirable.
1724         * m4/sqrt.m4: New file.
1725         * modules/sqrt (Files): Add it.
1726         (configure.ac): Invoke gl_FUNC_SQRT.
1727
1728 2010-01-18  Bruno Haible  <bruno@clisp.org>
1729
1730         New modules for common <math.h> functions.
1731         * m4/mathfunc.m4: New file.
1732         * modules/acos: New file.
1733         * modules/asin: New file.
1734         * modules/atan: New file.
1735         * modules/atan2: New file.
1736         * modules/cbrt: New file.
1737         * modules/copysign: New file.
1738         * modules/cos: New file.
1739         * modules/cosh: New file.
1740         * modules/erf: New file.
1741         * modules/erfc: New file.
1742         * modules/exp: New file.
1743         * modules/fabs: New file.
1744         * modules/fmod: New file.
1745         * modules/hypot: New file.
1746         * modules/j0: New file.
1747         * modules/j1: New file.
1748         * modules/jn: New file.
1749         * modules/ldexp: New file.
1750         * modules/lgamma: New file.
1751         * modules/log: New file.
1752         * modules/log10: New file.
1753         * modules/log1p: New file.
1754         * modules/logb: New file.
1755         * modules/modf: New file.
1756         * modules/nextafter: New file.
1757         * modules/pow: New file.
1758         * modules/remainder: New file.
1759         * modules/rint: New file.
1760         * modules/sin: New file.
1761         * modules/sinh: New file.
1762         * modules/sqrt: New file.
1763         * modules/tan: New file.
1764         * modules/tanh: New file.
1765         * modules/y0: New file.
1766         * modules/y1: New file.
1767         * modules/yn: New file.
1768         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1769         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1770         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1771         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1772         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1773         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1774         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1775         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1776         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1777         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1778         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1779         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1780         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1781         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1782         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1783         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1784         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1785         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1786         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1787         * doc/posix-functions/log.texi: Mention the 'log' module.
1788         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1789         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1790         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1791         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1792         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1793         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1794         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1795         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1796         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1797         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1798         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1799         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1800         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1801         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1802         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1803         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1804
1805 2010-01-18  Jim Meyering  <meyering@redhat.com>
1806
1807         ignore-value: relax license to LGPLv2+
1808         * modules/ignore-value (License): Relax to LGPLv2+.
1809
1810         getdate: don't leak when TZ contains two or more '"'s
1811         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1812         double quote in TZ after the first one.
1813
1814         readtokens: do not leak internal token_lengths buffer
1815         * lib/readtokens.c (readtokens): Free the local, lengths,
1816         when the supplied "token_lengths" parameter is NULL.
1817
1818 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1819
1820         Fix a couple of missing LIBTHREAD link failures on AIX.
1821         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1822         $(LIBTHREAD).
1823         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1824
1825         Link test-poll against INET_PTON_LIB.
1826         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1827         for inet_pton on Solaris 10.
1828
1829 2010-01-17  Bruno Haible  <bruno@clisp.org>
1830
1831         unistdio/*-sprintf: Fix typo in module description.
1832         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1833         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1834         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1835         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1836         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1837         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1838         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1840
1841 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1842
1843         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1844         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1845         variables in shell case patterns, for AIX and HP-UX ksh.
1846
1847         Split large sed scripts, for HP-UX sed.
1848         * modules/stdio: Split sed scripts around 50 sed commands,
1849         to avoid HP-UX limit of 99 commands, in the near future.
1850         * modules/string: Likewise.
1851         * modules/unistd: Likewise.
1852
1853         gnulib-tool: avoid writing in the current directory.
1854         * gnulib-tool (func_emit_lib_Makefile_am)
1855         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1856         not in the current directory, so concurrent gnulib-tool
1857         instances do not interfere.
1858
1859 2010-01-16  Jim Meyering  <meyering@redhat.com>
1860
1861         doc: update users.txt
1862         * users.txt: Add grep.
1863         (diffutils, gzip): Update URLs.
1864
1865 2010-01-12  Bruno Haible  <bruno@clisp.org>
1866
1867         posix_spawn: Avoid test failure on Cygwin.
1868         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1869         characters.
1870         Reported by Simon Josefsson.
1871
1872 2010-01-12  Bruno Haible  <bruno@clisp.org>
1873
1874         * tests/test-cond.c (main): When skipping the test, show the reason.
1875
1876 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1877
1878         * lib/striconv.c (str_cd_iconv): Avoid if before free.
1879
1880 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1881
1882         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1883         VC_LIST_ALWAYS_EXCLUDE_REGEX.
1884
1885 2010-01-12  Eric Blake  <ebb9@byu.net>
1886
1887         build: guarantee AS_VAR_IF
1888         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1889         (gl_AS_VAR_IF): Move...
1890         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1891         Reported by Simon Josefsson.
1892
1893 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1894
1895         * lib/stdio.in.h: Fix typo.
1896
1897 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1898
1899         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1900         libgpg-error.
1901
1902 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1903
1904         * tests/test-xalloc-die.sh: Use $EXEEXT.
1905
1906 2010-01-12  Simon Josefsson  <simon@josefsson.org>
1907             Bruno Haible  <bruno@clisp.org>
1908
1909         getlogin, getlogin_r: Avoid test failure.
1910         * tests/test-getlogin.c: Include <stdio.h>.
1911         (main): Skip the test when the function fails because stdin is not a
1912         tty.
1913         * tests/test-getlogin_r.c: Include <stdio.h>.
1914         (main): Skip the test when the function fails because stdin is not a
1915         tty.
1916
1917 2010-01-11  Eric Blake  <ebb9@byu.net>
1918
1919         tests: avoid more large file warnings
1920         * tests/test-fflush.c: Avoid warning about ftell use.
1921         * tests/test-fseek.c: Avoid warning about fseek use.
1922
1923 2010-01-10  Bruno Haible  <bruno@clisp.org>
1924
1925         nproc: Work better on Linux when /proc and /sys are not mounted.
1926         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1927         as lower bound when, on glibc/Linux systems,
1928         sysconf (_SC_NPROCESSORS_CONF) returns 1.
1929         Suggested by Pádraig Brady <P@draigbrady.com>.
1930         Reported by Dmitry V. Levin <ldv@altlinux.org>.
1931
1932         nproc: Refactor.
1933         * lib/nproc.c (num_processors_via_affinity_mask): New function,
1934         extracted from num_processors.
1935         (num_processors): Call it.
1936
1937 2010-01-11  Jim Meyering  <meyering@redhat.com>
1938
1939         utimecmp: avoid new warning from upcoming gcc-4.5.0
1940         * lib/utimecmp.c (BILLION): Define using #define rather than an
1941         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1942
1943 2010-01-11  Eric Blake  <ebb9@byu.net>
1944
1945         math: add portability warnings for classification macros
1946         * modules/math (Depends-on): Add warn-on-use.
1947         (Makefile.am): Provide new substitutions.
1948         * m4/math_h.m4 (gl_MATH_H): Require inline.
1949         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1950         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1951         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1952         implement warnings.
1953
1954         unistd: warn on use of environ without module
1955         * modules/unistd (Depends-on): Add warn-on-use.
1956         (Makefile.am): Provide new substitutions.
1957         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1958         * lib/unistd.in.h (environ): Wrap with a warning helper function.
1959
1960         stdio: warn on suspicious uses
1961         * modules/stdio (Depends-on): Add warn-on-use.
1962         (Makefile.am): Provide new substitutions.
1963         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1964         fseeko.
1965         * lib/stdio.in.h (gets): Always warn on use.
1966         (fseek, ftell): Adjust when warnings are issued, and honor
1967         _GL_NO_LARGE_FILES as a way to silence the warning.
1968         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1969         any warning about large file offsets.
1970         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1971         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1972         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1973         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1974         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1975         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1976         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1977         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1978
1979         warn-on-use: new module
1980         * modules/warn-on-use: New file.
1981         * build-aux/warn-on-use.h: Likewise.
1982         * m4/warn-on-use.m4: Likewise.
1983         * MODULES.html.sh (Support for building): Mention it.
1984
1985 2010-01-10  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for module 'unistr/u32-strdup'.
1988         * modules/unistr/u32-strdup-tests: New file.
1989         * tests/unistr/test-u32-strdup.c: New file.
1990
1991         Tests for module 'unistr/u16-strdup'.
1992         * modules/unistr/u16-strdup-tests: New file.
1993         * tests/unistr/test-u16-strdup.c: New file.
1994
1995         Tests for module 'unistr/u8-strdup'.
1996         * modules/unistr/u8-strdup-tests: New file.
1997         * tests/unistr/test-u8-strdup.c: New file.
1998         * tests/unistr/test-strdup.h: New file.
1999
2000         Tests for module 'unistr/u32-strncmp'.
2001         * modules/unistr/u32-strncmp-tests: New file.
2002         * tests/unistr/test-u32-strncmp.c: New file.
2003
2004         Tests for module 'unistr/u16-strncmp'.
2005         * modules/unistr/u16-strncmp-tests: New file.
2006         * tests/unistr/test-u16-strncmp.c: New file.
2007
2008         Tests for module 'unistr/u8-strncmp'.
2009         * modules/unistr/u8-strncmp-tests: New file.
2010         * tests/unistr/test-u8-strncmp.c: New file.
2011         * tests/unistr/test-strncmp.h: New file.
2012
2013         Tests for module 'unistr/u32-strcoll'.
2014         * modules/unistr/u32-strcoll-tests: New file.
2015         * tests/unistr/test-u32-strcoll.c: New file.
2016
2017         Tests for module 'unistr/u16-strcoll'.
2018         * modules/unistr/u16-strcoll-tests: New file.
2019         * tests/unistr/test-u16-strcoll.c: New file.
2020
2021         Tests for module 'unistr/u8-strcoll'.
2022         * modules/unistr/u8-strcoll-tests: New file.
2023         * tests/unistr/test-u8-strcoll.c: New file.
2024
2025         Tests for module 'unistr/u32-strcmp'.
2026         * modules/unistr/u32-strcmp-tests: New file.
2027         * tests/unistr/test-u32-strcmp.c: New file.
2028         * tests/unistr/test-u32-strcmp.h: New file.
2029
2030         Tests for module 'unistr/u16-strcmp'.
2031         * modules/unistr/u16-strcmp-tests: New file.
2032         * tests/unistr/test-u16-strcmp.c: New file.
2033         * tests/unistr/test-u16-strcmp.h: New file.
2034
2035         Tests for module 'unistr/u8-strcmp'.
2036         * modules/unistr/u8-strcmp-tests: New file.
2037         * tests/unistr/test-u8-strcmp.c: New file.
2038         * tests/unistr/test-u8-strcmp.h: New file.
2039         * tests/unistr/test-strcmp.h: New file.
2040
2041         Tests for module 'unistr/u32-strncat'.
2042         * modules/unistr/u32-strncat-tests: New file.
2043         * tests/unistr/test-u32-strncat.c: New file.
2044
2045         Tests for module 'unistr/u16-strncat'.
2046         * modules/unistr/u16-strncat-tests: New file.
2047         * tests/unistr/test-u16-strncat.c: New file.
2048
2049         Tests for module 'unistr/u8-strncat'.
2050         * modules/unistr/u8-strncat-tests: New file.
2051         * tests/unistr/test-u8-strncat.c: New file.
2052         * tests/unistr/test-strncat.h: New file.
2053
2054         Tests for module 'unistr/u32-strcat'.
2055         * modules/unistr/u32-strcat-tests: New file.
2056         * tests/unistr/test-u32-strcat.c: New file.
2057
2058         Tests for module 'unistr/u16-strcat'.
2059         * modules/unistr/u16-strcat-tests: New file.
2060         * tests/unistr/test-u16-strcat.c: New file.
2061
2062         Tests for module 'unistr/u8-strcat'.
2063         * modules/unistr/u8-strcat-tests: New file.
2064         * tests/unistr/test-u8-strcat.c: New file.
2065         * tests/unistr/test-strcat.h: New file.
2066
2067         Tests for module 'unistr/u32-stpncpy'.
2068         * modules/unistr/u32-stpncpy-tests: New file.
2069         * tests/unistr/test-u32-stpncpy.c: New file.
2070
2071         Tests for module 'unistr/u16-stpncpy'.
2072         * modules/unistr/u16-stpncpy-tests: New file.
2073         * tests/unistr/test-u16-stpncpy.c: New file.
2074
2075         Tests for module 'unistr/u8-stpncpy'.
2076         * modules/unistr/u8-stpncpy-tests: New file.
2077         * tests/unistr/test-u8-stpncpy.c: New file.
2078         * tests/unistr/test-stpncpy.h: New file.
2079
2080         Tests for module 'unistr/u32-strncpy'.
2081         * modules/unistr/u32-strncpy-tests: New file.
2082         * tests/unistr/test-u32-strncpy.c: New file.
2083
2084         Tests for module 'unistr/u16-strncpy'.
2085         * modules/unistr/u16-strncpy-tests: New file.
2086         * tests/unistr/test-u16-strncpy.c: New file.
2087
2088         Tests for module 'unistr/u8-strncpy'.
2089         * modules/unistr/u8-strncpy-tests: New file.
2090         * tests/unistr/test-u8-strncpy.c: New file.
2091         * tests/unistr/test-strncpy.h: New file.
2092
2093         Tests for module 'unistr/u32-stpcpy'.
2094         * modules/unistr/u32-stpcpy-tests: New file.
2095         * tests/unistr/test-u32-stpcpy.c: New file.
2096
2097         Tests for module 'unistr/u16-stpcpy'.
2098         * modules/unistr/u16-stpcpy-tests: New file.
2099         * tests/unistr/test-u16-stpcpy.c: New file.
2100
2101         Tests for module 'unistr/u8-stpcpy'.
2102         * modules/unistr/u8-stpcpy-tests: New file.
2103         * tests/unistr/test-u8-stpcpy.c: New file.
2104         * tests/unistr/test-stpcpy.h: New file.
2105
2106         Tests for module 'unistr/u32-strcpy'.
2107         * modules/unistr/u32-strcpy-tests: New file.
2108         * tests/unistr/test-u32-strcpy.c: New file.
2109
2110         Tests for module 'unistr/u16-strcpy'.
2111         * modules/unistr/u16-strcpy-tests: New file.
2112         * tests/unistr/test-u16-strcpy.c: New file.
2113
2114         Tests for module 'unistr/u8-strcpy'.
2115         * modules/unistr/u8-strcpy-tests: New file.
2116         * tests/unistr/test-u8-strcpy.c: New file.
2117         * tests/unistr/test-strcpy.h: New file.
2118
2119         Tests for module 'unistr/u32-strnlen'.
2120         * modules/unistr/u32-strnlen-tests: New file.
2121         * tests/unistr/test-u32-strnlen.c: New file.
2122
2123         Tests for module 'unistr/u16-strnlen'.
2124         * modules/unistr/u16-strnlen-tests: New file.
2125         * tests/unistr/test-u16-strnlen.c: New file.
2126
2127         Tests for module 'unistr/u8-strnlen'.
2128         * modules/unistr/u8-strnlen-tests: New file.
2129         * tests/unistr/test-u8-strnlen.c: New file.
2130         * tests/unistr/test-strnlen.h: New file.
2131
2132         Tests for module 'unistr/u32-strlen'.
2133         * modules/unistr/u32-strlen-tests: New file.
2134         * tests/unistr/test-u32-strlen.c: New file.
2135
2136         Tests for module 'unistr/u16-strlen'.
2137         * modules/unistr/u16-strlen-tests: New file.
2138         * tests/unistr/test-u16-strlen.c: New file.
2139
2140         Tests for module 'unistr/u8-strlen'.
2141         * modules/unistr/u8-strlen-tests: New file.
2142         * tests/unistr/test-u8-strlen.c: New file.
2143
2144         Tests for module 'unistr/u32-prev'.
2145         * modules/unistr/u32-prev-tests: New file.
2146         * tests/unistr/test-u32-prev.c: New file.
2147
2148         Tests for module 'unistr/u16-prev'.
2149         * modules/unistr/u16-prev-tests: New file.
2150         * tests/unistr/test-u16-prev.c: New file.
2151
2152         Tests for module 'unistr/u8-prev'.
2153         * modules/unistr/u8-prev-tests: New file.
2154         * tests/unistr/test-u8-prev.c: New file.
2155
2156         Tests for module 'unistr/u32-next'.
2157         * modules/unistr/u32-next-tests: New file.
2158         * tests/unistr/test-u32-next.c: New file.
2159
2160         Tests for module 'unistr/u16-next'.
2161         * modules/unistr/u16-next-tests: New file.
2162         * tests/unistr/test-u16-next.c: New file.
2163
2164         Tests for module 'unistr/u8-next'.
2165         * modules/unistr/u8-next-tests: New file.
2166         * tests/unistr/test-u8-next.c: New file.
2167
2168         Tests for module 'unistr/u32-strmbtouc'.
2169         * modules/unistr/u32-strmbtouc-tests: New file.
2170         * tests/unistr/test-u32-strmbtouc.c: New file.
2171
2172         Tests for module 'unistr/u16-strmbtouc'.
2173         * modules/unistr/u16-strmbtouc-tests: New file.
2174         * tests/unistr/test-u16-strmbtouc.c: New file.
2175
2176         Tests for module 'unistr/u8-strmbtouc'.
2177         * modules/unistr/u8-strmbtouc-tests: New file.
2178         * tests/unistr/test-u8-strmbtouc.c: New file.
2179
2180         Tests for module 'unistr/u32-strmblen'.
2181         * modules/unistr/u32-strmblen-tests: New file.
2182         * tests/unistr/test-u32-strmblen.c: New file.
2183
2184         Tests for module 'unistr/u16-strmblen'.
2185         * modules/unistr/u16-strmblen-tests: New file.
2186         * tests/unistr/test-u16-strmblen.c: New file.
2187
2188         Tests for module 'unistr/u8-strmblen'.
2189         * modules/unistr/u8-strmblen-tests: New file.
2190         * tests/unistr/test-u8-strmblen.c: New file.
2191
2192         Tests for module 'unistr/u32-cpy-alloc'.
2193         * modules/unistr/u32-cpy-alloc-tests: New file.
2194         * tests/unistr/test-u32-cpy-alloc.c: New file.
2195
2196         Tests for module 'unistr/u16-cpy-alloc'.
2197         * modules/unistr/u16-cpy-alloc-tests: New file.
2198         * tests/unistr/test-u16-cpy-alloc.c: New file.
2199
2200         Tests for module 'unistr/u8-cpy-alloc'.
2201         * modules/unistr/u8-cpy-alloc-tests: New file.
2202         * tests/unistr/test-u8-cpy-alloc.c: New file.
2203         * tests/unistr/test-cpy-alloc.h: New file.
2204
2205         Tests for module 'unistr/u32-mbsnlen'.
2206         * modules/unistr/u32-mbsnlen-tests: New file.
2207         * tests/unistr/test-u32-mbsnlen.c: New file.
2208
2209         Tests for module 'unistr/u16-mbsnlen'.
2210         * modules/unistr/u16-mbsnlen-tests: New file.
2211         * tests/unistr/test-u16-mbsnlen.c: New file.
2212
2213         Tests for module 'unistr/u8-mbsnlen'.
2214         * modules/unistr/u8-mbsnlen-tests: New file.
2215         * tests/unistr/test-u8-mbsnlen.c: New file.
2216
2217         Tests for module 'unistr/u32-chr'.
2218         * modules/unistr/u32-chr-tests: New file.
2219         * tests/unistr/test-u32-chr.c: New file.
2220
2221         Tests for module 'unistr/u16-chr'.
2222         * modules/unistr/u16-chr-tests: New file.
2223         * tests/unistr/test-u16-chr.c: New file.
2224
2225         Tests for module 'unistr/u8-chr'.
2226         * modules/unistr/u8-chr-tests: New file.
2227         * tests/unistr/test-u8-chr.c: New file.
2228         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2229
2230         Tests for module 'unistr/u32-cmp2'.
2231         * modules/unistr/u32-cmp2-tests: New file.
2232         * tests/unistr/test-u32-cmp2.c: New file.
2233
2234         Tests for module 'unistr/u16-cmp2'.
2235         * modules/unistr/u16-cmp2-tests: New file.
2236         * tests/unistr/test-u16-cmp2.c: New file.
2237
2238         Tests for module 'unistr/u8-cmp2'.
2239         * modules/unistr/u8-cmp2-tests: New file.
2240         * tests/unistr/test-u8-cmp2.c: New file.
2241         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2242
2243         Tests for module 'unistr/u32-cmp'.
2244         * modules/unistr/u32-cmp-tests: New file.
2245         * tests/unistr/test-u32-cmp.c: New file.
2246
2247         Tests for module 'unistr/u16-cmp'.
2248         * modules/unistr/u16-cmp-tests: New file.
2249         * tests/unistr/test-u16-cmp.c: New file.
2250
2251         Tests for module 'unistr/u8-cmp'.
2252         * modules/unistr/u8-cmp-tests: New file.
2253         * tests/unistr/test-u8-cmp.c: New file.
2254         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2255
2256         Tests for module 'unistr/u32-set'.
2257         * modules/unistr/u32-set-tests: New file.
2258         * tests/unistr/test-u32-set.c: New file.
2259
2260         Tests for module 'unistr/u16-set'.
2261         * modules/unistr/u16-set-tests: New file.
2262         * tests/unistr/test-u16-set.c: New file.
2263
2264         Tests for module 'unistr/u8-set'.
2265         * modules/unistr/u8-set-tests: New file.
2266         * tests/unistr/test-u8-set.c: New file.
2267         * tests/unistr/test-set.h: New file.
2268
2269         Tests for module 'unistr/u32-move'.
2270         * modules/unistr/u32-move-tests: New file.
2271         * tests/unistr/test-u32-move.c: New file.
2272
2273         Tests for module 'unistr/u16-move'.
2274         * modules/unistr/u16-move-tests: New file.
2275         * tests/unistr/test-u16-move.c: New file.
2276
2277         Tests for module 'unistr/u8-move'.
2278         * modules/unistr/u8-move-tests: New file.
2279         * tests/unistr/test-u8-move.c: New file.
2280         * tests/unistr/test-move.h: New file.
2281
2282         Tests for module 'unistr/u32-cpy'.
2283         * modules/unistr/u32-cpy-tests: New file.
2284         * tests/unistr/test-u32-cpy.c: New file.
2285
2286         Tests for module 'unistr/u16-cpy'.
2287         * modules/unistr/u16-cpy-tests: New file.
2288         * tests/unistr/test-u16-cpy.c: New file.
2289
2290         Tests for module 'unistr/u8-cpy'.
2291         * modules/unistr/u8-cpy-tests: New file.
2292         * tests/unistr/test-u8-cpy.c: New file.
2293         * tests/unistr/test-cpy.h: New file.
2294
2295 2010-01-09  Bruno Haible  <bruno@clisp.org>
2296
2297         Tests for module 'unistr/u32-uctomb'.
2298         * modules/unistr/u32-uctomb-tests: New file.
2299         * tests/unistr/test-u32-uctomb.c: New file.
2300
2301         Tests for module 'unistr/u16-uctomb'.
2302         * modules/unistr/u16-uctomb-tests: New file.
2303         * tests/unistr/test-u16-uctomb.c: New file.
2304
2305         Tests for module 'unistr/u8-uctomb'.
2306         * modules/unistr/u8-uctomb-tests: New file.
2307         * tests/unistr/test-u8-uctomb.c: New file.
2308
2309         Tests for module 'unistr/u32-mbtoucr'.
2310         * modules/unistr/u32-mbtoucr-tests: New file.
2311         * tests/unistr/test-u32-mbtoucr.c: New file.
2312
2313         Tests for module 'unistr/u16-mbtoucr'.
2314         * modules/unistr/u16-mbtoucr-tests: New file.
2315         * tests/unistr/test-u16-mbtoucr.c: New file.
2316
2317         Tests for module 'unistr/u8-mbtoucr'.
2318         * modules/unistr/u8-mbtoucr-tests: New file.
2319         * tests/unistr/test-u8-mbtoucr.c: New file.
2320
2321         Tests for module 'unistr/u32-mbtouc'.
2322         * modules/unistr/u32-mbtouc-tests: New file.
2323         * tests/unistr/test-u32-mbtouc.c: New file.
2324
2325         Tests for module 'unistr/u16-mbtouc'.
2326         * modules/unistr/u16-mbtouc-tests: New file.
2327         * tests/unistr/test-u16-mbtouc.c: New file.
2328
2329         Tests for module 'unistr/u8-mbtouc'.
2330         * modules/unistr/u8-mbtouc-tests: New file.
2331         * tests/unistr/test-u8-mbtouc.c: New file.
2332
2333         Tests for module 'unistr/u32-mbtouc-unsafe'.
2334         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2335         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2336         * tests/unistr/test-u32-mbtouc.h: New file.
2337
2338         Tests for module 'unistr/u16-mbtouc-unsafe'.
2339         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2340         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2341         * tests/unistr/test-u16-mbtouc.h: New file.
2342
2343         Tests for module 'unistr/u8-mbtouc-unsafe'.
2344         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2345         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2346         * tests/unistr/test-u8-mbtouc.h: New file.
2347
2348         Tests for module 'unistr/u32-mblen'.
2349         * modules/unistr/u32-mblen-tests: New file.
2350         * tests/unistr/test-u32-mblen.c: New file.
2351
2352         Tests for module 'unistr/u16-mblen'.
2353         * modules/unistr/u16-mblen-tests: New file.
2354         * tests/unistr/test-u16-mblen.c: New file.
2355
2356         Tests for module 'unistr/u8-mblen'.
2357         * modules/unistr/u8-mblen-tests: New file.
2358         * tests/unistr/test-u8-mblen.c: New file.
2359
2360         Tests for module 'unistr/u32-to-u16'.
2361         * modules/unistr/u32-to-u16-tests: New file.
2362         * tests/unistr/test-u32-to-u16.c: New file.
2363
2364         Tests for module 'unistr/u32-to-u8'.
2365         * modules/unistr/u32-to-u8-tests: New file.
2366         * tests/unistr/test-u32-to-u8.c: New file.
2367
2368         Tests for module 'unistr/u16-to-u32'.
2369         * modules/unistr/u16-to-u32-tests: New file.
2370         * tests/unistr/test-u16-to-u32.c: New file.
2371
2372         Tests for module 'unistr/u16-to-u8'.
2373         * modules/unistr/u16-to-u8-tests: New file.
2374         * tests/unistr/test-u16-to-u8.c: New file.
2375
2376         Tests for module 'unistr/u8-to-u32'.
2377         * modules/unistr/u8-to-u32-tests: New file.
2378         * tests/unistr/test-u8-to-u32.c: New file.
2379
2380         Tests for module 'unistr/u8-to-u16'.
2381         * modules/unistr/u8-to-u16-tests: New file.
2382         * tests/unistr/test-u8-to-u16.c: New file.
2383
2384         Tests for module 'unistr/u32-check'.
2385         * modules/unistr/u32-check-tests: New file.
2386         * tests/unistr/test-u32-check.c: New file.
2387
2388         Tests for module 'unistr/u16-check'.
2389         * modules/unistr/u16-check-tests: New file.
2390         * tests/unistr/test-u16-check.c: New file.
2391
2392         Tests for module 'unistr/u8-check'.
2393         * modules/unistr/u8-check-tests: New file.
2394         * tests/unistr/test-u8-check.c: New file.
2395
2396         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2397         (category_equals): New function.
2398         (main): Add more tests.
2399         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2400
2401         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2402
2403 2010-01-10  Bruno Haible  <bruno@clisp.org>
2404
2405         unistr/u*-strcoll: Try harder to distinguish different strings.
2406         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2407         compare s1 and s2 to see if they are different.
2408
2409 2010-01-10  Bruno Haible  <bruno@clisp.org>
2410
2411         unistr/u*-stpncpy: Fix the return value.
2412         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2413         description of the return value consistent with stpncpy in glibc.
2414         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2415         written non-NUL unit.
2416
2417 2010-01-10  Bruno Haible  <bruno@clisp.org>
2418
2419         unistr/u*-next: Add missing dependencies.
2420         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2421         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2422         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2423
2424 2010-01-10  Bruno Haible  <bruno@clisp.org>
2425
2426         unistr/u8-mbsnlen: Fix return value for incomplete character.
2427         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2428         u8_mblen.
2429         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2430         Remove unistr/u8-mblen.
2431         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2432         u16_mblen.
2433         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2434         Remove unistr/u16-mblen.
2435
2436 2010-01-10  Bruno Haible  <bruno@clisp.org>
2437
2438         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2439         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2440         Reported by Brian Gough <bjg@gnu.org> and
2441         Chris Clayton <chris2553@googlemail.com> via
2442         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2443
2444 2010-01-09  Bruno Haible  <bruno@clisp.org>
2445
2446         unistr/u16-to-u32: Reject invalid input.
2447         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2448         u16_mbtouc.
2449         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2450         Remove unistr/u16-mbtouc.
2451
2452         unistr/u16-to-u8: Reject invalid input.
2453         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2454         u16_mbtouc.
2455         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2456         Remove unistr/u16-mbtouc.
2457
2458         unistr/u8-to-u32: Reject invalid input.
2459         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2460         u8_mbtouc.
2461         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2462         Remove unistr/u8-mbtouc.
2463
2464         unistr/u8-to-u16: Reject invalid input.
2465         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2466         u8_mbtouc.
2467         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2468         Remove unistr/u8-mbtouc.
2469
2470 2010-01-09  Bruno Haible  <bruno@clisp.org>
2471
2472         Tests for module 'getlogin'.
2473         * modules/getlogin-tests: New file.
2474         * tests/test-getlogin.c: New file.
2475
2476         New module 'getlogin'.
2477         * lib/unistd.in.h (getlogin): New declaration.
2478         * lib/getlogin.c: New file.
2479         * m4/getlogin.m4: New file.
2480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2481         HAVE_GETLOGIN.
2482         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2483         HAVE_GETLOGIN.
2484         * modules/getlogin: New file.
2485         * doc/posix-functions/getlogin.texi: Mention the new module.
2486         Reported by John W. Eaton <jwe@gnu.org>.
2487
2488 2010-01-09  Bruno Haible  <bruno@clisp.org>
2489
2490         getlogin_r: Support for native Windows.
2491         * lib/getlogin_r.c: Include <windows.h>
2492         (getlogin_r): Implement for native Windows.
2493         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2494         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2495         via John W. Eaton <jwe@gnu.org>.
2496
2497 2010-01-09  Bruno Haible  <bruno@clisp.org>
2498
2499         getlogin_r: Small fixes.
2500         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2501         succeeds.
2502         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2503         before testing whether getlogin_r is declared. No need to set
2504         HAVE_DECL_GETLOGIN_R to 1.
2505         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2506
2507 2010-01-09  Bruno Haible  <bruno@clisp.org>
2508
2509         * lib/unistd.in.h (getlogin_r): Add comment.
2510
2511 2010-01-09  Bruno Haible  <bruno@clisp.org>
2512
2513         Tests for module 'getlogin_r'.
2514         * modules/getlogin_r-tests: New file.
2515         * tests/test-getlogin_r.c: New file.
2516
2517 2010-01-09  Jim Meyering  <meyering@redhat.com>
2518
2519         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2520         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2521         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2522
2523 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2524
2525         * lib/dup2.c (rpl_dup2): Improve comment.
2526
2527 2010-01-08  Eric Blake  <ebb9@byu.net>
2528
2529         maint.mk: allow packages to add makefile @@ exceptions
2530         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2531         (sc_makefile_check): Rename...
2532         (sc_makefile_at_at_check): ...to this, and use hook.
2533
2534         dup2: work around mingw bug
2535         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2536         Reported by Simon Josefsson.
2537
2538 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2539
2540         glob: Fix C++ compilation.
2541         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2542         C++.
2543
2544 2010-01-07  Bruno Haible  <bruno@clisp.org>
2545
2546         Fix indentation of wctype.in.h, broken since 2007-01-06.
2547         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2548
2549 2010-01-07  Bruno Haible  <bruno@clisp.org>
2550
2551         mbslen: Avoid collision with system function.
2552         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2553         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2554         * m4/mbslen.m4: New file.
2555         * modules/mbslen (Files): Add it.
2556         (configure.ac): Invoke gl_MBSLEN.
2557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2558         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2559         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2560         via Ian Beckwith <ianb@erislabs.net>.
2561
2562 2010-01-07  Bruno Haible  <bruno@clisp.org>
2563
2564         dirent: Document the last fix.
2565         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2566
2567 2010-01-07  Bruno Haible  <bruno@clisp.org>
2568
2569         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2570         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2571         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2572         va_list are defined.
2573         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2574         Reported by Eric Blake.
2575
2576 2010-01-07  Bruno Haible  <bruno@clisp.org>
2577
2578         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2579         * modules/xlist (Depends-on): Add 'list',
2580         * modules/xoset (Depends-on): Add 'oset'.
2581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2582
2583 2010-01-07  Bruno Haible  <bruno@clisp.org>
2584
2585         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2586         * doc/posix-functions/strncasecmp.texi: Likewise.
2587
2588 2010-01-07  Bruno Haible  <bruno@clisp.org>
2589
2590         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2591
2592 2010-01-07  John W. Eaton  <jwe@octave.org>
2593
2594         wctype: allow C++ use
2595         * lib/wctype.in.h: Add extern "C" block for C++.
2596
2597 2010-01-06  Eric Blake  <ebb9@byu.net>
2598
2599         maint.mk: detect incorrect GFDL usage
2600         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2601
2602 2010-01-06  Jim Meyering  <meyering@redhat.com>
2603         and Eric Blake  <ebb9@byu.net>
2604
2605         maint.mk: ignore multi-line copyright in NEWS
2606         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2607
2608 2010-01-06  Eric Blake  <ebb9@byu.net>
2609
2610         select: add missing dependency
2611         * modules/select-tests (Depends-on): Move sockets dependency...
2612         * modules/select (Depends-on): ...here.
2613         Reported by Ian Beckwith.
2614
2615         doc: regenerate INSTALL
2616         * doc/INSTALL: Reflect recent autoconf update.
2617         * doc/INSTALL.ISO: Likewise.
2618         * doc/INSTALL.UTF-8: Likewise.
2619
2620         pread: fix compilation on glibc
2621         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2622         Reported by Ralf Wildenhues.
2623
2624         dirent: fix test failure
2625         * lib/dirent.in.h (includes): Guarantee ino_t.
2626         Reported by Ralf Wildenhues.
2627
2628 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2629
2630         linkat, renameat: avoid bad free
2631         * lib/at-func2.c (at_func2): Fix typo.
2632         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2633
2634 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2635
2636         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2637         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2638         to avoid failure of symlink test later.
2639
2640 2010-01-06  Eric Blake  <ebb9@byu.net>
2641
2642         stdio, unistd: guarantee ssize_t
2643         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2644         2008 are exposed when needed.
2645         * lib/stdio.in.h (includes): Likewise.
2646         Reported by Ralf Wildenhues.
2647
2648 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2649
2650         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2651         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2652         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2653
2654 2010-01-06  Jim Meyering  <meyering@redhat.com>
2655
2656         readtokens: this module *does* require xalloc.h
2657         It uses only functions that were omitted by the old syntax-check rule.
2658         * lib/readtokens.c: Include "xalloc.h" once again.
2659         * modules/readtokens (Depends-on): Add xalloc.
2660         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2661
2662 2010-01-05  Eric Blake  <ebb9@byu.net>
2663
2664         maint: support 'make announcement' from a VPATH build
2665         * top/maint.mk (announcement): Look for correct NEWS file.
2666
2667 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2668
2669         utimens (fdutimens): ignore a negative FD, per contract
2670         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2671         when we have a valid file descriptor.  Otherwise, using a brand
2672         new glibc (with just-patched futimens that now fails with EBADF)
2673         would cause this function to fail with ENOSYS.
2674         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2675         See also http://bugzilla.redhat.com/552320.
2676
2677 2010-01-05  Eric Blake  <ebb9@byu.net>
2678
2679         strcase: document what it provides
2680         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2681         gnulib module.
2682         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2683         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2684
2685 2010-01-05  Jim Meyering  <meyering@redhat.com>
2686
2687         maint: remove useless inclusions of "xalloc.h"
2688         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2689         * lib/readtokens.c: Likewise.
2690         * lib/same.c: Likewise.
2691         * modules/getloadavg (Depends-on): Remove xalloc.
2692         * modules/readtokens: Likewise.
2693         * modules/same: Likewise.
2694
2695         maint.mk: include 4 more function names in alloca.h-checking regexp
2696         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2697         regexp.  Before, we would give a false-positive (saying alloca.h
2698         is included unnecessarily) when the only uses involved omitted symbols.
2699
2700         xalloc.h: use consistent formatting
2701         * lib/xalloc.h: Move declarations to start in the first column.
2702
2703 2010-01-05  Eric Blake  <ebb9@byu.net>
2704
2705         mkdir: avoid xalloc
2706         * lib/mkdir.c (includes): Drop unused header.
2707         Reported by John W. Eaton.
2708
2709 2010-01-04  Jim Meyering  <meyering@redhat.com>
2710
2711         nl_langinfo: avoid configure-time syntax error
2712         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2713         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2714         the empty string.  Don't let that provoke a shell syntax error.
2715
2716         regcomp, regexec, fnmatch: avoid array bounds read error
2717         * lib/regcomp.c (build_equiv_class): From glibc:
2718         Use only the low 24 bits of a findidx return value as an index
2719         into the weights array.  Patch by Ulrich Drepper:
2720         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2721         * lib/regexec.c (check_node_accept_bytes): Likewise.
2722         * lib/fnmatch_loop.c (FCT): Likewise.
2723
2724         regcomp: skip collseq lookup when there are no rules
2725         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2726         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2727
2728         regcomp: recognize ill-formed { } expressions
2729         * lib/regcomp.c (parse_dup_op): From glibc:
2730         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2731
2732         regcomp: fix typo in comment
2733         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2734         s/satisfy/satisfies/.
2735
2736         regcomp: sync from glibc: remove dead store
2737         * lib/regcomp.c (duplicate_node_closure): Remove useless
2738         search_duplicated_node call and dead store.
2739
2740         regcomp: sync from glibc; always use nl_langinfo
2741         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2742         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2743         * modules/regex (Depends-on): Add nl_langinfo.
2744
2745 2010-01-04  Eric Blake  <ebb9@byu.net>
2746
2747         fdopendir: fix configure test
2748         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2749
2750 2010-01-01  Bruno Haible  <bruno@clisp.org>
2751
2752         wchar: Remove unused configure check.
2753         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2754
2755 2010-01-01  Eric Blake  <ebb9@byu.net>
2756
2757         headers: make check of system header explicit
2758         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2759         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2760         ourselves.
2761         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2763         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2764         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2765         internals.
2766         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2767         missing.
2768         Suggested by Bruno Haible.
2769
2770 2010-01-01  Jim Meyering  <meyering@redhat.com>
2771
2772         ChangeLog: tweak to eliminate unnecessary copyright line
2773         * ChangeLog: Remove a copyright line that was mistakenly updated
2774         by today's update-copyright run.  Reported by Eric Blake.
2775
2776         test-update-copyright: don't let envvar setting cause test failure
2777         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2778
2779 2010-01-01  Bruno Haible  <bruno@clisp.org>
2780
2781         localename: Avoid gcc warning.
2782         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2783         function if it is not used.
2784
2785 2010-01-01  Jim Meyering  <meyering@redhat.com>
2786
2787         update nearly all FSF copyright year lists to include 2010
2788         Use the same procedure as for 2009, outlined in
2789         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2790
2791         version-etc: set COPYRIGHT_YEAR to 2010
2792         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2793
2794 2009-12-31  Eric Blake  <ebb9@byu.net>
2795
2796         doc: correct availability of cygwin 1.5.x getopt
2797         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2798         variables.
2799         * doc/posix-functions/opterr.texi (opterr): Likewise.
2800         * doc/posix-functions/optind.texi (optind): Likewise.
2801         * doc/posix-functions/optopt.texi (optopt): Likewise.
2802         * doc/posix-functions/tzname.texi (tzname): Likewise.
2803
2804         openat: update maintainer
2805         * modules/openat (Maintainer): Add myself.
2806
2807         utimens: avoid shadowing warning
2808         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2809         buffers into one, to avoid shadowing, as well as avoiding a
2810         redundant stat.
2811         Reported by Jim Meyering.
2812
2813         test-dup2: avoid compiler warning
2814         * tests/test-dup2.c (is_inheritable): Only define if used.
2815
2816 2010-01-01  Bruno Haible  <bruno@clisp.org>
2817
2818         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2819         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2820         defined, use wctomb instead of wcrtomb.
2821
2822 2010-01-01  Bruno Haible  <bruno@clisp.org>
2823
2824         iconv: Reject native Solaris iconv.
2825         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2826         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2827
2828 2009-12-31  Bruno Haible  <bruno@clisp.org>
2829
2830         * tests/test-signal.c (main): Remove test of 'SIG'.
2831
2832 2009-12-31  Bruno Haible  <bruno@clisp.org>
2833
2834         spawn: Fix incomplete fix.
2835         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2836         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2837         warnings for GNULIB_POSIXCHECK again.
2838         Reported by Eric Blake.
2839
2840 2009-12-31  Bruno Haible  <bruno@clisp.org>
2841
2842         Avoid namespace pollution on glibc systems.
2843         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2844         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2845         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2846         glibc systems.
2847
2848 2009-12-31  Bruno Haible  <bruno@clisp.org>
2849
2850         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2851         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2852         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2853         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2854         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2855         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2856         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2857
2858 2009-12-31  Bruno Haible  <bruno@clisp.org>
2859
2860         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2861         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2862         afterwards.
2863
2864 2009-12-31  Bruno Haible  <bruno@clisp.org>
2865
2866         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2867         SYS_UTSNAME_H.
2868
2869 2009-12-31  Bruno Haible  <bruno@clisp.org>
2870
2871         spawn: Fix misapplied patch.
2872         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2873         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2874         warnings for GNULIB_POSIXCHECK.
2875
2876 2009-12-31  Bruno Haible  <bruno@clisp.org>
2877
2878         times: Update after sys_times changed.
2879         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2880         * modules/times (Files): Add it.
2881         (configure.ac): Invoke gl_FUNC_TIMES.
2882
2883 2009-12-31  Bruno Haible  <bruno@clisp.org>
2884
2885         Use AC_C_INLINE where necessary.
2886         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2887         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2888         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2889         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2890         * m4/mbfile.m4 (gl_MBFILE): Likewise.
2891         * m4/mbiter.m4 (gl_MBITER): Likewise.
2892         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2893         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2894         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2895         * modules/u64 (configure.ac): Likewise.
2896
2897 2009-12-31  Bruno Haible  <bruno@clisp.org>
2898
2899         Use AC_C_INLINE instead of module 'inline' where possible.
2900         * modules/inline (Description): Clarify purpose.
2901         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2902         * modules/count-one-bits (Depends-on): Remove inline.
2903         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2904         * modules/openat (Depends-on): Remove inline.
2905         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2906         instead of depending on module 'inline'.
2907         * modules/filevercmp (Depends-on, configure.ac): Likewise.
2908         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2909         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2910         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2911         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2912         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2913         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2914         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2915         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2916         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2917         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2918         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2919         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2920         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2921         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2922         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2923         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2924         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2925         Likewise.
2926         * modules/unictype/property-ascii-hex-digit (Depends-on,
2927         configure.ac): Likewise.
2928         * modules/unictype/property-bidi-arabic-digit (Depends-on,
2929         configure.ac): Likewise.
2930         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2931         configure.ac): Likewise.
2932         * modules/unictype/property-bidi-block-separator (Depends-on,
2933         configure.ac): Likewise.
2934         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2935         configure.ac): Likewise.
2936         * modules/unictype/property-bidi-common-separator (Depends-on,
2937         configure.ac): Likewise.
2938         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2939         Likewise.
2940         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2941         configure.ac): Likewise.
2942         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2943         configure.ac): Likewise.
2944         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2945         configure.ac): Likewise.
2946         * modules/unictype/property-bidi-european-digit (Depends-on,
2947         configure.ac): Likewise.
2948         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2949         configure.ac): Likewise.
2950         * modules/unictype/property-bidi-left-to-right (Depends-on,
2951         configure.ac): Likewise.
2952         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2953         configure.ac): Likewise.
2954         * modules/unictype/property-bidi-other-neutral (Depends-on,
2955         configure.ac): Likewise.
2956         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2957         Likewise.
2958         * modules/unictype/property-bidi-segment-separator (Depends-on,
2959         configure.ac): Likewise.
2960         * modules/unictype/property-bidi-whitespace (Depends-on,
2961         configure.ac): Likewise.
2962         * modules/unictype/property-combining (Depends-on, configure.ac):
2963         Likewise.
2964         * modules/unictype/property-composite (Depends-on, configure.ac):
2965         Likewise.
2966         * modules/unictype/property-currency-symbol (Depends-on,
2967         configure.ac): Likewise.
2968         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2969         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2970         Likewise.
2971         * modules/unictype/property-default-ignorable-code-point (Depends-on,
2972         configure.ac): Likewise.
2973         * modules/unictype/property-deprecated (Depends-on, configure.ac):
2974         Likewise.
2975         * modules/unictype/property-diacritic (Depends-on, configure.ac):
2976         Likewise.
2977         * modules/unictype/property-extender (Depends-on, configure.ac):
2978         Likewise.
2979         * modules/unictype/property-format-control (Depends-on, configure.ac):
2980         Likewise.
2981         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2982         Likewise.
2983         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2984         Likewise.
2985         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2986         Likewise.
2987         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2988         Likewise.
2989         * modules/unictype/property-hyphen (Depends-on, configure.ac):
2990         Likewise.
2991         * modules/unictype/property-id-continue (Depends-on, configure.ac):
2992         Likewise.
2993         * modules/unictype/property-id-start (Depends-on, configure.ac):
2994         Likewise.
2995         * modules/unictype/property-ideographic (Depends-on, configure.ac):
2996         Likewise.
2997         * modules/unictype/property-ids-binary-operator (Depends-on,
2998         configure.ac): Likewise.
2999         * modules/unictype/property-ids-trinary-operator (Depends-on,
3000         configure.ac): Likewise.
3001         * modules/unictype/property-ignorable-control (Depends-on,
3002         configure.ac): Likewise.
3003         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3004         Likewise.
3005         * modules/unictype/property-join-control (Depends-on, configure.ac):
3006         Likewise.
3007         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3008         Likewise.
3009         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3010         Likewise.
3011         * modules/unictype/property-logical-order-exception (Depends-on,
3012         configure.ac): Likewise.
3013         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3014         Likewise.
3015         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3016         * modules/unictype/property-non-break (Depends-on, configure.ac):
3017         Likewise.
3018         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3019         Likewise.
3020         * modules/unictype/property-numeric (Depends-on, configure.ac):
3021         Likewise.
3022         * modules/unictype/property-other-alphabetic (Depends-on,
3023         configure.ac): Likewise.
3024         * modules/unictype/property-other-default-ignorable-code-point
3025         (Depends-on, configure.ac): Likewise.
3026         * modules/unictype/property-other-grapheme-extend (Depends-on,
3027         configure.ac): Likewise.
3028         * modules/unictype/property-other-id-continue (Depends-on,
3029         configure.ac): Likewise.
3030         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3031         Likewise.
3032         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3033         Likewise.
3034         * modules/unictype/property-other-math (Depends-on, configure.ac):
3035         Likewise.
3036         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3037         Likewise.
3038         * modules/unictype/property-paired-punctuation (Depends-on,
3039         configure.ac): Likewise.
3040         * modules/unictype/property-paragraph-separator (Depends-on,
3041         configure.ac): Likewise.
3042         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3043         Likewise.
3044         * modules/unictype/property-pattern-white-space (Depends-on,
3045         configure.ac): Likewise.
3046         * modules/unictype/property-private-use (Depends-on, configure.ac):
3047         Likewise.
3048         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3049         Likewise.
3050         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3051         Likewise.
3052         * modules/unictype/property-radical (Depends-on, configure.ac):
3053         Likewise.
3054         * modules/unictype/property-sentence-terminal (Depends-on,
3055         configure.ac): Likewise.
3056         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3057         Likewise.
3058         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3059         * modules/unictype/property-terminal-punctuation (Depends-on,
3060         configure.ac): Likewise.
3061         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3062         Likewise.
3063         * modules/unictype/property-unassigned-code-value (Depends-on,
3064         configure.ac): Likewise.
3065         * modules/unictype/property-unified-ideograph (Depends-on,
3066         configure.ac): Likewise.
3067         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3068         Likewise.
3069         * modules/unictype/property-variation-selector (Depends-on,
3070         configure.ac): Likewise.
3071         * modules/unictype/property-white-space (Depends-on, configure.ac):
3072         Likewise.
3073         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3074         Likewise.
3075         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3076         Likewise.
3077         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3078         Likewise.
3079         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3080         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3081         Likewise.
3082
3083 2009-12-31  Bruno Haible  <bruno@clisp.org>
3084
3085         Remove unnecessary AC_C_INLINE invocation.
3086         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3087         since 2009-08-21.
3088
3089 2009-12-31  Jim Meyering  <meyering@redhat.com>
3090
3091         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3092         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3093         With this change, we can all remove the gpg_key_ID = ... definition
3094         from our respective cfg.mk files.
3095
3096         maint.mk: create announcement template in ~/, not in /tmp
3097         * top/maint.mk (emit_upload_commands): Adjust.
3098         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3099         Remove temporary file, .ci-msg.
3100
3101 2009-12-31  Eric Blake  <ebb9@byu.net>
3102
3103         link-warning: always build headers with link warnings
3104         * modules/arpa_inet (Makefile.am): Always build replacement
3105         header.
3106         * modules/ctype (Makefile.am): Likewise.
3107         * modules/dirent (Makefile.am): Likewise.
3108         * modules/inttypes (Makefile.am): Likewise.
3109         * modules/langinfo (Makefile.am): Likewise.
3110         * modules/locale (Makefile.am): Likewise.
3111         * modules/spawn (Makefile.am): Likewise.
3112         * modules/sys_file (Makefile.am): Likewise.
3113         * modules/sys_ioctl (Makefile.am): Likewise.
3114         * modules/sys_select (Makefile.am): Likewise.
3115         * modules/sys_socket (Makefile.am): Likewise.
3116         * modules/sys_times (Makefile.am): Likewise.
3117         * modules/sys_utsname (Makefile.am): Likewise.
3118         * modules/sys_wait (Makefile.am): Likewise.
3119         * modules/wchar (Makefile.am): Likewise.
3120         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3121         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3122         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3123         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3124         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3125         Likewise.
3126         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3127         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3128         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3129         Likewise.
3130         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3131         Likewise.
3132         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3133         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3134         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3135         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3136         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3137         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3138         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3139         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3140         (gl_WCHAR_H_DEFAULTS): Likewise.
3141
3142 2009-12-31  Eric Blake  <ebb9@byu.net>
3143
3144         signal, spawn: use link warnings
3145         * lib/signal.in.h (sigset_t): Make unconditional.
3146         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3147         (sigpending, sigprocmask, sigaction): Add link warnings.
3148         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3149         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3150         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3151         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3152         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3153         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3154         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3155         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3156         (posix_spawn_file_actions_destroy)
3157         (posix_spawn_file_actions_addopen)
3158         (posix_spawn_file_actions_addclose)
3159         (posix_spawwn_file_actions_adddup2): Likewise.
3160         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3161         * tests/test-signal.c (main): Enhance test.
3162
3163         spawn: improve wrapper support
3164         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3165         (gl_SPAWN_H_DEFAULTS): New defaults.
3166         * modules/spawn (Makefile.am): Substitute them.
3167         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3168         Only declare if missing or broken.
3169
3170         sys_times, sys_utsname: use include_next
3171         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3172         header.
3173         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3174         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3175         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3176         * modules/sys_times (Depends-on): Add include_next.
3177         (Makefile.am): Substitute additional values.
3178         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3179         * lib/sys_times.in.h (includes): Include native header, if
3180         available.
3181         * lib/sys_utsname.in.h (includes): Likewise.
3182         * tests/test-sys_times.c (main): Enhance test.
3183
3184         fdutimensat: revert prior patch
3185         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3186         utimens.h.
3187         Reported by Bruno Haible.
3188
3189 2009-12-30  Eric Blake  <ebb9@byu.net>
3190
3191         sys_wait: drop link-warning dependency
3192         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3193         link-warning efforts.
3194         * lib/sys_wait.in.h: Likewise.
3195
3196         fdutimensat: remove bogus dependency
3197         * modules/fdutimensat (Depends-on): Drop inline.
3198
3199         unistd: fix typo
3200         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3201
3202 2009-12-30  Bruno Haible  <bruno@clisp.org>
3203
3204         Fix compilation error with Solaris cc.
3205         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3206         * lib/unicase/u16-is-invariant.c: Likewise.
3207         * lib/unicase/u32-is-invariant.c: Likewise.
3208         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3209
3210 2009-12-30  Bruno Haible  <bruno@clisp.org>
3211
3212         Fix test crash.
3213         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3214         locales.
3215         Reported by Simon Josefsson <simon@josefsson.org>.
3216
3217 2009-12-30  Bruno Haible  <bruno@clisp.org>
3218
3219         Fix compilation error on most platforms.
3220         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3221         Reported by Simon Josefsson <simon@josefsson.org>
3222         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3223
3224 2009-12-30  Eric Blake  <ebb9@byu.net>
3225
3226         futimens, utimensat: work around ntfs-3g bug
3227         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3228         a ctime bug is present, and expand workaround to cover ntfs-3g.
3229         * lib/utimens.c (fdutimens, lutimens): Likewise.
3230         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3231         (validate_timespec): Adjust return value.
3232         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3233         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3234         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3235
3236 2009-12-29  Eric Blake  <ebb9@byu.net>
3237
3238         link-warning: make usage consistent
3239         * modules/ctype (Depends-on): Add link-warning.
3240         (Makefile.am): Update rules accordingly.
3241         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3242         * modules/locale (Depends-on, Makefile.am): Likewise.
3243         * modules/sys_file (Makefile.am): Likewise.
3244         * modules/getopt-posix (Makefile.am): Delete unused link warning
3245         efforts.
3246         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3247         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3248         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3249         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3250
3251         stdio: remove unused variables
3252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3254         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3255
3256         tests: test more substitute headers
3257         * modules/ctype-tests: New file.
3258         * modules/dirent-tests: Likewise.
3259         * modules/spawn-tests: Likewise.
3260         * modules/sys_file-tests: Likewise.
3261         * modules/sys_ioctl-tests: Likewise.
3262         * modules/sys_wait-tests: Likewise.
3263         * tests/test-ctype.c: Likewise.
3264         * tests/test-dirent.c: Likewise.
3265         * tests/test-spawn.c: Likewise.
3266         * tests/test-sys_file.c: Likewise.
3267         * tests/test-sys_ioctl.c: Likewise.
3268         * tests/test-sys_wait.c: Likewise.
3269         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3270         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3271         whether or not flock is in use.
3272
3273         tests: remove License section from module
3274         * modules/arpa_inet-tests: Remove unneeded section.
3275         * modules/byteswap-tests: Likewise.
3276         * modules/ceilf-tests: Likewise.
3277         * modules/ceill-tests: Likewise.
3278         * modules/crypto/des-tests: Likewise.
3279         * modules/crypto/gc-arcfour-tests: Likewise.
3280         * modules/crypto/gc-arctwo-tests: Likewise.
3281         * modules/crypto/gc-des-tests: Likewise.
3282         * modules/crypto/gc-hmac-md5-tests: Likewise.
3283         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3284         * modules/crypto/gc-md2-tests: Likewise.
3285         * modules/crypto/gc-md4-tests: Likewise.
3286         * modules/crypto/gc-md5-tests: Likewise.
3287         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3288         * modules/crypto/gc-rijndael-tests: Likewise.
3289         * modules/crypto/gc-sha1-tests: Likewise.
3290         * modules/crypto/gc-tests: Likewise.
3291         * modules/crypto/md2-tests: Likewise.
3292         * modules/crypto/md4-tests: Likewise.
3293         * modules/fcntl-h-tests: Likewise.
3294         * modules/floorf-tests: Likewise.
3295         * modules/floorl-tests: Likewise.
3296         * modules/frexp-nolibm-tests: Likewise.
3297         * modules/frexp-tests: Likewise.
3298         * modules/frexpl-nolibm-tests: Likewise.
3299         * modules/frexpl-tests: Likewise.
3300         * modules/getaddrinfo-tests: Likewise.
3301         * modules/inttypes-tests: Likewise.
3302         * modules/isfinite-tests: Likewise.
3303         * modules/isinf-tests: Likewise.
3304         * modules/ldexpl-tests: Likewise.
3305         * modules/locale-tests: Likewise.
3306         * modules/math-tests: Likewise.
3307         * modules/netdb-tests: Likewise.
3308         * modules/netinet_in-tests: Likewise.
3309         * modules/printf-frexp-tests: Likewise.
3310         * modules/printf-frexpl-tests: Likewise.
3311         * modules/priv-set-tests: Likewise.
3312         * modules/random_r-tests: Likewise.
3313         * modules/round-tests: Likewise.
3314         * modules/roundf-tests: Likewise.
3315         * modules/roundl-tests: Likewise.
3316         * modules/search-tests: Likewise.
3317         * modules/select-tests: Likewise.
3318         * modules/signal-tests: Likewise.
3319         * modules/stdbool-tests: Likewise.
3320         * modules/stddef-tests: Likewise.
3321         * modules/stdint-tests: Likewise.
3322         * modules/stdio-tests: Likewise.
3323         * modules/stdlib-tests: Likewise.
3324         * modules/string-tests: Likewise.
3325         * modules/strings-tests: Likewise.
3326         * modules/sys_select-tests: Likewise.
3327         * modules/sys_socket-tests: Likewise.
3328         * modules/sys_stat-tests: Likewise.
3329         * modules/sys_time-tests: Likewise.
3330         * modules/sys_utsname-tests: Likewise.
3331         * modules/sysexits-tests: Likewise.
3332         * modules/time-tests: Likewise.
3333         * modules/trunc-tests: Likewise.
3334         * modules/truncf-tests: Likewise.
3335         * modules/truncl-tests: Likewise.
3336         * modules/tsearch-tests: Likewise.
3337         * modules/unistd-tests: Likewise.
3338         * modules/wchar-tests: Likewise.
3339         * modules/wctype-tests: Likewise.
3340
3341         tests: fix license on several tests
3342         * tests/test-des.c: Update to GPLv3+.
3343         * tests/test-flock.c: Likewise.
3344         * tests/test-fsync.c: Likewise.
3345         * tests/test-futimens.h: Likewise.
3346         * tests/test-gc-arcfour.c: Likewise.
3347         * tests/test-gc-arctwo.c: Likewise.
3348         * tests/test-gc-des.c: Likewise.
3349         * tests/test-gc-hmac-md5.c: Likewise.
3350         * tests/test-gc-hmac-sha1.c: Likewise.
3351         * tests/test-gc-md2.c: Likewise.
3352         * tests/test-gc-md4.c: Likewise.
3353         * tests/test-gc-md5.c: Likewise.
3354         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3355         * tests/test-gc-rijndael.c: Likewise.
3356         * tests/test-gc-sha1.c: Likewise.
3357         * tests/test-gc.c: Likewise.
3358         * tests/test-getcwd.c: Likewise.
3359         * tests/test-link.c: Likewise.
3360         * tests/test-link.h: Likewise.
3361         * tests/test-lutimens.h: Likewise.
3362         * tests/test-md2.c: Likewise.
3363         * tests/test-md4.c: Likewise.
3364         * tests/test-mkdir.h: Likewise.
3365         * tests/test-rename.c: Likewise.
3366         * tests/test-rename.h: Likewise.
3367         * tests/test-safe-alloc.c: Likewise.
3368         * tests/test-utimens-common.h: Likewise.
3369         * tests/test-utimens.h: Likewise.
3370
3371         maint: sync license texts
3372         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3373         * doc/gpl-3.0.texi: Revert copyright year update.
3374         * doc/lgpl-3.0.texi: Likewise.
3375
3376 2009-12-29  Jim Meyering  <meyering@redhat.com>
3377
3378         update nearly all FSF copyright year lists to include 2009
3379         The files named by the following are exempted:
3380             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3381               test -f "$dst" && { echo "$dst"; continue; }
3382               test -d "$dst" || continue
3383               echo "$dst"/$(basename "$src")
3384             done > exempt
3385             git ls-files tests/unictype >> exempt
3386         In the remaining files, convert to all-interval notation if
3387         - there is already at least one year interval like 2000-2003
3388         - the file is maintained by me
3389         - the file is in lib/uni*/, where that style already prevails
3390         Otherwise, use update-copyright's default.
3391
3392 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3393         and Eric Blake  <ebb9@byu.net>
3394
3395         tests: don't require debug system() to pass
3396         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3397         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3398         * tests/test-unlink.h (test_unlink_func): Likewise.
3399         * tests/test-fstatat.c (main): ...into callers.
3400         * tests/test-lstat.c (main): Likewise.
3401         * tests/test-rmdir.c (main): Likewise.
3402         * tests/test-unlink.c (main): Likewise.
3403         * tests/test-unlinkat.c (main): Likewise.
3404         * tests/test-areadlink-with-size.c (main): Don't require a
3405         debug-only system call to pass, aiding cross-testing to mingw.
3406         * tests/test-areadlink.c (main): Likewise.
3407         * tests/test-areadlinkat-with-size.c (main): Likewise.
3408         * tests/test-areadlinkat.c (main): Likewise.
3409         * tests/test-canonicalize-lgpl.c (main): Likewise.
3410         * tests/test-canonicalize.c (main): Likewise.
3411         * tests/test-chown.c (main): Likewise.
3412         * tests/test-fchownat.c (main): Likewise.
3413         * tests/test-lchown.c (main): Likewise.
3414         * tests/test-fdutimensat.c (main): Likewise.
3415         * tests/test-futimens.c (main): Likewise.
3416         * tests/test-link.c (main): Likewise.
3417         * tests/test-linkat.c (main): Likewise.
3418         * tests/test-mkdir.c (main): Likewise.
3419         * tests/test-mkdirat.c (main): Likewise.
3420         * tests/test-mkfifo.c (main): Likewise.
3421         * tests/test-mkfifoat.c (main): Likewise.
3422         * tests/test-mknod.c (main): Likewise.
3423         * tests/test-readlink.c (main): Likewise.
3424         * tests/test-remove.c (main): Likewise.
3425         * tests/test-rename.c (main): Likewise.
3426         * tests/test-renameat.c (main): Likewise.
3427         * tests/test-symlink.c (main): Likewise.
3428         * tests/test-symlinkat.c (main): Likewise.
3429         * tests/test-utimens.c (main): Likewise.
3430         * tests/test-utimensat.c (main): Likewise.
3431
3432 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3433
3434         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3435         on $(UNUSED_PARAMETER_H) to avoid build failure.
3436
3437 2009-12-28  Jim Meyering  <meyering@redhat.com>
3438
3439         update-copyright: you may specify a max. line length other than 72
3440         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3441
3442         maint: use consistent FSF copyright line syntax
3443         * lib/posixtm.c: Add missing comma in FSF copyright line.
3444         * lib/posixtm.h: Likewise.
3445         * lib/getugroups.c: Add missing ", Inc.".
3446
3447         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3448         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3449         FSF copyright line.  Remove trailing blanks.
3450
3451 2009-12-28  Eric Blake  <ebb9@byu.net>
3452
3453         test-dup2: reduce dependencies
3454         * modules/cloexec (Configure.ac): Set witness.
3455         * modules/dup2-tests (Depends-on): Drop cloexec.
3456         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3457         not present.
3458         Suggested by Bruno Haible.
3459
3460 2009-12-26  Bruno Haible  <bruno@clisp.org>
3461
3462         Remove an unneeded dependency.
3463         * modules/fseterr (Depends-on): Remove dup2.
3464
3465 2009-12-26  Eric Blake  <ebb9@byu.net>
3466
3467         tests: use macros.h in more places
3468         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3469         (ASSERT_STREAM): Provide default of stderr.
3470         * tests/test-dirent-safer.c: Include macros.h, using alternate
3471         stream for assertions.
3472         * tests/test-dup-safer.c: Likewise.
3473         * tests/test-freopen-safer.c: Likewise.
3474         * tests/test-getopt.c: Likewise.
3475         * tests/test-openat-safer.c: Likewise.
3476         * tests/test-pipe.c: Likewise.
3477         * tests/test-popen-safer.c: Likewise.
3478         * modules/dirent-safer-tests (Files): Include macros.h.
3479         * modules/unistd-safer-tests (Files): Likewise.
3480         * modules/freopen-safer-tests (Files): Likewise.
3481         * modules/getopt-posix-tests (Files): Likewise.
3482         * modules/openat-safer-tests (Files): Likewise.
3483         * modules/pipe-tests (Files): Likewise.
3484
3485 2009-12-26  Bruno Haible  <bruno@clisp.org>
3486
3487         javacomp: Portability fix.
3488         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3489         that it also works on Solaris.
3490
3491 2009-12-26  Bruno Haible  <bruno@clisp.org>
3492
3493         localename: Fix storage allocation of gl_locale_name_thread's result.
3494         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3495         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3496         all platforms that have 'uselocale'.
3497         (gl_locale_name_thread_unsafe): New function, extracted from
3498         gl_locale_name_thread.
3499         (gl_locale_name_thread): Call struniq on all platforms that have
3500         'uselocale'.
3501         * tests/test-localename.c (test_locale_name_thread): Check that the
3502         resulting strings are permanently allocated.
3503         * modules/localename-tests (Depends-on): Add strdup.
3504
3505 2009-12-26  Bruno Haible  <bruno@clisp.org>
3506
3507         * tests/test-localename.c (categories): Fill in the strings.
3508
3509 2009-12-26  Jim Meyering  <meyering@redhat.com>
3510
3511         isdir: complete the removal of m4/isdir.m4
3512         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3513
3514         isdir: clean up, since at least grep still uses it
3515         * lib/isdir.c: Include "isdir.h".
3516         (S_ISDIR): Remove now-unneeded definition.
3517         * modules/isdir (Files): Add lib/isdir.h.
3518         * lib/isdir.h: New file, with declaration.
3519         * m4/isdir.m4: Remove file -- unneeded.
3520
3521 2009-12-25  Bruno Haible  <bruno@clisp.org>
3522
3523         selinux-h: Make generated .h files standalone.
3524         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3525         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3526         * lib/se-selinux.in.h: Likewise.
3527         * modules/selinux-h (Depends-on): Add unused-parameter.
3528         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3529         selinux/selinux.h and selinux/context.h.
3530         Suggested by Eric Blake.
3531
3532 2009-12-25  Bruno Haible  <bruno@clisp.org>
3533
3534         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3535         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3536         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3537         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3538         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3539
3540 2009-12-24  Bruno Haible  <bruno@clisp.org>
3541
3542         openat: Fix warning.
3543         * lib/openat-proc.c: Include <unistd.h>.
3544
3545 2009-12-24  Bruno Haible  <bruno@clisp.org>
3546
3547         New module 'unused-parameter'.
3548         * build-aux/unused-parameter.h: New file, extracted from earlier
3549         gnulib-common.m4.
3550         * modules/unused-parameter: New file.
3551         * lib/unistr.h: Include unused-parameter.h.
3552         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3553         _GL_UNUSED.
3554         * modules/unistr/base (Depends-on): Add unused-parameter.
3555
3556 2009-12-24  Bruno Haible  <bruno@clisp.org>
3557
3558         Add missing dependencies to 'extensions' module.
3559         * m4/extensions.m4: Add comment.
3560         * modules/accept4 (Depends-on): Add extensions.
3561         * modules/dup3 (Depends-on): Likewise.
3562         * modules/fcntl (Depends-on): Likewise.
3563         * modules/futimens (Depends-on): Likewise.
3564         * modules/mknod (Depends-on): Likewise.
3565         * modules/pipe2 (Depends-on): Likewise.
3566         * modules/stat-time (Depends-on): Likewise.
3567         * modules/strcasestr-simple (Depends-on): Likewise.
3568         * modules/strsignal (Depends-on): Likewise.
3569         * modules/utimensat (Depends-on): Likewise.
3570         * modules/localcharset (Depends-on): Likewise. Needed because of
3571         gl_FCNTL_O_FLAGS.
3572         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3573         AC_TYPE_MBSTATE_T.
3574         * modules/wcsnrtombs (Depends-on): Likewise.
3575         * modules/wcsrtombs (Depends-on): Likewise.
3576
3577 2009-12-24  Bruno Haible  <bruno@clisp.org>
3578
3579         binary-io: Avoid gcc warning due to SET_BINARY.
3580         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3581         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3582
3583 2009-12-24  Bruno Haible  <bruno@clisp.org>
3584
3585         Avoid future namespace pollution on glibc systems.
3586         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3587         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3588         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3589         glibc systems.
3590
3591 2009-12-24  Bruno Haible  <bruno@clisp.org>
3592
3593         Refactor common macros used in tests.
3594         * tests/macros.h: New file.
3595         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3596         and/or <stdlib.h>, if appropriate.
3597         (ASSERT, SIZEOF): Remove macros.
3598         * tests/test-areadlink-with-size.c: Likewise.
3599         * tests/test-areadlinkat.c: Likewise.
3600         * tests/test-areadlinkat-with-size.c: Likewise.
3601         * tests/test-argmatch.c: Likewise.
3602         * tests/test-argv-iter.c: Likewise.
3603         * tests/test-array-mergesort.c: Likewise.
3604         * tests/test-array_list.c: Likewise.
3605         * tests/test-array_oset.c: Likewise.
3606         * tests/test-avltree_list.c: Likewise.
3607         * tests/test-avltree_oset.c: Likewise.
3608         * tests/test-avltreehash_list.c: Likewise.
3609         * tests/test-base64.c: Likewise.
3610         * tests/test-binary-io.c: Likewise.
3611         * tests/test-bitrotate.c: Likewise.
3612         * tests/test-btowc.c: Likewise.
3613         * tests/test-byteswap.c: Likewise.
3614         * tests/test-c-ctype.c: Likewise.
3615         * tests/test-c-stack.c: Likewise.
3616         * tests/test-c-strcasecmp.c: Likewise.
3617         * tests/test-c-strcasestr.c: Likewise.
3618         * tests/test-c-strncasecmp.c: Likewise.
3619         * tests/test-c-strstr.c: Likewise.
3620         * tests/test-canonicalize-lgpl.c: Likewise.
3621         * tests/test-canonicalize.c: Likewise.
3622         * tests/test-carray_list.c: Likewise.
3623         * tests/test-ceilf1.c: Likewise.
3624         * tests/test-ceilf2.c: Likewise.
3625         * tests/test-ceill.c: Likewise.
3626         * tests/test-chown.c: Likewise.
3627         * tests/test-cloexec.c: Likewise.
3628         * tests/test-copy-acl.c: Likewise.
3629         * tests/test-copy-file.c: Likewise.
3630         * tests/test-count-one-bits.c: Likewise.
3631         * tests/test-dprintf-posix.c: Likewise.
3632         * tests/test-dup2.c: Likewise.
3633         * tests/test-dup3.c: Likewise.
3634         * tests/test-duplocale.c: Likewise.
3635         * tests/test-fbufmode.c: Likewise.
3636         * tests/test-fchdir.c: Likewise.
3637         * tests/test-fchownat.c: Likewise.
3638         * tests/test-fcntl-safer.c: Likewise.
3639         * tests/test-fcntl.c: Likewise.
3640         * tests/test-fdopendir.c: Likewise.
3641         * tests/test-fdutimensat.c: Likewise.
3642         * tests/test-fflush2.c: Likewise.
3643         * tests/test-file-has-acl.c: Likewise.
3644         * tests/test-filevercmp.c: Likewise.
3645         * tests/test-flock.c: Likewise.
3646         * tests/test-floorf1.c: Likewise.
3647         * tests/test-floorf2.c: Likewise.
3648         * tests/test-floorl.c: Likewise.
3649         * tests/test-fnmatch.c: Likewise.
3650         * tests/test-fopen.h: Likewise.
3651         * tests/test-fpending.c: Likewise.
3652         * tests/test-fprintf-posix.c: Likewise.
3653         * tests/test-fpurge.c: Likewise.
3654         * tests/test-freadable.c: Likewise.
3655         * tests/test-freadahead.c: Likewise.
3656         * tests/test-freading.c: Likewise.
3657         * tests/test-freadptr.c: Likewise.
3658         * tests/test-freadptr2.c: Likewise.
3659         * tests/test-freadseek.c: Likewise.
3660         * tests/test-freopen.c: Likewise.
3661         * tests/test-frexp.c: Likewise.
3662         * tests/test-frexpl.c: Likewise.
3663         * tests/test-fseek.c: Likewise.
3664         * tests/test-fseeko.c: Likewise.
3665         * tests/test-fstatat.c: Likewise.
3666         * tests/test-fstrcmp.c: Likewise.
3667         * tests/test-fsync.c: Likewise.
3668         * tests/test-ftell.c: Likewise.
3669         * tests/test-ftello.c: Likewise.
3670         * tests/test-func.c: Likewise.
3671         * tests/test-futimens.c: Likewise.
3672         * tests/test-fwritable.c: Likewise.
3673         * tests/test-fwriting.c: Likewise.
3674         * tests/test-getcwd.c: Likewise.
3675         * tests/test-getdate.c: Likewise.
3676         * tests/test-getdelim.c: Likewise.
3677         * tests/test-getdtablesize.c: Likewise.
3678         * tests/test-getgroups.c: Likewise.
3679         * tests/test-getline.c: Likewise.
3680         * tests/test-getndelim2.c: Likewise.
3681         * tests/test-glob.c: Likewise.
3682         * tests/test-hash.c: Likewise.
3683         * tests/test-i-ring.c: Likewise.
3684         * tests/test-iconv-utf.c: Likewise.
3685         * tests/test-iconv.c: Likewise.
3686         * tests/test-idpriv-drop.c: Likewise.
3687         * tests/test-idpriv-droptemp.c: Likewise.
3688         * tests/test-inet_ntop.c: Likewise.
3689         * tests/test-inet_pton.c: Likewise.
3690         * tests/test-isblank.c: Likewise.
3691         * tests/test-isfinite.c: Likewise.
3692         * tests/test-isinf.c: Likewise.
3693         * tests/test-isnan.c: Likewise.
3694         * tests/test-isnand.h: Likewise.
3695         * tests/test-isnanf.h: Likewise.
3696         * tests/test-isnanl.h: Likewise.
3697         * tests/test-lchown.c: Likewise.
3698         * tests/test-ldexpl.c: Likewise.
3699         * tests/test-link.c: Likewise.
3700         * tests/test-linkat.c: Likewise.
3701         * tests/test-linked_list.c: Likewise.
3702         * tests/test-linkedhash_list.c: Likewise.
3703         * tests/test-localename.c: Likewise.
3704         * tests/test-lseek.c: Likewise.
3705         * tests/test-lstat.c: Likewise.
3706         * tests/test-mbmemcasecmp.c: Likewise.
3707         * tests/test-mbmemcasecoll.c: Likewise.
3708         * tests/test-mbrtowc.c: Likewise.
3709         * tests/test-mbscasecmp.c: Likewise.
3710         * tests/test-mbscasestr1.c: Likewise.
3711         * tests/test-mbscasestr2.c: Likewise.
3712         * tests/test-mbscasestr3.c: Likewise.
3713         * tests/test-mbscasestr4.c: Likewise.
3714         * tests/test-mbschr.c: Likewise.
3715         * tests/test-mbscspn.c: Likewise.
3716         * tests/test-mbsinit.c: Likewise.
3717         * tests/test-mbsncasecmp.c: Likewise.
3718         * tests/test-mbsnrtowcs.c: Likewise.
3719         * tests/test-mbspbrk.c: Likewise.
3720         * tests/test-mbspcasecmp.c: Likewise.
3721         * tests/test-mbsrchr.c: Likewise.
3722         * tests/test-mbsrtowcs.c: Likewise.
3723         * tests/test-mbsspn.c: Likewise.
3724         * tests/test-mbsstr1.c: Likewise.
3725         * tests/test-mbsstr2.c: Likewise.
3726         * tests/test-mbsstr3.c: Likewise.
3727         * tests/test-memchr.c: Likewise.
3728         * tests/test-memchr2.c: Likewise.
3729         * tests/test-memcmp.c: Likewise.
3730         * tests/test-memmem.c: Likewise.
3731         * tests/test-memrchr.c: Likewise.
3732         * tests/test-mkdir.c: Likewise.
3733         * tests/test-mkdirat.c: Likewise.
3734         * tests/test-mkfifo.c: Likewise.
3735         * tests/test-mkfifoat.c: Likewise.
3736         * tests/test-mknod.c: Likewise.
3737         * tests/test-nanosleep.c: Likewise.
3738         * tests/test-nl_langinfo.c: Likewise.
3739         * tests/test-obstack-printf.c: Likewise.
3740         * tests/test-open.c: Likewise.
3741         * tests/test-openat.c: Likewise.
3742         * tests/test-pipe-filter-gi1.c: Likewise.
3743         * tests/test-pipe-filter-gi2-main.c: Likewise.
3744         * tests/test-pipe-filter-ii1.c: Likewise.
3745         * tests/test-pipe-filter-ii2-main.c: Likewise.
3746         * tests/test-pipe2.c: Likewise.
3747         * tests/test-popen.h: Likewise.
3748         * tests/test-posixtm.c: Likewise.
3749         * tests/test-pread.c: Likewise.
3750         * tests/test-printf-frexp.c: Likewise.
3751         * tests/test-printf-frexpl.c: Likewise.
3752         * tests/test-printf-posix.c: Likewise.
3753         * tests/test-priv-set.c: Likewise.
3754         * tests/test-quotearg.c: Likewise.
3755         * tests/test-random_r.c: Likewise.
3756         * tests/test-rawmemchr.c: Likewise.
3757         * tests/test-rbtree_list.c: Likewise.
3758         * tests/test-rbtree_oset.c: Likewise.
3759         * tests/test-rbtreehash_list.c: Likewise.
3760         * tests/test-readlink.c: Likewise.
3761         * tests/test-remove.c: Likewise.
3762         * tests/test-rename.c: Likewise.
3763         * tests/test-renameat.c: Likewise.
3764         * tests/test-rmdir.c: Likewise.
3765         * tests/test-round1.c: Likewise.
3766         * tests/test-roundf1.c: Likewise.
3767         * tests/test-roundl.c: Likewise.
3768         * tests/test-safe-alloc.c: Likewise.
3769         * tests/test-sameacls.c: Likewise.
3770         * tests/test-set-mode-acl.c: Likewise.
3771         * tests/test-setenv.c: Likewise.
3772         * tests/test-sigaction.c: Likewise.
3773         * tests/test-signbit.c: Likewise.
3774         * tests/test-sleep.c: Likewise.
3775         * tests/test-snprintf-posix.c: Likewise.
3776         * tests/test-snprintf.c: Likewise.
3777         * tests/test-sprintf-posix.c: Likewise.
3778         * tests/test-stat-time.c: Likewise.
3779         * tests/test-stat.c: Likewise.
3780         * tests/test-strcasestr.c: Likewise.
3781         * tests/test-strchrnul.c: Likewise.
3782         * tests/test-strerror.c: Likewise.
3783         * tests/test-striconv.c: Likewise.
3784         * tests/test-striconveh.c: Likewise.
3785         * tests/test-striconveha.c: Likewise.
3786         * tests/test-strsignal.c: Likewise.
3787         * tests/test-strstr.c: Likewise.
3788         * tests/test-strtod.c: Likewise.
3789         * tests/test-strverscmp.c: Likewise.
3790         * tests/test-symlink.c: Likewise.
3791         * tests/test-symlinkat.c: Likewise.
3792         * tests/test-trunc1.c: Likewise.
3793         * tests/test-trunc2.c: Likewise.
3794         * tests/test-truncf1.c: Likewise.
3795         * tests/test-truncf2.c: Likewise.
3796         * tests/test-truncl.c: Likewise.
3797         * tests/test-uname.c: Likewise.
3798         * tests/test-unlink.c: Likewise.
3799         * tests/test-unlinkat.c: Likewise.
3800         * tests/test-unsetenv.c: Likewise.
3801         * tests/test-usleep.c: Likewise.
3802         * tests/test-utimens.c: Likewise.
3803         * tests/test-utimensat.c: Likewise.
3804         * tests/test-vasnprintf-posix.c: Likewise.
3805         * tests/test-vasnprintf-posix2.c: Likewise.
3806         * tests/test-vasnprintf.c: Likewise.
3807         * tests/test-vasprintf-posix.c: Likewise.
3808         * tests/test-vasprintf.c: Likewise.
3809         * tests/test-vdprintf-posix.c: Likewise.
3810         * tests/test-vfprintf-posix.c: Likewise.
3811         * tests/test-vprintf-posix.c: Likewise.
3812         * tests/test-vsnprintf-posix.c: Likewise.
3813         * tests/test-vsnprintf.c: Likewise.
3814         * tests/test-vsprintf-posix.c: Likewise.
3815         * tests/test-wcrtomb.c: Likewise.
3816         * tests/test-wcsnrtombs.c: Likewise.
3817         * tests/test-wcsrtombs.c: Likewise.
3818         * tests/test-wctype.c: Likewise.
3819         * tests/test-wcwidth.c: Likewise.
3820         * tests/test-xfprintf-posix.c: Likewise.
3821         * tests/test-xmemdup0.c: Likewise.
3822         * tests/test-xprintf-posix.c: Likewise.
3823         * tests/test-xvasprintf.c: Likewise.
3824         * tests/unicase/test-locale-language.c: Likewise.
3825         * tests/unicase/test-mapping-part1.h: Likewise.
3826         * tests/unicase/test-predicate-part1.h: Likewise.
3827         * tests/unicase/test-u8-casecmp.c: Likewise.
3828         * tests/unicase/test-u8-casecoll.c: Likewise.
3829         * tests/unicase/test-u8-casefold.c: Likewise.
3830         * tests/unicase/test-u8-is-cased.c: Likewise.
3831         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3832         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3833         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3834         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3835         * tests/unicase/test-u8-tolower.c: Likewise.
3836         * tests/unicase/test-u8-totitle.c: Likewise.
3837         * tests/unicase/test-u8-toupper.c: Likewise.
3838         * tests/unicase/test-u16-casecmp.c: Likewise.
3839         * tests/unicase/test-u16-casecoll.c: Likewise.
3840         * tests/unicase/test-u16-casefold.c: Likewise.
3841         * tests/unicase/test-u16-is-cased.c: Likewise.
3842         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3843         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3844         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3845         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3846         * tests/unicase/test-u16-tolower.c: Likewise.
3847         * tests/unicase/test-u16-totitle.c: Likewise.
3848         * tests/unicase/test-u16-toupper.c: Likewise.
3849         * tests/unicase/test-u32-casecmp.c: Likewise.
3850         * tests/unicase/test-u32-casecoll.c: Likewise.
3851         * tests/unicase/test-u32-casefold.c: Likewise.
3852         * tests/unicase/test-u32-is-cased.c: Likewise.
3853         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3854         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3855         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3856         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3857         * tests/unicase/test-u32-tolower.c: Likewise.
3858         * tests/unicase/test-u32-totitle.c: Likewise.
3859         * tests/unicase/test-u32-toupper.c: Likewise.
3860         * tests/unicase/test-ulc-casecmp.c: Likewise.
3861         * tests/unicase/test-ulc-casecoll.c: Likewise.
3862         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3863         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3864         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3865         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3866         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3867         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3868         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3869         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3870         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3871         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3872         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3873         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3874         * tests/unictype/test-bidi_byname.c: Likewise.
3875         * tests/unictype/test-bidi_name.c: Likewise.
3876         * tests/unictype/test-bidi_of.c: Likewise.
3877         * tests/unictype/test-bidi_test.c: Likewise.
3878         * tests/unictype/test-block_list.c: Likewise.
3879         * tests/unictype/test-block_of.c: Likewise.
3880         * tests/unictype/test-block_test.c: Likewise.
3881         * tests/unictype/test-categ_and.c: Likewise.
3882         * tests/unictype/test-categ_and_not.c: Likewise.
3883         * tests/unictype/test-categ_byname.c: Likewise.
3884         * tests/unictype/test-categ_name.c: Likewise.
3885         * tests/unictype/test-categ_none.c: Likewise.
3886         * tests/unictype/test-categ_of.c: Likewise.
3887         * tests/unictype/test-categ_or.c: Likewise.
3888         * tests/unictype/test-categ_test_withtable.c: Likewise.
3889         * tests/unictype/test-combining.c: Likewise.
3890         * tests/unictype/test-decdigit.c: Likewise.
3891         * tests/unictype/test-digit.c: Likewise.
3892         * tests/unictype/test-mirror.c: Likewise.
3893         * tests/unictype/test-numeric.c: Likewise.
3894         * tests/unictype/test-pr_byname.c: Likewise.
3895         * tests/unictype/test-pr_test.c: Likewise.
3896         * tests/unictype/test-predicate-part1.h: Likewise.
3897         * tests/unictype/test-scripts.c: Likewise.
3898         * tests/unictype/test-sy_c_ident.c: Likewise.
3899         * tests/unictype/test-sy_java_ident.c: Likewise.
3900         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3901         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3902         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3903         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3904         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3905         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3906         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3907         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3908         * tests/uninorm/test-canonical-decomposition.c: Likewise.
3909         * tests/uninorm/test-compat-decomposition.c: Likewise.
3910         * tests/uninorm/test-composition.c: Likewise.
3911         * tests/uninorm/test-decomposing-form.c: Likewise.
3912         * tests/uninorm/test-decomposition.c: Likewise.
3913         * tests/uninorm/test-u8-nfc.c: Likewise.
3914         * tests/uninorm/test-u8-nfd.c: Likewise.
3915         * tests/uninorm/test-u8-nfkc.c: Likewise.
3916         * tests/uninorm/test-u8-nfkd.c: Likewise.
3917         * tests/uninorm/test-u8-normcmp.c: Likewise.
3918         * tests/uninorm/test-u8-normcoll.c: Likewise.
3919         * tests/uninorm/test-u16-nfc.c: Likewise.
3920         * tests/uninorm/test-u16-nfd.c: Likewise.
3921         * tests/uninorm/test-u16-nfkc.c: Likewise.
3922         * tests/uninorm/test-u16-nfkd.c: Likewise.
3923         * tests/uninorm/test-u16-normcmp.c: Likewise.
3924         * tests/uninorm/test-u16-normcoll.c: Likewise.
3925         * tests/uninorm/test-u32-nfc.c: Likewise.
3926         * tests/uninorm/test-u32-nfd.c: Likewise.
3927         * tests/uninorm/test-u32-nfkc.c: Likewise.
3928         * tests/uninorm/test-u32-nfkd.c: Likewise.
3929         * tests/uninorm/test-u32-normalize-big.c: Likewise.
3930         * tests/uninorm/test-u32-normcmp.c: Likewise.
3931         * tests/uninorm/test-u32-normcoll.c: Likewise.
3932         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3933         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3934         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3935         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3936         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3937         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3938         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3939         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3940         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3941         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3942         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3943         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3944         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3945         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3946         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3947         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3948         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3949         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3950         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3951         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3952         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3953         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3954         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3955         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3956         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3957         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3958         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3959         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3960         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3961         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3962         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3963         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3964         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3965         * tests/uniwidth/test-u8-strwidth.c: Likewise.
3966         * tests/uniwidth/test-u8-width.c: Likewise.
3967         * tests/uniwidth/test-u16-strwidth.c: Likewise.
3968         * tests/uniwidth/test-u16-width.c: Likewise.
3969         * tests/uniwidth/test-u32-strwidth.c: Likewise.
3970         * tests/uniwidth/test-u32-width.c: Likewise.
3971         * tests/uniwidth/test-uc_width.c: Likewise.
3972         * tests/uniwidth/test-uc_width2.c: Likewise.
3973         * modules/acl-tests (Files): Add tests/macros.h.
3974         * modules/areadlink-tests (Files): Likewise.
3975         * modules/areadlink-with-size-tests (Files): Likewise.
3976         * modules/areadlinkat-tests (Files): Likewise.
3977         * modules/areadlinkat-with-size-tests (Files): Likewise.
3978         * modules/argmatch-tests (Files): Likewise.
3979         * modules/argv-iter-tests (Files): Likewise.
3980         * modules/array-list-tests (Files): Likewise.
3981         * modules/array-mergesort-tests (Files): Likewise.
3982         * modules/array-oset-tests (Files): Likewise.
3983         * modules/avltree-list-tests (Files): Likewise.
3984         * modules/avltree-oset-tests (Files): Likewise.
3985         * modules/avltreehash-list-tests (Files): Likewise.
3986         * modules/base64-tests (Files): Likewise.
3987         * modules/binary-io-tests (Files): Likewise.
3988         * modules/bitrotate-tests (Files): Likewise.
3989         * modules/btowc-tests (Files): Likewise.
3990         * modules/byteswap-tests (Files): Likewise.
3991         * modules/c-ctype-tests (Files): Likewise.
3992         * modules/c-stack-tests (Files): Likewise.
3993         * modules/c-strcase-tests (Files): Likewise.
3994         * modules/c-strcasestr-tests (Files): Likewise.
3995         * modules/c-strstr-tests (Files): Likewise.
3996         * modules/canonicalize-lgpl-tests (Files): Likewise.
3997         * modules/canonicalize-tests (Files): Likewise.
3998         * modules/carray-list-tests (Files): Likewise.
3999         * modules/ceilf-tests (Files): Likewise.
4000         * modules/ceill-tests (Files): Likewise.
4001         * modules/chown-tests (Files): Likewise.
4002         * modules/cloexec-tests (Files): Likewise.
4003         * modules/copy-file-tests (Files): Likewise.
4004         * modules/count-one-bits-tests (Files): Likewise.
4005         * modules/dprintf-posix-tests (Files): Likewise.
4006         * modules/dup2-tests (Files): Likewise.
4007         * modules/dup3-tests (Files): Likewise.
4008         * modules/duplocale-tests (Files): Likewise.
4009         * modules/fbufmode-tests (Files): Likewise.
4010         * modules/fchdir-tests (Files): Likewise.
4011         * modules/fcntl-safer-tests (Files): Likewise.
4012         * modules/fcntl-tests (Files): Likewise.
4013         * modules/fdopendir-tests (Files): Likewise.
4014         * modules/fdutimensat-tests (Files): Likewise.
4015         * modules/fflush-tests (Files): Likewise.
4016         * modules/filevercmp-tests (Files): Likewise.
4017         * modules/flock-tests (Files): Likewise.
4018         * modules/floorf-tests (Files): Likewise.
4019         * modules/floorl-tests (Files): Likewise.
4020         * modules/fnmatch-tests (Files): Likewise.
4021         * modules/fopen-safer-tests (Files): Likewise.
4022         * modules/fopen-tests (Files): Likewise.
4023         * modules/fpending-tests (Files): Likewise.
4024         * modules/fprintf-posix-tests (Files): Likewise.
4025         * modules/fpurge-tests (Files): Likewise.
4026         * modules/freadable-tests (Files): Likewise.
4027         * modules/freadahead-tests (Files): Likewise.
4028         * modules/freading-tests (Files): Likewise.
4029         * modules/freadptr-tests (Files): Likewise.
4030         * modules/freadseek-tests (Files): Likewise.
4031         * modules/freopen-tests (Files): Likewise.
4032         * modules/frexp-nolibm-tests (Files): Likewise.
4033         * modules/frexp-tests (Files): Likewise.
4034         * modules/frexpl-nolibm-tests (Files): Likewise.
4035         * modules/frexpl-tests (Files): Likewise.
4036         * modules/fseek-tests (Files): Likewise.
4037         * modules/fseeko-tests (Files): Likewise.
4038         * modules/fstrcmp-tests (Files): Likewise.
4039         * modules/fsync-tests (Files): Likewise.
4040         * modules/ftell-tests (Files): Likewise.
4041         * modules/ftello-tests (Files): Likewise.
4042         * modules/func-tests (Files): Likewise.
4043         * modules/futimens-tests (Files): Likewise.
4044         * modules/fwritable-tests (Files): Likewise.
4045         * modules/fwriting-tests (Files): Likewise.
4046         * modules/getcwd-tests (Files): Likewise.
4047         * modules/getdate-tests (Files): Likewise.
4048         * modules/getdelim-tests (Files): Likewise.
4049         * modules/getdtablesize-tests (Files): Likewise.
4050         * modules/getgroups-tests (Files): Likewise.
4051         * modules/getline-tests (Files): Likewise.
4052         * modules/getndelim2-tests (Files): Likewise.
4053         * modules/glob-tests (Files): Likewise.
4054         * modules/hash-tests (Files): Likewise.
4055         * modules/i-ring-tests (Files): Likewise.
4056         * modules/iconv-tests (Files): Likewise.
4057         * modules/iconv_open-utf-tests (Files): Likewise.
4058         * modules/idpriv-drop-tests (Files): Likewise.
4059         * modules/idpriv-droptemp-tests (Files): Likewise.
4060         * modules/inet_ntop-tests (Files): Likewise.
4061         * modules/inet_pton-tests (Files): Likewise.
4062         * modules/isblank-tests (Files): Likewise.
4063         * modules/isfinite-tests (Files): Likewise.
4064         * modules/isinf-tests (Files): Likewise.
4065         * modules/isnan-tests (Files): Likewise.
4066         * modules/isnand-nolibm-tests (Files): Likewise.
4067         * modules/isnand-tests (Files): Likewise.
4068         * modules/isnanf-nolibm-tests (Files): Likewise.
4069         * modules/isnanf-tests (Files): Likewise.
4070         * modules/isnanl-nolibm-tests (Files): Likewise.
4071         * modules/isnanl-tests (Files): Likewise.
4072         * modules/lchown-tests (Files): Likewise.
4073         * modules/ldexpl-tests (Files): Likewise.
4074         * modules/link-tests (Files): Likewise.
4075         * modules/linkat-tests (Files): Likewise.
4076         * modules/linked-list-tests (Files): Likewise.
4077         * modules/linkedhash-list-tests (Files): Likewise.
4078         * modules/localename-tests (Files): Likewise.
4079         * modules/lseek-tests (Files): Likewise.
4080         * modules/lstat-tests (Files): Likewise.
4081         * modules/mbmemcasecmp-tests (Files): Likewise.
4082         * modules/mbmemcasecoll-tests (Files): Likewise.
4083         * modules/mbrtowc-tests (Files): Likewise.
4084         * modules/mbscasecmp-tests (Files): Likewise.
4085         * modules/mbscasestr-tests (Files): Likewise.
4086         * modules/mbschr-tests (Files): Likewise.
4087         * modules/mbscspn-tests (Files): Likewise.
4088         * modules/mbsinit-tests (Files): Likewise.
4089         * modules/mbsncasecmp-tests (Files): Likewise.
4090         * modules/mbsnrtowcs-tests (Files): Likewise.
4091         * modules/mbspbrk-tests (Files): Likewise.
4092         * modules/mbspcasecmp-tests (Files): Likewise.
4093         * modules/mbsrchr-tests (Files): Likewise.
4094         * modules/mbsrtowcs-tests (Files): Likewise.
4095         * modules/mbsspn-tests (Files): Likewise.
4096         * modules/mbsstr-tests (Files): Likewise.
4097         * modules/memchr-tests (Files): Likewise.
4098         * modules/memchr2-tests (Files): Likewise.
4099         * modules/memcmp-tests (Files): Likewise.
4100         * modules/memmem-tests (Files): Likewise.
4101         * modules/memrchr-tests (Files): Likewise.
4102         * modules/mkdir-tests (Files): Likewise.
4103         * modules/mkfifo-tests (Files): Likewise.
4104         * modules/mkfifoat-tests (Files): Likewise.
4105         * modules/mknod-tests (Files): Likewise.
4106         * modules/nanosleep-tests (Files): Likewise.
4107         * modules/nl_langinfo-tests (Files): Likewise.
4108         * modules/obstack-printf-tests (Files): Likewise.
4109         * modules/open-tests (Files): Likewise.
4110         * modules/openat-tests (Files): Likewise.
4111         * modules/pipe-filter-gi-tests (Files): Likewise.
4112         * modules/pipe-filter-ii-tests (Files): Likewise.
4113         * modules/pipe2-tests (Files): Likewise.
4114         * modules/popen-safer-tests (Files): Likewise.
4115         * modules/popen-tests (Files): Likewise.
4116         * modules/posixtm-tests (Files): Likewise.
4117         * modules/pread-tests (Files): Likewise.
4118         * modules/printf-frexp-tests (Files): Likewise.
4119         * modules/printf-frexpl-tests (Files): Likewise.
4120         * modules/printf-posix-tests (Files): Likewise.
4121         * modules/priv-set-tests (Files): Likewise.
4122         * modules/quotearg-tests (Files): Likewise.
4123         * modules/random_r-tests (Files): Likewise.
4124         * modules/rawmemchr-tests (Files): Likewise.
4125         * modules/rbtree-list-tests (Files): Likewise.
4126         * modules/rbtree-oset-tests (Files): Likewise.
4127         * modules/rbtreehash-list-tests (Files): Likewise.
4128         * modules/readlink-tests (Files): Likewise.
4129         * modules/remove-tests (Files): Likewise.
4130         * modules/rename-tests (Files): Likewise.
4131         * modules/renameat-tests (Files): Likewise.
4132         * modules/rmdir-tests (Files): Likewise.
4133         * modules/round-tests (Files): Likewise.
4134         * modules/roundf-tests (Files): Likewise.
4135         * modules/roundl-tests (Files): Likewise.
4136         * modules/safe-alloc-tests (Files): Likewise.
4137         * modules/setenv-tests (Files): Likewise.
4138         * modules/sigaction-tests (Files): Likewise.
4139         * modules/signbit-tests (Files): Likewise.
4140         * modules/sleep-tests (Files): Likewise.
4141         * modules/snprintf-posix-tests (Files): Likewise.
4142         * modules/snprintf-tests (Files): Likewise.
4143         * modules/sprintf-posix-tests (Files): Likewise.
4144         * modules/stat-tests (Files): Likewise.
4145         * modules/stat-time-tests (Files): Likewise.
4146         * modules/strcasestr-tests (Files): Likewise.
4147         * modules/strchrnul-tests (Files): Likewise.
4148         * modules/strerror-tests (Files): Likewise.
4149         * modules/striconv-tests (Files): Likewise.
4150         * modules/striconveh-tests (Files): Likewise.
4151         * modules/striconveha-tests (Files): Likewise.
4152         * modules/strsignal-tests (Files): Likewise.
4153         * modules/strstr-tests (Files): Likewise.
4154         * modules/strtod-tests (Files): Likewise.
4155         * modules/strverscmp-tests (Files): Likewise.
4156         * modules/symlink-tests (Files): Likewise.
4157         * modules/symlinkat-tests (Files): Likewise.
4158         * modules/trunc-tests (Files): Likewise.
4159         * modules/truncf-tests (Files): Likewise.
4160         * modules/truncl-tests (Files): Likewise.
4161         * modules/uname-tests (Files): Likewise.
4162         * modules/unicase/cased-tests (Files): Likewise.
4163         * modules/unicase/ignorable-tests (Files): Likewise.
4164         * modules/unicase/locale-language-tests (Files): Likewise.
4165         * modules/unicase/tolower-tests (Files): Likewise.
4166         * modules/unicase/totitle-tests (Files): Likewise.
4167         * modules/unicase/toupper-tests (Files): Likewise.
4168         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4169         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4170         * modules/unicase/u8-casefold-tests (Files): Likewise.
4171         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4172         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4173         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4174         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4175         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4176         * modules/unicase/u8-tolower-tests (Files): Likewise.
4177         * modules/unicase/u8-totitle-tests (Files): Likewise.
4178         * modules/unicase/u8-toupper-tests (Files): Likewise.
4179         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4180         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4181         * modules/unicase/u16-casefold-tests (Files): Likewise.
4182         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4183         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4184         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4185         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4186         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4187         * modules/unicase/u16-tolower-tests (Files): Likewise.
4188         * modules/unicase/u16-totitle-tests (Files): Likewise.
4189         * modules/unicase/u16-toupper-tests (Files): Likewise.
4190         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4191         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4192         * modules/unicase/u32-casefold-tests (Files): Likewise.
4193         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4194         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4195         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4196         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4197         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4198         * modules/unicase/u32-tolower-tests (Files): Likewise.
4199         * modules/unicase/u32-totitle-tests (Files): Likewise.
4200         * modules/unicase/u32-toupper-tests (Files): Likewise.
4201         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4202         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4203         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4204         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4205         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4206         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4207         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4208         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4209         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4210         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4211         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4212         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4213         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4214         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4215         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4216         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4217         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4218         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4219         * modules/unictype/block-list-tests (Files): Likewise.
4220         * modules/unictype/block-of-tests (Files): Likewise.
4221         * modules/unictype/block-test-tests (Files): Likewise.
4222         * modules/unictype/category-C-tests (Files): Likewise.
4223         * modules/unictype/category-Cc-tests (Files): Likewise.
4224         * modules/unictype/category-Cf-tests (Files): Likewise.
4225         * modules/unictype/category-Cn-tests (Files): Likewise.
4226         * modules/unictype/category-Co-tests (Files): Likewise.
4227         * modules/unictype/category-Cs-tests (Files): Likewise.
4228         * modules/unictype/category-L-tests (Files): Likewise.
4229         * modules/unictype/category-Ll-tests (Files): Likewise.
4230         * modules/unictype/category-Lm-tests (Files): Likewise.
4231         * modules/unictype/category-Lo-tests (Files): Likewise.
4232         * modules/unictype/category-Lt-tests (Files): Likewise.
4233         * modules/unictype/category-Lu-tests (Files): Likewise.
4234         * modules/unictype/category-M-tests (Files): Likewise.
4235         * modules/unictype/category-Mc-tests (Files): Likewise.
4236         * modules/unictype/category-Me-tests (Files): Likewise.
4237         * modules/unictype/category-Mn-tests (Files): Likewise.
4238         * modules/unictype/category-N-tests (Files): Likewise.
4239         * modules/unictype/category-Nd-tests (Files): Likewise.
4240         * modules/unictype/category-Nl-tests (Files): Likewise.
4241         * modules/unictype/category-No-tests (Files): Likewise.
4242         * modules/unictype/category-P-tests (Files): Likewise.
4243         * modules/unictype/category-Pc-tests (Files): Likewise.
4244         * modules/unictype/category-Pd-tests (Files): Likewise.
4245         * modules/unictype/category-Pe-tests (Files): Likewise.
4246         * modules/unictype/category-Pf-tests (Files): Likewise.
4247         * modules/unictype/category-Pi-tests (Files): Likewise.
4248         * modules/unictype/category-Po-tests (Files): Likewise.
4249         * modules/unictype/category-Ps-tests (Files): Likewise.
4250         * modules/unictype/category-S-tests (Files): Likewise.
4251         * modules/unictype/category-Sc-tests (Files): Likewise.
4252         * modules/unictype/category-Sk-tests (Files): Likewise.
4253         * modules/unictype/category-Sm-tests (Files): Likewise.
4254         * modules/unictype/category-So-tests (Files): Likewise.
4255         * modules/unictype/category-Z-tests (Files): Likewise.
4256         * modules/unictype/category-Zl-tests (Files): Likewise.
4257         * modules/unictype/category-Zp-tests (Files): Likewise.
4258         * modules/unictype/category-Zs-tests (Files): Likewise.
4259         * modules/unictype/category-and-not-tests (Files): Likewise.
4260         * modules/unictype/category-and-tests (Files): Likewise.
4261         * modules/unictype/category-byname-tests (Files): Likewise.
4262         * modules/unictype/category-name-tests (Files): Likewise.
4263         * modules/unictype/category-none-tests (Files): Likewise.
4264         * modules/unictype/category-of-tests (Files): Likewise.
4265         * modules/unictype/category-or-tests (Files): Likewise.
4266         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4267         * modules/unictype/combining-class-tests (Files): Likewise.
4268         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4269         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4270         * modules/unictype/ctype-blank-tests (Files): Likewise.
4271         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4272         * modules/unictype/ctype-digit-tests (Files): Likewise.
4273         * modules/unictype/ctype-graph-tests (Files): Likewise.
4274         * modules/unictype/ctype-lower-tests (Files): Likewise.
4275         * modules/unictype/ctype-print-tests (Files): Likewise.
4276         * modules/unictype/ctype-punct-tests (Files): Likewise.
4277         * modules/unictype/ctype-space-tests (Files): Likewise.
4278         * modules/unictype/ctype-upper-tests (Files): Likewise.
4279         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4280         * modules/unictype/decimal-digit-tests (Files): Likewise.
4281         * modules/unictype/digit-tests (Files): Likewise.
4282         * modules/unictype/mirror-tests (Files): Likewise.
4283         * modules/unictype/numeric-tests (Files): Likewise.
4284         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4285         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4286         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4287         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4288         Likewise.
4289         * modules/unictype/property-bidi-block-separator-tests (Files):
4290         Likewise.
4291         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4292         Likewise.
4293         * modules/unictype/property-bidi-common-separator-tests (Files):
4294         Likewise.
4295         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4296         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4297         Likewise.
4298         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4299         Likewise.
4300         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4301         Likewise.
4302         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4303         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4304         Likewise.
4305         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4306         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4307         Likewise.
4308         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4309         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4310         * modules/unictype/property-bidi-segment-separator-tests (Files):
4311         Likewise.
4312         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4313         * modules/unictype/property-byname-tests (Files): Likewise.
4314         * modules/unictype/property-combining-tests (Files): Likewise.
4315         * modules/unictype/property-composite-tests (Files): Likewise.
4316         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4317         * modules/unictype/property-dash-tests (Files): Likewise.
4318         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4319         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4320         Likewise.
4321         * modules/unictype/property-deprecated-tests (Files): Likewise.
4322         * modules/unictype/property-diacritic-tests (Files): Likewise.
4323         * modules/unictype/property-extender-tests (Files): Likewise.
4324         * modules/unictype/property-format-control-tests (Files): Likewise.
4325         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4326         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4327         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4328         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4329         * modules/unictype/property-hyphen-tests (Files): Likewise.
4330         * modules/unictype/property-id-continue-tests (Files): Likewise.
4331         * modules/unictype/property-id-start-tests (Files): Likewise.
4332         * modules/unictype/property-ideographic-tests (Files): Likewise.
4333         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4334         * modules/unictype/property-ids-trinary-operator-tests (Files):
4335         Likewise.
4336         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4337         * modules/unictype/property-iso-control-tests (Files): Likewise.
4338         * modules/unictype/property-join-control-tests (Files): Likewise.
4339         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4340         * modules/unictype/property-line-separator-tests (Files): Likewise.
4341         * modules/unictype/property-logical-order-exception-tests (Files):
4342         Likewise.
4343         * modules/unictype/property-lowercase-tests (Files): Likewise.
4344         * modules/unictype/property-math-tests (Files): Likewise.
4345         * modules/unictype/property-non-break-tests (Files): Likewise.
4346         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4347         * modules/unictype/property-numeric-tests (Files): Likewise.
4348         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4349         * modules/unictype/property-other-default-ignorable-code-point-tests
4350         (Files): Likewise.
4351         * modules/unictype/property-other-grapheme-extend-tests (Files):
4352         Likewise.
4353         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4354         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4355         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4356         * modules/unictype/property-other-math-tests (Files): Likewise.
4357         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4358         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4359         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4360         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4361         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4362         * modules/unictype/property-private-use-tests (Files): Likewise.
4363         * modules/unictype/property-punctuation-tests (Files): Likewise.
4364         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4365         * modules/unictype/property-radical-tests (Files): Likewise.
4366         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4367         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4368         * modules/unictype/property-space-tests (Files): Likewise.
4369         * modules/unictype/property-terminal-punctuation-tests (Files):
4370         Likewise.
4371         * modules/unictype/property-test-tests (Files): Likewise.
4372         * modules/unictype/property-titlecase-tests (Files): Likewise.
4373         * modules/unictype/property-unassigned-code-value-tests (Files):
4374         Likewise.
4375         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4376         * modules/unictype/property-uppercase-tests (Files): Likewise.
4377         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4378         * modules/unictype/property-white-space-tests (Files): Likewise.
4379         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4380         * modules/unictype/property-xid-start-tests (Files): Likewise.
4381         * modules/unictype/property-zero-width-tests (Files): Likewise.
4382         * modules/unictype/scripts-tests (Files): Likewise.
4383         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4384         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4385         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4386         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4387         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4388         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4389         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4390         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4391         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4392         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4393         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4394         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4395         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4396         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4397         * modules/uninorm/composition-tests (Files): Likewise.
4398         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4399         * modules/uninorm/decomposition-tests (Files): Likewise.
4400         * modules/uninorm/filter-tests (Files): Likewise.
4401         * modules/uninorm/nfc-tests (Files): Likewise.
4402         * modules/uninorm/nfd-tests (Files): Likewise.
4403         * modules/uninorm/nfkc-tests (Files): Likewise.
4404         * modules/uninorm/nfkd-tests (Files): Likewise.
4405         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4406         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4407         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4408         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4409         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4410         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4411         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4412         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4413         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4414         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4415         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4416         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4417         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4418         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4419         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4420         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4421         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4422         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4423         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4424         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4425         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4426         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4427         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4428         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4429         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4430         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4431         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4432         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4433         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4434         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4435         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4436         * modules/uniwidth/u8-width-tests (Files): Likewise.
4437         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4438         * modules/uniwidth/u16-width-tests (Files): Likewise.
4439         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4440         * modules/uniwidth/u32-width-tests (Files): Likewise.
4441         * modules/uniwidth/width-tests (Files): Likewise.
4442         * modules/unlink-tests (Files): Likewise.
4443         * modules/unsetenv-tests (Files): Likewise.
4444         * modules/usleep-tests (Files): Likewise.
4445         * modules/utimens-tests (Files): Likewise.
4446         * modules/utimensat-tests (Files): Likewise.
4447         * modules/vasnprintf-posix-tests (Files): Likewise.
4448         * modules/vasnprintf-tests (Files): Likewise.
4449         * modules/vasprintf-posix-tests (Files): Likewise.
4450         * modules/vasprintf-tests (Files): Likewise.
4451         * modules/vdprintf-posix-tests (Files): Likewise.
4452         * modules/vfprintf-posix-tests (Files): Likewise.
4453         * modules/vprintf-posix-tests (Files): Likewise.
4454         * modules/vsnprintf-posix-tests (Files): Likewise.
4455         * modules/vsnprintf-tests (Files): Likewise.
4456         * modules/vsprintf-posix-tests (Files): Likewise.
4457         * modules/wcrtomb-tests (Files): Likewise.
4458         * modules/wcsnrtombs-tests (Files): Likewise.
4459         * modules/wcsrtombs-tests (Files): Likewise.
4460         * modules/wctype-tests (Files): Likewise.
4461         * modules/wcwidth-tests (Files): Likewise.
4462         * modules/xmemdup0-tests (Files): Likewise.
4463         * modules/xprintf-posix-tests (Files): Likewise.
4464         * modules/xvasprintf-tests (Files): Likewise.
4465
4466 2009-12-24  Eric Blake  <ebb9@byu.net>
4467
4468         test-nanosleep: fix typo
4469         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4470         patch.
4471         Reported by Bruno Haible.
4472
4473 2009-12-24  Bruno Haible  <bruno@clisp.org>
4474
4475         Reduce namespace pollution on glibc systems.
4476         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4477         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4478         systems.
4479         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4480         <getopt.h> on glibc systems.
4481         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4482         systems.
4483         * lib/fcntl.c: Include <unistd.h> here instead.
4484
4485 2009-12-24  Bruno Haible  <bruno@clisp.org>
4486
4487         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4488
4489 2009-12-24  Eric Blake  <ebb9@byu.net>
4490
4491         tests: add signature checks
4492         * tests/signature.h (SIGNATURE_CHECK): New file.
4493         * modules/atexit-tests (Files): Use it.
4494         * modules/btowc-tests (Files): Likewise.
4495         * modules/canonicalize-lgpl-tests (Files): Likewise.
4496         * modules/ceilf-tests (Files): Likewise.
4497         * modules/ceill-tests (Files): Likewise.
4498         * modules/chown-tests (Files): Likewise.
4499         * modules/dprintf-posix-tests (Files): Likewise.
4500         * modules/dup2-tests (Files): Likewise.
4501         * modules/dup3-tests (Files): Likewise.
4502         * modules/duplocale-tests (Files): Likewise.
4503         * modules/fchdir-tests (Files): Likewise.
4504         * modules/fcntl-tests (Files): Likewise.
4505         * modules/fdopendir-tests (Files): Likewise.
4506         * modules/fflush-tests (Files): Likewise.
4507         * modules/flock-tests (Files): Likewise.
4508         * modules/floorf-tests (Files): Likewise.
4509         * modules/floorl-tests (Files): Likewise.
4510         * modules/fnmatch-tests (Files): Likewise.
4511         * modules/fopen-tests (Files): Likewise.
4512         * modules/fprintf-posix-tests (Files): Likewise.
4513         * modules/freopen-tests (Files): Likewise.
4514         * modules/frexp-nolibm-tests (Files): Likewise.
4515         * modules/frexp-tests (Files): Likewise.
4516         * modules/frexpl-nolibm-tests (Files): Likewise.
4517         * modules/frexpl-tests (Files): Likewise.
4518         * modules/fseek-tests (Files): Likewise.
4519         * modules/fseeko-tests (Files): Likewise.
4520         * modules/fsync-tests (Files): Likewise.
4521         * modules/ftell-tests (Files): Likewise.
4522         * modules/ftello-tests (Files): Likewise.
4523         * modules/futimens-tests (Files): Likewise.
4524         * modules/getaddrinfo-tests (Files): Likewise.
4525         * modules/getcwd-tests (Files): Likewise.
4526         * modules/getdelim-tests (Files): Likewise.
4527         * modules/getdtablesize-tests (Files): Likewise.
4528         * modules/getgroups-tests (Files): Likewise.
4529         * modules/gethostname-tests (Files): Likewise.
4530         * modules/getline-tests (Files): Likewise.
4531         * modules/getopt-posix-tests (Files): Likewise.
4532         * modules/gettimeofday-tests (Files): Likewise.
4533         * modules/glob-tests (Files): Likewise.
4534         * modules/iconv-tests (Files): Likewise.
4535         * modules/inet_ntop-tests (Files): Likewise.
4536         * modules/inet_pton-tests (Files): Likewise.
4537         * modules/isblank-tests (Files): Likewise.
4538         * modules/lchown-tests (Files): Likewise.
4539         * modules/ldexpl-tests (Files): Likewise.
4540         * modules/link-tests (Files): Likewise.
4541         * modules/linkat-tests (Files): Likewise.
4542         * modules/lseek-tests (Files): Likewise.
4543         * modules/lstat-tests (Files): Likewise.
4544         * modules/mbrtowc-tests (Files): Likewise.
4545         * modules/mbsinit-tests (Files): Likewise.
4546         * modules/mbsnrtowcs-tests (Files): Likewise.
4547         * modules/mbsrtowcs-tests (Files): Likewise.
4548         * modules/memchr-tests (Files): Likewise.
4549         * modules/memcmp-tests (Files): Likewise.
4550         * modules/memmem-tests (Files): Likewise.
4551         * modules/memrchr-tests (Files): Likewise.
4552         * modules/mkdir-tests (Files): Likewise.
4553         * modules/mkfifo-tests (Files): Likewise.
4554         * modules/mkfifoat-tests (Files): Likewise.
4555         * modules/mknod-tests (Files): Likewise.
4556         * modules/nanosleep-tests (Files): Likewise.
4557         * modules/nl_langinfo-tests (Files): Likewise.
4558         * modules/obstack-printf-tests (Files): Likewise.
4559         * modules/open-tests (Files): Likewise.
4560         * modules/openat-tests (Files): Likewise.
4561         * modules/perror-tests (Files): Likewise.
4562         * modules/pipe2-tests (Files): Likewise.
4563         * modules/poll-tests (Files): Likewise.
4564         * modules/popen-tests (Files): Likewise.
4565         * modules/posix_spawn-tests (Files): Likewise.
4566         * modules/posix_spawnp-tests (Files): Likewise.
4567         * modules/pread-tests (Files): Likewise.
4568         * modules/printf-posix-tests (Files): Likewise.
4569         * modules/pty-tests (Files): Likewise.
4570         * modules/random_r-tests (Files): Likewise.
4571         * modules/rawmemchr-tests (Files): Likewise.
4572         * modules/readlink-tests (Files): Likewise.
4573         * modules/remove-tests (Files): Likewise.
4574         * modules/rename-tests (Files): Likewise.
4575         * modules/renameat-tests (Files): Likewise.
4576         * modules/rmdir-tests (Files): Likewise.
4577         * modules/round-tests (Files): Likewise.
4578         * modules/roundf-tests (Files): Likewise.
4579         * modules/roundl-tests (Files): Likewise.
4580         * modules/select-tests (Files): Likewise.
4581         * modules/setenv-tests (Files): Likewise.
4582         * modules/sigaction-tests (Files): Likewise.
4583         * modules/sleep-tests (Files): Likewise.
4584         * modules/snprintf-posix-tests (Files): Likewise.
4585         * modules/snprintf-tests (Files): Likewise.
4586         * modules/sprintf-posix-tests (Files): Likewise.
4587         * modules/stat-tests (Files): Likewise.
4588         * modules/strcasestr-tests (Files): Likewise.
4589         * modules/strchrnul-tests (Files): Likewise.
4590         * modules/strerror-tests (Files): Likewise.
4591         * modules/strsignal-tests (Files): Likewise.
4592         * modules/strstr-tests (Files): Likewise.
4593         * modules/strtod-tests (Files): Likewise.
4594         * modules/strverscmp-tests (Files): Likewise.
4595         * modules/symlink-tests (Files): Likewise.
4596         * modules/symlinkat-tests (Files): Likewise.
4597         * modules/times-tests (Files): Likewise.
4598         * modules/trunc-tests (Files): Likewise.
4599         * modules/truncf-tests (Files): Likewise.
4600         * modules/truncl-tests (Files): Likewise.
4601         * modules/tsearch-tests (Files): Likewise.
4602         * modules/uname-tests (Files): Likewise.
4603         * modules/unlink-tests (Files): Likewise.
4604         * modules/unsetenv-tests (Files): Likewise.
4605         * modules/usleep-tests (Files): Likewise.
4606         * modules/utimensat-tests (Files): Likewise.
4607         * modules/vasprintf-tests (Files): Likewise.
4608         * modules/vdprintf-posix-tests (Files): Likewise.
4609         * modules/vfprintf-posix-tests (Files): Likewise.
4610         * modules/vprintf-posix-tests (Files): Likewise.
4611         * modules/vsnprintf-posix-tests (Files): Likewise.
4612         * modules/vsnprintf-tests (Files): Likewise.
4613         * modules/vsprintf-posix-tests (Files): Likewise.
4614         * modules/wcrtomb-tests (Files): Likewise.
4615         * modules/wcsnrtombs-tests (Files): Likewise.
4616         * modules/wcsrtombs-tests (Files): Likewise.
4617         * modules/wcwidth-tests (Files): Likewise.
4618         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4619         * tests/test-isinf.c (isinf): Likewise.
4620         * tests/test-isnan.c (isnan): Likewise.
4621         * tests/test-signbit.c (signbit): Likewise.
4622         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4623         declaration, either as macro or with correct signature.
4624         (select): Ensure function under test is declared with correct
4625         signature in correct header.
4626         * tests/test-atexit.c (atexit): Likewise.
4627         * tests/test-btowc.c (btowc): Likewise.
4628         * tests/test-canonicalize-lgpl.c (realpath)
4629         (canonicalize_file_name): Likewise.
4630         * tests/test-ceilf1.c (ceilf): Likewise.
4631         * tests/test-ceill.c (ceill): Likewise.
4632         * tests/test-chown.c (chown): Likewise.
4633         * tests/test-dprintf-posix.c (dprintf): Likewise.
4634         * tests/test-dup2.c (dup2): Likewise.
4635         * tests/test-dup3.c (dup3): Likewise.
4636         * tests/test-duplocale.c (duplocale): Likewise.
4637         * tests/test-fchdir.c (fchdir): Likewise.
4638         * tests/test-fchownat.c (fchownat): Likewise.
4639         * tests/test-fcntl.c (fcntl): Likewise.
4640         * tests/test-fdopendir.c (fdopendir): Likewise.
4641         * tests/test-fflush.c (fflush): Likewise.
4642         * tests/test-flock.c (flock): Likewise.
4643         * tests/test-floorf1.c (floorf): Likewise.
4644         * tests/test-floorl.c (floorl): Likewise.
4645         * tests/test-fnmatch.c (fnmatch): Likewise.
4646         * tests/test-fopen.c (fopen): Likewise.
4647         * tests/test-fprintf-posix.c (fprintf): Likewise.
4648         * tests/test-freopen.c (freopen): Likewise.
4649         * tests/test-frexp.c (frexp): Likewise.
4650         * tests/test-frexpl.c (frexpl): Likewise.
4651         * tests/test-fseek.c (fseek): Likewise.
4652         * tests/test-fseeko.c (fseeko): Likewise.
4653         * tests/test-fstatat.c (fstatat): Likewise.
4654         * tests/test-fsync.c (fsync): Likewise.
4655         * tests/test-ftell.c (ftell): Likewise.
4656         * tests/test-ftello.c (ftello): Likewise.
4657         * tests/test-futimens.c (futimens): Likewise.
4658         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4659         (gai_strerror): Likewise.
4660         * tests/test-getcwd.c (getcwd): Likewise.
4661         * tests/test-getdelim.c (getdelim): Likewise.
4662         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4663         * tests/test-getgroups.c (getgroups): Likewise.
4664         * tests/test-gethostname.c (gethostname): Likewise.
4665         * tests/test-getline.c (getline): Likewise.
4666         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4667         Likewise.
4668         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4669         * tests/test-glob.c (glob, globfree): Likewise.
4670         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4671         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4672         * tests/test-inet_pton.c (inet_pton): Likewise.
4673         * tests/test-isblank.c (isblank): Likewise.
4674         * tests/test-lchown.c (lchown): Likewise.
4675         * tests/test-ldexpl.c (ldexpl): Likewise.
4676         * tests/test-link.c (link): Likewise.
4677         * tests/test-linkat.c (linkat): Likewise.
4678         * tests/test-lseek.c (lseek): Likewise.
4679         * tests/test-lstat.c (lstat): Likewise.
4680         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4681         * tests/test-mbsinit.c (mbsinit): Likewise.
4682         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4683         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4684         * tests/test-memchr.c (memchr): Likewise.
4685         * tests/test-memcmp.c (memcmp): Likewise.
4686         * tests/test-memmem.c (memmem): Likewise.
4687         * tests/test-memrchr.c (memrchr): Likewise.
4688         * tests/test-mkdir.c (mkdir): Likewise.
4689         * tests/test-mkdirat.c (mkdirat): Likewise.
4690         * tests/test-mkfifo.c (mkfifo): Likewise.
4691         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4692         * tests/test-mknod.c (mknod): Likewise.
4693         * tests/test-nanosleep.c (nanosleep): Likewise.
4694         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4695         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4696         Likewise.
4697         * tests/test-open.c (open): Likewise.
4698         * tests/test-openat.c (openat): Likewise.
4699         * tests/test-perror.c (perror): Likewise.
4700         * tests/test-pipe2.c (pipe2): Likewise.
4701         * tests/test-poll.c (poll): Likewise.
4702         * tests/test-popen.c (popen, pclose): Likewise.
4703         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4704         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4705         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4706         (posix_spawn_file_actions_destroy)
4707         (posix_spawn_file_actions_addclose)
4708         (posix_spawn_file_actions_addopen)
4709         (posix_spawn_file_actions_adddup2): Likewise.
4710         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4711         * tests/test-pread.c (pread): Likewise.
4712         * tests/test-printf-posix.c (printf): Likewise.
4713         * tests/test-pty.c (openpty, forkpty): Likewise.
4714         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4715         (random_r): Likewise.
4716         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4717         * tests/test-readlink.c (readlink): Likewise.
4718         * tests/test-remove.c (remove): Likewise.
4719         * tests/test-rename.c (rename): Likewise.
4720         * tests/test-renameat.c (renameat): Likewise.
4721         * tests/test-rmdir.c (rmdir): Likewise.
4722         * tests/test-round1.c (round): Likewise.
4723         * tests/test-roundf1.c (roundf): Likewise.
4724         * tests/test-roundl.c (roundl): Likewise.
4725         * tests/test-setenv.c (setenv): Likewise.
4726         * tests/test-sigaction.c (sigaction): Likewise.
4727         * tests/test-sleep.c (sleep): Likewise.
4728         * tests/test-snprintf.c (snprintf): Likewise.
4729         * tests/test-sprintf-posix.c (sprintf): Likewise.
4730         * tests/test-stat.c (stat): Likewise.
4731         * tests/test-stpncpy.c (stpncpy): Likewise.
4732         * tests/test-strcasestr.c (strcasestr): Likewise.
4733         * tests/test-strchrnul.c (strchrnul): Likewise.
4734         * tests/test-strerror.c (strerror): Likewise.
4735         * tests/test-strsignal.c (strsignal): Likewise.
4736         * tests/test-strstr.c (strstr): Likewise.
4737         * tests/test-strtod.c (strtod): Likewise.
4738         * tests/test-strverscmp.c (strverscmp): Likewise.
4739         * tests/test-symlink.c (symlink): Likewise.
4740         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4741         * tests/test-times.c (times): Likewise.
4742         * tests/test-trunc1.c (trunc): Likewise.
4743         * tests/test-truncf1.c (truncf): Likewise.
4744         * tests/test-truncl.c (truncl): Likewise.
4745         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4746         Likewise.
4747         * tests/test-uname.c (uname): Likewise.
4748         * tests/test-unlink.c (unlink): Likewise.
4749         * tests/test-unlinkat.c (unlinkat): Likewise.
4750         * tests/test-unsetenv.c (unsetenv): Likewise.
4751         * tests/test-usleep.c (usleep): Likewise.
4752         * tests/test-utimensat.c (utimensat): Likewise.
4753         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4754         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4755         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4756         * tests/test-vprintf-posix.c (vprintf): Likewise.
4757         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4758         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4759         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4760         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4761         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4762         * tests/test-wcwidth.c (wcwidth): Likewise.
4763
4764         build: pull in conditional headers during GNULIB_POSIXCHECK
4765         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4766         definitions from any conditionally-included headers.
4767         * lib/stdlib.in.h (includes): Likewise.
4768         * lib/unistd.in.h (includes): Likewise.
4769
4770 2009-12-24  Bruno Haible  <bruno@clisp.org>
4771
4772         * tests/test-argv-iter.c: Include header file being tested immediately
4773         after config.h.
4774         * tests/test-base64.c: Likewise.
4775         * tests/test-flock.c: Likewise.
4776         * tests/test-fsync.c: Likewise.
4777         * tests/test-getdate.c: Likewise.
4778         * tests/test-getndelim2.c: Likewise.
4779         * tests/test-isfinite.c: Likewise.
4780         * tests/test-isinf.c: Likewise.
4781         * tests/test-strerror.c: Likewise.
4782         * tests/test-strsignal.c: Likewise.
4783
4784 2009-12-23  Eric Blake  <ebb9@byu.net>
4785
4786         unistd: work around cygwin bug
4787         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4788         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4789         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4790
4791 2009-12-23  Bruno Haible  <bruno@clisp.org>
4792
4793         localename: More tests.
4794         * tests/test-localename.c (SIZEOF): New macro.
4795         (categories): New variable.
4796         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4797         test_locale_name_default): Add test w.r.t. thread locale.
4798         (test_locale_name_thread): New function.
4799         (main): Invoke it.
4800
4801         localename: Make aware of thread locale.
4802         * lib/localename.h (gl_locale_name_thread): New declaration.
4803         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4804         behaviour with respect to thread locale.
4805         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4806         <langinfo.h>, glthread/lock.h.
4807         (SIZE_BITS): New macro.
4808         (string_hash): New function.
4809         (struct hash_node): New type.
4810         (HASH_TABLE_SIZE): New macro.
4811         (struniq_hash_table, struniq_lock): New variables.
4812         (struniq): New function.
4813         (gl_locale_name_thread): New function.
4814         (gl_locale_name): Invoke it.
4815         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4816         * modules/localename (Depends-on): Add lock.
4817         Reported by Mike Gran <spk121@yahoo.com>.
4818
4819 2009-12-23  Eric Blake  <ebb9@byu.net>
4820
4821         va-args: new module
4822         * modules/va-args: New file.
4823         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4824         * MODULES.html.sh (Core language properties): Mention it.
4825
4826         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4827         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4828         named alias for __attribute__((__unused__)).
4829         * lib/chown.c: Update client.
4830         * lib/fchmodat.c: Likewise.
4831         * lib/fts.c: Likewise.
4832         * lib/getdate.y: Likewise.
4833         * lib/getgroups.c: Likewise.
4834         * lib/getopt.c: Likewise.
4835         * lib/getugroups.c: Likewise.
4836         * lib/mkdir.c: Likewise.
4837         * lib/mkfifo.c: Likewise.
4838         * lib/mkfifoat.c: Likewise.
4839         * lib/mknod.c: Likewise.
4840         * lib/mknodat.c: Likewise.
4841         * lib/readlink.c: Likewise.
4842         * lib/se-context.in.h: Likewise.
4843         * lib/se-selinux.in.h: Likewise.
4844         * lib/sockets.c: Likewise.
4845         * lib/symlink.c: Likewise.
4846         * lib/symlinkat.c: Likewise.
4847         * lib/unicodeio.c: Likewise.
4848         * lib/unistr.h: Likewise.
4849         * tests/test-areadlink.c: Likewise.
4850         * tests/test-areadlinkat.c: Likewise.
4851         * tests/test-filenamecat.c: Likewise.
4852         * tests/test-fseeko.c: Likewise.
4853         * tests/test-ftello.c: Likewise.
4854         * tests/test-getdate.c: Likewise.
4855         * tests/test-getgroups.c: Likewise.
4856         * tests/test-gethostname.c: Likewise.
4857         * tests/test-quotearg.c: Likewise.
4858         * tests/test-version-etc.c: Likewise.
4859         * tests/test-xalloc-die.c: Likewise.
4860         * tests/test-xfprintf-posix.c: Likewise.
4861         * tests/test-xprintf-posix.c: Likewise.
4862         * tests/test-xvasprintf.c: Likewise.
4863
4864         tests: avoid compiler warnings
4865         * tests/test-fcntl.c (main): Delete unused parameters.
4866         * tests/test-freopen-safer.c (main): Likewise.
4867         * tests/test-xalloc-die.c (main): Mark unused parameters.
4868         * tests/test-fseeko.c (main): Likewise.
4869         * tests/test-ftello.c (main): Likewise.
4870         * tests/test-nanosleep.c (main): Avoid declaration warning.
4871         * tests/test-sleep.c (main): Likewise.
4872         * tests/test-unsetenv.c (main): Silence warning about string
4873         literal.
4874         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4875
4876 2009-12-23  Bruno Haible  <bruno@clisp.org>
4877
4878         * tests/test-localename.c (test_locale_name): New function, extracted
4879         from main. Also test mixed situations.
4880         (test_locale_name_posix, test_locale_name_environ,
4881         test_locale_name_default): New functions.
4882         (main): Invoke them all.
4883         * modules/localename-tests (configure.ac): Test for newlocale.
4884
4885 2009-12-23  Bruno Haible  <bruno@clisp.org>
4886
4887         unistd: Ensure getcwd gets declared before being overridden.
4888         * lib/unistd.in.h: Conditionally include <io.h>.
4889
4890 2009-12-22  Bruno Haible  <bruno@clisp.org>
4891
4892         wchar: Diagnose broken combination of glibc and gcc versions and flags.
4893         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4894         (gl_WCHAR_H): Invoke it.
4895         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4896         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4897         Reported by Karl Berry <karl@freefriends.org>.
4898
4899 2009-12-22  Eric Blake  <ebb9@byu.net>
4900
4901         math, unistd: avoid redundant includes
4902         * lib/math.in.h (isnan): No need to re-include <math.h>.
4903         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4904
4905         getsubopt: work around cygwin bug
4906         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4907         avoid conflicting with system getsubopt.
4908         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4909         bug.
4910
4911         getopt: synchronize from glibc
4912         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4913         parameter order.  Adjust all callers.
4914         (_getopt_internal_r, main): Adjust quoting in error messages.
4915         Drop considerations for outdated POSIX 1003.2 error message.
4916         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4917         callers.
4918         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4919
4920         test-getopt: test stderr behavior
4921         * modules/getopt-posix-tests (Depends-on): Add dup2.
4922         * tests/test-getopt.c (ASSERT): Avoid stderr.
4923         (main): Move stderr to a temporary file.
4924         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4925         Instead, add parameter to inform caller if output occurred.
4926         (test_getopt): Adjust all existing tests to expect silence, and
4927         add new tests of leading ":".
4928         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4929         glibc shortcomings with leading "-:" or "+:" in optstring.
4930         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4931         Likewise.
4932         * doc/posix-functions/getopt.texi (getopt): Likewise.
4933
4934         test-getopt: enhance test
4935         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4936         supports optind=0.
4937         * tests/test-getopt.c (OPTIND_MIN): Move...
4938         * tests/test-getopt.h (OPTIND_MIN): ...here.
4939         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4940         Require that optind=0 works, since modern BSD supports it in
4941         addition to optreset, and since coreutils expects it.
4942         (test_getopt_long_only): New test.
4943         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4944         glibc shortcomings with 'W;', and enforcement of optind=0.
4945         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4946         Likewise.
4947
4948 2009-12-21  Bruno Haible  <bruno@clisp.org>
4949
4950         localename: Improvements for MacOS X and Cygwin.
4951         * lib/localename.h (gl_locale_name_environ): New declaration.
4952         * lib/localename.c (gl_locale_name_environ): New function, extracted from
4953         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4954         (gl_locale_name_posix): Invoke it.
4955         (gl_locale_name_default): Add comments. Use Windows native API also on
4956         Cygwin.
4957
4958 2009-12-21  Bruno Haible  <bruno@clisp.org>
4959
4960         Update list of Win32 locale ids.
4961         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4962         (LANG_SAMI): Renamed from LANG_SAAMI.
4963         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4964         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4965         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4966         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4967         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4968         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4969         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4970         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4971         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4972         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4973         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4974         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4975         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4976         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4977         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4978         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4979         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4980         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4981         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4982         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4983         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4984         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4985         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4986         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4987         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4988         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4989         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4990         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4991         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4992         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4993         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4994         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4995         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4996         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4997         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4998         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4999         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5000         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5001         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5002         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5003         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5004         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5005         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5006         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5007         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5008         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5009         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5010         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5011         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5012         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5013         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5014         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5015         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5016         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5017         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5018         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5019         Add more languages and countries for Sami, Sorbian. Add more countries
5020         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5021         for Pashto. Change country for Syriac, Tswana.
5022
5023 2009-12-21  Eric Blake  <ebb9@byu.net>
5024
5025         test-utimens: avoid spurious failure
5026         * tests/test-chown.h (nap): Factor...
5027         * tests/nap.h: ...into new file.
5028         * tests/test-lchown.h (nap): Avoid duplication.
5029         * tests/test-utimens-common.h (nap): Use shared implementation,
5030         necessary on file systems with 1-second resolution.
5031         * modules/chown-tests (Files): Include new file.
5032         * modules/fdutimensat-tests (Files): Likewise.
5033         * modules/futimens-tests (Files): Likewise.
5034         * modules/lchown-tests (Files): Likewise.
5035         * modules/openat-tests (Files): Likewise.
5036         * modules/utimens-tests (Files): Likewise.
5037         * modules/utimensat-tests (Files): Likewise.
5038
5039 2009-12-19  Eric Blake  <ebb9@byu.net>
5040
5041         futimens, utimensat: work around Linux bug
5042         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5043         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5044         * lib/utimensat.c (rpl_utimensat): Work around it.
5045         * lib/futimens.c (rpl_futimens): Adjust comment.
5046
5047         utimens: work around Linux ctime bug
5048         * lib/utimens.c (detect_ctime_bug): New helper function.
5049         (update_timespec): Differentiate between workaround needed for
5050         this bug vs. what is needed for systems that lack utimensat.
5051         (fdutimens, lutimens): Work around bug.
5052
5053         utimens: check for ctime update
5054         * tests/test-utimens-common.h (check_ctime): Define.
5055         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5056         * tests/test-futimens.h (test_futimens): Likewise.
5057         * tests/test-lutimens.h (test_lutimens): Likewise.
5058         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5059         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5060
5061 2009-12-19  Bruno Haible  <bruno@clisp.org>
5062
5063         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5064         * tests/test-dprintf-posix2.sh: New file.
5065         * tests/test-dprintf-posix2.c: New file.
5066         * modules/dprintf-posix-tests (Files): Add them.
5067         (configure.ac): Check for getrlimit and setrlimit.
5068         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5069
5070 2009-12-19  Bruno Haible  <bruno@clisp.org>
5071
5072         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5073         * tests/test-fprintf-posix3.sh: New file.
5074         * tests/test-fprintf-posix3.c: New file.
5075         * modules/fprintf-posix-tests (Files): Add them.
5076         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5077
5078 2009-12-19  Eric Blake  <ebb9@byu.net>
5079
5080         dirfd: fix prototype
5081         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5082         * lib/dirfd.c (dirfd): Likewise.
5083
5084         canonicalize: reduce memory usage
5085         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5086         allocation to size.
5087         Reported by Solar Designer <solar@openwall.com>.
5088
5089 2009-12-19  Bruno Haible  <bruno@clisp.org>
5090
5091         New module attribute 'Applicability'.
5092         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5093         * gnulib-tool: New option --extract-applicability.
5094         (func_usage): Document it.
5095         (sed_extract_prog): Recognize it.
5096         (func_get_applicability): New function.
5097         (func_import): Generalize handling of 'link-warning' module.
5098         * modules/link-warning (Applicability): New section.
5099         * modules/arg-nonnull (Applicability): New section.
5100         Repoted by Simon Josefsson <simon@josefsson.org>.
5101
5102 2009-12-19  Bruno Haible  <bruno@clisp.org>
5103
5104         fflush: tweak
5105         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5106         * lib/fseeko.c (rpl_fseeko): Likewise.
5107
5108 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5109
5110         * lib/gl_list.h: Fix typo in comment.
5111
5112 2009-12-16  Eric Blake  <ebb9@byu.net>
5113
5114         fcntl: use to simplify other modules
5115         * modules/cloexec (Depends-on): Add fcntl.
5116         * modules/fchdir (Depends-on): Likewise.
5117         * modules/fd-safer-flag (Depends-on): Likewise.
5118         * modules/unistd-safer (Depends-on): Likewise.
5119         * modules/dup3 (configure.ac): Set module indicator.
5120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5121         missing.
5122         * lib/fchdir.c (_gl_register_dup): Fix comment.
5123         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5124         * lib/dup-safer.c (dup_safer): Likewise.
5125         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5126         * lib/dup3.c (dup3): Likewise.
5127         * tests/test-fchdir.c (main): Enhance test.
5128         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
5129
5130         fcntl: port portions of fcntl to mingw
5131         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5132         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5133         replacement for mingw.
5134         * modules/fcntl (Description): Update.
5135         (Depends-on): Add dup2.
5136         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5137         * modules/fcntl-h (Makefile.am): Substitute it.
5138         * lib/fcntl.in.h (fcntl): Update declaration.
5139         (F_DUPFD, F_GETFD): New macros, when needed.
5140         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5141         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5142         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5143         we now guarantee.
5144
5145         fcntl: work around cygwin bug in F_DUPFD
5146         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5147         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5148         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5149         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5150         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5151
5152         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5153         * modules/fcntl (Files): List new files.
5154         (configure.ac): Run a test.
5155         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5156         * lib/fcntl.c (rpl_fcntl): Likewise.
5157         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5158         (gl_FCNTL_H): Always replace fcntl.h.
5159         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5160         * lib/fcntl.in.h (fcntl): Declare replacement.
5161         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5162         needed, plus a witness.
5163         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5164         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5165         * tests/test-fcntl.c: New file.
5166         * modules/fcntl-tests: Likewise.
5167
5168         binary-io: avoid potential compilation warning
5169         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5170         directives.
5171
5172         fflush: avoid compilation error on NetBSD
5173         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5174         between off_t and fpos_t, since the latter is sometimes a struct.
5175         * lib/fseeko.c (rpl_fseeko): Likewise.
5176         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5177
5178 2009-12-15  Eric Blake  <ebb9@byu.net>
5179
5180         fcntl-h, stdio, sys_ioctl: fix declarations
5181         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5182         function must not take arguments.
5183         * lib/sys_ioctl.in.h (ioctl): Likewise.
5184         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5185         (open): Add a link warning.
5186
5187 2009-12-15  Jim Meyering  <meyering@redhat.com>
5188
5189         areadlink, areadlink-with-size: relax license to LGPLv2+
5190         * modules/areadlink (License): Relax to LGPLv2+.
5191         * modules/areadlink-with-size (License): Likewise.
5192
5193 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5194             Bruno Haible  <bruno@clisp.org>
5195
5196         *printf: Fix memory leak.
5197         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5198         * lib/vfprintf.c (vfprintf): Likewise.
5199         * lib/dprintf.c (dprintf): Likewise.
5200         * lib/vdprintf.c (vdprintf): Likewise.
5201
5202 2009-12-14  Eric Blake  <ebb9@byu.net>
5203
5204         accept4: adjust module dependencies
5205         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5206
5207         utimens: one more try at avoiding compiler warning
5208         * lib/utimens.c (lutimens): Lower scope of result.
5209
5210 2009-12-13  Bruno Haible  <bruno@clisp.org>
5211
5212         Move the malloc checking from module 'list' to new module 'xlist'.
5213         * modules/xlist: New file.
5214         * lib/gl_xlist.h: New file.
5215         * lib/gl_xlist.c: New file.
5216         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5217         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5218         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5219         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5220         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5221         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5222         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5223         gl_sortedlist_nx_add): New declarations.
5224         (struct gl_list_implementation): Rename and change methods accordingly.
5225         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5226         (gl_list_nx_create): Renamed from gl_list_create.
5227         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5228         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5229         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5230         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5231         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5232         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5233         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5234         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5235         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5236         gl_list_create_empty.
5237         (gl_list_nx_create): Renamed from gl_list_create.
5238         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5239         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5240         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5241         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5242         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5243         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5244         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5245         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5246         * lib/gl_array_list.c: Don't include xalloc.h.
5247         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5248         NULL upon out-of-memory.
5249         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5250         out-of-memory.
5251         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5252         Change return type to 'int'.
5253         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5254         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5255         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5256         upon out-of-memory.
5257         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5258         upon out-of-memory.
5259         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5260         upon out-of-memory.
5261         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5262         upon out-of-memory.
5263         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5264         out-of-memory.
5265         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5266         Update.
5267         (gl_array_list_implementation): Update.
5268         * lib/gl_carray_list.c: Don't include xalloc.h.
5269         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5270         Return NULL upon out-of-memory.
5271         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5272         out-of-memory.
5273         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5274         Change return type to 'int'.
5275         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5276         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5277         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5278         upon out-of-memory.
5279         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5280         upon out-of-memory.
5281         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5282         out-of-memory.
5283         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5284         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5285         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5286         Update.
5287         (gl_carray_list_implementation): Update.
5288         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5289         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5290         gl_linked_create_empty. Return NULL upon out-of-memory.
5291         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5292         out-of-memory.
5293         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5294         Change return type to 'int'. Return -1 upon out-of-memory.
5295         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5296         out-of-memory.
5297         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5298         upon out-of-memory.
5299         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5300         upon out-of-memory.
5301         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5302         NULL upon out-of-memory.
5303         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5304         upon out-of-memory.
5305         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5306         out-of-memory.
5307         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5308         Update.
5309         * lib/gl_linked_list.c: Don't include xalloc.h.
5310         (gl_linked_list_implementation): Update.
5311         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5312         (add_to_bucket): Change return type to 'int'.
5313         (gl_linkedhash_list_implementation): Update.
5314         * lib/gl_anytree_list1.h (free_subtree): New function.
5315         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5316         gl_tree_create_empty. Return NULL upon out-of-memory.
5317         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5318         Change return type to 'int'. Return -1 upon out-of-memory.
5319         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5320         out-of-memory.
5321         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5322         (gl_tree_remove_node): New function, moved here from
5323         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5324         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5325         Update.
5326         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5327         malloc, not xmalloc. Return NULL upon out-of-memory.
5328         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5329         out-of-memory.
5330         (gl_tree_remove_node_from_tree): New function, extracted from
5331         gl_tree_remove_node.
5332         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5333         upon out-of-memory.
5334         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5335         out-of-memory.
5336         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5337         upon out-of-memory.
5338         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5339         upon out-of-memory.
5340         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5341         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5342         not xmalloc. Return NULL upon out-of-memory.
5343         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5344         out-of-memory.
5345         (gl_tree_remove_node_from_tree): New function, extracted from
5346         gl_tree_remove_node.
5347         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5348         upon out-of-memory.
5349         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5350         out-of-memory.
5351         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5352         upon out-of-memory.
5353         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5354         upon out-of-memory.
5355         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5356         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5357         gl_anytree_list1.h before gl_anyavltree_list2.h.
5358         (gl_avltree_list_implementation): Update.
5359         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5360         gl_anytree_list1.h before gl_anyavltree_list2.h.
5361         (gl_rbtree_list_implementation): Update.
5362         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5363         Change return type to 'int'. Return -1 upon out-of-memory. Use
5364         __builtin_expect.
5365         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5366         (gl_avltreehash_list_implementation): Update.
5367         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5368         (gl_rbtreehash_list_implementation): Update.
5369         * modules/array-list (Depends-on): Remove xalloc.
5370         * modules/carray-list (Depends-on): Likewise.
5371         * modules/linked-list (Depends-on): Likewise.
5372         * modules/linkedhash-list (Depends-on): Likewise.
5373         * modules/avltree-list (Depends-on): Likewise.
5374         * modules/rbtree-list (Depends-on): Likewise.
5375         * modules/avltreehash-list (Depends-on): Likewise.
5376         * modules/rbtreehash-list (Depends-on): Likewise.
5377
5378         * modules/xsublist: New file.
5379         * lib/gl_xsublist.h: New file.
5380         * lib/gl_xsublist.c: New file.
5381         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5382         (gl_sublist_nx_create): New declaration.
5383         * lib/gl_sublist.c: Don't include xalloc.h.
5384         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5385         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5386         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5387         Change return type to 'int'. Return -1 upon out-of-memory.
5388         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5389         upon out-of-memory.
5390         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5391         NULL upon out-of-memory.
5392         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5393         upon out-of-memory.
5394         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5395         NULL upon out-of-memory.
5396         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5397         NULL upon out-of-memory.
5398         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5399         upon out-of-memory.
5400         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5401         (gl_sublist_list_implementation): Update.
5402         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5403         upon out-of-memory.
5404         * modules/sublist (Depends-on): Remove xalloc.
5405
5406         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5407         * tests/test-carray_list.c: Likewise.
5408         * tests/test-linked_list.c: Likewise.
5409         * tests/test-linkedhash_list.c: Likewise.
5410         * tests/test-avltree_list.c: Likewise.
5411         * tests/test-rbtree_list.c: Likewise.
5412         * tests/test-avltreehash_list.c: Likewise.
5413         * tests/test-rbtreehash_list.c: Likewise.
5414         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5415         * modules/carray-list-tests (Makefile.am): Likewise.
5416         * modules/linked-list-tests (Makefile.am): Likewise.
5417         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5418         * modules/avltree-list-tests (Makefile.am): Likewise.
5419         * modules/rbtree-list-tests (Makefile.am): Likewise.
5420         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5421         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5422
5423         * NEWS: Mention the changes.
5424
5425         * lib/clean-temp.c: Include gl_xlist.h.
5426         * modules/clean-temp (Depends-on): Add xlist.
5427
5428         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5429         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5430
5431         * tests/test-array_oset.c: Include gl_xlist.h.
5432         * modules/array-oset-tests (Depends-on): Add xlist.
5433
5434         Reported by José E. Marchesi <jemarch@gnu.org>.
5435
5436 2009-12-13  Bruno Haible  <bruno@clisp.org>
5437
5438         Move the malloc checking from module 'oset' to new module 'xoset'.
5439         * modules/xoset: New file.
5440         * lib/gl_xoset.h: New file.
5441         * lib/gl_xoset.c: New file.
5442         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5443         declarations.
5444         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5445         (struct gl_oset_implementation): Rename and change methods accordingly.
5446         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5447         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5448         'int'. Mark as __warn_unused_result__.
5449         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5450         gl_oset_create_empty.
5451         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5452         'int'.
5453         * lib/gl_array_oset.c: Don't include xalloc.h.
5454         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5455         malloc, not xmalloc.
5456         (grow): Change return type to 'int'. Don't call xalloc_die.
5457         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5458         to 'int'.
5459         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5460         'int'.
5461         (gl_array_oset_implementation): Update.
5462         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5463         gl_tree_create_empty.
5464         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5465         'int'.
5466         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5467         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5468         xmalloc.
5469         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5470         not xmalloc.
5471         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5472         xmalloc.
5473         (gl_avltree_oset_implementation): Update.
5474         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5475         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5476         xmalloc.
5477         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5478         not xmalloc.
5479         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5480         xmalloc.
5481         (gl_rbtree_oset_implementation): Update.
5482         * modules/array-oset (Depends-on): Remove xalloc.
5483         * modules/avltree-oset (Depends-on): Likewise.
5484         * modules/rbtree-oset (Depends-on): Likewise.
5485         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5486         * tests/test-avltree_oset.c: Likewise.
5487         * tests/test-rbtree_oset.c: Likewise.
5488         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5489         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5490         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5491         * NEWS: Mention the change.
5492
5493 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5494
5495         maint.mk: allow a project to override release-prep commands
5496         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5497         commands into a new rule.
5498         (release-prep): New rule.
5499         (release-prep-hook): New overridable variable.
5500
5501 2009-12-13  Bruno Haible  <bruno@clisp.org>
5502
5503         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5504
5505 2009-12-13  Jim Meyering  <meyering@redhat.com>
5506
5507         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5508         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5509
5510 2009-12-12  Bruno Haible  <bruno@clisp.org>
5511
5512         duplocale: Tweak.
5513         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5514
5515 2009-12-12  Karl Berry  <karl@gnu.org>
5516
5517         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5518
5519 2009-12-12  Bruno Haible  <bruno@clisp.org>
5520
5521         * m4/po.m4: Undo incorrect untabification.
5522
5523 2009-12-12  Bruno Haible  <bruno@clisp.org>
5524
5525         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5526         * modules/c-strtod (Depends-on): Add locale.
5527         * modules/c-strtold (Depends-on): Likewise.
5528
5529 2009-12-12  Bruno Haible  <bruno@clisp.org>
5530
5531         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5532
5533 2009-12-11  Eric Blake  <ebb9@byu.net>
5534
5535         setenv: relax requirement in light of POSIX ruling
5536         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5537         not NULL.
5538         * tests/test-setenv.c (main): Relax test.
5539         * tests/test-unsetenv.c (main): Likewise.
5540         * doc/posix-functions/setenv.texi (setenv): Document this.
5541         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5542
5543 2009-12-11  Bruno Haible  <bruno@clisp.org>
5544
5545         New module 'fd-safer-flag'.
5546         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5547         * lib/dup-safer.c (dup_safer_flag): Remove function.
5548         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5549         * lib/fd-safer.c (fd_safer_flag): Remove function.
5550         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5551         * modules/cloexec (configure.ac): Drop indicator macro.
5552         * modules/fd-safer-flag: New file.
5553         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5554         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5555         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5556
5557 2009-12-11  Bruno Haible  <bruno@clisp.org>
5558
5559         Tests for module 'nl_langinfo'.
5560         * modules/nl_langinfo-tests: New file.
5561         * tests/test-nl_langinfo.sh: New file.
5562         * tests/test-nl_langinfo.c: New file.
5563
5564         New module 'nl_langinfo'.
5565         * lib/nl_langinfo.c: New file.
5566         * m4/nl_langinfo.m4: New file.
5567         * modules/nl_langinfo: New file.
5568         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5569
5570 2009-12-11  Bruno Haible  <bruno@clisp.org>
5571
5572         Tests for module 'langinfo'.
5573         * modules/langinfo-tests: New file.
5574         * tests/test-langinfo.c: New file.
5575
5576         New module 'langinfo'.
5577         * lib/langinfo.in.h: New file.
5578         * m4/langinfo_h.m4: New file.
5579         * modules/langinfo: New file.
5580         * doc/posix-headers/langinfo.texi: Mention the new module.
5581
5582 2009-12-11  Bruno Haible  <bruno@clisp.org>
5583
5584         * lib/config.charset: Untabify.
5585
5586 2009-12-11  Bruno Haible  <bruno@clisp.org>
5587
5588         * modules/unistd-safer (configure.ac): Drop indicator macro.
5589
5590 2009-12-11  Bruno Haible  <bruno@clisp.org>
5591
5592         Move pipe2-safer code to its own file.
5593         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5594         * lib/pipe-safer.c (pipe2_safer): Remove function.
5595         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5596         (Makefile.am): Add it to lib_SOURCES.
5597
5598 2009-12-10  Bruno Haible  <bruno@clisp.org>
5599
5600         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5601
5602 2009-12-10  Bruno Haible  <bruno@clisp.org>
5603
5604         Declare which arguments expect non-NULL values, for GCC and clang.
5605         * build-aux/arg-nonnull.h: New file.
5606         * modules/arg-nonnull: New file.
5607         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5608         (inet_ntop, inet_pton): Use it.
5609         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5610         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5611         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5612         (open, openat): Use it.
5613         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5614         (fnmatch): Use it.
5615         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5616         (getopt, getopt_long, getopt_long_only): Use it.
5617         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5618         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5619         Use it.
5620         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5621         (iconv_open): Use it.
5622         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5623         (strtoimax, strtoumax): Use it.
5624         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5625         (duplocale): Use it.
5626         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5627         (frexp, frexpl): Use it.
5628         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5629         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5630         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5631         (tsearch, tfind, tdelete, twalk): Use it.
5632         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5633         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5634         sigpending): Use it.
5635         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5636         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5637         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5638         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5639         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5640         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5641         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5642         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5643         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5644         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5645         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5646         Use it.
5647         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5648         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5649         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5650         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5651         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5652         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5653         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5654         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5655         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5656         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5657         strtoull, unsetenv): Use it.
5658         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5659         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5660         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5661         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5662         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5663         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5664         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5665         (strcasecmp, strncasecmp): Use it.
5666         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5667         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5668         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5669         rpl_setsockopt): Use it.
5670         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5671         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5672         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5673         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5674         (gettimeofday): Use it.
5675         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5676         (times): Use it.
5677         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5678         (uname): Use it.
5679         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5680         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5681         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5682         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5683         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5684         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5685         unlinkat, write): Use it.
5686         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5687         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5688         * lib/argv-iter.h: Include arg-nonnull.h.
5689         (_ATTRIBUTE_NONNULL_): Remove macro.
5690         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5691         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5692         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5693         optimization.
5694         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5695         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5696         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5697         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5698         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5699         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5700         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5701         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5702         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5703         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5704         * modules/dirent (Depends-on): Add arg-nonnull.
5705         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5706         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5707         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5708         * modules/fnmatch (Depends-on): Add arg-nonnull.
5709         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5710         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5711         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5712         * modules/glob (Depends-on): Add arg-nonnull.
5713         (Makefile.am): Insert arg-nonnull.h into glob.h.
5714         * modules/iconv_open (Depends-on): Add arg-nonnull.
5715         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5716         * modules/inttypes (Depends-on): Add arg-nonnull.
5717         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5718         * modules/locale (Depends-on): Add arg-nonnull.
5719         (Makefile.am): Insert arg-nonnull.h into locale.h.
5720         * modules/math (Depends-on): Add arg-nonnull.
5721         (Makefile.am): Insert arg-nonnull.h into math.h.
5722         * modules/netdb (Depends-on): Add arg-nonnull.
5723         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5724         * modules/search (Depends-on): Add arg-nonnull.
5725         (Makefile.am): Insert arg-nonnull.h into search.h.
5726         * modules/signal (Depends-on): Add arg-nonnull.
5727         (Makefile.am): Insert arg-nonnull.h into signal.h.
5728         * modules/spawn (Depends-on): Add arg-nonnull.
5729         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5730         * modules/stdio (Depends-on): Add arg-nonnull.
5731         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5732         * modules/stdlib (Depends-on): Add arg-nonnull.
5733         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5734         * modules/string (Depends-on): Add arg-nonnull.
5735         (Makefile.am): Insert arg-nonnull.h into string.h.
5736         * modules/strings (Depends-on): Add arg-nonnull.
5737         (Makefile.am): Insert arg-nonnull.h into strings.h.
5738         * modules/sys_socket (Depends-on): Add arg-nonnull.
5739         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5740         * modules/sys_stat (Depends-on): Add arg-nonnull.
5741         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5742         * modules/sys_time (Depends-on): Add arg-nonnull.
5743         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5744         * modules/sys_times (Depends-on): Add arg-nonnull.
5745         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5746         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5747         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5748         * modules/time (Depends-on): Add arg-nonnull.
5749         (Makefile.am): Insert arg-nonnull.h into time.h.
5750         * modules/unistd (Depends-on): Add arg-nonnull.
5751         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5752         * modules/wchar (Depends-on): Add arg-nonnull.
5753         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5754         * modules/argv-iter (Depends-on): Add arg-nonnull.
5755         * tests/test-canonicalize.c (null_ptr): New function.
5756         (main): Use it.
5757         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5758         (main): Use it.
5759         * tests/test-memmem.c (null_ptr): New function.
5760         (main): Use it.
5761         Reported by Jim Meyering.
5762
5763 2009-12-10  Bruno Haible  <bruno@clisp.org>
5764
5765         Use spaces for indentation, not tabs.
5766         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5767         * m4/*.m4: Untabify.
5768         * build-aux/*.h: Untabify.
5769         * tests/**/*.[hc]: Untabify.
5770         * README: New section "Indent with spaces, not TABs", based on
5771         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5772         * NEWS: Mention the change.
5773
5774 2009-12-10  Bruno Haible  <bruno@clisp.org>
5775
5776         pty test: Fix link error.
5777         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5778         test_pty_LDADD.
5779
5780 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5781
5782         * modules/pty: New file.
5783         * modules/pty-tests: New file.
5784         * m4/pty.m4: New file.
5785         * tests/test-pty.c: New file.
5786         * doc/glibc-headers/pty.texi: Modified.
5787         * doc/glibc-functions/forkpty.texi: Modified.
5788         * doc/glibc-functions/openpty.texi: Modified.
5789
5790 2009-12-10  Bruno Haible  <bruno@clisp.org>
5791
5792         Avoid syntax error in C++ mode.
5793         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5794
5795 2009-12-10  Bruno Haible  <bruno@clisp.org>
5796
5797         Use sed with option -e.
5798         * gnulib-tool (func_version, func_emit_copyright_notice,
5799         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5800         option -e to sed.
5801         * modules/link-warning (Makefile.am): Likewise.
5802
5803 2009-12-10  Jim Meyering  <meyering@redhat.com>
5804
5805         mgetgroups: do not write bytes beyond end of malloc'd buffer
5806         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5807         username, we call getgroups with a one-element-shorter buffer,
5808         but still told it the length was original, max_n_groups.
5809
5810 2009-12-09  Eric Blake  <ebb9@byu.net>
5811
5812         cloexec: relax license
5813         * modules/cloexec (Maintainer): Add myself.
5814         (License): Use LGPL, not GPL.
5815
5816         link-warning: optimize generation
5817         * modules/link-warning (Makefile.am): Reduce process usage.
5818
5819 2009-12-09  Bruno Haible  <bruno@clisp.org>
5820
5821         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5822         workaround was added on 2009-11-17.
5823
5824 2009-12-09  Jim Meyering  <meyering@redhat.com>
5825             Bruno Haible  <bruno@clisp.org>
5826
5827         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5828         * modules/link-warning (Makefile.am): Make the comment-removing sed
5829         command more robust in the face of bootstrap-prepended comment lines.
5830
5831 2009-12-09  Bruno Haible  <bruno@clisp.org>
5832
5833         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5834         most one group.
5835
5836 2009-12-09  Simon Josefsson <simon@josefsson.org>
5837             Bruno Haible  <bruno@clisp.org>
5838
5839         * build-aux/link-warning.h: Add copyright notice.
5840         * modules/link-warning (Makefile.am): Generate link-warning.h from
5841         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5842         * NEWS: Mention change in link-warning module.
5843         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5844         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5845         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5846         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5847         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5848         * modules/math (Makefile.am): Add dependency to math.h.
5849         * modules/search (Makefile.am): Add dependency to search.h.
5850         * modules/signal (Makefile.am): Add dependency to signal.h.
5851         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5852         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5853         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5854         * modules/string (Makefile.am): Add dependency to string.h.
5855         * modules/strings (Makefile.am): Add dependency to strings.h.
5856         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5857         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5858         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5859         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5860         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5861         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5862         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5863         * modules/unistd (Makefile.am): Add dependency to unistd.h.
5864         * modules/wchar (Makefile.am): Add dependency to wchar.h.
5865
5866 2009-12-09  Bruno Haible  <bruno@clisp.org>
5867
5868         fchdir: Optimize away rpl_fstat when possible.
5869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5870         REPLACE_OPEN_DIRECTORY.
5871         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5872
5873 2009-12-09  Bruno Haible  <bruno@clisp.org>
5874
5875         * lib/fchdir.c: Update comment.
5876
5877 2009-12-09  Bruno Haible  <bruno@clisp.org>
5878
5879         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5880
5881 2009-12-08  Eric Blake  <ebb9@byu.net>
5882
5883         fchdir: avoid memory leak on re-registration.
5884         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5885
5886 2009-12-08  Jim Meyering  <meyering@redhat.com>
5887
5888         init.sh: avoid Solaris 10 /bin/sh portability problem
5889         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5890         sourced script:
5891           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5892           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5893           bar
5894         tests/init.sh relied on that, accepting a --set-path=DIR argument,
5895         and two tests used that idiom.
5896         * tests/init.sh: Update suggested usage comments.
5897         (path_prepend_): New function, to be used in place
5898         of the --src-path=DIR option.
5899         (setup_): Move PATH-prepending code into path_prepend_.
5900         * tests/test-pread.sh: Adapt to new usage.
5901         * tests/test-xalloc-die.sh: Likewise.
5902
5903 2009-12-08  Simon Josefsson  <simon@josefsson.org>
5904
5905         * doc/gnulib.texi (Glibc pty.h): Add.
5906         * doc/glibc-functions/forkpty.texi: Add.
5907         * doc/glibc-functions/openpty.texi: Add.
5908         Suggested by Bruno Haible.
5909
5910 2009-12-08  Eric Blake  <ebb9@byu.net>
5911
5912         fchdir: fix logic bugs
5913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5914         * tests/test-fchdir.c (main): Enhance test.
5915         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5916         is in use.
5917
5918         dup2: fix logic bugs
5919         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
5920         REPLACE_DUP2 to decide when rpl_dup2 is needed.
5921         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5922         exists.
5923         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5924
5925 2009-12-07  Eric Blake  <ebb9@byu.net>
5926
5927         unlink: fix m4 detection
5928         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5929
5930         unistd-safer: add unit test
5931         * modules/unistd-safer-tests: New file.
5932         * tests/test-dup-safer.c: Likewise.
5933         * tests/test-cloexec.c (setmode): Avoid compiler warning.
5934         * tests/test-dup2.c (setmode): Likewise.
5935         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5936
5937         cloexec: preserve text vs. binary across dup_cloexec
5938         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5939         mode.
5940         * modules/dup2-tests (Depends-on): Add binary-io.
5941         * modules/cloexec-tests (Depends-on): Likewise.
5942         * tests/test-dup2.c (setmode, is_mode): New helpers.
5943         (main): Add tests that translation mode is preserved.
5944         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5945         Reported by Bruno Haible.
5946
5947         mgetgroups: reduce duplicate listings
5948         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5949         resulting array.
5950         * tests/test-chown.h (test_chown): Simplify client.
5951         * tests/test-lchown.h (test_lchown): Likewise.
5952
5953 2009-12-06  Bruno Haible  <bruno@clisp.org>
5954
5955         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5956         value.
5957
5958 2009-12-06  Bruno Haible  <bruno@clisp.org>
5959
5960         * lib/progname.c: Include stdio.h, stdlib.h.
5961         (set_program_name): Reject a NULL argument.
5962
5963 2009-12-05  Eric Blake  <ebb9@byu.net>
5964
5965         pipe2-safer: new module
5966         * modules/pipe2-safer: New file.
5967         * lib/unistd-safer.h (pipe2_safer): New prototype.
5968         * lib/unistd--.h (pipe2): New wrapper.
5969         * lib/pipe-safer.c (pipe2_safer): New function.
5970         * modules/pipe (Depends-on): Add pipe2-safer.
5971         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5972
5973         stdlib-safer: preserve cloexec flag for mkostemp[s]
5974         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5975         fd_safer_flag.
5976
5977         unistd-safer: allow preservation of cloexec status via flag
5978         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5979         prototypes.
5980         * lib/dup-safer.c (dup_safer_flag): New function.
5981         * lib/fd-safer.c (fd_safer_flag): Likewise.
5982         * modules/cloexec (configure.ac): Set witness.
5983
5984         test-dup2: enhance test
5985         * modules/dup2-tests (Depends-on): Add cloexec.
5986         * tests/test-dup2.c (main): Enhance test.
5987
5988         cloexec: add dup_cloexec
5989         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
5990         header and comments.
5991         * lib/cloexec.c (set_cloexec_flag): Add comments.
5992         (dup_cloexec): New function, with mingw implementation borrowed
5993         from...
5994         * lib/w32spawn.h (dup_noinherit): ...here.
5995         * modules/execute (Depends-on): Add cloexec.
5996         * modules/pipe (Depends-on): Likewise.
5997         * modules/cloexec (Depends-on): Add dup2.
5998         * modules/cloexec-tests (Files): New file.
5999         * tests/test-cloexec.c: Likewise.
6000
6001         test-xalloc-die: fix test for mingw
6002         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6003         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6004         directory and .exe suffix off argv[0] output.
6005
6006         test-fseeko: fix test for mingw
6007         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6008         than undefining fseek, so test will pass on mingw.
6009
6010 2009-12-05  Bruno Haible  <bruno@clisp.org>
6011
6012         * lib/progname.h (set_program_name): Clarify specification.
6013         * lib/progname.c (set_program_name): Likewise.
6014         Reported by Jim Meyering.
6015
6016 2009-12-05  Jim Meyering  <meyering@redhat.com>
6017
6018         maint.mk: backslash-escape parens in default regexp
6019         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6020         backslash-escape the literal parentheses.
6021
6022         maint.mk: news-date-check: use grep -E
6023         * top/maint.mk (today): Define a Make variable, not a...
6024         (news-date-check): ...shell variable.
6025         (news-date-regexp): Use the Make variable.
6026         Use grep's -E option.  Change the failing diagnostic to mention
6027         the variable, $(news-date-regexp).
6028
6029 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6030
6031         maintainer-makefile: allow customization of NEWS entry format
6032         * top/maint.mk (news-date-regexp): New overridable variable.
6033         (news-date-check): Use it.
6034
6035 2009-12-04  Eric Blake  <ebb9@byu.net>
6036
6037         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6038         * lib/mgetgroups.h (xgetgroups): New prototype.
6039         * lib/mgetgroups.c (xgetgroups): New wrapper.
6040         (mgetgroups): Handle ENOSYS.
6041         * modules/mgetgroups (Depends-on): Add realloc.
6042         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6043
6044         mgetgroups: avoid argument promotion issues with -1
6045         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6046         for invalid gid_t.
6047         * tests/test-chown.h (getegid, test_chown): Likewise.
6048         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6049
6050 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6051
6052         exclude: Fix header file problems.
6053         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6054
6055 2009-12-01  Jim Meyering  <meyering@redhat.com>
6056
6057         fts: fts_open: do not let an empty string cause immediate failure
6058         This is required in support of GNU rm, for which the command
6059         "rm A '' B" must process and remove both A and B, in spite of
6060         the empty string argument.
6061         * lib/fts.c (fts_open): Do not let the presence of an empty string
6062         cause fts_open to fail immediately.  Most fts-using tools must be
6063         able to process all arguments, in order, and can be expected to
6064         diagnose such arguments themselves.
6065
6066 2009-11-30  Eric Blake  <ebb9@byu.net>
6067
6068         utimens: fix compilation error
6069         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6070         Declare variable at right scope.
6071
6072 2009-11-29  Jim Meyering  <meyering@redhat.com>
6073
6074         bootstrap: handle perl-5.11's changed --version output
6075         * build-aux/bootstrap (get_version): Handle perl separately,
6076         since perl-5.11's --version output is different.
6077
6078 2009-11-28  Jim Meyering  <meyering@redhat.com>
6079
6080         userspec: depend on the inttostr module, too
6081         * modules/userspec (Depends-on): Add inttostr.
6082
6083         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6084         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6085         number of MAXUID when it evaluates to (uid_t) -1.
6086         Likewise for group ID.  Reported by Matt McCutchen in
6087         <http://savannah.gnu.org/bugs/?28113>
6088
6089         userspec: reformat to use spaces, not TABs
6090         * lib/userspec.c: Expand TABs to spaces.
6091         Add Emacs' "indent-tabs-mode: nil" hint.
6092
6093 2009-11-27  Eric Blake  <ebb9@byu.net>
6094
6095         getopt-gnu: flush out another BSD bug
6096         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6097         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6098         flush out BSD bug.
6099         * tests/test-getopt.h (test_getopt): End lists with NULL.
6100         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6101         (test_getopt_long_posix): Enhance test.
6102         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6103         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6104         getopt-gnu.
6105         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6106         Likewise.
6107
6108 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6109
6110         * modules/idpriv-droptemp-tests (Notice): Fix text.
6111
6112 2009-11-27  Jim Meyering  <meyering@redhat.com>
6113
6114         test-xalloc-die: avoid spurious failure due to libtool argv difference
6115         In a libtool-enabled project, this test would fail due to a difference
6116         in the emitted program name, e.g.,
6117         -test-xalloc-die: memory exhausted
6118         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6119         Use program to avoid that.
6120         * modules/xalloc-die-tests (Depends-on): Add progname.
6121         * tests/test-xalloc-die.c: Include progname.h".
6122         (program_name): Remove decl.
6123         (main): Call set_program_name.
6124         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6125
6126 2009-11-26  Richard Jones  <rjones@redhat.com>
6127
6128         w32sock: leave win32 error in place.
6129         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6130
6131 2009-11-26  Eric Blake  <ebb9@byu.net>
6132
6133         init.sh: suggest to use skip_ and fail_ functions in comments
6134         * tests/init.sh: Add a sentence.
6135
6136 2009-11-25  Bruno Haible  <bruno@clisp.org>
6137
6138         init.sh: add documentation in comments
6139         * tests/init.sh: Add some developer and user documentation.
6140
6141 2009-11-26  Jim Meyering  <meyering@redhat.com>
6142
6143         init.sh: accommodate even those who specify bogus srcdir manually
6144         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6145         configure-time tests to be sanitized, so that there is no need to
6146         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6147         (with no double quotes) suffices.  However, since tests may be
6148         invoked manually, and since you may explicitly set srcdir to the
6149         name of a directory containing spaces, do quote its uses here.
6150         * tests/test-pread.sh: Likewise.
6151         Suggested by Bruno Haible.
6152
6153         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6154         * tests/test-pread.sh: Write no data into the pipe, because
6155         test-pread actually reads none.  This avoids a diagnostic,
6156         "bash: echo: write error: Broken pipe", that arises in the unusual
6157         event something is ignoring SIGPIPE, and might be interpreted
6158         as some sort of failure.  Reported by Bruno Haible.
6159
6160 2009-11-25  Jim Meyering  <meyering@redhat.com>
6161
6162         test-pread: cover failure with ESPIPE and EINVAL
6163         * tests/test-pread.c (main): Test for failure, too.
6164         * tests/test-pread.sh: Invoke with stdin on a pipe.
6165         Suggested by Eric Blake.
6166
6167         pread: improvement and fix
6168         * modules/pread (Depends-on): Depend on lseek, for portability to
6169         e.g., mingw.  Suggested by Eric Blake.
6170         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6171
6172         unistd.in.h: correct declaration of pread
6173         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6174         Reported by Richard W.M. Jones.
6175
6176         test-pread.sh: distribute the test script
6177         * modules/pread-tests (Files): Include test-pread.sh.
6178
6179         test-pread.sh: clean up
6180         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6181         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6182         That is unnecessary, since it's always ".".
6183         Suggestion from Eric Blake.
6184
6185         test-pread.sh: make executable
6186         * tests/test-pread.sh: Set executable bit.
6187         Reported by Eric Blake.
6188
6189         correct typo in test-pread.sh
6190         * tests/test-pread.sh: Add #! line.
6191
6192         test pread
6193         * tests/test-pread.c: New file.
6194         * tests/test-pread.sh: Likewise.
6195         * modules/pread-tests: Likewise.
6196
6197         pread: new module
6198         * modules/pread: New file.
6199         * lib/unistd.in.h (pread): Define/declare.
6200         * lib/pread.c (pread): New file.
6201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6202         * modules/unistd (Makefile.am): Substitute witnesses.
6203         * doc/posix-functions/pread.texi (pread): Update.
6204         * MODULES.html.sh: Add pread.
6205
6206 2009-11-25  Jim Meyering  <meyering@redhat.com>
6207
6208         tests/init.sh: new file to be used via most *.sh tests
6209         * tests/init.sh: New file.
6210
6211 2009-11-25  Eric Blake  <ebb9@byu.net>
6212
6213         utimens: work around older Linux failure with symlinks
6214         * lib/utimens.c (lutimensat_works_really): New variable.
6215         (fdutimens, lutimens): Use it to manage kernels that support
6216         nanosecond times on files, but not on symlinks.
6217         Reported by OndÅ™ej Vašík.
6218
6219         utimes: fix configure grammar
6220         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6221
6222 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6223
6224         regex: Fix fastmap for multibyte character ranges.
6225         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6226         characters when a multibyte character range is included.
6227
6228 2009-11-22  Andy Wingo  <wingo@pobox.com>
6229
6230         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6231         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6232
6233 2009-11-24  Bruno Haible  <bruno@clisp.org>
6234
6235         doc: Most *_l functions exist in MacOS X 10.5.
6236         * doc/posix-functions/duplocale.texi: Update platforms list.
6237         * doc/posix-functions/freelocale.texi: Likewise.
6238         * doc/posix-functions/newlocale.texi: Likewise.
6239         * doc/posix-functions/uselocale.texi: Likewise.
6240         * doc/posix-functions/isalnum_l.texi: Likewise.
6241         * doc/posix-functions/isalpha_l.texi: Likewise.
6242         * doc/posix-functions/isblank_l.texi: Likewise.
6243         * doc/posix-functions/iscntrl_l.texi: Likewise.
6244         * doc/posix-functions/isdigit_l.texi: Likewise.
6245         * doc/posix-functions/isgraph_l.texi: Likewise.
6246         * doc/posix-functions/islower_l.texi: Likewise.
6247         * doc/posix-functions/isprint_l.texi: Likewise.
6248         * doc/posix-functions/ispunct_l.texi: Likewise.
6249         * doc/posix-functions/isspace_l.texi: Likewise.
6250         * doc/posix-functions/isupper_l.texi: Likewise.
6251         * doc/posix-functions/iswalnum_l.texi: Likewise.
6252         * doc/posix-functions/iswalpha_l.texi: Likewise.
6253         * doc/posix-functions/iswblank_l.texi: Likewise.
6254         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6255         * doc/posix-functions/iswctype_l.texi: Likewise.
6256         * doc/posix-functions/iswdigit_l.texi: Likewise.
6257         * doc/posix-functions/iswgraph_l.texi: Likewise.
6258         * doc/posix-functions/iswlower_l.texi: Likewise.
6259         * doc/posix-functions/iswprint_l.texi: Likewise.
6260         * doc/posix-functions/iswpunct_l.texi: Likewise.
6261         * doc/posix-functions/iswspace_l.texi: Likewise.
6262         * doc/posix-functions/iswupper_l.texi: Likewise.
6263         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6264         * doc/posix-functions/isxdigit_l.texi: Likewise.
6265         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6266         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6267         * doc/posix-functions/strcoll_l.texi: Likewise.
6268         * doc/posix-functions/strfmon_l.texi: Likewise.
6269         * doc/posix-functions/strftime_l.texi: Likewise.
6270         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6271         * doc/posix-functions/strxfrm_l.texi: Likewise.
6272         * doc/posix-functions/tolower_l.texi: Likewise.
6273         * doc/posix-functions/toupper_l.texi: Likewise.
6274         * doc/posix-functions/towctrans_l.texi: Likewise.
6275         * doc/posix-functions/towlower_l.texi: Likewise.
6276         * doc/posix-functions/towupper_l.texi: Likewise.
6277         * doc/posix-functions/wcscoll_l.texi: Likewise.
6278         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6279         * doc/posix-functions/wctrans_l.texi: Likewise.
6280         * doc/posix-functions/wctype_l.texi: Likewise.
6281         * doc/glibc-functions/strptime_l.texi: Likewise.
6282         * doc/glibc-functions/strtod_l.texi: Likewise.
6283         * doc/glibc-functions/strtof_l.texi: Likewise.
6284         * doc/glibc-functions/strtol_l.texi: Likewise.
6285         * doc/glibc-functions/strtold_l.texi: Likewise.
6286         * doc/glibc-functions/strtoll_l.texi: Likewise.
6287         * doc/glibc-functions/strtoul_l.texi: Likewise.
6288         * doc/glibc-functions/strtoull_l.texi: Likewise.
6289         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6290         * doc/glibc-functions/wcstod_l.texi: Likewise.
6291         * doc/glibc-functions/wcstof_l.texi: Likewise.
6292         * doc/glibc-functions/wcstol_l.texi: Likewise.
6293         * doc/glibc-functions/wcstold_l.texi: Likewise.
6294         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6295         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6296         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6297
6298 2009-11-24  Bruno Haible  <bruno@clisp.org>
6299
6300         duplocale: Fix logic bug.
6301         * lib/duplocale.c: Don't include <langinfo.h>.
6302         (_NL_LOCALE_NAME): Remove macro.
6303         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6304         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6305
6306 2009-11-23  Jim Meyering  <meyering@redhat.com>
6307
6308         test-update-copyright: don't hard-code /usr/bin/perl
6309         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6310         perl to print the current year.  Gilles Espinasse reported that
6311         the replaced use of perl was hard-coded as /usr/bin/perl.
6312
6313 2009-11-23  Bruno Haible  <bruno@clisp.org>
6314
6315         duplocale: Add support for glibc 2.3.x.
6316         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6317
6318 2009-11-22  Bruno Haible  <bruno@clisp.org>
6319
6320         vasnprintf: Tiny optimization.
6321         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6322         MacOS X.
6323
6324 2009-11-22  Bruno Haible  <bruno@clisp.org>
6325
6326         Tests for module 'duplocale'.
6327         * modules/duplocale-tests: New file.
6328         * tests/test-duplocale.c: New file.
6329
6330         New module 'duplocale'.
6331         * m4/duplocale.m4: New file.
6332         * lib/locale.in.h (duplocale): New declaration.
6333         * lib/duplocale.c: New file.
6334         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6335         gl_LOCALE_H_DEFAULTS): New macros.
6336         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6337         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6338         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6339         REPLACE_DUPLOCALE.
6340         * modules/duplocale: New file.
6341         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6342
6343 2009-11-22  Bruno Haible  <bruno@clisp.org>
6344
6345         * modules/locale-tests (configure.ac): Test for newlocale function.
6346         * tests/test-locale.c: When the system has extended locale functions,
6347         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6348
6349         locale: Make locale_t available when possible.
6350         * lib/locale.in.h: Include <xlocale.h> when it exists.
6351         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6352         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6353         * modules/locale (Depends-on): Add extensions.
6354         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6355         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6356
6357 2009-11-22  Bruno Haible  <bruno@clisp.org>
6358
6359         Add comments.
6360         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6361         invocation.
6362         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6363         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6364         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6365
6366 2009-11-22  Bruno Haible  <bruno@clisp.org>
6367
6368         error: account for the possibility of freopen (stdout).
6369         * lib/error.c: Include <unistd.h>.
6370         (flush_stdout): New function, extracted from error and error_at_line.
6371         Determine stdout's fd dynamically.
6372         (error, error_at_line): Invoke flush_stdout.
6373         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6374         * modules/error (Depends-on): Add unistd.
6375
6376 2009-11-22  Bruno Haible  <bruno@clisp.org>
6377
6378         diffseq: Add comment.
6379         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6380
6381 2009-11-22  Jim Meyering  <meyering@redhat.com>
6382
6383         c-stack: avoid defining an unused static function
6384         * lib/c-stack.c (find_stack_direction): Do not define this function
6385         when it will not be used.
6386
6387         diffseq: avoid spurious gcc warnings
6388         * lib/diffseq.h (IF_LINT2): Define.
6389         (compareseq): Use it to initialize two members of "part".
6390         This avoids two used-uninitialized warnings.
6391
6392 2009-11-21  Jim Meyering  <meyering@redhat.com>
6393
6394         c-stack: avoid "ignoring return value of `write'" warning
6395         * lib/c-stack.c: Include "ignore-value.h".
6396         (die): Explicitly ignore each write return value.
6397         * modules/c-stack (Depends-on): Add ignore-value.
6398
6399 2009-11-21  Bruno Haible  <bruno@clisp.org>
6400
6401         diffseq: reduce scope of variable 'best'.
6402         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6403         variable, earlier used for two different purposes.
6404
6405 2009-11-21  Jim Meyering  <meyering@redhat.com>
6406
6407         diffseq: remove useless assignment to "best"
6408         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6409         assignment.  At that point "best" is already guaranteed to be zero.
6410
6411 2009-11-20  Eric Blake  <ebb9@byu.net>
6412
6413         build: mention ftp redirector in release announcements
6414         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6415         values that used to come from cfg.mk; mention FTP redirect URL.
6416         * build-aux/announce-gen: Mention the mirror list.
6417         Suggested by Karl Berry.
6418
6419         nanosleep: improve port to mingw
6420         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6422         LIB_NANOSLEEP, but only when needed.
6423         * modules/select (Link): Document LIBSOCKET.
6424         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6425         enough.
6426
6427         nanosleep: work around cygwin bug
6428         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6429         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6430         bug.
6431         (getnow): Delete, not needed.
6432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6433         LIB_CLOCK_GETTIME.
6434         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6435         clock-time, gettime.
6436         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6437         bug.
6438         * modules/nanosleep-tests: New test.
6439         * tests/test-nanosleep.c: New file.
6440
6441         sleep: work around cygwin bug
6442         * lib/sleep.c (rpl_sleep): Work around the bug.
6443         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6444         (gl_PREREQ_SLEEP): Delete unused macro.
6445         * modules/sleep (Depends-on): Add verify.
6446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6447         * modules/unistd (Makefile.am): Substitute witness.
6448         * lib/unistd.in.h (sleep): Update prototype.
6449         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6450         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6451         * modules/sleep-tests (Depends-on): Check for alarm.
6452
6453 2009-11-20  Jim Meyering  <meyering@redhat.com>
6454
6455         maint.mk: improve sc_prohibit_magic_number_exit
6456         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6457         so it does not match uses like System.exit(1).
6458         Add comments showing how to correct all offenders.
6459
6460 2009-11-19  Eric Blake  <ebb9@byu.net>
6461
6462         xalloc-die-tests: add missing library
6463         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6464
6465         test-xvasprintf: silence compiler warnings
6466         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6467         empty string from gcc.
6468
6469 2009-11-19  Jim Meyering  <meyering@redhat.com>
6470
6471         xfreopen: new module, from coreutils
6472         * modules/xfreopen: New module.
6473         * lib/xfreopen.c: New file.
6474         * lib/xfreopen.h: New file.
6475         * MODULES.html.sh (File stream based Input/Output"): Add it.
6476
6477 2009-11-19  Eric Blake  <ebb9@byu.net>
6478
6479         manywarnings: depend on warnings
6480         * modules/manywarnings (Depends-on): Add warnings.
6481
6482         build: avoid compiler warnings
6483         * lib/select.c (rpl_select): Delete unused variable.
6484         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6485
6486 2009-11-18  Eric Blake  <ebb9@byu.net>
6487
6488         tests: avoid false negative with --with-packager
6489         * tests/test-version-etc.sh: Discard packager information.
6490         * tests/test-argp-version-etc-1.sh: Likewise.
6491         Reported by Mike Frysinger.
6492
6493         utimens: fix regression on Solaris
6494         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6495         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6496         can only change fd timestamps via futimesat.  Instead, use an
6497         additional witness macro to avoid BSD bug.
6498         Reported by Jim Meyering.
6499
6500 2009-11-17  Eric Blake  <ebb9@byu.net>
6501
6502         usleep: use it to simplify tests
6503         * modules/stat-time-tests (Depends-on): Add usleep.
6504         (configure.ac): Drop usleep check.
6505         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6506         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6507         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6508         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6509         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6510         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6511         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6512         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6513         Likewise.
6514         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6515         * tests/test-lchown.h (nap): Likewise.
6516         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6517         * tests/test-stat-time.c (nap): Likewise.
6518         * tests/test-utimens-common.h (nap): Update comments.
6519
6520         usleep: new module
6521         * modules/usleep: New file.
6522         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6523         * lib/usleep.c (usleep): Likewise.
6524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6525         * modules/unistd (Makefile.am): Substitute witnesses.
6526         * lib/unistd.in.h (usleep): Add declaration.
6527         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6528         * MODULES.html.sh (Date and time): Likewise.
6529         * modules/usleep-tests (Depends-on): New test.
6530         * tests/test-usleep.c: New file.
6531
6532         chown: work around OpenBSD bug
6533         * lib/chown.c (rpl_chown): Work around the bug.
6534         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6535         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6537         * modules/chown (Depends-on): Add stdbool.
6538         * modules/lchown (Depends-on): Likewise.
6539         * doc/posix-functions/chown.texi (chown): Document the bug.
6540         * doc/posix-functions/lchown.texi (lchown): Likewise.
6541         * tests/test-lchown.h (test_chown): Relax test.
6542
6543         mkstemp: avoid conflict with C++ keyword template
6544         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6545         * lib/mkostemp.c (mkostemp): Likewise.
6546         * lib/mkostemps.c (mkostemps): Likewise.
6547         * lib/mkstemp.c (mkstemp): Likewise.
6548         * lib/mkstemps.c (mkstemps): Likewise.
6549
6550         xalloc-die-tests: optimize
6551         * tests/test-xalloc-die.sh: Reduce number of processes.
6552
6553 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6554
6555         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6556         patch from ludo@gnu.org (Ludovic Courtès).
6557
6558 2009-11-17  Jim Meyering  <meyering@redhat.com>
6559
6560         version-etc: use proper license string
6561         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6562         * modules/version-etc-fsf: Likewise.
6563
6564 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6565
6566         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6567         printed to stdout.  Deal with EOL differences.
6568
6569 2009-11-17  Eric Blake  <ebb9@byu.net>
6570
6571         unsetenv: work around Solaris bug
6572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6573         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6574         Reported by Jim Meyering.
6575
6576         vasnprintf: avoid compiler warnings
6577         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6578         variables.
6579         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6580
6581 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6582
6583         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6584         settings since xalloc-die is no longer the self test,
6585         xalloc-die.sh is.
6586
6587 2009-11-17  Jim Meyering  <meyering@redhat.com>
6588
6589         test-xalloc-die.sh: make the code agree with the commit log
6590         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6591         at the end, just in case you happen to have a test-xalloc-die
6592         program in some other PATH directory.
6593
6594         test-xalloc-die.sh: fix a portability bug
6595         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6596         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6597         Otherwise, argv[0] (as often seen in diagnostics) would be too
6598         system-dependent, sometimes with, and sometimes without the leading "./".
6599
6600         version-etc-fsf: relax license to LGPLv3+
6601         * modules/version-etc-fsf (License): Relax license.
6602
6603 2009-11-16  Eric Blake  <ebb9@byu.net>
6604
6605         xalloc-die-tests: avoid printing null pointer
6606         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6607         shell script.
6608         * tests/test-xalloc-die.c (program_name): Declare.
6609         * tests/test-xalloc-die.sh (tmpfiles): New file.
6610
6611         setenv, unsetenv: work around various bugs
6612         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6613         (setenv) [HAVE_SETENV]: Work around bugs.
6614         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6615         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6616         for bugs.
6617         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6618         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6620         * modules/stdlib (Makefile.am): Update substitutions.
6621         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6622         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6623         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6624         * modules/setenv-tests: New test.
6625         * modules/unsetenv-tests: Likewise.
6626         * tests/test-setenv.c: New file.
6627         * tests/test-unsetenv.c: Likewise.
6628
6629 2009-11-16  Jim Meyering  <meyering@redhat.com>
6630
6631         version-etc: relax license to LGPLv3+
6632         * modules/version-etc (License): Relax license.
6633
6634         better AC_REQUIRE expanded-before-required-warning avoidance
6635         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6636         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6637         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6638         which is no longer needed.
6639
6640 2009-11-16  Eric Blake  <ebb9@byu.net>
6641
6642         test-freading: clean up temporary file
6643         * tests/test-freading.c (main): Remove file on success, and use
6644         ASSERT more liberally.
6645         Reported by Jim Meyering.
6646
6647 2009-11-16  Jim Meyering  <meyering@redhat.com>
6648
6649         avoid new AC_REQUIRE expanded-before-required warnings
6650         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6651         merely using it.
6652         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6653         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6654
6655 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6656
6657         * tests/test-xalloc-die.c: New file.
6658         * modules/xalloc-die-tests: New file.
6659         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6660         XFAIL_TESTS so it can be appended by modules.
6661
6662 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6663
6664         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6665         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6666
6667 2009-11-14  Eric Blake  <ebb9@byu.net>
6668
6669         fnmatch: avoid compiler warning
6670         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6671         to silence compiler warning about mismatch signedness in ?:.
6672         Reported by Robert Millan.
6673
6674         intprops: add double-inclusion guard
6675         * lib/intprops.h: Allow idempotent includes.
6676         Suggested by Bruce Korb.
6677
6678         openat: detect Solaris fchownat bug
6679         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6680         penalizing glibc chownat when only lchownat is broken.
6681         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6682         trailing slash bugs.
6683         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6684         * modules/openat-tests (Files): Include more files.
6685         (Depends-on): Add mgetgroups, sleep, stat-time.
6686         (configure.ac): Add additional checks.
6687         (Makefile.am): Build new test.
6688         * tests/test-fchownat.c: New file.
6689
6690         lchown: detect Solaris and FreeBSD bug
6691         * lib/lchown.c (rpl_lchown): Work around bug.
6692         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6694         * modules/unistd (Makefile.am): Populate it.
6695         * lib/unistd.in.h (lchown): Update declaration.
6696         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6697         * modules/lchown-tests: New file.
6698         * tests/test-lchown.h (test_lchown): Likewise.
6699         * tests/test-lchown.c (main): Likewise.
6700
6701         chown: detect Solaris and FreeBSD bug
6702         * lib/chown.c (rpl_chown): Work around bug.
6703         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6704         (gl_PREREQ_CHOWN): Delete.
6705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6706         * modules/unistd (Makefile.am): Populate it.
6707         * lib/unistd.in.h (chown): Update declaration.
6708         * lib/lchown.c (chown): Update client.
6709         * modules/lchown (Depends-on): Add lstat.
6710         * doc/posix-functions/chown.texi (chown): Document the bug.
6711         * doc/posix-functions/getgroups.texi (getgroups): Document
6712         getgroups pitfall.
6713         * modules/chown-tests: New file.
6714         * tests/test-chown.h (test_chown): Likewise.
6715         * tests/test-chown.c (main): Likewise.
6716
6717 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6718
6719         gnulib-tool: correctly detect absence of m4 directories
6720         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6721
6722 2009-11-14  Jim Meyering  <meyering@redhat.com>
6723
6724         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6725         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6726
6727 2009-11-14  John W. Eaton  <jwe@gnu.org>
6728
6729         strftime.h: wrap funtion declaration in extern "C" block
6730         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6731
6732 2009-11-13  Eric Blake  <ebb9@byu.net>
6733
6734         getgroups: avoid compiler warning
6735         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6736
6737         getgroups: work around FreeBSD bug
6738         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6739         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6740         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6741         * tests/test-getgroups.c (main): Fix buffer overrun.
6742
6743         getgroups: avoid compilation failure
6744         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6745         * modules/getgroups (Depends-on): Add stdint.
6746
6747 2009-11-13  Jim Meyering  <meyering@redhat.com>
6748
6749         test-getgroups: avoid compilation failure
6750         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6751
6752 2009-11-13  Eric Blake  <ebb9@byu.net>
6753
6754         mgetgroups: new module, taken from coreutils
6755         * modules/mgetgroups: New file.
6756         * lib/mgetgroups.h: Likewise.
6757         * lib/mgetgroups.c (mgetgroups): Likewise.
6758         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6759         * MODULES.html.sh (Users and groups): Mention it.
6760
6761         getgroups: don't expose GETGROUPS_T to user
6762         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6763         an element at a time if GETGROUPS_T is wrong size.
6764         * lib/getugroups.h (getugroups): Change signature.
6765         * lib/unistd.in.h (getgroups): Likewise.
6766         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6767         signature needs fixing.
6768         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6769         AC_TYPE_GETGROUPS.
6770         * modules/group-member (Depends-on): Add getgroups.
6771         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6772         (group_member): Rely on getgroups replacement.
6773         * lib/getugroups.c (getugroups): Use gid_t.
6774         * tests/test-getgroups.c (main): Likewise.
6775         * NEWS: Mention the signature change.
6776         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6777         problem with signature.
6778         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6779         GETGROUPS_T is still useful for setgroups.
6780
6781         getgroups, getugroups: provide stubs for mingw
6782         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6783         * lib/getugroups.c (getugroups): Likewise.
6784         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6785         function.  Modernize replacement scheme.
6786         (gl_PREREQ_GETGROUPS): Delete.
6787         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6788         * modules/getgroups (configure.ac): Declare witness.
6789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6790         * modules/unistd (Depends-on): Substitute witness.
6791         * lib/unistd.in.h (getgroups): Declare replacement.
6792
6793         getgroups: avoid calling exit
6794         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6795         drop xalloc.
6796         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6797         dependencies.
6798         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6799         exiting, in the rare case of malloc failure.
6800
6801         getgroups: fix logic error
6802         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6803         has more than 20 groups.
6804         * modules/getgroups-tests: New test.
6805         * tests/test-getgroups.c: New file.
6806
6807 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6808
6809         * tests/test-base64.c: Improve.
6810
6811 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6812
6813         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6814         Blake <ebb9@byu.net>.
6815
6816 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6817
6818         * tests/test-xvasprintf.c: Add %s%s related checks.
6819
6820 2009-11-12  Eric Blake  <ebb9@byu.net>
6821
6822         version-etc: match standards.texi style
6823         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6824         and use <> only for URLs.
6825
6826 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6827
6828         fts: do not fail on a submount during traversal
6829         * lib/fts.c (fts_build): Read the stat info again after opening
6830         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6831         Original report at http://bugzilla.redhat.com/501848.
6832
6833 2009-11-12  Jim Meyering  <meyering@redhat.com>
6834
6835         bootstrap: sync from coreutils
6836         * build-aux/bootstrap (bootstrap_epilogue): New function.
6837         Use git_modules_config in one more place.  This make bootstrap's
6838         --gnulib-srcdir option more useful for testing.
6839
6840         bootstrap: generalize autoheader check
6841         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6842         AC_CONFIG_HEADERS.
6843
6844 2009-11-11  Eric Blake  <ebb9@byu.net>
6845
6846         mkfifoat: use new modules for Solaris and BSD bugs
6847         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6848         * lib/mkfifoat.c (mknodat): Split...
6849         * lib/mknodat.c (mknodat): ...into new file.
6850         * modules/mkfifoat (Files): Ship new file.
6851         (Depends-on): Add mkfifo, mknod.
6852         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6853         (Depends-on): Add symlink.
6854         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6855         redundant with test_mkfifo.h.
6856         (do_mkfifoat, do_mknodat): New helpers.
6857
6858         mknod: new module
6859         * modules/mknod: New file.
6860         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6861         * lib/mknod.c (mknod): Likewise.
6862         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6863         defaults.
6864         * modules/sys_stat (Makefile.am): Substitute them.
6865         * lib/sys_stat.in.h (mknod): Declare replacement.
6866         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6867         Document it.
6868         * doc/posix-functions/mknod.texi (mknod): Likewise.
6869         * modules/mknod-tests: New test.
6870         * tests/test-mknod.c: Likewise.
6871
6872         mkfifo: new module
6873         * modules/mkfifo: New file.
6874         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6875         * lib/mkfifo.c (mkfifo): Likewise.
6876         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6877         defaults.
6878         * modules/sys_stat (Makefile.am): Substitute them.
6879         * lib/sys_stat.in.h (mkfifo): Declare replacement.
6880         * MODULES.html.sh (Support for systems lacking POSIX:2008):
6881         Document it.
6882         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6883         * modules/mkfifo-tests: New test.
6884         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6885         from test-mkfifoat.c.
6886         * tests/test-mkfifo.c: New file.
6887
6888         readlink: detect FreeBSD bug
6889         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6890         slash on symlink.
6891         * doc/posix-functions/readlink.texi (readlink): Document the bug.
6892         * tests/test-readlink.h (test_readlink): Enhance test.
6893
6894         symlink: detect FreeBSD bug
6895         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6896         slash on symlink.
6897         * doc/posix-functions/symlink.texi (symlink): Document the bug.
6898         * tests/test-symlink.h (test_symlink): Enhance test.
6899
6900 2009-11-10  Eric Blake  <ebb9@byu.net>
6901
6902         link: detect FreeBSD bug
6903         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6904         symlink.
6905         * doc/posix-functions/link.texi (link): Document the bug.
6906         * tests/test-link.h (test_link): Enhance test.
6907         * tests/test-linkat.c (main): Update caller.
6908
6909         unlink, remove: detect FreeBSD bug
6910         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6911         slash on symlink.
6912         * doc/posix-functions/unlink.texi (unlink): Document the bug.
6913         * doc/posix-functions/remove.texi (remove): Likewise.
6914         * tests/test-unlink.h (test_unlink): Enhance test.
6915         * tests/test-remove.c (main): Likewise.
6916
6917 2009-11-09  Eric Blake  <ebb9@byu.net>
6918
6919         rename: detect FreeBSD bug
6920         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6921         slash on symlink.
6922         * modules/renameat-tests (Depends-on): Add filenamecat.
6923         * tests/test-rename.h (test_rename): Allow one more errno.
6924         * tests/test-renameat.c (main): Likewise.
6925         * doc/posix-functions/rename.texi (rename): Document the bug.
6926
6927         open: detect FreeBSD bug
6928         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6929         symlink.
6930         * doc/posix-functions/open.texi (open): Document the bug.
6931         * doc/posix-functions/utimes.texi (utimes): Likewise.
6932         * tests/test-open.h (test_open): Add parameters, and test symlink
6933         handling.
6934         * tests/test-open.c (main): Adjust caller.
6935         * tests/test-fcntl-safer.c (main): Likewise.
6936         * modules/open-tests (Depends-on): Add stdbool, symlink.
6937         * modules/fcntl-safer-tests (Depends-on): Likewise.
6938         * tests/test-openat.c (main): Add test-open tests.
6939
6940         stat: detect FreeBSD bug
6941         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6942         symlink.
6943         * doc/posix-functions/stat.texi (stat): Document the bug.
6944         * tests/test-stat.h (test_stat_func): Add argument.
6945         * tests/test-stat.c (main): Adjust caller.
6946         * tests/test-fstatat.c (main): Likewise.
6947         * modules/stat-tests (Depends-on): Add stdbool, symlink.
6948         Reported by Jim Meyering.
6949
6950 2009-11-09  James Youngman  <jay@gnu.org>
6951
6952         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6953         * lib/strftime.c: Correct placement of #include "ignore-value.h".
6954
6955 2009-11-08  Jim Meyering  <meyering@redhat.com>
6956
6957         utimens: remove invalid futimesat call
6958         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6959         It used the file descriptor of the target file as the DIR_FD
6960         parameter and NULL as the file name.  That caused failure with
6961         errno == EFAULT on FreeBSD-8.0-rc2
6962
6963 2009-11-07  Eric Blake  <ebb9@byu.net>
6964
6965         fflush, freadseek: use fseeko, not fseek
6966         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6967         (clear_ungetc_buffer): Avoid potential problems on large files.
6968         * lib/freadseek.c (freadseek): Likewise.
6969         * modules/freadseek (Depends-on): Add fseeko.
6970         * modules/fseek (configure.ac): Set a witness.
6971         * tests/test-fflush.c (main): Use fseeko.
6972         * tests/test-fpurge.c (fseek): Disable link warning.
6973         * tests/test-freadable.c (fseek): Likewise.
6974         * tests/test-freading.c (fseek): Likewise.
6975         * tests/test-fseeko.c (fseek): Likewise.
6976         * tests/test-ftell.c (fseek): Likewise.
6977         * tests/test-ftello.c (fseek): Likewise.
6978         * tests/test-fwritable.c (fseek): Likewise.
6979         * tests/test-fwriting.c (fseek): Likewise.
6980
6981 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6982
6983         * modules/memchr (Depends-on): Drop getpagesize dependency.
6984
6985 2009-11-06  Simon Josefsson  <simon@josefsson.org>
6986
6987         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
6988         Reported by Ludovic Courtès.
6989         * build-aux/pmccabe2html: Improve example usage.
6990         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
6991
6992 2009-11-06  Jim Meyering  <meyering@redhat.com>
6993
6994         do-release-commit-and-tag: New module.
6995         Automate the release-commit and tag process.
6996         * build-aux/do-release-commit-and-tag: New script, from coreutils.
6997         * modules/do-release-commit-and-tag: New file.
6998         * MODULES.html.sh (Support for maintaining and releasing): Add it.
6999
7000 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7001
7002         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7003         because test-select.c uses inet_pton.
7004
7005 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7006
7007         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7008         GETADDRINFO_LIB.  Bump serial number.
7009         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7010         Suggested by Eric Blake <ebb9@byu.net>.
7011
7012 2009-11-05  Eric Blake  <ebb9@byu.net>
7013
7014         strtod: detect darwin bug
7015         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7016         Reported by Leo Davis.
7017
7018         freopen-safer: new module
7019         * modules/freopen-safer: New module.
7020         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7021         * lib/freopen-safer.c (freopen_safer): New file.
7022         * lib/stdio-safer.h (freopen_safer): New declaration.
7023         * lib/stdio--.h (freopen): New override.
7024         * MODULES.html.sh (File stream based Input/Output): Mention it.
7025         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7026         freopen-safer module.
7027         * doc/posix-functions/stderr.texi (stderr): Likewise.
7028         * doc/posix-functions/stdin.texi (stdin): Likewise.
7029         * doc/posix-functions/stdout.texi (stdout): Likewise.
7030         * modules/freopen-safer-tests: New test.
7031         * tests/test-reopen-safer.c: New file.
7032
7033 2009-11-05  Jim Meyering  <meyering@redhat.com>
7034
7035         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7036         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7037
7038 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7039
7040         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7041
7042 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7043
7044         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7045
7046 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7047
7048         Fix link error.
7049         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7050         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7051
7052 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7053
7054         * tests/test-func.c: Also test value of __func__.
7055
7056 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7057
7058         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7059         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7060
7061 2009-11-05  Bruno Haible  <bruno@clisp.org>
7062
7063         Fix link error.
7064         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7065         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7066         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7067
7068 2009-11-05  Bruno Haible  <bruno@clisp.org>
7069
7070         Tests for module 'inet_pton'.
7071         * modules/inet_pton-tests: New file.
7072         * tests/test-inet_pton.c: New file.
7073
7074 2009-11-05  Bruno Haible  <bruno@clisp.org>
7075
7076         Tests for module 'inet_ntop'.
7077         * modules/inet_ntop-tests: New file.
7078         * tests/test-inet_ntop.c: New file.
7079
7080 2009-11-04  Eric Blake  <ebb9@byu.net>
7081
7082         stdlib-safer: wrap all mkstemp variants
7083         * modules/mkostemp (configure.ac): Set witness.
7084         * modules/mkostemps (configure.ac): Likewise.
7085         * modules/mkstemps (configure.ac): Likewise.
7086         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7087         (mkstemps_safer): Wrap more functions.
7088         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7089         wrapping.
7090         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7091         (mkstemps_safer): Implement the wrappers.
7092
7093         mkstemps, mkostemps: new modules
7094         * modules/mkostemps: New module.
7095         * modules/mkstemps: Likewise.
7096         * lib/mkostemps.c (mkostemps): New file.
7097         * lib/mkstemps.c (mkstemps): Likewise.
7098         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7099         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7101         * modules/stdlib (Makefile.am): Substitute them.
7102         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7103         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7104         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7105         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7106         * MODULES.html.sh (File system functions): Mention them.
7107
7108         tempname: resync from glibc
7109         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7110         same values for __GT_FILE as glibc.  Abort even when assertions
7111         are disabled.
7112         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7113         match its value otherwise.  Allow idempotent inclusion.
7114         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7115         * lib/mkostemp.c (mkostemp): Likewise.
7116         * lib/mkstemp.c (mkstemp): Likewise.
7117         * lib/tmpfile.c (tmpfile): Likewise.
7118         * NEWS: Document this.
7119
7120         utimens: fix use of futimens on older Linux
7121         * lib/utimens.c (fdutimens): Use updated, rather than original,
7122         timespec to avoid bug in older Linux kernel.
7123         Reported by Simon Josefsson.
7124
7125 2009-11-04  Bruno Haible  <bruno@clisp.org>
7126
7127         Make num_processors more flexible and consistent.
7128         * lib/nproc.h (enum nproc_query): New type.
7129         (num_processors): Add a 'query' argument.
7130         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7131         (num_processors): Add a 'query' argument. Test the value of the
7132         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7133         mingw, count the number of CPUs available for the current process.
7134         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7135         Check for sched_getaffinity and sched_getaffinity_np.
7136         * modules/nproc (Depends-on): Add c-ctype, extensions.
7137         * NEWS: Mention the change.
7138
7139 2009-11-03  Bruno Haible  <bruno@clisp.org>
7140
7141         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7142
7143 2009-11-03  Jim Meyering  <meyering@redhat.com>
7144
7145         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7146         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7147         if it is defined.
7148
7149 2009-11-02  Eric Blake  <ebb9@byu.net>
7150
7151         mktime, timegm: share common declaration
7152         * lib/mktime-internal.h: New file.
7153         * lib/mktime.c: Use it rather than open-coding a declaration.
7154         * lib/timegm.c: Likewise.
7155         * modules/mktime (Files): Ship it.
7156         * modules/timegm (Files): Likewise.
7157         Suggested by Bruno Haible.
7158
7159         test-update-copyright: update test to match script changes
7160         * tests/test-update-copyright.sh: Avoid hard-coding perl
7161         location.  Don't update *.bak created by earlier runs.
7162
7163 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7164             Simon Josefsson  <simon@josefsson.org>
7165             Bruno Haible  <bruno@clisp.org>
7166
7167         Fix link error on Solaris 8.
7168         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7169         also in libnsl. Define also INET_PTON_LIB.
7170         * modules/inet_pton (Link): New section.
7171
7172 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7173             Bruno Haible  <bruno@clisp.org>
7174
7175         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7176         * modules/inet_ntop (Link): New section.
7177         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7178
7179 2009-11-02  Eric Blake  <ebb9@byu.net>
7180
7181         maint: avoid compiler warnings in m4 macros
7182         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7183         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7184
7185 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7186
7187         * m4/pmccabe2html.m4: Remove file.
7188         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7189         function.  Change maintainer.
7190         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7191         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7192         Courtès).
7193
7194 2009-10-31  Eric Blake  <ebb9@byu.net>
7195
7196         fseeko: fix m4 regression
7197         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7198         regression from 2009-10-27.
7199         Reported by Ralf Wildenhues.
7200
7201 2009-10-31  Jim Meyering  <meyering@redhat.com>
7202
7203         inttostr: aesthetics and improved (compile-time) safety
7204         Define inttype_is_signed rather than inttype_is_unsigned,
7205         since the sole use is via "#if inttype_is_signed".
7206         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7207         inttype_is_unsigned.
7208         * lib/offtostr.c (inttype_is_signed): Likewise.
7209         * lib/uinttostr.c (inttype_is_signed): Likewise.
7210         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7211         * lib/inttostr.c (inttostr): Use verify to cross-check the
7212         inttype_is_signed value and the signedness of the actual type.
7213         * modules/inttostr (Depends-on): Add verify.
7214
7215 2009-10-30  Eric Blake  <ebb9@byu.net>
7216
7217         build: avoid compiler warnings
7218         * lib/fchmodat.c (lchmod): Mark unused variables.
7219         * lib/getopt.c (_getopt_initialize): Likewise.
7220         * lib/mktime.c (__mktime_internal): Provide prototype.
7221         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7222         older gcc that do not understand #pragma GCC diagnostic.
7223         * lib/uinttostr.c (inttype_is_unsigned): Define.
7224         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7225
7226 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7227
7228         stat: fix compilation on AIX
7229         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7230         only see struct stat64.
7231
7232 2009-10-30  Eric Blake  <ebb9@byu.net>
7233
7234         exclude: make more robust
7235         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7236         rather than masking a coding bug.
7237         Suggested by Bruno Haible.
7238
7239 2009-10-30  Jim Meyering  <meyering@redhat.com>
7240
7241         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7242         Rather than putting #!/usr/bin/perl on the first line,
7243         start with a variant of what's recommended by "man perlrun" that
7244         invokes the first "perl" program from your shell's search path.
7245         * build-aux/gitlog-to-changelog: Replace #!... as above.
7246         Add a "Local Variables" perl mode setting.
7247         Prompted by a patch from Ludovic Courtès.
7248         Improved by Eric Blake.
7249         * build-aux/useless-if-before-free: Likewise.
7250         * build-aux/announce-gen: Likewise.
7251         * build-aux/update-copyright: Likewise.
7252
7253 2009-10-29  Eric Blake  <ebb9@byu.net>
7254
7255         filenamecat-lgpl: adjust clients
7256         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7257         filenamecat.
7258         * modules/renameat (Depends-on): Likewise.
7259
7260         filenamecat: split into filenamecat-lgpl
7261         * modules/filenamecat-lgpl: New module.
7262         * modules/filenamecat (Files): Move library-safe files into
7263         filenamecat-lgpl.
7264         (Depends-on): Add filenamecat-lgpl.
7265         (configure.ac): Declare witness.
7266         * lib/filenamecat.h (file_name_concat): Only declare when using
7267         GPL module.
7268         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7269         Move...
7270         * lib/filenamecat-lgpl.c: ...into new file.
7271         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7272         (gl_FILE_NAME_CONCAT): Use it.
7273         * MODULES.html.sh (File system functions): Mention new module.
7274
7275         argp: avoid memory leak
7276         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7277         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7278         base_name, since the latter malloc()s and can call exit().
7279         Leak introduced 2006-07-03.
7280
7281         dirname-lgpl: adjust clients that don't need full dirname
7282         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7283         * modules/filenamecat (Depends-on): Likewise.
7284         * modules/linkat (Depends-on): Likewise.
7285         * modules/mkancesdirs (Depends-on): Likewise.
7286         * modules/mkdir (Depends-on): Likewise.
7287         * modules/openat (Depends-on): Likewise.
7288         * modules/savewd (Depends-on): Likewise.
7289         * modules/rename (Depends-on): Likewise.
7290         (License): Relax license.
7291         * modules/mkdir-tests (Depends-on): Drop progname.
7292         (Makefile.am): Delete unneeded LDADD.
7293         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7294
7295         dirname: split into dirname-lgpl
7296         * modules/dirname-lgpl: New module.
7297         * modules/dirname (Files): Move library-safe files into
7298         dirname-lgpl.
7299         (Depends-on): Add dirname-lgpl.
7300         (configure.ac): Declare witness.
7301         * modules/double-slash-root (License): Relax license.
7302         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7303         module.
7304         * lib/dirname.c (dir_len, mdir_name): Move...
7305         * lib/dirname-lgpl.c: ...into new file.
7306         * lib/basename.c (last_component, base_len): Move...
7307         * lib/basename-lgpl.c: ...into new file.
7308         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7309         (gl_DIRNAME): Use it.
7310         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7311         Mention new module.
7312         * modules/dirname-tests (Depends-on): Add progname.
7313         * tests/test-dirname.c (program_name): Delete.
7314
7315         mkdir: make safe for libraries
7316         * modules/mkdir (Depends-on): Drop xalloc.
7317         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7318         exit.
7319
7320         tests: avoid some compiler warnings
7321         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7322         literals.
7323         * tests/test-memchr.c (main): Avoid type mismatch.
7324         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7325         * tests/test-base64.c (main): Likewise.
7326         * tests/test-getdelim.c (main): Likewise.
7327         * tests/test-gethostname.c (main): Likewise.
7328         * tests/test-getline.c (main): Likewise.
7329         * tests/test-netinet_in.c (main): Likewise.
7330         * tests/test-select.c (open_server_socket, main): Likewise.
7331         * tests/test-select-stdin.c (main): Likewise.
7332         * tests/test-sockets.c (main): Likewise.
7333         * tests/test-strsignal.c (main): Likewise.
7334         * tests/test-sys_select.c (main): Likewise.
7335         * tests/test-sys_socket.c (main): Likewise.
7336         * tests/test-u64.c (main): Likewise.
7337         * tests/test-xfprintf-posix.c (main): Likewise.
7338         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7339
7340         sockets: avoid compiler warning
7341         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7342
7343         maint: detect usage(1) and other suspicious exits
7344         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7345
7346 2009-10-29  Jim Meyering  <meyering@redhat.com>
7347
7348         timespec: long-to-int truncation could make timespec_cmp malfunction
7349         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7350         a multiple of 2^32 nanoseconds as no difference.
7351
7352 2009-10-28  Jim Meyering  <meyering@redhat.com>
7353
7354         fprintftime: wrap macro code argument in "do {...} while(0)"
7355         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7356         cpy macro must be a statement that can be followed by a semicolon.
7357         Now that the else clause contains a comment and is hence longer
7358         than one line, I require curly braces.  That in turn requires
7359         that we wrap this code block in the standard do...while(0).
7360
7361         fprintftime: remove stray semicolon from previous change
7362         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7363
7364         fprintftime: avoid a warning about ignored fwrite return value
7365         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7366         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7367         that is unsafe.
7368         * modules/fprintftime (Depends-on): Add ignore-value.
7369
7370         exclude: avoid an unwarranted warning
7371         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7372
7373 2009-10-27  Eric Blake  <ebb9@byu.net>
7374
7375         fseek: avoid compilation failure when fflush is replaced
7376         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7377         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7378         module is in use.
7379         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7380         module is not in use; since REPLACE_FSEEK worked otherwise.
7381         (GNULIB_FTELLO): Likewise for ftell.
7382         Reported by Ian Beckwith and others.
7383
7384 2009-10-27  Bruno Haible  <bruno@clisp.org>
7385
7386         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7387         Reported by Jim Meyering.
7388
7389 2009-10-27  Jim Meyering  <jim@meyering.net>
7390             Bruno Haible  <bruno@clisp.org>
7391
7392         Avoid warning despite dropping the return value of fwrite.
7393         * lib/unicodeio.c: Include ignore-value.h.
7394         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7395         * modules/unicodeio (Depends-on): Add ignore-value.
7396
7397 2009-10-26  Eric Blake  <ebb9@byu.net>
7398
7399         areadlinkat: fix fallback path
7400         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7401         pointer and zero.
7402
7403 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7404
7405         Use a better IO block size for modern systems
7406         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7407         * lib/md2.c: Likewise.
7408         * lib/md4.c: Likewise.
7409         * lib/md5.c: Likewise.
7410         * lib/sha1.c: Likewise.
7411         * lib/sha256.c: Likewise.
7412         * lib/sha512.c: Likewise.
7413
7414 2009-10-22  Eric Blake  <ebb9@byu.net>
7415
7416         tests: avoid several compiler warnings
7417         * tests/test-getcwd.c (main): Avoid buffer underflow.
7418         * tests/test-getdate.c (main): String literals are not safe with
7419         putenv, so use setenv.  Declare unused argument.
7420         * modules/getdate-tests (Depends-on): Add setenv.
7421         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7422         problems with string literals in char *.
7423         * tests/test-hash.c (main): Avoid shadowing declaration.
7424         (insert_new): Treat string literals as char const *.
7425         * tests/test-getopt.h (test_getopt): Likewise.
7426         (getopt_loop): Alter types to minimize casting elsewhere.
7427         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7428         (test_getopt_long_posix): Likewise.
7429         (do_getopt_long): Add wrapper to minimize casting.
7430         * tests/test-atexit.c (clear_temp_file): Use void.
7431         * tests/test-areadlink-with-size.c (main): Declare unused
7432         arguments.
7433         * tests/test-areadlink.c (main): Likewise.
7434         * tests/test-areadlinkat-with-size.c (main): Likewise.
7435         * tests/test-areadlinkat.c (main): Likewise.
7436         * tests/test-canonicalize-lgpl.c (main): Likewise.
7437         * tests/test-canonicalize.c (main): Likewise.
7438         * tests/test-dirent-safer.c (main): Likewise.
7439         * tests/test-dirname.c (main): Likewise.
7440         * tests/test-dup2.c (main): Likewise.
7441         * tests/test-fchdir.c (main): Likewise.
7442         * tests/test-fcntl-h.c (main): Likewise.
7443         * tests/test-fcntl-safer.c (main): Likewise.
7444         * tests/test-fdopendir.c (main): Likewise.
7445         * tests/test-fdutimensat.c (main): Likewise.
7446         * tests/test-fflush.c (main): Likewise.
7447         * tests/test-filenamecat.c (main): Likewise.
7448         * tests/test-filevercmp.c (main): Likewise.
7449         * tests/test-fopen-safer.c (main): Likewise.
7450         * tests/test-fopen.c (main): Likewise.
7451         * tests/test-fpending.c (main): Likewise.
7452         * tests/test-fpurge.c (main): Likewise.
7453         * tests/test-freading.c (main): Likewise.
7454         * tests/test-fstatat.c (main): Likewise.
7455         * tests/test-fsync.c (main): Likewise.
7456         * tests/test-futimens.c (main): Likewise.
7457         * tests/test-getndelim2.c (main): Likewise.
7458         * tests/test-gettimeofday.c (main): Likewise.
7459         * tests/test-getopt.c (main): Likewise.
7460         * tests/test-i-ring.c (main): Likewise.
7461         * tests/test-inttypes.c (main): Likewise.
7462         * tests/test-link.c (main): Likewise.
7463         * tests/test-lstat.c (main): Likewise.
7464         * tests/test-math.c (main): Likewise.
7465         * tests/test-md5.c (main): Likewise.
7466         * tests/test-memchr2.c (main): Likewise.
7467         * tests/test-memrchr.c (main): Likewise.
7468         * tests/test-mkdir.c (main): Likewise.
7469         * tests/test-mkdirat.c (main): Likewise.
7470         * tests/test-mkfifoat.c (main): Likewise.
7471         * tests/test-open.c (main): Likewise.
7472         * tests/test-openat-safer.c (main): Likewise.
7473         * tests/test-openat.c (main): Likewise.
7474         * tests/test-quotearg.c (main): Likewise.
7475         * tests/test-rawmemchr.c (main): Likewise.
7476         * tests/test-readlink.c (main): Likewise.
7477         * tests/test-remove.c (main): Likewise.
7478         * tests/test-rename.c (main): Likewise.
7479         * tests/test-renameat.c (main): Likewise.
7480         * tests/test-rmdir.c (main): Likewise.
7481         * tests/test-sha1.c (main): Likewise.
7482         * tests/test-signal.c (main): Likewise.
7483         * tests/test-sigaction.c (main): Likewise.
7484         * tests/test-stat.c (main): Likewise.
7485         * tests/test-stat-time.c (main): Likewise.
7486         * tests/test-stddef.c (main): Likewise.
7487         * tests/test-stdint.c (main): Likewise.
7488         * tests/test-stdio.c (main): Likewise.
7489         * tests/test-stdlib.c (main): Likewise.
7490         * tests/test-strchrnul.c (main): Likewise.
7491         * tests/test-strerror.c (main): Likewise.
7492         * tests/test-string.c (main): Likewise.
7493         * tests/test-strtod.c (main): Likewise.
7494         * tests/test-strverscmp.c (main): Likewise.
7495         * tests/test-symlink.c (main): Likewise.
7496         * tests/test-symlinkat.c (main): Likewise.
7497         * tests/test-sys_stat.c (main): Likewise.
7498         * tests/test-sys_time.c (main): Likewise.
7499         * tests/test-time.c (main): Likewise.
7500         * tests/test-unistd.c (main): Likewise.
7501         * tests/test-unlink.c (main): Likewise.
7502         * tests/test-unlinkat.c (main): Likewise.
7503         * tests/test-utimens.c (main): Likewise.
7504         * tests/test-utimensat.c (main): Likewise.
7505         * tests/test-version-etc.c (main): Likewise.
7506         * tests/test-wchar.c (main): Likewise.
7507         * tests/test-wctype.c (main): Likewise.
7508         * tests/test-xprintf-posix.c (main): Likewise.
7509         * tests/test-posixtm.c (main): Likewise.
7510         (STREQ): Delete unused macro.
7511         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7512         shadowed variables.
7513         * tests/test-memchr.c (main): Likewise.
7514
7515 2009-10-21  Eric Blake  <ebb9@byu.net>
7516
7517         areadlinkat: avoid failure on older glibc
7518         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7519         rather than mis-comparing 0 against FUNC_RESULT of char*.
7520
7521 2009-10-21  Bruno Haible  <bruno@clisp.org>
7522
7523         * modules/stpncpy (License): Relicense under LGPLv2+.
7524         Reported by David Lutterkort <lutter@redhat.com>.
7525
7526 2009-10-20  Eric Blake  <ebb9@byu.net>
7527
7528         utimensat: work around Solaris 9 bug
7529         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7530         has trailing slash bugs.
7531         * tests/test-lutimens.h (test_lutimens): Enhance test.
7532         * tests/test-utimens.h (test_utimens): Likewise.
7533         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7534         * doc/posix-functions/utimes.texi (utimes): Likewise.
7535         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7536         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7537         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7538         * doc/posix-functions/futimens.texi (futimens): Likewise.
7539
7540         fdutimensat: new module
7541         * modules/fdutimensat: New file.
7542         * lib/fdutimensat.c (fdutimensat): Likewise.
7543         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7544         * MODULES.html.sh (File system functions): Mention module.
7545         * modules/fdutimensat-tests: New test.
7546         * tests/test-fdutimensat.c: Likewise.
7547
7548         doc: regenerate INSTALL
7549         * doc/INSTALL: Reflect recent autoconf update.
7550         * doc/INSTALL.ISO: Likewise.
7551         * doc/INSTALL.UTF-8: Likewise.
7552
7553 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7554
7555         acl: warn if ACL support is not detected
7556         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7557
7558 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7559
7560         * lib/nproc.h: Add extern "C" block for C++.
7561
7562 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7563             Bruno Haible  <bruno@clisp.org>
7564
7565         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7566         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7567         * doc/posix-functions/isalpha.texi: Likewise.
7568         * doc/posix-functions/isblank.texi: Likewise.
7569         * doc/posix-functions/iscntrl.texi: Likewise.
7570         * doc/posix-functions/isdigit.texi: Likewise.
7571         * doc/posix-functions/isgraph.texi: Likewise.
7572         * doc/posix-functions/islower.texi: Likewise.
7573         * doc/posix-functions/isprint.texi: Likewise.
7574         * doc/posix-functions/ispunct.texi: Likewise.
7575         * doc/posix-functions/isspace.texi: Likewise.
7576         * doc/posix-functions/isupper.texi: Likewise.
7577         * doc/posix-functions/isxdigit.texi: Likewise.
7578
7579 2009-10-18  Bruno Haible  <bruno@clisp.org>
7580
7581         Tests for module 'isblank'.
7582         * modules/isblank-tests: New file.
7583         * tests/test-isblank.c: New file.
7584
7585         New module 'isblank'.
7586         * lib/isblank.c: New file.
7587         * m4/isblank.m4: New file.
7588         * modules/isblank: New file.
7589         * doc/posix-functions/isblank.texi: Mention the new module.
7590
7591 2009-10-18  Bruno Haible  <bruno@clisp.org>
7592
7593         New module 'ctype'.
7594         * lib/ctype.in.h: New file.
7595         * m4/ctype.m4: New file.
7596         * modules/ctype: New file.
7597         * doc/posix-headers/ctype.texi: Mention the new module.
7598
7599 2009-10-18  Jim Meyering  <meyering@redhat.com>
7600
7601         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7602         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7603         right after its initialization, rather than farther down.
7604         Keeping these in close proximity makes it easier to ensure
7605         that each such variable is initialized.  E.g.,
7606
7607             LIB_CLOCK_GETTIME=
7608             AC_SUBST([LIB_CLOCK_GETTIME])
7609
7610         This change also increments these serial numbers.
7611         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7612         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7614
7615 2009-10-18  Bruno Haible  <bruno@clisp.org>
7616
7617         Don't let environment variables perturb build.
7618         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7619         (gl_PREREQ_GETHRXTIME): ... not here.
7620
7621 2009-10-18  Bruno Haible  <bruno@clisp.org>
7622
7623         Avoid symlink attack in localcharset module.
7624         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7625         (O_NOFOLLOW): Define fallback.
7626         (get_charset_aliases): Don't open the file if it is a symbolic link.
7627         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7628         gl_FCNTL_H.
7629         (gl_FCNTL_H): Require it.
7630         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7631         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7632         Reported by Fergal Glynn <fglynn@veracode.com>.
7633
7634 2009-10-18  Bruno Haible  <bruno@clisp.org>
7635
7636         Implement nproc for mingw.
7637         * lib/nproc.c: Include <windows.h>
7638         (num_processors): On native Windows platforms, try GetSystemInfo.
7639
7640 2009-10-18  Bruno Haible  <bruno@clisp.org>
7641
7642         Implement nproc for IRIX.
7643         * lib/nproc.c: Include <sys/sysmp.h>.
7644         (num_processors): On IRIX systems, try sysmp.
7645         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7646
7647 2009-10-18  Bruno Haible  <bruno@clisp.org>
7648
7649         Implement nproc for HP-UX.
7650         * lib/nproc.c: Include <sys/pstat.h>
7651         (num_processors): On HP-UX systems, try pstat_getdynamic.
7652         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7653         pstat_getdynamic.
7654
7655 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7656             Bruno Haible  <bruno@clisp.org>
7657
7658         Implement nproc for NetBSD, OpenBSD.
7659         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7660         (ARRAY_SIZE): New macro.
7661         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7662         * m4/nproc.m4: New file.
7663         * modules/nproc (Files): Add m4/nproc.m4.
7664         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7665         (Makefile.am): Instead, augment lib_SOURCES.
7666
7667 2009-10-18  Bruno Haible  <bruno@clisp.org>
7668
7669         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7670         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7671         sys/param.h.
7672
7673 2009-10-16  Eric Blake  <ebb9@byu.net>
7674
7675         utimensat: new module
7676         * modules/utimensat: New file.
7677         * lib/utimensat.c (utimensat): Likewise.
7678         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7679         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7680         so we can work around Linux bugs.
7681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7682         * modules/sys_stat (Makefile.am): Substitute them.
7683         * lib/sys_stat.in.h (utimensat): Declare it.
7684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7685         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7686         * modules/utimensat-tests: New test.
7687         * tests/test-utimensat.c: Likewise.
7688
7689         utimens: let lutimens work on non-symlinks
7690         * lib/utimens.c (lutimens): Fall back to utimens rather than
7691         failing with ENOSYS, when file is not a symlink.
7692         (utimens): Reduce redirection.
7693         * tests/test-lutimens.h (test_lutimens): Update test to cover
7694         non-symlinks.
7695         * tests/test-utimens.h (test_utimens): Update test to cover
7696         symlinks.
7697         * tests/test-utimens.c (main): Update caller.
7698
7699         utimens: cache whether utimensat syscall works
7700         * lib/utimens.c (utimensat_works_really): New cache variable.
7701         (fdutimens, lutimens): Use it to avoid failing syscall.
7702
7703         test-stat-time, test-utimens: improve portability
7704         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7705         ext4 on alpha, and for cygwin.
7706         * tests/test-utimens-common.h: New file.
7707         (nap): Factor delays into single function.
7708         * tests/test-lutimens.h (test_lutimens): Use new header.
7709         * tests/test-futimens.h (test_futimens): Likewise.
7710         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7711         timestamps to occur from same machine, as was done previously for
7712         test_utimens.
7713         * modules/utimens-tests (Files): Ship new file.
7714         * modules/futimens-tests (Files): Likewise.
7715         Reported in part by Jim Meyering.
7716
7717         sys_stat: sort replacement declarations
7718         * lib/sys_stat.in.h: Sort declarations.
7719         * lib/futimens.c (futimens): Fix typo.
7720
7721 2009-10-15  Jim Meyering  <meyering@redhat.com>
7722
7723         don't let environment settings perturb build
7724         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7725         could cause a configure-time and/or build-time malfunction.
7726         Typically, a configure-time function-in-library test is performed
7727         via code like this:
7728
7729           LIB_VAR=
7730           AC_SUBST([LIB_VAR])
7731           prefix_saved_LIBS=$LIBS
7732             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7733                        [test "$ac_cv_search_FUNC" = "none required" ||
7734                         LIB_VAR=$ac_cv_search_FUNC])
7735           LIBS=$prefix_saved_LIBS
7736
7737         However, in each of the files affected by this change, the LIB_VAR=
7738         initialization was omitted.  Thus, when set in the environment, its
7739         value would propagate into generated Makefiles when FUNC is not found
7740         in LIB_NAME.
7741         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7742         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7744
7745 2009-10-14  Eric Blake  <ebb9@byu.net>
7746
7747         fchdir: avoid infinite recursion in mingw
7748         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7749         recursing.
7750
7751         test-stat-time: port to mingw
7752         * tests/test-stat-time.c (force_unlink): Return a value.
7753         (test_ctime) [W32]: Fix compilation error.
7754         (nap): Don't call usleep with too large an argument.  Use
7755         force_unlink.
7756         * doc/pastposix-functions/usleep.texi (usleep): Document the
7757         portability issue.
7758
7759 2009-10-13  Jim Meyering  <meyering@redhat.com>
7760
7761         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7762         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7763         * modules/pipe-filter-ii: Likewise.
7764         * modules/sys_socket-tests: Likewise.
7765         * modules/tsearch-tests: Likewise.
7766         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7767         (check): Depend on it.
7768
7769 2009-10-12  Eric Blake  <ebb9@byu.net>
7770
7771         utimens-tests: port to NFS file systems
7772         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7773         comparisons to avoid spurious failures from timestamp drift
7774         between NFS machines.
7775
7776 2009-10-12  Eric Blake  <ebb9@byu.net>
7777
7778         stat-time-tests: minor cleanups
7779         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7780         * tests/test-stat-time.c (nap): Separate assignment from call.
7781         Suggested by Paolo Bonzini and Bruno Haible.
7782
7783         sys_stat: guarantee struct timespec
7784         * lib/sys_stat.in.h (includes): Always include <time.h>
7785         * modules/sys_stat (Depends-on): Add time.
7786         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7787         mode_t permission values.
7788         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7789         get at subsecond timestamps.
7790
7791 2009-10-10  Eric Blake  <ebb9@byu.net>
7792
7793         futimens: new module
7794         * modules/futimens: New file.
7795         * lib/futimens.c (futimens): Likewise.
7796         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7797         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7798         we can work around Linux bugs.
7799         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7800         * modules/sys_stat (Makefile.am): Substitute them.
7801         * lib/sys_stat.in.h (futimens): Declare it.
7802         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7803         * doc/posix-functions/futimens.texi (futimens): Likewise.
7804         * modules/futimens-tests: New test.
7805         * tests/test-futimens.c: Likewise.
7806
7807         utimens: introduce fdutimens
7808         * lib/utimens.h (fdutimens): New prototype.
7809         * lib/utimens.c (gl_futimens): Move guts...
7810         (fdutimens): ...to new interface.
7811         * tests/test-utimens.c (do_fdutimens): Use it.
7812
7813         utimens: add UTIME_NOW and UTIME_OMIT support
7814         * lib/utimens.c (validate_timespec, update_timespec): New helper
7815         functions.
7816         (gl_futimens, lutimens): Use them.
7817         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7818         stdbool, sys_stat.
7819         (Link): Mention resulting library dependency.
7820         * modules/utimecmp (Link): Likewise.
7821         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7822         (Makefile.am): Pick up library dependency.
7823         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7824         definition.
7825         * tests/test-sys_stat.c: Test the definitions.
7826         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7827         * NEWS: Document library dependency.
7828
7829         utimecmp: support symlink timestamps
7830         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7831         hashing when possible.  Use pathconf when available.
7832         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7833         * modules/utimecmp (Depends-on): Add lstat.
7834
7835         utimens: add lutimens interface
7836         * lib/utimens.c (lutimens): New function.
7837         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7838         * lib/utimens.h (lutimens): Declare new interface.
7839         * tests/test-utimens.c (main): Enhance test.
7840         * tests/test-lutimens.h (test_lutimens): New file.
7841         * modules/utimens-tests (Files): Distribute it.
7842         (Depends-on): Add symlink.
7843         (configure.ac): Check for usleep.
7844
7845         utimens: validate futimens usage
7846         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7847         fewer syscalls on failure later on.  Avoid compiler warning on
7848         mingw.
7849         * modules/utimens (Depends-on): Add dup2.
7850
7851         utimens: add test
7852         * modules/utimens-tests: New test.
7853         * tests/test-utimens.h: New file.
7854         * tests/test-futimens.h: Likewise.
7855         * tests/test-utimens.c: Likewise.
7856
7857         doc: mention timestamp portability issues
7858         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7859         instead.
7860         * doc/posix-functions/utime.texi (utime): Likewise.
7861         * doc/posix-functions/utimes.texi (utimes): Likewise.
7862         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7863         instead.
7864         * doc/posix-functions/futimens.texi (futimens): Mention utimens
7865         module.
7866         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7867         Mention weakness with symlink timestamps.
7868         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7869         to utimensat/futimens instead.
7870         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7871
7872         test-dup2: enhance test
7873         * tests/test-dup2.c (main): Also check AT_FDCWD.
7874
7875         test-stat-time: avoid more spurious failures
7876         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7877         xfs; and avoid race if the two timestamps cross quantization edge.
7878
7879         relocatable: prefer 'file system' over 'filesystem'
7880         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7881         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7882         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7883         * doc/relocatable.texi (Enabling Relocatability): Likewise.
7884         * lib/relocatable.c (compute_curr_prefix): Likewise.
7885
7886 2009-10-10  Jim Meyering  <meyering@redhat.com>
7887
7888         stat-time-tests: check for the usleep function
7889         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7890
7891 2009-10-10  Bruno Haible  <bruno@clisp.org>
7892
7893         * modules/xnanosleep: Put the Link section after the Include section.
7894
7895 2009-10-09  Eric Blake  <ebb9@byu.net>
7896
7897         dup2: work around FreeBSD 6.1 bug
7898         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7899         * doc/posix-functions/dup2.texi (dup2): Document it.
7900         Reported by Nelson H. F. Beebe and Jim Meyering.
7901
7902         test-stat-time: port to buggy NFS clients
7903         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7904         (test_ctime): Also skip test if mtime and ctime are skewed.
7905
7906         maint: prefer 'file system' over 'filesystem'
7907         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7908         * doc/posix-functions/lstat.texi (lstat): Likewise.
7909         * lib/file-has-acl.c (file_has_acl): Likewise.
7910         * lib/fwriteerror.c [TEST]: Likewise.
7911         * tests/test-areadlink.h (test_areadlink): Likewise.
7912         * tests/test-areadlinkat-with-size.c (main): Likewise.
7913         * tests/test-areadlinkat.c (main): Likewise.
7914         * tests/test-canonicalize-lgpl.c (main): Likewise.
7915         * tests/test-canonicalize.c (main): Likewise.
7916         * tests/test-fstatat.c (main): Likewise.
7917         * tests/test-linkat.c (main): Likewise.
7918         * tests/test-lstat.h (test_lstat_func): Likewise.
7919         * tests/test-mkdir.h (test_mkdir): Likewise.
7920         * tests/test-readlink.h (test_readlink): Likewise.
7921         * tests/test-remove.c (main): Likewise.
7922         * tests/test-rename.h (test_rename): Likewise.
7923         * tests/test-renameat.c (main): Likewise.
7924         * tests/test-rmdir.h (test_rmdir_func): Likewise.
7925         * tests/test-symlink.h (test_symlink): Likewise.
7926         * tests/test-symlinkat.c (main): Likewise.
7927         * tests/test-unlink.h (test_unlink_func): Likewise.
7928         * tests/test-unlinkat.c (main): Likewise.
7929
7930         maint: make realtime library usage explicit
7931         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7932         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7933         * modules/settime (Link): Likewise.
7934         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7935
7936         test-stat-time: speed up execution
7937         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7938         warning on mingw.
7939         (nap): New helper function.
7940         (prepare_test): Use it to reduce sleep time.
7941         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7942         execution.
7943         * modules/stat-time-tests (configure.ac): Check for usleep.
7944
7945 2009-10-09  Jim Meyering  <meyering@redhat.com>
7946
7947         selinux-h: always use getfilecon wrappers
7948         * lib/getfilecon.c: New file.
7949         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7950         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7951         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7952         (fgetfilecon): Provide a stub.
7953         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7954         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7955         file unconditionally.
7956         When <selinux/selinux.h> is found, arrange to use wrappers.
7957         * modules/selinux-h (Files): Add getfilecon.c.
7958         (Makefile.am): Substitute include-next-related bits
7959         into the now-always-generated selinux/selinux.h file.
7960         * doc/glibc-functions/lgetfilecon.texi: New file.
7961         * doc/glibc-functions/fgetfilecon.texi: New file.
7962         * doc/glibc-functions/getfilecon.texi: New file.
7963         * doc/glibc-functions/getfilecon-desc.texi: New file.
7964         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7965         which to pull in the new files.
7966         * MODULES.html.sh (Misc): Add selinux-h.
7967
7968 2009-10-08  Jim Meyering  <meyering@redhat.com>
7969
7970         unistd: fix comment typo
7971         * lib/unistd.in.h (euidaccess): Fix a comment typo.
7972
7973 2009-10-08  Eric Blake  <ebb9@byu.net>
7974
7975         areadlink: use SIZE_MAX consistently
7976         * modules/areadlink (Depends-on): Add stdint.
7977         * modules/areadlink-with-size (Depends-on): Likewise.
7978         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7979         gives NULL; drop sys/types, since unistd gives size_t; and add
7980         stdint for SIZE_MAX.
7981         (SIZE_MAX): Rely on headers.
7982         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7983         and add stdint.
7984         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7985         (SIZE_MAX): Likewise.
7986         (INITIAL_BUF_SIZE): Turn into enum.
7987         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7988
7989 2009-10-08  Jim Meyering  <meyering@redhat.com>
7990
7991         areadlinkat: avoid compilation failure
7992         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7993         Fix typo in comment.
7994
7995 2009-10-07  Eric Blake  <ebb9@byu.net>
7996
7997         areadlinkat-with-size: new module
7998         * modules/areadlinkat-with-size: New module.
7999         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8000         * lib/areadlink.h (areadlinkat): Declare it.
8001         * MODULES.html.sh (File system functions): Mention it.
8002         * modules/areadlinkat-with-size-tests: New test.
8003         * tests/test-areadlinkat-with-size.c: New file.
8004
8005         xreadlinkat: new module
8006         * modules/xreadlinkat: New module.
8007         * lib/xreadlinkat.c (xreadlinkat): New file.
8008         * lib/xreadlink.h (xreadlinkat): Declare it.
8009         * MODULES.html.sh (File system functions): Mention it.
8010
8011         areadlinkat: new module
8012         * lib/at-func.c (FUNC_FAIL): New define.
8013         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8014         * modules/areadlinkat: New module.
8015         * lib/linkat.c (areadlinkat): Move...
8016         * lib/areadlinkat.c (areadlinkat): ...to new file.
8017         * lib/areadlink.h (areadlinkat): Declare it.
8018         * modules/linkat (Depends-on): Add areadlinkat.
8019         * MODULES.html.sh (File system functions): Mention it.
8020         * modules/areadlinkat-tests: New test.
8021         * tests/test-areadlinkat.c: New file.
8022
8023         areadlink, areadlink-with-size: add tests
8024         * modules/areadlink-tests: New test.
8025         * modules/areadlink-with-size-tests: Likewise.
8026         * tests/test-areadlink.h: New file.
8027         * tests/test-areadlink.c: Likewise.
8028         * tests/test-areadlink-with-size.c: Likewise.
8029
8030         maint: minor cleanups
8031         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8032         _UNUSED_PARAMETER_ instead.
8033         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8034         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8035         * modules/linkat-tests (Files): Distribute test-link.h.
8036
8037         openat, utimens: whitespace cleanup
8038         * lib/openat.c: Prefer space throughout, rather than mix of 8
8039         spaces vs. tabs.
8040         * lib/at-func.c: Likewise.
8041         * lib/utimens.c: Likewise.
8042
8043         openat: avoid using wrong fd
8044         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8045         working directory chooses same fd.
8046         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8047
8048         mkdir, mkdirat: fix cygwin 1.5.x bug
8049         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8050         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8051         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8052         bug.
8053         (gl_PREREQ_MKDIR): Delete unused macro.
8054         * modules/mkdir (Files): Track file rename.
8055         (configure.ac): Update macro name.
8056         * modules/openat (Depends-on): Add mkdir.
8057         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8058
8059         mkdir, mkdirat: add tests
8060         * modules/mkdir-tests: New test.
8061         * tests/test-mkdir.h: New file.
8062         * tests/test-mkdir.c: Likewise.
8063         * tests/test-mkdirat.c: Likewise.
8064         * modules/openat-tests (Files): Add new files.
8065         (Makefile.am): Run new test.
8066
8067 2009-10-06  Eric Blake  <ebb9@byu.net>
8068
8069         doc: tweak *at function documentation
8070         * doc/posix-functions/faccessat.texi (faccessat): Mention
8071         known issue with replacement.
8072         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8073         * doc/posix-functions/linkat.texi (linkat): Likewise.
8074         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8075         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8076         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8077         * doc/posix-functions/renameat.texi (renameat): Likewise.
8078         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8079
8080         openat: fix GNU/Hurd bug in unlinkat
8081         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8082         broken.
8083         * doc/posix-functions/unlink.texi (unlink): Document this.
8084         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8085
8086         fdopendir: fix GNU/Hurd bug
8087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8088         allowing non-directory fds.
8089         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8090         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8091         * modules/dirent (Makefile.am): Substitute it.
8092         * lib/dirent.in.h (fdopendir): Declare replacement.
8093         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8094         * tests/test-fdopendir.c (main): Test something other than
8095         /dev/null, since on Hurd that behaves like a directory.
8096
8097         test-symlink: port to GNU/Hurd
8098         * tests/test-symlink.h (test_symlink): Relax expected errno.
8099
8100         doc: tweak more cygwin information
8101         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8102         now compatible with glibc.
8103         * doc/posix-functions/getopt.texi (getopt): Likewise.
8104
8105         getopt-gnu: add another test
8106         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8107         guarantee behavior relied on by m4.
8108         * tests/test-getopt.c (main): Use it.
8109         * modules/getopt-posix-tests (Depends-on): Add setenv.
8110         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8111
8112         getopt: fix compilation on darwin
8113         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8114         include.
8115         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8116         Reported by Ludovic Courtès.
8117
8118 2009-10-06  Bruno Haible  <bruno@clisp.org>
8119
8120         * modules/size_max (Description): Discourage its use.
8121         Reported by Simon Josefsson.
8122
8123 2009-10-06  Jim Meyering  <meyering@redhat.com>
8124
8125         linkat: avoid compilation failure
8126         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8127
8128 2009-10-05  Eric Blake  <ebb9@byu.net>
8129
8130         linkat: support Linux 2.6.17
8131         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8132         linkat on Linux, but allow cache variable override.
8133         * lib/linkat.c (rpl_linkat): Define override.
8134         * modules/linkat (Depends-on): Add symlinkat.
8135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8136         * modules/unistd (Makefile.am): Substitute it.
8137         * lib/unistd.in.h (linkat): Declare replacement.
8138         Reported by Pádraig Brady.
8139
8140         quotearg: port test to systems with C.UTF-8 locale
8141         * tests/test-quotearg.c (struct result_strings): Add another
8142         member, differentiating between C.ASCII and C.UTF-8 handling.
8143         (compare_strings): Add parameter.
8144         (main): Adjust all callers.
8145
8146         getopt: avoid clash with FreeBSD _getopt_internal
8147         * lib/getopt.in.h (_getopt_internal): Override the name.
8148         * lib/getopt_int.h (includes): Pick up any overrides.
8149         Reported by Reuben Thomas.
8150
8151         hash: allow C89 compilation
8152         * lib/hash.c (check_tuning): Move declaration before statement.
8153         Reported by Reuben Thomas.
8154
8155 2009-10-05  Karl Berry  <karl@gnu.org>
8156
8157         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8158
8159 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8160             Bruno Haible  <bruno@clisp.org>
8161
8162         * lib/uname.c (uname): Use a table-driven algorithm to compute
8163         Windows NT versions.
8164
8165 2009-10-04  Bruno Haible  <bruno@clisp.org>
8166
8167         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8168         program_invocation_short_name.
8169         * modules/progname (configure.ac): Test for presence of
8170         program_invocation_short_name.
8171         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8172
8173 2009-10-04  Bruno Haible  <bruno@clisp.org>
8174
8175         * lib/progname.c (set_program_name): Fix comment.
8176         Reported by Jim Meyering.
8177
8178 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8179             Bruno Haible  <bruno@clisp.org>
8180
8181         * lib/uname.c: Include <string.h>.
8182         (uname): Do only one call to GetVersionEx in the common case.
8183
8184 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8185             Bruno Haible  <bruno@clisp.org>
8186
8187         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8188         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8189         (uname): Add support for Windows CE and various non-x86 CPU types.
8190
8191 2009-10-03  Bruno Haible  <bruno@clisp.org>
8192
8193         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8194         invocation to tests/configure.ac.
8195         Reported by Ian Beckwith <ianb@erislabs.net>.
8196
8197 2009-10-02  Eric Blake  <ebb9@byu.net>
8198
8199         fchdir: avoid compiler warning
8200         * lib/fchdir.c (canonicalize_file_name)
8201         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8202
8203         test-open: support mingw errno values
8204         * tests/test-open.h (test_open): Relax test.
8205         * tests/test-fopen.h (test_fopen): Likewise.
8206         * tests/test-openat-safer.c (main): Likewise.
8207
8208         open: fix opening directory on mingw
8209         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8210
8211         test-open: on GNU/Hurd, /dev/null is a directory
8212         * tests/test-fopen.h (main): Rename...
8213         (test_fopen): ...to this.  Use a guaranteed non-directory when
8214         confirming open behavior on trailing slash.
8215         * tests/test-openat-safer.c (main): Likewise.
8216         * tests/test-open.h (main): Likewise....
8217         (test_open): ...to this.
8218         * tests/test-fopen.c (main): Adjust caller.
8219         * tests/test-fopen-safer.c (main): Likewise.
8220         * tests/test-open.c (main): Likewise.
8221         * tests/test-fcntl-safer.c (main): Likewise.
8222         Reported by Samuel Thibault.
8223
8224         rename, fchdir: don't ignore chdir failure
8225         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8226         * lib/rename.c (rpl_rename) [W32]: Likewise.
8227         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8228         an empty destination directory if source cannot be renamed,
8229         although there is still possibility for failure.
8230         * doc/posix-functions/rename.texi (rename): Document the race.
8231         Reported by Jim Meyering.
8232
8233         maint: cleanup whitespace in recent commits
8234         * lib/rename.c (rpl_rename): Remove tabs.
8235         * tests/test-link.h (test_link): Likewise.
8236         * lib/fchdir.c (get_name): Likewise.
8237         Reported by Jim Meyering.
8238
8239 2009-10-02  Ben Pfaff  <blp@gnu.org>
8240
8241         relocatable-prog-wrapper: Add missing dependency on
8242         double-slash-root.
8243         * modules/relocatable-prog-wrapper: Add dependency.
8244         Reported by Ian Beckwith <ianb@erislabs.net>.
8245
8246 2009-10-02  Eric Blake  <ebb9@byu.net>
8247
8248         renameat: fix Solaris bugs
8249         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8250         needed fixing.
8251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8252         * modules/stdio (Makefile.am): Substitute it.
8253         * lib/stdio.in.h (renameat): Declare replacement.
8254         * lib/renameat.c (rpl_renameat): Implement fix.
8255
8256         renameat: new module
8257         * modules/renameat: New file.
8258         * lib/renameat.c (renameat): Likewise.
8259         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8261         * modules/stdio (Makefile.am): Substitute them.
8262         * lib/stdio.in.h (renameat): Declare it.
8263         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8264         * doc/posix-functions/renameat.texi (renameat): Likewise.
8265         * modules/renameat-tests: New test.
8266         * tests/test-renameat.c: Likewise.
8267
8268         rename: fix mingw bugs
8269         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8270         directory overwrite bugs.
8271
8272         rename: fix another cygwin 1.5 bug
8273         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8274         checks.
8275         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8276         unnecessary cygwin workarounds.  Also work around bug with moving
8277         full directory onto an empty one.
8278         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8279
8280         rename-dest-slash: merge into rename module
8281         * modules/rename-dest-slash (Status): Mark obsolete.
8282         (Depends-on): Add rename.
8283         (Files): Let rename do it all.
8284         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8285         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8286         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8287         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8288         * lib/rename.c (rpl_rename): Update comments.
8289
8290         rename: fix cygwin 1.5.x bugs
8291         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8292         * lib/rename.c (rpl_rename): Work around them.
8293         * modules/rename (Depends-on): Add same-inode.
8294
8295         rename: fix Solaris 10 bug
8296         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8297         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8298         was the only bug.
8299
8300         rename: fix Solaris 9 bug
8301         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8302         on non-directory.  Avoid calling exit.
8303         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8304         strdup.
8305         * modules/rename-tests (Depends-on): Drop lstat.
8306         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8307         (gl_PREREQ_RENAME): Delete unused macro.
8308
8309         rename-dest-slash: fix NetBSD bug
8310         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8311         links.
8312         * modules/rename-dest-slash (Depends-on): Add same-inode.
8313
8314         rename-tests: new test, exposes several platform bugs
8315         * modules/rename-tests: New file.
8316         * tests/test-rename.h: Likewise.
8317         * tests/test-rename.c: Likewise.
8318         * doc/posix-functions/rename.texi (rename): Improve documentation,
8319         including bugs that will eventually be fixed in gnulib.
8320
8321 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8322
8323         * lib/uname.c: Include <stdlib.h>
8324         (uname): Assume version info is available.
8325
8326 2009-10-02  Jim Meyering  <meyering@redhat.com>
8327
8328         gnu-web-doc-update: correct --help output
8329         * build-aux/gnu-web-doc-update: Make --help output relevant.
8330
8331         gnu-web-doc-update: add standard options
8332         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8333
8334         gnu-web-doc-update: New module.
8335         Use this script to automatically update the on-line web documentation
8336         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8337         * modules/gnu-web-doc-update: New file, from coreutils.
8338         * build-aux/gnu-web-doc-update: New script.
8339
8340 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8341
8342         link: LoadLibrary is not needed.
8343         * lib/link.c: Use GetModuleHandle.
8344
8345 2009-10-01  Eric Blake  <ebb9@byu.net>
8346
8347         getopt: bump serial number
8348         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8349         change.
8350
8351         tests: tighten link, rmdir, and remove tests
8352         * tests/test-link.h (includes): No need to use <config.h> here.
8353         Clean up if directory hard link was created, otherwise test for
8354         trailing '.'.
8355         * tests/test-linkat.c (main): Simplify.
8356         * tests/test-remove.c (main): Enhance test for trailing '.'.
8357         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8358
8359 2009-10-01  Jim Meyering  <meyering@redhat.com>
8360
8361         maint.mk: requiring "make major" was annoying, for a "minor" release.
8362         What is intended is "stable", to contrast with alpha and beta,
8363         so require "make stable", not "make major".
8364         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8365         (get_tool_versions): Likewise.
8366         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8367
8368 2009-09-30  Ben Pfaff  <blp@gnu.org>
8369
8370         Fix broken build of replacement for Windows tmpfile().
8371         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8372         flags argument added along with the 'mkostemp' module.
8373
8374 2009-09-28  Bruno Haible  <bruno@clisp.org>
8375
8376         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8377         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8378         to 'remove_elt'.
8379         (gl_list_remove): Update.
8380         * lib/gl_list.c (gl_list_remove): Update.
8381         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8382         to 'remove_elt'.
8383         (gl_oset_remove): Update.
8384         * lib/gl_list.c (gl_oset_remove): Update.
8385         Reported by Eric Blake.
8386
8387 2009-09-28  Eric Blake  <ebb9@byu.net>
8388
8389         doc: mention yet more cygwin 1.7 status
8390         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8391         cygwin.
8392         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8393         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8394
8395         argp: fix test failure
8396         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8397         that are not upper-case.  Pass correct range to tolower.
8398
8399 2009-09-27  Jim Meyering  <meyering@redhat.com>
8400
8401         test-yesno: work around sparc-dash here-document infelicity
8402         Without this change, the literal \177 byte in a here document
8403         would make dash 0.5.5.1-3 access uninitialized memory.
8404         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8405         Instead, use a marker, "@", and filter through tr to create the desired
8406         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8407
8408 2009-09-27  Bruno Haible  <bruno@clisp.org>
8409
8410         Disable untested support for new flavours of ACLs on AIX.
8411         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8412         progress.
8413         * lib/set-mode-acl.c (qset_acl): Likewise.
8414
8415 2008-12-07  Bruno Haible  <bruno@clisp.org>
8416
8417         Add support for new flavours of ACLs on AIX. (Untested.)
8418         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8419         (file_has_acl): Add support for newer AIX.
8420         * lib/set-mode-acl.c (qset_acl): Likewise.
8421         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8422         Rainer Tammer <tammer@tammer.net>.
8423
8424 2009-09-26  Eric Blake  <ebb9@byu.net>
8425
8426         argp: fix compilation of getopt
8427         * lib/getopt.in.h (includes): Use different guard than glibc.
8428         Reported by Sergey Poznyakoff.
8429
8430         doc: mention more cygwin 1.7 status
8431         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8432         bug.
8433         * doc/posix-functions/execl.texi (execl): Likewise.
8434         * doc/posix-functions/execle.texi (execle): Likewise.
8435         * doc/posix-functions/execlp.texi (execlp): Likewise.
8436         * doc/posix-functions/execv.texi (execv): Likewise.
8437         * doc/posix-functions/execve.texi (execve): Likewise.
8438         * doc/posix-functions/execvp.texi (execvp): Likewise.
8439         * doc/glibc-functions/canonicalize_file_name.texi
8440         (canonicalize_file_name): Cygwin 1.7 now provides this.
8441         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8442         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8443         on AT_SYMLINK_NOFOLLOW.
8444
8445 2009-09-24  Eric Blake  <ebb9@byu.net>
8446
8447         test-linkat: make test more robust
8448         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8449
8450         getopt: fix inclusion guards for cygwin
8451         * modules/getopt-posix (Depends-on): Add include-next.
8452         (Makefile.am): Substitute more items in replacement header.
8453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8454         <getopt.h>.
8455         * lib/getopt.in.h (includes): Use split inclusion guard, and
8456         prefer <getopt.h> over include <unistd.h> when one is present.
8457         (option): Also override name of 'struct option'.
8458
8459         same-inode: revert prior change; it is not yet ready
8460         * NEWS: Undo mention of this change.
8461         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8462         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8463         * lib/cycle-check.c (cycle_check): Likewise.
8464         * lib/same.c (same_name): Likewise.
8465         * lib/at-func2.c (at_func2): Likewise.
8466
8467 2009-09-23  Eric Blake  <ebb9@byu.net>
8468
8469         linkat: new module
8470         * modules/linkat: New file.
8471         * lib/at-func2.c (at_func2): Likewise.
8472         * lib/linkat.c (linkat): Likewise.
8473         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8474         * lib/openat-priv.h (at_func2): Add declaration.
8475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8476         * modules/unistd (Makefile.am): Substitute them.
8477         * lib/unistd.in.h (linkat): Declare it.
8478         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8479         * doc/posix-functions/linkat.texi (linkat): Likewise.
8480         * doc/posix-functions/link.texi (link): Tweak wording.
8481         * tests/test-link.c (main): Move guts...
8482         * tests/test-link.h (test_link): ...into new file.
8483         * modules/linkat-tests: New test.
8484         * tests/test-linkat.c: Likewise.
8485         * modules/link-tests (Files): Ship new file.
8486         (Depends-on): Add stdbool.
8487
8488         dirname: add library-safe mdir_name
8489         * lib/dirname.h (mdir_name): New prototype.
8490         * lib/dirname.c (dir_name): Move guts...
8491         (mdir_name): ...to new function that avoids xalloc_die.
8492
8493         fchdir: another mingw fix
8494         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8495         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8496         on mingw (where it has not yet been ported), and make it optional
8497         elsewhere.
8498         (_gl_register_fd): Use it.
8499
8500         same-inode: make SAME_INODE tri-state, to port to mingw
8501         * NEWS: Mention this change.
8502         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8503         st_ino always being 0.
8504         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8505         * lib/cycle-check.c (cycle_check): Likewise.
8506         * lib/same.c (same_name): Likewise.
8507
8508         lstat: avoid mingw compilation error
8509         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8510         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8511         lstat ourselves.
8512         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8513         was adequate.
8514         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8515         the checks for lstat.
8516         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8517
8518         link: fix test failure on Solaris 9
8519         * lib/link.c (rpl_link): Don't assume link will catch bogus
8520         trailing slash on source.
8521
8522         test-symlinkat: enhance test
8523         * tests/test-readlink.c (main): Move guts...
8524         * tests/test-readlink.h (test_readlink): ...into new file.
8525         * tests/test-symlink.c (main): Move guts...
8526         * tests/test-symlink.h (test_symlink): ...into new file.
8527         * tests/test-symlinkat.c (main): Use new files for further
8528         coverage.
8529         (do_symlink, do_readlink): New helper functions.
8530         * modules/symlink-tests (Files): Ship new file.
8531         (Depends-on): Add stdbool.
8532         * modules/readlink-tests (Files): Ship new file.
8533         (Depends-on): Add stdbool.
8534         * modules/symlinkat-tests (Files): Use new files.
8535
8536 2009-09-23  Eric Blake  <ebb9@byu.net>
8537
8538         readlink: document portability issue with symlink length
8539         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8540         systems have bogus st_size on symlinks, and mention the
8541         areadlink-with-size module.
8542         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8543         * doc/posix-functions/readlink.texi (readlink): Mention the
8544         areadlink module, and ERANGE failure.
8545         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8546         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8547
8548         readlink: fix Solaris 9 bug with trailing slash
8549         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8550         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8551         * doc/posix-functions/readlink.texi (readlink): Document this.
8552         * modules/readlink-tests: New test.
8553         * tests/test-readlink.c: Likewise.
8554
8555         readlink: fix cygwin 1.5.x bug with return type
8556         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8557         * lib/unistd.in.h (readlink): Use ssize_t.
8558         * lib/readlink.c (readlink): Likewise.
8559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8560         * modules/unistd (Makefile.am): Substitute it.
8561         * lib/unistd.in.h (readlink): Declare replacement.
8562         * doc/posix-functions/readlink.texi (readlink): Document this.
8563
8564         symlink: use throughout gnulib
8565         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8566         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8567         symlink is not used.
8568         * modules/symlinkat (Depends-on): Add symlink.
8569         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8570         * modules/canonicalize-tests (Depends-on): Likewise.
8571         * modules/lstat-tests (Depends-on): Likewise.
8572         * modules/openat-tests (Depends-on): Likewise.
8573         * modules/remove-tests (Depends-on): Likewise.
8574         * modules/rmdir-tests (Depends-on): Likewise.
8575         * modules/unlink-tests (Depends-on): Likewise.
8576         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8577         * tests/test-canonicalize.c (symlink): Likewise.
8578         * tests/test-fstatat.c (symlink): Likewise.
8579         * tests/test-lstat.c (symlink): Likewise.
8580         * tests/test-remove.c (symlink): Likewise.
8581         * tests/test-rmdir.c (symlink): Likewise.
8582         * tests/test-unlink.c (symlink): Likewise.
8583         * tests/test-unlinkat.c (symlink): Likewise.
8584
8585         symlink: new module, for Solaris 9 bug
8586         * modules/symlink: New file.
8587         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8588         * lib/symlink.c: Likewise.
8589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8590         * modules/unistd (Makefile.am): Substitute them.
8591         * lib/unistd.in.h (symlink): Declare replacement.
8592         * MODULES.html.sh (File system functions): Mention it.
8593         * doc/posix-functions/symlink.texi (symlink): Likewise.
8594         * modules/symlink-tests: New test.
8595         * tests/test-symlink.c: Likewise.
8596
8597 2009-09-23  Bruno Haible  <bruno@clisp.org>
8598
8599         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8600         when needed.
8601         Test case: gnulib-tool --import --with-tests atexit inttypes.
8602         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8603
8604 2009-09-23  Bruno Haible  <bruno@clisp.org>
8605
8606         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8607         subcommand, not in a subshell.
8608
8609 2009-09-22  Eric Blake  <ebb9@byu.net>
8610
8611         unistd: sort replacement declarations
8612         * lib/unistd.in.h: Sort declarations.
8613
8614         open, openat: minor optimization
8615         * lib/open.c (open): If open succeeded, len is non-zero.
8616         * lib/openat.c (rpl_openat): Likewise.
8617
8618         link-follow: ensure correct result
8619         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8620         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8621         distinguish between possible failures.
8622
8623 2009-09-21  Eric Blake  <ebb9@byu.net>
8624
8625         fts: avoid compiler warning
8626         * lib/fts.c (dirent_inode_sort_may_be_useful)
8627         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8628
8629 2009-09-19  Bruno Haible  <bruno@clisp.org>
8630
8631         * lib/progreloc.c (canonicalize_file_name): New declaration.
8632
8633 2009-09-19  Eric Blake  <ebb9@byu.net>
8634
8635         link: fix quoting
8636         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8637
8638         openat: fix openat bugs on Solaris 9
8639         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8640         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8641         * modules/openat (Depends-on): Add open.
8642         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8643         * modules/fcntl-h (Makefile.am): Substitute it.
8644         * lib/fcntl.in.h (openat): Declare replacement.
8645         * doc/posix-functions/openat.texi (openat): Document this.
8646
8647         openat: move fstatat and unlinkat into correct files
8648         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8649         compiled.
8650         * lib/openat.c (fstatat, unlinkat): Move...
8651         * lib/fstatat.c (fstatat): ...into correct files.
8652         * lib/unlinkat.c (unlinkat): Likewise.
8653
8654         openat: fix unlinkat bugs on Solaris 9
8655         * lib/unlinkat.c (unlinkat): New file.
8656         * modules/openat (Depends-on): Add unlink.
8657         (Files): Distribute it.
8658         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8659         trailing slash behavior is broken.
8660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8661         * modules/unistd (Makefile.am): Substitute it.
8662         * lib/unistd.in.h (unlinkat): Declare replacement.
8663         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8664
8665         openat: fix fstatat bugs on Solaris 9
8666         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8667         stat.
8668         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8669
8670         test-unlinkat: enhance test, to expose Solaris 9 bug
8671         * tests/test-unlink.c (main): Factor guts...
8672         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8673         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8674         * tests/test-rmdir.c (main): Adjust caller.
8675         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8676         (unlinker): New helper function.
8677         (rmdirat): Enhance check.
8678         * modules/rmdir-tests (Depends-on): Add stdbool.
8679         * modules/unlink-tests (Depends-on): Likewise.
8680         (Files): Add test-unlink.h.
8681         * modules/openat-tests (Files): Likewise.
8682         (Depends-on): Add unlinkdir.
8683
8684         test-fstatat: new test, to expose Solaris 9 bugs
8685         * tests/test-stat.c (main): Factor guts...
8686         * tests/test-stat.h (test_stat_func): ...into new file.
8687         * tests/test-lstat.c (main): Factor guts...
8688         * tests/test-lstat.h (test_lstat_func): ...into new file.
8689         * tests/test-fstatat.c: New file.
8690         * modules/stat-tests (Files): Add test-stat.h.
8691         * modules/lstat-tests (Files): Add test-lstat.h.
8692         (Depends-on): Add stdbool.
8693         * modules/openat-tests (Depends-on): Add pathmax.
8694         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8695         (Makefile.am): Run new test.
8696
8697         remove: new module, for mingw and Solaris 9 bugs
8698         * modules/remove: New file.
8699         * lib/remove.c: Likewise.
8700         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8702         * modules/stdio (Makefile.am): Use them.
8703         * lib/stdio.in.h (remove): Declare replacement.
8704         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8705         * doc/posix-functions/remove.texi (remove): Likewise.
8706         * modules/remove-tests: New test.
8707         * tests/test-remove.c: Likewise.
8708
8709         unlink: new module, for Solaris 9 bug
8710         * modules/unlink: New file.
8711         * lib/unlink.c: Likewise.
8712         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8714         * modules/unistd (Makefile.am): Use them.
8715         * lib/unistd.in.h (stat): Declare replacement.
8716         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8717         * doc/posix-functions/unlink.texi (unlink): Likewise.
8718         * modules/unlink-tests: New test.
8719         * tests/test-unlink.c: Likewise.
8720
8721         lstat: fix Solaris 9 bug
8722         * lib/lstat.c (lstat): Also check for trailing slash on
8723         non-symlink, non-directories.  Use stat module to simplify logic.
8724         * doc/posix-functions/lstat.texi (lstat): Document it.
8725         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8726         (configure.ac): Check for symlink.
8727         * tests/test-lstat.c (main): Add more tests.
8728
8729         stat: add as dependency to other modules
8730         * modules/chown (Depends-on): Add stat.
8731         * modules/euidaccess (Depends-on): Likewise.
8732         * modules/fchdir (Depends-on): Likewise.
8733         * modules/isdir (Depends-on): Likewise.
8734         * modules/link (Depends-on): Likewise.
8735         * modules/lstat (Depends-on): Likewise.
8736         * modules/mkdir-p (Depends-on): Likewise.
8737         * modules/modechange (Depends-on): Likewise.
8738         * modules/open (Depends-on): Likewise.
8739         * modules/readlink (Depends-on): Likewise.
8740         * modules/same (Depends-on): Likewise.
8741
8742         stat: fix Solaris 9 bug
8743         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8744         slash.
8745         * lib/stat.c (rpl_stat): Work around it.
8746         * doc/posix-functions/stat.texi (stat): Update documentation.
8747
8748         stat: new module, for mingw bug
8749         * modules/stat: New file.
8750         * lib/stat.c: Likewise.
8751         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8752         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8753         * modules/sys_stat (Makefile.am): Use them.
8754         * lib/sys_stat.in.h (stat): Declare replacement.
8755         * lib/openat.c (fstatat): Deal with lstat and stat being function
8756         macros.
8757         * modules/openat (Depends-on): Add inline.
8758         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8759         * doc/posix-functions/stat.texi (stat): Likewise.
8760         * modules/stat-tests: New test.
8761         * tests/test-stat.c: Likewise.
8762
8763 2009-09-19  Jim Meyering  <meyering@redhat.com>
8764
8765         syntax-check: detect unnecessary inclusion of canonicalize.h
8766         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8767
8768 2009-09-19  Eric Blake  <ebb9@byu.net>
8769
8770         canonicalize-lgpl: adjust clients to use correct header
8771         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8772         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8773         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8774         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8775         * lib/progreloc.c (includes): Likewise.
8776
8777 2009-09-19  Jim Meyering  <meyering@redhat.com>
8778
8779         test-posixtm.c: correct a comment
8780         * tests/test-posixtm.c: Correct first-line comment.
8781         Spotted by Eric Blake.
8782
8783 2009-09-16  Jim Meyering  <meyering@redhat.com>
8784
8785         posixtm-tests: make T const-correct; add a test case
8786         * tests/test-posixtm.c (T): Declare const.
8787         Add a test for -(2^31+1).
8788         Remove useless can-succeed-only-in-2002 test.
8789
8790         posixtm-tests: adjust the sole failing test
8791         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8792         expected output matches what mktime now produces.  Cross-checked via
8793         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8794
8795         posixtm: move #ifdef'd tests into a new module
8796         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8797         * tests/test-posixtm.c: ... this new file.
8798         * modules/posixtm-tests: New module.
8799
8800 2009-09-19  Eric Blake  <ebb9@byu.net>
8801
8802         openat: simplify use of at-func.c
8803         * lib/at-func.c (includes): Include prerequisites here, to
8804         simplify requirements on client files.
8805         * lib/openat-priv.h: Add double-inclusion guard.
8806         * lib/faccessat.c (includes): Simplify.
8807         * lib/fchmodat.c (includes): Likewise.
8808         * lib/fchownat.c (includes): Likewise.
8809         * lib/mkdirat.c (includes): Likewise.
8810         * lib/mkfifoat.c (includes): Likewise.
8811         * lib/symlinkat.c (includes): Likewise.
8812
8813         openat: allow return of fd 0
8814         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8815         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8816         unistd-safer.
8817         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8818         <fcntl.h>; this module does not leak fds.
8819         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8820         must be allowed to return 0, leaving openat_safer to add the
8821         safety.
8822         (openat_permissive): Avoid writing to just-opened fd 2 if
8823         restoring the current directory fails.
8824         * lib/openat-die.c (openat_restore_fail): Add comment.
8825         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8826         (save_cwd): Guarantee safe fd, but without use of open_safer.
8827         * tests/test-openat.c: New test.
8828         * modules/openat-tests (Files, Makefile.am): Distribute and build
8829         new file.
8830
8831         relocatable-prog-wrapper: fix build
8832         * modules/relocatable-prog-wrapper (Files): Update name of
8833         canonicalize m4 file, broken on 2009-09-17.
8834         Reported by emad hajjar <aleppos@hotmail.com>.
8835
8836 2009-09-19  Bruno Haible  <bruno@clisp.org>
8837
8838         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8839         * lib/safe-alloc.c: Likewise.
8840         Reported by Ian Beckwith <ianb@erislabs.net>.
8841
8842 2009-09-18  Bruno Haible  <bruno@clisp.org>
8843
8844         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8845         Reported by <erobles@sensacd.com.mx>.
8846
8847 2009-09-17  Eric Blake  <ebb9@byu.net>
8848
8849         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8850         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8851         slashes when checking if last component is missing.
8852         * tests/test-canonicalize.c (main): Test this.
8853
8854         canonicalize, canonicalize-lgpl: honor // if distinct from /
8855         * modules/canonicalize (Files): Add double-slash-root.m4.
8856         * modules/canonicalize-lgpl (Files): Likewise.
8857         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8858         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8859         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8860         fallback definition.
8861         (canonicalize_filename_mode): Use it to protect //.
8862         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8863         (__realpath): Likewise.
8864         * tests/test-canonicalize.c (main): Test this.
8865         * tests/test-canonicalize-lgpl.c (main): Likewise.
8866         * modules/canonicalize-tests (Depends-on): Add same-inode.
8867         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8868
8869         canonicalize-lgpl: fix glibc bug with trailing slash
8870         * m4/canonicalize-lgpl.m4: Move contents...
8871         * m4/canonicalize.m4: ...here.
8872         (gl_CANONICALIZE_LGPL): Factor realpath check...
8873         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
8874         glibc 2.3.5 bug, fixed 2005-04-27.
8875         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8876         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8877         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8878         * modules/canonicalize-lgpl (Files): Manage file rename.
8879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8880         * modules/stdlib (Makefile.am): Substitute witness.
8881         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8882         is needed.
8883         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8884         replacement is required.
8885         * lib/canonicalize.c (canonicalize_file_name): Likewise.
8886         * doc/glibc-functions/canonicalize_file_name.texi
8887         (canonicalize_file_name): Document this.
8888         * doc/posix-functions/realpath.texi (realpath): Likewise.
8889
8890         canonicalize-lgpl: reject non-directory with trailing slash
8891         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8892         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
8893         catches failures in glibc 2.3.5.
8894         * tests/test-canonicalize.c (main): Likewise.
8895
8896         canonicalize-lgpl: use native realpath if it works
8897         * lib/canonicalize-lgpl.c (realpath): Guard with
8898         FUNC_REALPATH_WORKS.
8899         * lib/stdlib.in.h (realpath): Make declaration optional based on
8900         HAVE_REALPATH.
8901         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8902         native realpath works.
8903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8904         * modules/stdlib (Makefile.am): Substitute witness.
8905
8906         canonicalize, canonicalize-lgpl: use <stdlib.h>
8907         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8908         (Include): Mention <stdlib.h>.
8909         (configure.ac): Mention functions we provide.
8910         * modules/canonicalize (configure.ac): Likewise.
8911         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8912         realpath if canonicalize_file_name is missing.
8913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8914         * modules/stdlib (Makefile.am): Substitute witnesses.
8915         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8916         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8917         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8918         * NEWS: Document this.
8919         * doc/glibc-functions/canonicalize_file_name.texi
8920         (canonicalize_file_name): Likewise.
8921         * doc/posix-functions/realpath.texi (realpath): Likewise.
8922         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8923
8924         test-canonicalize: consolidate into single C program
8925         * tests/test-canonicalize.sh: Delete; move setup into...
8926         * tests/test-canonicalize.c (main): ...the program, making it
8927         easier to run in debugger.  Add some tests.
8928         * modules/canonicalize-tests (Files): Remove unused file.
8929         (Depends-on): Add progname.
8930         (configure.ac, Makefile.am): Simplify.
8931
8932         test-canonicalize-lgpl: consolidate into single C program
8933         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8934         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8935         easier to run in debugger.  Add some tests.
8936         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8937         (configure.ac, Makefile.am): Simplify.
8938
8939         canonicalize: avoid resolvepath
8940         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8941         unnecessary checks.
8942         * lib/canonicalize.c (includes): Simplify.
8943         (canonicalize_file_name): Drop resolvepath implementation.
8944         * modules/canonicalize (Depends-on): Drop filenamecat.
8945
8946         canonicalize: don't lose errno
8947         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8948         over calls to free.
8949
8950         canonicalize: simplify errno handling
8951         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8952         assignment.
8953
8954         canonicalize, canonicalize-lgpl: update module dependencies
8955         * modules/canonicalize (Depends-on): Add extensions, lstat,
8956         pathmax, stdlib.
8957         (Files): Drop pathmax.h.
8958         (configure.ac): Adjust macro name.
8959         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8960         lstat, stdlib, sys_stat.
8961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8962         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8963         extensions.
8964         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8965         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8966         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8967         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8968         declaration, if available.
8969         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8970         we can rely on the readlink module.
8971         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8972         (includes): Use <unistd.h> unconditionally.
8973
8974 2009-09-17  Eric Blake  <ebb9@byu.net>
8975
8976         maint: make Include sections of modules consistent
8977         * modules/alloca: Use only header name; no need to list #include.
8978         * modules/alloca-opt: Likewise.
8979         * modules/arpa_inet: Likewise.
8980         * modules/canon-host: Likewise.
8981         * modules/configmake: Likewise.
8982         * modules/dirent: Likewise.
8983         * modules/eealloc: Likewise.
8984         * modules/environ: Likewise.
8985         * modules/fchdir: Likewise.
8986         * modules/fcntl: Likewise.
8987         * modules/fcntl-h: Likewise.
8988         * modules/gethrxtime: Likewise.
8989         * modules/gettime: Likewise.
8990         * modules/ignore-value: Likewise.
8991         * modules/inet_ntop: Likewise.
8992         * modules/inet_pton: Likewise.
8993         * modules/inttypes: Likewise.
8994         * modules/isnand-nolibm: Likewise.
8995         * modules/isnanf-nolibm: Likewise.
8996         * modules/mbchar: Likewise.
8997         * modules/mbfile: Likewise.
8998         * modules/mbiter: Likewise.
8999         * modules/mbuiter: Likewise.
9000         * modules/netdb: Likewise.
9001         * modules/netinet_in: Likewise.
9002         * modules/nproc: Likewise.
9003         * modules/pagealign_alloc: Likewise.
9004         * modules/poll: Likewise.
9005         * modules/printf-frexp: Likewise.
9006         * modules/pthread: Likewise.
9007         * modules/putenv: Likewise.
9008         * modules/random_r: Likewise.
9009         * modules/relocatable-prog: Likewise.
9010         * modules/search: Likewise.
9011         * modules/select: Likewise.
9012         * modules/selinux-h: Likewise.
9013         * modules/settime: Likewise.
9014         * modules/signal: Likewise.
9015         * modules/size_max: Likewise.
9016         * modules/socklen: Likewise.
9017         * modules/ssize_t: Likewise.
9018         * modules/stdarg: Likewise.
9019         * modules/stdbool: Likewise.
9020         * modules/stddef: Likewise.
9021         * modules/stdint: Likewise.
9022         * modules/stdio: Likewise.
9023         * modules/stdlib: Likewise.
9024         * modules/string: Likewise.
9025         * modules/strings: Likewise.
9026         * modules/sys_file: Likewise.
9027         * modules/sys_ioctl: Likewise.
9028         * modules/sys_select: Likewise.
9029         * modules/sys_socket: Likewise.
9030         * modules/sys_stat: Likewise.
9031         * modules/sys_time: Likewise.
9032         * modules/sys_times: Likewise.
9033         * modules/sys_utsname: Likewise.
9034         * modules/sys_wait: Likewise.
9035         * modules/sysexits: Likewise.
9036         * modules/time: Likewise.
9037         * modules/times: Likewise.
9038         * modules/tmpfile: Likewise.
9039         * modules/trim: Likewise.
9040         * modules/unistd: Likewise.
9041         * modules/wchar: Likewise.
9042         * modules/wctype: Likewise.
9043
9044 2009-09-17  Bruno Haible  <bruno@clisp.org>
9045
9046         Make getdate.y compile on QNX and NetBSD 5 / i386.
9047         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9048         TIME_T_FITS_IN_LONG_INT.
9049         * lib/getdate.y (long_time_t): New type.
9050         (relative_time): Change type of 'seconds' field to long_time_t.
9051         (get_date): Update types of local variables. Check against overflow
9052         during conversion from long_time_t to time_t.
9053         Reported by Matt Kraai <kraai@ftbfs.org>
9054         and Hasso Tepper <hasso@netbsd.org>.
9055
9056 2009-09-17  Bruno Haible  <bruno@clisp.org>
9057
9058         * modules/COPYING: Update copyright years.
9059         * modules/README: Likeiwse.
9060         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9061         Reported by Ian Beckwith <ianb@erislabs.net>.
9062
9063 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9064
9065         * users.txt: Update references for gnuit package.
9066
9067 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9068
9069         * m4/getdelim.m4: Fix typo in copyright line.
9070
9071 2009-09-17  Bruno Haible  <bruno@clisp.org>
9072
9073         * lib/atoll.c: Use the standard header with GPL copyright.
9074         * lib/argz.in.h: Likewise.
9075         * lib/glob.c: Likewise.
9076         * lib/glob-libc.h: Likewise.
9077         * lib/random_r.c: Likewise.
9078         * lib/siglist.h: Likewise.
9079         * lib/strsignal.c: Likewise.
9080         Reported by Ian Beckwith <ianb@erislabs.net>.
9081
9082 2009-09-17  Eric Blake  <ebb9@byu.net>
9083
9084         rmdir: ensure correct dependency order
9085         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9086
9087 2009-09-17  Bruno Haible  <bruno@clisp.org>
9088
9089         Disable assertion that fails on NetBSD 5 / i386.
9090         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9091         Reported by Sam Steingold <sds@gnu.org>
9092         and Hasso Tepper <hasso@netbsd.org>.
9093
9094 2009-09-16  Eric Blake  <ebb9@byu.net>
9095
9096         unlinkdir: port to mingw
9097         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9098         on which no one can unlink a directory.
9099
9100         stdlib: sort witness names
9101         * modules/stdlib (Makefile.am): Sort replacements.
9102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9103         * lib/stdlib.in.h: Likewise.
9104
9105         parse-duration-tests: avoid link failure
9106         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9107         LIBINTL.
9108         Reported by Tom G. Christensen.
9109
9110         openat-tests: ensure unlinkat behaves like rmdir
9111         * tests/test-rmdir.c (main): Factor guts...
9112         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9113         * modules/rmdir-tests (Files): Ship new file.
9114         * modules/openat-tests: New test.
9115         * tests/test-unlinkat.c: Likewise.
9116
9117         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9118         * modules/rmdir-errno (Status, Notice): Now obsolete.
9119
9120         rmdir: work around cygwin 1.5.x and mingw bugs
9121         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9122         * lib/rmdir.c (rmdir): Work around it.
9123         * modules/rmdir (Status, Notice): No longer obsolete.
9124         (Files): Add dos.m4.
9125         (Depends-on): Add unistd.
9126         (configure.ac): Set witnesses.
9127         (License): Relax to LGPLv2+.
9128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9129         * modules/unistd (Makefile.am): Substitute witnesses.
9130         * lib/unistd.in.h (rmdir): Declare replacement.
9131         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9132         * modules/rmdir-tests: New tests.
9133         * tests/test-rmdir.c: Likewise.
9134
9135 2009-09-15  Eric Blake  <ebb9@byu.net>
9136
9137         fchdir: improve use of replacement functions
9138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9140         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9141         REPLACE_CLOSEDIR.
9142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9143         * modules/sys_stat (Makefile.am): Substitute correct witness.
9144         * modules/dirent (Makefile.am): Likewise.
9145         * modules/unistd (Makefile.am): Likewise.
9146         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9147         * lib/unistd.in.h (dup): Likewise.
9148         * lib/sys_stat.in.h (fstat): Likewise.
9149
9150         maint: ignore gnulib-tool temp files
9151         * .gitignore: Ignore files created during gnulib-tool --test.
9152
9153 2009-09-13  Jim Meyering  <meyering@redhat.com>
9154
9155         posixtm: don't reject a time that specify "60" as the number of seconds
9156         * lib/posixtm.c (posixtime): The code to reject invalid dates
9157         would also reject a time specified with the .60 suffix.
9158         But POSIX allows that, in order to accommodate leap seconds.
9159         So don't reject it.
9160         (main): Adjust tests accordingly.
9161         * modules/posixtm (Depends-on): Add stpcpy.
9162
9163 2009-09-11  Jim Meyering  <meyering@redhat.com>
9164
9165         announce-gen: include [$release_type] in emitted Subject:
9166         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9167         e.g., [stable] in the emitted Subject: line.
9168
9169 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9170
9171         Remove obsolete macros from several modules.
9172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9173         obsolete Autoconf macros with their modern counterparts.
9174         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9175         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9177         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9178         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9179         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9182         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9183         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9184         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9185         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9186         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9187         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9188         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9189         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9190         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9191         * m4/time_r.m4 (gl_TIME_R): Likewise.
9192         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9193         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9194         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9195
9196         Fix copyright header in build-aux scripts.
9197         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9198         recommendation.
9199         * build-aux/ncftpput-ftp: Likewise.
9200         * build-aux/update-copyright: Likewise.
9201
9202 2009-09-09  Eric Blake  <ebb9@byu.net>
9203
9204         test-link: allow Linux choice of errno
9205         * tests/test-link.c (main): Relax test for alternate error.
9206
9207         strndup: fix improper m4 caching
9208         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9209         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9210         (gl_PREREQ_STRNDUP): Delete.
9211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9212         * modules/string (Makefile.am): Substitute it.
9213         * lib/string.in.h (strndup): Modernize prototype.
9214
9215         getcwd: port to mingw
9216         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9217         different from the POSIX assumptions made throughout the getcwd
9218         module; fortunately, the mingw getcwd does not need replacement.
9219         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9220         * modules/getcwd-tests: New test.
9221         * tests/test-getcwd.c: Likewise.
9222
9223         link: fix platform bugs
9224         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9225         * lib/link.c (link): Work around them.  Fix related mingw bug.
9226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9227         * modules/unistd (Makefile.am): Substitute it.
9228         * lib/unistd.in.h (link): Declare replacement.
9229         * doc/posix-functions/link.texi (link): Document this.
9230         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9231
9232         test-link: consolidate into single C program, test more cases
9233         * tests/test-link.sh: Delete.
9234         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9235         at least Cygwin and Solaris.
9236         * modules/link-tests (Files): Remove unused file.
9237         (Depends-on): Add errno, sys_stat.
9238         (Makefile.am): Simplify.
9239
9240 2009-09-08  Bruno Haible  <bruno@clisp.org>
9241
9242         Work around towlower, towupper bug on mingw.
9243         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9244         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9245         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9246         * doc/posix-functions/towupper.texi: Likewise.
9247         Reported by Eric Blake.
9248
9249 2009-09-08  Jim Meyering  <meyering@redhat.com>
9250
9251         build: don't try to run autoheader if we don't use it
9252         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9253         is not used in configure.ac.
9254
9255 2009-09-08  Eric Blake  <ebb9@byu.net>
9256
9257         euidaccess: fix compilation error
9258         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9259
9260         rawmemchr: relax license
9261         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9262         okay.
9263         Reported by Jim Meyering.
9264
9265         mkfifoat: new module
9266         * modules/mkfifoat: New file.
9267         * lib/mkfifoat.c: Likewise.
9268         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9269         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9270         * modules/sys_stat (Makefile.am): Use them.
9271         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9272         * MODULES.html.sh (File system functions): Mention module.
9273         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9274         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9275         * modules/mkfifoat-tests: New test.
9276         * tests/test-mkfifoat.c: Likewise.
9277
9278         strchrnul: relax license
9279         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9280         okay.
9281         Reported by Jim Meyering.
9282
9283 2009-09-08  Eric Blake  <ebb9@byu.net>
9284
9285         fstatat: fix compilation on Solaris
9286         * lib/fstatat.c (includes): Add fcntl.h.
9287         Reported by Pádraig Brady.
9288
9289 2009-09-07  Eric Blake  <ebb9@byu.net>
9290
9291         rename: modernize replacement
9292         * modules/rename (Depends-on): Add stdio.
9293         (configure.ac): Declare witness.
9294         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9295         stdio take care of replacement.
9296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9297         * modules/stdio (Makefile.am): Substitute them.
9298         * lib/stdio.in.h (rename): Declare replacement.
9299         * lib/rename.c (includes): Allow cross-compilation to non-windows
9300         machines.
9301         * doc/posix-functions/rename.texi (rename): Improve
9302         documentation.
9303
9304         stdio: sort witness names
9305         * modules/stdio (Makefile.am): Sort replacements.
9306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9307         * lib/stdio.in.h: Likewise.
9308
9309         getcwd: minor cleanups
9310         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9311         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9312
9313         openat: provide more convenience names
9314         * modules/faccessat (configure.ac): Add C witness.
9315         * lib/unistd.in.h (readlinkat): Fix typo.
9316         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9317         convenience wrappers.
9318         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9319         wrappers in syntax checks.
9320
9321 2009-09-06  Eric Blake  <ebb9@byu.net>
9322
9323         doc: fix comments in recent patches
9324         * lib/faccessat.c: Mention correct function.
9325         * lib/fchmodat.c: Likewise.
9326         * lib/fchownat.c: Likewise.
9327         * lib/symlinkat.c: Likewise.
9328         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9329         constants.
9330
9331         faccessat, symlinkat: continue cleanup of previous patch
9332         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9333         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9334         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9336         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9337         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9338         set.
9339
9340 2009-09-06  Bruno Haible  <bruno@clisp.org>
9341
9342         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9343         (fstatat): Declare if GNULIB_FSTATAT is set.
9344         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9345         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9346         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9347         * modules/fcntl-h (Files): Remove m4/openat.m4.
9348         * modules/sys_stat (Files): Remove m4/openat.m4.
9349         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9350         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9351         * modules/unistd (Files): Remove m4/openat.m4.
9352         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9353         GNULIB_OPENAT.
9354         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9355         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9357         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9358         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9359         gl_OPENAT_DEFAULTS.
9360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9361         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9362         Don't require gl_OPENAT_DEFAULTS.
9363         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9364         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9365         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9366         (gl_OPENAT_DEFAULTS): Remove macro.
9367
9368 2009-09-06  Bruno Haible  <bruno@clisp.org>
9369
9370         * modules/openat (configure.ac): Remove unneeded witness.
9371
9372 2009-09-06  Bruno Haible  <bruno@clisp.org>
9373
9374         Set errno to ENOSYS when a function is entirely unsupported.
9375         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9376         EOPNOTSUPP.
9377         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9378         * modules/chown (Depends-on): Remove errno.
9379
9380 2009-09-06  Bruno Haible  <bruno@clisp.org>
9381
9382         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9383
9384 2009-09-06  Bruno Haible  <bruno@clisp.org>
9385
9386         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9387
9388 2009-09-06  Ben Pfaff  <blp@gnu.org>
9389             Bruno Haible  <bruno@clisp.org>
9390
9391         Work around a glibc bug in strtok_r.
9392         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9393         Undefine if UNDEFINE_STRTOK_R is set.
9394         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9396         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9397         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9398         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9399         UNDEFINE_STRTOK_R.
9400         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9401
9402 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9403
9404         exclude: minor fix
9405         * lib/exclude.c: Include wctype.h
9406
9407 2009-09-06  Akim Demaille  <demaille@gostai.com>
9408
9409         bootstrap: improve error message
9410         * build-aux/bootstrap (find_tool): Upon failure, report the list
9411         of candidates.
9412         Honor the initial value of the envvar.
9413
9414 2009-09-05  Eric Blake  <ebb9@byu.net>
9415
9416         symlinkat: new module
9417         * modules/symlinkat: New file.
9418         * lib/symlinkat.c: Likewise.
9419         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9421         * modules/unistd (Makefile.am): Use them.
9422         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9423         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9424         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9425         * MODULES.html.sh (File system functions): Mention module.
9426         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9427         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9428         * modules/symlinkat-tests: New test.
9429         * tests/test-symlinkat.c: Likewise.
9430
9431         test-openat-safer: add more checks
9432         * tests/test-openat-safer.c (main): Check more code paths.
9433
9434 2009-09-05  Jim Meyering  <meyering@redhat.com>
9435
9436         syntax-check: detect unnecessary inclusion of openat.h
9437         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9438
9439 2009-09-05  Bruno Haible  <bruno@clisp.org>
9440
9441         Support towlower, towupper.
9442         * doc/posix-functions/towlower.texi: Mention module wctype.
9443         * doc/posix-functions/towupper.texi: Likewise.
9444         * lib/wctype.in.h (towlower, towupper): New functions.
9445         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9446         (ASSERT): New macro.
9447         (e): New variable.
9448         (main): Test also towlower, towupper. Test WEOF argument.
9449         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9450
9451 2009-09-05  Bruno Haible  <bruno@clisp.org>
9452
9453         Fix conversion behaviour when the input is invalid.
9454         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9455         mark occurring in first pass of indirect conversion.
9456         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9457         input.
9458         Found by clang's static analyzer.
9459
9460 2009-09-05  Bruno Haible  <bruno@clisp.org>
9461
9462         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9463         where direct conversion is possible.
9464
9465 2009-09-04  Eric Blake  <ebb9@byu.net>
9466
9467         openat: fail with ENOENT on empty name
9468         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9469         buffer.
9470
9471         link-follow: fix logic bug in prior patch
9472         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9473         reversed sense of yes and no in prior patch.  Avoid confusing
9474         compilation failure with desired semantics.
9475
9476         link-follow: accomodate mingw and cross-compilation
9477         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9478         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9479         cross-compilation results to -1, to make linkat easier to
9480         implement when cross-compiling.  Trivially support mingw.
9481         * modules/link-follow (configure.ac): Call new name.
9482         * NEWS: Mention this.
9483
9484 2009-09-03  Eric Blake  <ebb9@byu.net>
9485
9486         faccessat: compile replacement
9487         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9488         needed.
9489
9490         fts: fix compilation error
9491         * lib/fts.c (includes): Re-add "openat.h", for
9492         openat_needs_fchdir.
9493
9494         faccessat: new module
9495         * modules/faccessat: New file.
9496         * lib/faccessat.c: Likewise.
9497         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9498         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9499         * modules/unistd (Makefile.am): Use it.
9500         * lib/unistd.in.h (faccessat): Declare it.
9501         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9502         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9503         * MODULES.html.sh (File system functions): Mention it.
9504         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9505         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9506
9507         euidaccess: prefer POSIX over non-standard implementation
9508         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9509         * lib/euidaccess.c (euidaccess): Use it if available.
9510
9511         openat: make template easier to use
9512         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9513         AT_FUNC_F2 to be undefined.
9514         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9515         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9516         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9517         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9518         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9519         Likewise.
9520         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9521         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9522         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9523         Likewise.
9524
9525         openat: declare in POSIX headers
9526         * NEWS: Mention this.
9527         * modules/openat (configure.ac): Declare witnesses.
9528         (Depends-on): Add fcntl-h, sys_stat, unistd.
9529         (Include): Mention correct headers.
9530         * modules/fcntl-h (Depends-on): Add link-warning.
9531         (Files): Add openat.m4.
9532         (Makefile.am): Substitute witnesses.
9533         * modules/sys_stat (Files, Makefile.am): Likewise.
9534         * modules/unistd (Files, Makefile.am): Likewise.
9535         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9536         (gl_OPENAT_DEFAULTS): New macro.
9537         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9540         (SYS_STAT_H): Remove unused variable.
9541         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9542         * lib/fcntl--.h (includes): Remove unneeded header.
9543         * lib/openat-safer.c (includes): Likewise.
9544         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9545         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9546         appropriate headers.
9547         (__OPENAT_PREFIX): Delete.
9548         * lib/fcntl.in.h (openat): Provide declaration.
9549         (AT_FDCWD): Fix Solaris bug.
9550         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9551         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9552         * lib/fchmodat.c (includes):  Adjust to find declaration.
9553         * lib/fchownat.c (includes): Likewise.
9554         * lib/mkdirat.c (includes): Likewise.
9555         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9556         still visible.
9557
9558 2009-09-02  Eric Blake  <ebb9@byu.net>
9559
9560         errno: use consistently
9561         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9562         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9563         * lib/canonicalize.c (ELOOP): Likewise.
9564         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9565         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9566         * lib/lchown.c (EOPNOTSUPP): Likewise.
9567         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9568         * lib/savewd.c (ESTALE): Likewise.
9569         * lib/settime.c (ENOSYS): Likewise.
9570         * lib/utimens.c (ENOSYS): Likewise.
9571         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9572         * lib/chdir-safer.c (ELOOP): Likewise.
9573         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9574         * modules/c-stack (Depends-on): Add errno.
9575         * modules/canonicalize (Depends-on): Likewise.
9576         * modules/chdir-safer (Depends-on): Likewise.
9577         * modules/fdopendir (Depends-on): Likewise.
9578         * modules/inet_ntop (Depends-on): Likewise.
9579         * modules/inet_pton (Depends-on): Likewise.
9580         * modules/lchown (Depends-on): Likewise.
9581         * modules/openat (Depends-on): Likewise.
9582         * modules/savewd (Depends-on): Likewise.
9583         * modules/settime (Depends-on): Likewise.
9584         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9585
9586         fts: avoid leaking fds
9587         * modules/fts (Depends-on): Add cloexec.
9588         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9589         flag.
9590
9591         fts: make directory fds more robust
9592         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9593         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9594
9595         backupfile, chdir-long, fts, savedir: make safer
9596         * lib/backupfile.c (includes): Use "dirent--.h", since
9597         numbered_backup can write to stderr during readdir.
9598         * lib/savedir.c (includes): Likewise.
9599         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9600         emulation can write to stderr on failure.
9601         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9602         * lib/getcwd.c: Document why opendir_safer is unused.
9603         * lib/glob.c: Likewise.
9604         * lib/scandir.c: Likewise.
9605         * lib/openat-proc.c: Likewise, for open_safer.
9606         * modules/backupfile (Depends-on): Add dirent-safer.
9607         * modules/savedir (Depends-on): Likewise.
9608         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9609         * modules/chdir-long (Depends-on): Add openat-safer.
9610
9611         openat-safer: new module
9612         * modules/openat-safer: New file.
9613         * lib/openat-safer.c: Likewise.
9614         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9615         * lib/fcntl-safer.h (openat_safer): Declare.
9616         * lib/fcntl--.h (openat): Override.
9617         * MODULES.html.sh (File descriptor based I/O): Mention it.
9618         * lib/openat.h: Add double-inclusion guards.
9619         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9620         "fcntl--.h", so we can implement openat.
9621         * modules/openat-safer-tests: New test.
9622         * tests/test-openat-safer.c: New file.
9623
9624         dirent-safer: new module
9625         * modules/dirent-safer: New file.
9626         * lib/dirent--.h: Likewise.
9627         * lib/dirent-safer.h: Likewise.
9628         * lib/opendir-safer.c: Likewise.
9629         * m4/dirent-safer.m4: Likewise.
9630         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9631         * modules/dirent-safer-tests: New test.
9632         * tests/test-dirent-safer.c: New file.
9633         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9634
9635         fdopendir: optimize on mingw
9636         * lib/unistd.in.h (_gl_directory_name): New prototype.
9637         * lib/fchdir.c (_gl_directory_name): Implement it.
9638         (fchdir): Use it to simplify implementation.
9639         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9640         fchdir, when available, to avoid calling [f]chdir().
9641
9642         fdopendir: split into its own module
9643         * lib/openat.c (fdopendir): Move...
9644         * lib/fdopendir.c: ...into new file.
9645         * modules/fdopendir: New module.
9646         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9647         * modules/openat (Depends-on): Add fdopendir.
9648         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9649         fdopendir here.
9650         * modules/savedir (Depends-on): Only need fdopendir, not full
9651         openat.
9652         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9653         * lib/openat.h (fdopendir): Drop prototype.
9654         * lib/dirent.in.h (fdopendir): Provide prototype.
9655         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9656         * modules/dirent (Makefile.am): Substitute them.
9657         * MODULES.html.sh (File system functions): Mention it.
9658         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9659         * modules/fdopendir-tests: New file.
9660         * tests/test-fdopendir.c: Likewise.
9661
9662         fchdir: use more consistent macro convention
9663         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9664         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9665         REPLACE_FCHDIR, rather than relying on config.h macros.
9666         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9667         inside a single make-time REPLACE_FCHDIR block, rather than using
9668         the config.h FCHDIR_REPLACEMENT.
9669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9670         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9671         Manage fstat replacement.
9672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9673         REPLACE_FCHDIR.
9674         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9675         (Makefile.am): Substitute REPLACE_FCHDIR.
9676         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9677         FCHDIR_REPLACEMENT.
9678         * lib/dup-safer.c (dup_safer): Likewise.
9679         * lib/dup2.c (rpl_dup2): Likewise.
9680         * lib/dup3.c (rpl_dup3): Likewise.
9681         * lib/open.c (rpl_open): Likewise.
9682
9683         fchdir: simplify error handling, and support dup3
9684         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9685         stdbool, malloc-posix, realloc-posix.
9686         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9687         (ensure_dirs_slot): Return false on allocation failure.
9688         (rpl_dup2): Delete.
9689         (_gl_register_dup): New function.
9690         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9691         (_gl_register_fd): Close fd on allocation failure.
9692         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9693         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9694         prototype.
9695         (rpl_dup2_fchdir): Delete prototype.
9696         * lib/open.c (open): Update caller.
9697         * lib/dup2.c (dup2): Track fchdir metadata.
9698         * lib/dup3.c (dup3): Likewise.
9699         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9701
9702 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9703
9704         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9705         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9706         don't pass arguments to AC_OUTPUT.
9707
9708 2009-09-02  Bruno Haible  <bruno@clisp.org>
9709
9710         * modules/mkdtemp (License): Relicense under LGPLv2+.
9711         Reported by Paolo Bonzini.
9712
9713 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9714
9715         Replace uses of obsolete autoconf macros in Jim's modules.
9716         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9717         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9718         can evoke a warning from autoconf when run with -Wobsolete
9719         enabled.  They were declared obsolete for good reasons (see
9720         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9721         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9722         should not continue using the deprecated macros.
9723         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9724         obsolete Autoconf macros with modern counterparts.
9725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9726         * m4/dos.m4 (gl_AC_DOS): Likewise.
9727         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9728         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9729         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9730         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9731         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9732         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9733         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9734         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9735         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9736         Likewise.
9737         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9738         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9739         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9740         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9741         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9742         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9743
9744 2009-09-01  Eric Blake  <ebb9@byu.net>
9745
9746         fchdir: fix off-by-one bug in previous patch
9747         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9748         (_gl_unregister_fd): Delete useless if.
9749
9750 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9751
9752         maint.mk: sort the list of syntax-check rules
9753         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9754         easier to get a sense of progress when the rules are run sequentially
9755         and take a long time.
9756
9757 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9758
9759         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9760         * modules/netinet_in: Likewise.
9761         * modules/sys_file: Likewise.
9762         * modules/sys_ioctl: Likewise.
9763         * modules/sys_select: Likewise.
9764         * modules/sys_socket: Likewise.
9765         * modules/sys_stat: Likewise.
9766         * modules/sys_time: Likewise.
9767         * modules/sys_times: Likewise.
9768         * modules/sys_utsname: Likewise.
9769         * modules/sys_wait: Likewise.
9770
9771 2009-09-01  Jim Meyering  <meyering@redhat.com>
9772
9773         fts: help ensure that return values are not ignored
9774         * lib/fts_.h (__GNUC_PREREQ): Define.
9775         (__attribute_warn_unused_result__): Define.
9776         (fts_children, fts_close, fts_open, fts_read): Declare with
9777         __attribute_warn_unused_result__.
9778
9779         fts: fts_close now fails also when closing a dir file descriptor fails
9780         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9781         and propagate to caller, along with errno.
9782
9783         announce-gen: correct formatting in --help output
9784         * build-aux/announce-gen (usage): Move the one-line description in
9785         --help output "up", to where it belongs, just after Usage:.
9786
9787 2009-08-31  Eric Blake  <ebb9@byu.net>
9788
9789         fchdir: port to mingw
9790         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9791         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9792         opened, then use a substitute.
9793         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9794         replacement.
9795         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9796         (_gl_register_fd): No need to check stat if open already filters
9797         all directories.
9798         (fchdir): Fix error condition to match POSIX.
9799         * modules/fchdir (Depends-on): Add sys_stat.
9800         * doc/posix-functions/open.texi (open): Document the limitation.
9801         * modules/fchdir-tests: New file.
9802         * tests/test-fchdir.c: Likewise.
9803
9804         canonicalize: allow cross-testing from cygwin to mingw
9805         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9806         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9807         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9808         Likewise.
9809         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9810         target does not support symlinks.
9811         * tests/test-canonicalize-lgpl.sh: Likewise.
9812
9813         chown: avoid compilation warning on mingw
9814         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9815         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9816         mingw.
9817         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9818         * modules/chown (Depends-on): Add errno.
9819
9820 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9821
9822         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9823         command.
9824
9825 2009-08-31  Jim Meyering  <meyering@redhat.com>
9826
9827         canonicalize: remove useless initialization
9828         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9829         initialization of local, "end".
9830
9831 2009-08-30  Bruno Haible  <bruno@clisp.org>
9832
9833         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9834         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9835         ENOSYS.
9836
9837 2009-08-30  Bruno Haible  <bruno@clisp.org>
9838
9839         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9840         /usr/xpg4/bin/tr when it exists.
9841         * tests/test-pipe-filter-gi1.sh: Likewise.
9842
9843 2009-08-30  Bruno Haible  <bruno@clisp.org>
9844
9845         Work around deficient /usr/bin/id program on Solaris.
9846         * tests/test-file-has-acl.sh (ID): New variable.
9847         * tests/test-set-mode-acl.sh (ID): Likewise.
9848         * tests/test-copy-acl.sh (ID): Likewise.
9849         * tests/test-copy-file.sh (ID): Likewise.
9850
9851 2009-08-30  Bruno Haible  <bruno@clisp.org>
9852
9853         New module 'xstriconveh'.
9854         * lib/xstriconveh.h: New file.
9855         * lib/xstriconveh.c: New file.
9856         * modules/xstriconveh: New file.
9857
9858 2009-08-30  Bruno Haible  <bruno@clisp.org>
9859
9860         Make it easier to use mem_cd_iconveh.
9861         * lib/striconveh.h (iconveh_t): New type.
9862         (iconveh_open, iconveh_close): New declarations.
9863         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9864         with a single 'const iconveh_t *' argument.
9865         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9866         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9867         with a single 'const iconveh_t *' argument.
9868         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9869         * tests/test-striconveh.c (main): Update.
9870         * NEWS: Mention the change.
9871
9872 2009-08-30  Bruno Haible  <bruno@clisp.org>
9873
9874         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9875         problem.
9876
9877 2009-08-30  Bruno Haible  <bruno@clisp.org>
9878
9879         Work around iconv_open problem on Solaris.
9880         * lib/iconv_open-solaris.gperf: New file.
9881         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9882         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9883         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9884         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9885         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9886         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9887
9888 2009-08-29  Jim Meyering  <meyering@redhat.com>
9889
9890         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9891         * top/maint.mk (cvs-check): Remove target; it was just an alias
9892         to the better-named vc-diff-check.
9893         (maintainer-distcheck): Remove rule.  It was used only from
9894         the (alpha/beta/major) target, and all of its commands but one
9895         were coreutils-specific.
9896         (vc-dist): Remove rule.
9897         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9898         Run vc-diff-check, not vc-dist.
9899         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
9900
9901 2009-08-27  Bruno Haible  <bruno@clisp.org>
9902
9903         * tests/test-bitrotate.c (main): Remove test that uses a shift count
9904         of 0.
9905
9906 2009-08-27  Bruno Haible  <bruno@clisp.org>
9907
9908         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9909         compilers.
9910         * doc/func.texi: Document the SunPRO C bug.
9911
9912 2009-08-27  Bruno Haible  <bruno@clisp.org>
9913
9914         Fix link error on Solaris.
9915         * tests/test-parse-duration.c (xstrdup): Remove function.
9916
9917 2009-08-26  Pádraig Brady  <P@draigbrady.com>
9918
9919         ignore-value: handle pointer types, too
9920         * lib/ignore-value.h (__attribute__): Remove definition.
9921         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9922         of a more concise and more-often effective "(void) i" statement.
9923         (ignore_ptr): New function to suppress warnings from functions that
9924         return pointers, and to make it explicit that one function doesn't
9925         handle all cases.
9926
9927 2009-08-25  Bruno Haible  <bruno@clisp.org>
9928
9929         dup2: work around a Linux bug.
9930         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9931         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9932         * doc/posix-functions/dup2.texi: Mention the Linux bug.
9933         Reported by Simon Josefsson.
9934
9935 2009-08-25  Jim Meyering  <meyering@redhat.com>
9936
9937         libguestfs uses gnulib
9938         * users.txt: Add libguestfs.
9939
9940 2009-08-24  Eric Blake  <ebb9@byu.net>
9941
9942         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9943         * lib/pipe2.c (includes): Add binary-io.h.
9944         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9945
9946 2009-08-24  Bruno Haible  <bruno@clisp.org>
9947
9948         Tolerate declared but missing accept4 syscall.
9949         * lib/accept4.c (accept4): Invoke original accept4 function first, if
9950         available.
9951         * lib/sys_socket.in.h (accept4): If the function is already present,
9952         override it.
9953         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9954         * modules/accept4 (Makefile.am): Compile accept4.c always.
9955         Reported by Paolo Bonzini and Eric Blake.
9956
9957 2009-08-23  Bruno Haible  <bruno@clisp.org>
9958
9959         New module 'accept4'.
9960         * lib/sys_socket.in.h (accept4): New declaration.
9961         * lib/accept4.c: New file.
9962         * m4/accept4.m4: New file.
9963         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9964         GNULIB_ACCEPT4, HAVE_ACCEPT4.
9965         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9966         HAVE_ACCEPT4.
9967         * modules/accept4: New file.
9968         * doc/glibc-functions/accept4.texi: Mention the new module.
9969
9970 2009-08-24  Jim Meyering  <meyering@redhat.com>
9971
9972         progname: also set global program_invocation_name, when possible
9973         Before this change, a libtool-enabled program that calls glibc's
9974         error function would report the program name as
9975         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9976         * modules/progname (configure.ac): Check for a declaration of
9977         program_invocation_name.
9978         * lib/progname.c:  Include <errno.h>.
9979         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9980         Set program_invocation_name.
9981
9982 2009-08-23  Bruno Haible  <bruno@clisp.org>
9983
9984         * lib/dup3.c: Include <string.h>.
9985
9986 2009-08-23  Bruno Haible  <bruno@clisp.org>
9987
9988         * lib/dup3.c (dup3): Test only once whether the system actually exists.
9989         * lib/pipe2.c (pipe2): Likewise.
9990         Suggested by Eric Blake.
9991
9992 2009-08-23  Bruno Haible  <bruno@clisp.org>
9993
9994         Tolerate declared but missing dup3 syscall.
9995         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9996         * lib/unistd.in.h (dup3): If the function is already present,
9997         override it.
9998         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9999         * modules/dup3 (Makefile.am): Compile dup3.c always.
10000         Reported by Paolo Bonzini.
10001
10002 2009-08-23  Bruno Haible  <bruno@clisp.org>
10003
10004         Tolerate declared but missing pipe2 syscall.
10005         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10006         available.
10007         * lib/unistd.in.h (pipe2): If the function is already present,
10008         override it.
10009         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10010         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10011         Reported by Paolo Bonzini.
10012
10013 2009-08-23  Bruno Haible  <bruno@clisp.org>
10014
10015         * lib/pipe2.c (pipe2): Move #ifs inside function.
10016
10017 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10018
10019         quotearg: document limitations of quote_these_too
10020         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10021         those limitations are created.
10022         * lib/quotearg.h (set_char_quoting): Document that digits and
10023         letters that are special after backslash are not permitted.
10024         (quotearg_char): Cross-reference set_char_quoting documentation.
10025
10026 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10027
10028         quotearg: implement custom_quoting_style
10029         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10030         right_quote fields.
10031         (set_custom_quoting): New public function.
10032         (quotearg_buffer_restyled): Add left_quote and right_quote
10033         arguments, handle them very much like locale quoting, and update
10034         all uses.
10035         (quotearg_n_custom): New public function.
10036         (quotearg_n_custom_mem): New public function.
10037         (quotearg_custom): New public function.
10038         (quotearg_custom_mem): New public function.
10039         * lib/quotearg.h: Prototype and document new public functions.
10040         (enum quoting_style): For escape_quoting_style and
10041         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10042         ignored even though they're otherwise like c_quoting_style.
10043         Add custom_quoting_style member and document with comparison to
10044         clocale_quoting_style.
10045         * tests/test-quotearg.c (custom_quotes): New array.
10046         (custom_results): New array.
10047         (main): Extend to test custom quoting.
10048
10049 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10050
10051         quotearg: fix right quote escaping when it's in quote_these_too
10052         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10053         quote, be sure to prepend only one backslash.
10054         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10055         (main): Test it.
10056
10057 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10058
10059         quotearg-tests: test escaping of embedded locale quotes
10060         * tests/test-quotearg.c (struct result_strings): Add member for
10061         new input.
10062         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10063         (inputs): Add new input.
10064         (results_g): Add expected results.
10065         (flag_results): Likewise.
10066         (locale_results): Likewise.
10067         (compare_strings): Check those.
10068
10069 2009-08-23  Bruno Haible  <bruno@clisp.org>
10070
10071         Tests for module 'dup3'.
10072         * modules/dup3-tests: New file.
10073         * tests/test-dup3.c: New file.
10074
10075         New module 'dup3'.
10076         * lib/unistd.in.h (dup3): New declaration.
10077         * lib/dup3.c: New file.
10078         * m4/dup3.m4: New file.
10079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10080         HAVE_DUP3.
10081         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10082         * modules/dup3: New file.
10083         * doc/glibc-functions/dup3.texi: Mention the new module.
10084
10085 2009-08-23  Bruno Haible  <bruno@clisp.org>
10086
10087         Tweak the dup2 test.
10088         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10089         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10090         the test file is still empty. Fix argument order of lseek.
10091
10092 2009-08-23  Bruno Haible  <bruno@clisp.org>
10093
10094         Avoid test link errors when the modules getopt-gnu, gettext are used.
10095         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10097
10098 2009-08-23  Bruno Haible  <bruno@clisp.org>
10099
10100         Fix getdtablesize() on mingw.
10101         * lib/getdtablesize.c (getdtablesize): Implement differently.
10102         * lib/unistd.in.h (getdtablesize): Improve comment.
10103
10104 2009-08-23  Bruno Haible  <bruno@clisp.org>
10105
10106         New module 'mkostemp'.
10107         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10108         * lib/stdlib.in.h (mksotemp): New declaration.
10109         * lib/mkostemp.c: New file, from glibc with modifications.
10110         * lib/tempname.h (GT_FILE): Remove outdated comment.
10111         (gen_tempname): Add flags argument.
10112         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10113         (__GT_FILE): Map to 1.
10114         (small_open, large_open): Remove macros.
10115         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10116         * lib/mkstemp.c (mkstemp): Update.
10117         * lib/mkdtemp.c (mkdtemp): Likewise.
10118         * m4/mkostemp.m4: New file.
10119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10120         HAVE_MKOSTEMP.
10121         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10122         HAVE_MKOSTEMP.
10123         * modules/mkostemp: New file, based on modules/mkstemp.
10124         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10125         * NEWS: Mention the change.
10126
10127 2009-08-23  Bruno Haible  <bruno@clisp.org>
10128
10129         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10130         Reported by Eric Blake.
10131
10132 2009-08-23  Bruno Haible  <bruno@clisp.org>
10133
10134         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10135         Reported by Eric Blake.
10136
10137 2009-08-23  Bruno Haible  <bruno@clisp.org>
10138
10139         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10140         * modules/pipe2 (Depends-on): Likewise.
10141
10142 2009-08-23  Eric Blake  <ebb9@byu.net>
10143
10144         fcntl-h: add O_TTY_INIT support
10145         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10146         * tests/test-fcntl-h.c (o): Test it.
10147         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10148
10149         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10150         * modules/fcntl: Move <fcntl.h> header replacement...
10151         * modules/fcntl-h: ...to new name, so as not to collide with
10152         like-named function.
10153         * tests/test-fcntl.c: Rename...
10154         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10155         * modules/fcntl-tests: Rename...
10156         * modules/fcntl-h-tests: ...to this.  Update test file name.
10157         * modules/chdir-long (Depends-on): Update clients.
10158         * modules/chdir-safer (Depends-on): Likewise.
10159         * modules/fcntl-safer (Depends-on): Likewise.
10160         * modules/fts (Depends-on): Likewise.
10161         * modules/mkancesdirs (Depends-on): Likewise.
10162         * modules/mkdir-p (Depends-on): Likewise.
10163         * modules/open (Depends-on): Likewise.
10164         * modules/savewd (Depends-on): Likewise.
10165         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10166         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10167
10168 2009-08-22  Bruno Haible  <bruno@clisp.org>
10169
10170         * modules/binary-io (License): Relicense under LGPL.
10171         * modules/pipe2 (License): Likewise.
10172
10173 2009-08-22  Bruno Haible  <bruno@clisp.org>
10174
10175         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10176         return value.
10177         * lib/pipe-filter-gi.c (filter_init): Likewise.
10178         Reported by Eric Blake.
10179
10180 2009-08-22  Bruno Haible  <bruno@clisp.org>
10181
10182         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10183         * modules/pipe (Depends-on): Add pipe2.
10184
10185 2009-08-22  Bruno Haible  <bruno@clisp.org>
10186
10187         Tests for module 'pipe2'.
10188         * modules/pipe2-tests: New file.
10189         * tests/test-pipe2.c: New file.
10190
10191         New module 'pipe2'.
10192         * lib/unistd.in.h (pipe2): New declaration.
10193         * lib/pipe2.c: New file.
10194         * m4/pipe2.m4: New file.
10195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10196         HAVE_PIPE2.
10197         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10198         * modules/pipe2: New file.
10199         * doc/glibc-functions/pipe2.texi: Mention the new module.
10200
10201 2009-08-22  Bruno Haible  <bruno@clisp.org>
10202
10203         Reference some new glibc functions.
10204         * doc/glibc-functions/accept4.texi: New file.
10205         * doc/glibc-functions/dup3.texi: New file.
10206         * doc/glibc-functions/mkostemp.texi: New file.
10207         * doc/glibc-functions/pipe2.texi: New file.
10208         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10209         (Glibc sys/socket.h): Refer to accept4.
10210         (Glibc unistd.h): Refer to dup3, pipe2.
10211         Reported by Eric Blake.
10212
10213 2009-08-22  Jim Meyering  <meyering@redhat.com>
10214             Bruno Haible  <bruno@clisp.org>
10215
10216         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10217         This makes it so packages using automake-1.11's silent-rules option
10218         can print e.g., a single "GEN    configmake.h" line, rather than
10219         the 30+ statements that perform the job.  If you want to see the
10220         actual commands, you can still run "make V=1".
10221         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10222         so that make output is abbreviated when those variables are defined
10223         appropriately.
10224         * modules/argz: Likewise.
10225         * modules/arpa_inet: Likewise.
10226         * modules/byteswap: Likewise.
10227         * modules/configmake: Likewise.
10228         * modules/dirent: Likewise.
10229         * modules/errno: Likewise.
10230         * modules/fcntl: Likewise.
10231         * modules/float: Likewise.
10232         * modules/fnmatch: Likewise.
10233         * modules/getopt-posix: Likewise.
10234         * modules/glob: Likewise.
10235         * modules/iconv_open: Likewise.
10236         * modules/inttypes: Likewise.
10237         * modules/localcharset: Likewise.
10238         * modules/locale: Likewise.
10239         * modules/math: Likewise.
10240         * modules/netdb: Likewise.
10241         * modules/netinet_in: Likewise.
10242         * modules/poll: Likewise.
10243         * modules/posix_spawnp-tests: Likewise.
10244         * modules/sched: Likewise.
10245         * modules/search: Likewise.
10246         * modules/selinux-h: Likewise.
10247         * modules/signal: Likewise.
10248         * modules/spawn: Likewise.
10249         * modules/stdarg: Likewise.
10250         * modules/stdbool: Likewise.
10251         * modules/stddef: Likewise.
10252         * modules/stdint: Likewise.
10253         * modules/stdio: Likewise.
10254         * modules/stdlib: Likewise.
10255         * modules/string: Likewise.
10256         * modules/strings: Likewise.
10257         * modules/sys_file: Likewise.
10258         * modules/sys_ioctl: Likewise.
10259         * modules/sys_select: Likewise.
10260         * modules/sys_socket: Likewise.
10261         * modules/sys_stat: Likewise.
10262         * modules/sys_time: Likewise.
10263         * modules/sys_times: Likewise.
10264         * modules/sys_utsname: Likewise.
10265         * modules/sys_wait: Likewise.
10266         * modules/sysexits: Likewise.
10267         * modules/time: Likewise.
10268         * modules/unistd: Likewise.
10269         * modules/wchar: Likewise.
10270         * modules/wctype: Likewise.
10271
10272 2009-08-22  Jim Meyering  <meyering@redhat.com>
10273
10274         announce-gen: detect write failure
10275         * build-aux/announce-gen: Add Coda at end.
10276         Remove equivalent-but-more-verbose block at top.
10277
10278 2009-08-19  Akim Demaille  <demaille@gostai.com>
10279
10280         bootstrap: --help to stdout.
10281         * bootstrap (usage): Don't send --help to stderr.
10282         Use a here doc instead of a long string.
10283
10284 2009-08-21  Eric Blake  <ebb9@byu.net>
10285
10286         test-popen-safer: split from test-popen
10287         * tests/test-popen.c (main): Move...
10288         * tests/test-popen.h: ...into new file.
10289         * tests/test-popen-safer2.c: New file.
10290         * modules/popen-tests (Files): Add test-popen.h.
10291         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10292         Suggested by Bruno Haible.
10293
10294         test-fcntl-safer: split from test-open
10295         * tests/test-open.c (main): Move...
10296         * tests/test-open.h: ...into new file.
10297         * tests/test-fcntl-safer.c: New file.
10298         * modules/open-tests (Files): Add test-open.h.
10299         * modules/fcntl-safer-tests: New file.
10300         Suggested by Bruno Haible.
10301
10302         test-fopen-safer: split from test-fopen
10303         * tests/test-fopen.c (main): Move...
10304         * tests/test-fopen.h: ...into new file.
10305         * tests/test-fopen-safer.c: New file.
10306         * modules/fopen-tests (Files): Add test-fopen.h.
10307         * modules/fopen-safer-tests: New file.
10308         Suggested by Bruno Haible.
10309
10310 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10311
10312         popen-safer: test O_CLOEXEC at run-time.
10313         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10314
10315 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10316
10317         fcntl: move more flags to the header
10318         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10319         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10320         * lib/fcntl.in.h: Do both things here.
10321
10322 2009-08-21  Jim Meyering  <meyering@redhat.com>
10323
10324         consistently remove $@-t before redirecting to it
10325         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10326         * modules/alloca-opt: Likewise.
10327         * modules/byteswap: Likewise.
10328         * modules/fnmatch: Likewise.
10329         * modules/getopt-posix: Likewise.
10330         * modules/glob: Likewise.
10331         * modules/poll: Likewise.
10332         * modules/posix_spawnp-tests: Likewise.
10333         * modules/sys_socket: Likewise.
10334         * modules/sysexits: Likewise.
10335
10336 2009-08-21  Eric Blake  <ebb9@byu.net>
10337
10338         popen: simplify access to original popen
10339         * lib/popen.c (rpl_popen): No need to worry about popen being a
10340         macro.
10341         Reported by Bruno Haible.
10342
10343 2009-08-20  Eric Blake  <ebb9@byu.net>
10344
10345         build: avoid some compiler warnings
10346         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10347         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10348         type.
10349         (new_exclude_segment, excluded_file_pattern_p)
10350         (excluded_file_name_p): Reduce scope.
10351         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10352         old-style declaration.
10353
10354 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10355
10356         * tests/test-exclude1.sh: Handle Windows EOL.
10357         * tests/test-exclude2.sh: Likewise.
10358         * tests/test-exclude3.sh: Likewise.
10359         * tests/test-exclude4.sh: Likewise.
10360         * tests/test-exclude5.sh: Likewise.
10361         * tests/test-exclude6.sh: Likewise.
10362         * tests/test-exclude7.sh: Likewise.
10363
10364 2009-08-19  Akim Demaille  <demaille@gostai.com>
10365
10366         bootstrap: find sha1sum when named gsha1sum.
10367         * bootstrap (find_tool): New.
10368         ($SHA1SUM): New.
10369         Use it.
10370
10371 2009-08-20  Jim Meyering  <meyering@redhat.com>
10372
10373         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10374         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10375         expression that converts "." in a file name to "\." in the resulting
10376         regexp.  Start with a dummy statement, so that prior shell variable
10377         definitions are expanded portably.  Reported by Simon Josefsson.
10378
10379 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10380
10381         Fix polling for writeability of a screen buffer.
10382         * lib/poll.c: Distinguish input and screen buffers for the
10383         Win32 implementation.
10384         * lib/select.c: Likewise.
10385
10386 2009-08-19  Eric Blake  <ebb9@byu.net>
10387
10388         popen-safer: prevent popen from clobbering std descriptors
10389         * modules/popen-safer: New file.
10390         * lib/popen-safer.c: Likewise.
10391         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10392         * lib/stdio--.h (popen): Provide override.
10393         * lib/stdio-safer.h (popen_safer): Provide declaration.
10394         * tests/test-popen.c (includes): Partially test this.
10395         * modules/popen-safer-tests: New file, for more tests.
10396         * tests/test-popen-safer.c: Likewise.
10397         * MODULES.html.sh (file stream based Input/Output): Mention it.
10398
10399         tests: test some of the *-safer modules
10400         * modules/fopen-safer (Depends-on): Add fopen.
10401         * modules/fcntl-safer (Depends-on): Add fcntl.
10402         * modules/stdlib-safer (Depends-on): Add stdlib.
10403         (configure.ac): Set indicator.
10404         * modules/unistd-safer (configure.ac): Likewise.
10405         * modules/tmpfile-safer (configure.ac): Likewise.
10406         (Depends-on): Add tmpfile.
10407         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10408         active.
10409         * tests/test-fopen.c (includes): Test safer versions when they are
10410         in use.
10411         * tests/test-open.c (includes): Likewise.
10412
10413         popen: fix cygwin 1.5 bug when stdin closed
10414         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10415         * modules/popen: New file.
10416         * modules/popen-tests: Likewise.
10417         * tests/test-popen.c: Likewise.
10418         * m4/popen.m4: Likewise.
10419         * lib/popen.c: Likewise.
10420         * lib/stdio.in.h (popen): New declaration.
10421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10422         * modules/stdio (Makefile.am): Likewise.
10423         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10424
10425 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10426
10427         maint.mk: give full control over update-copyright exclusions
10428         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10429         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10430         (update-copyright): Don't force inclusion of top-level
10431         ChangeLog.  Don't force exclusion of all COPYING files, but make
10432         them the default exclusion instead.
10433
10434 2009-08-16  Bruno Haible  <bruno@clisp.org>
10435
10436         Fix test failures on Solaris 10.
10437         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10438         tests when Solaris iconv() is used.
10439         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10440         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10441         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10442         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10443         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10444
10445 2009-08-16  Bruno Haible  <bruno@clisp.org>
10446
10447         Fix test failures on Solaris 10.
10448         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10449         'tr' program and pass it as first argument.
10450         * tests/test-pipe-filter-gi1.sh: Likewise.
10451         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10452         program as first argument.
10453         * tests/test-pipe-filter-gi1.c (main): Likewise.
10454
10455 2009-08-16  Eric Blake  <ebb9@byu.net>
10456
10457         fpurge: fix previous commits
10458         * modules/fpurge (Makefile.am): Make replacement conditional,
10459         partially reverting 2007-04-29 change; missed in previous
10460         attempt.
10461         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10462         is missing.
10463
10464 2009-08-16  Bruno Haible  <bruno@clisp.org>
10465
10466         Clarify fpurge's effect on the file position.
10467         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10468         * tests/test-fpurge.c (main): Make a second pass for checking the file
10469         position.
10470
10471 2009-08-16  Bruno Haible  <bruno@clisp.org>
10472
10473         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10474         declaration of fpurge is missing.
10475         * tests/test-fpurge.c (main): Check that the file has not more contents
10476         than expected. Close the file before removing it.
10477
10478 2009-08-15  Eric Blake  <ebb9@byu.net>
10479
10480         fpurge: don't wrap working cygwin implementation
10481         * lib/fpurge.c (fpurge): Fix comment typo.
10482         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10483         1.7 to avoid replacement.
10484         * tests/test-fpurge.c (main): Enhance test.
10485
10486 2009-08-15  Eric Blake  <ebb9@byu.net>
10487         and Jim Meyering  <meyering@redhat.com>
10488
10489         test-update-copyright: skip if perl is insufficient
10490         * tests/test-update-copyright.sh: Failure to run maintainer tool
10491         should not cause testsuite failure on cygwin 1.5.
10492
10493 2009-08-14  Eric Blake  <ebb9@byu.net>
10494
10495         doc: mention more functions added in cygwin 1.7.0
10496         * doc/posix-headers/limits.texi (limits.h): Update for recent
10497         cygwin additions.
10498         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10499         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10500         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10501         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10502         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10503
10504 2009-08-14  Eric Blake  <ebb9@byu.net>
10505
10506         maint.mk: simplify update-copyright rule
10507         * top/maint.mk (update-copyright-local): Delete, and document how
10508         to do it in cfg.mk instead.
10509         (update-copyright-exclude-regexp): Delete, and document how to do
10510         it in .x-update-copyright instead.
10511         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10512         exclude ChangeLog.
10513
10514 2009-08-14  Bruno Haible  <bruno@clisp.org>
10515
10516         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10517
10518 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10519
10520         maint.mk: support update-copyright-env
10521         * top/maint.mk (update-copyright-env): Define place-holder.
10522         (update-copyright): Expand $(update-copyright-env) before
10523         invoking update-copyright.
10524
10525 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10526
10527         update-copyright: implement forced reformatting
10528         * build-aux/update-copyright: Implement and document
10529         UPDATE_COPYRIGHT_FORCE.
10530         * tests/test-update-copyright.sh: Test it.
10531
10532 2009-08-14  Eric Blake  <ebb9@byu.net>
10533         and Bruno Haible  <bruno@clisp.org>
10534
10535         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10536         * tests/test-locale.c: Revert previous patch related to NULL.
10537         * tests/test-stdio.c: Likewise.
10538         * tests/test-stdlib.c: Likewise.
10539         * tests/test-string.c: Likewise.
10540         * tests/test-unistd.c: Likewise.
10541         * modules/time-tests (Depends-on): Add verify.
10542         * modules/wchar-tests (Depends-on): Likewise.
10543         * tests/test-time.c: Test for NULL compliance.
10544         * tests/test-wchar.c: Likewise.
10545         * modules/locale (Depends-on): Add stddef.
10546         * modules/stdio (Depends-on): Likewise.
10547         * modules/stdlib (Depends-on): Likewise.
10548         * modules/string (Depends-on): Likewise.
10549         * modules/time (Depends-on): Likewise.
10550         * modules/unistd (Depends-on): Likewise.
10551         * modules/wchar (Depends-on): Likewise.
10552         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10553         * lib/stdlib.in.h (includes): Likewise.
10554         * lib/string.in.h (includes): Likewise.
10555         * lib/time.in.h (includes): Likewise.
10556         * lib/unistd.in.h (includes): Likewise.
10557         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10558         replaced.
10559         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10560         * m4/stddef_h.m4: New file.
10561         * modules/stddef: Likewise.
10562         * lib/stddef.in.h: Likewise.
10563         * modules/stddef-tests: Likewise.
10564         * tests/test-stddef.c: Likewise.
10565         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10566         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10567         * doc/posix-headers/locale.texi (locale.h): Likewise.
10568         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10569         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10570         * doc/posix-headers/string.texi (string.h): Likewise.
10571         * doc/posix-headers/time.texi (time.h): Likewise.
10572         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10573         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10574
10575 2009-08-14  Eric Blake  <ebb9@byu.net>
10576
10577         doc: improve git diff of texinfo files
10578         * .gitattributes: Add rule for *.texi files, with hint on how to
10579         use it.
10580         Copied from m4, and based on a report by Bruno Haible.
10581
10582 2009-08-14  Bruno Haible  <bruno@clisp.org>
10583
10584         Disable multithread support by default on Cygwin 1.5.x for real.
10585         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10586
10587 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10588
10589         update-copyright: much ado about intervals
10590         * build-aux/update-copyright: Implement and document
10591         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10592         of copyright year intervals.
10593         Also, document UPDATE_COPYRIGHT_YEAR.
10594         * tests/test-update-copyright.sh: Test it.
10595
10596         update-copyright: convert 2-digit to 4-digit years
10597         * build-aux/update-copyright: Implement and document.
10598         * tests/test-update-copyright.sh: Update.
10599
10600 2009-08-14  Jim Meyering  <meyering@redhat.com>
10601
10602         test-exclude: avoid coreutils "make check" failure
10603         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10604         just as in test-argmatch.c.
10605
10606 2009-08-13  Eric Blake  <ebb9@byu.net>
10607
10608         test-dup2: fix bad assumption
10609         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10610         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10611
10612         test-version-etc: fix CRLF portability issue
10613         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10614         recognize \r.
10615         * tests/test-argp-version-etc-1.sh: Likewise.
10616
10617         getopt: update client modules
10618         * modules/argp (Depends-on): Use getopt-gnu.
10619         * modules/git-merge-changelog (Depends-on): Likewise.
10620         * modules/long-options (Depends-on): Likewise.
10621         * modules/xstrtol (Depends-on): Likewise.
10622
10623 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10624
10625         * tests/test-version-etc.sh: Don't fail on different
10626         project/version.  Don't fail on CRLF differences.  Rewrite to use
10627         multiple -e instead of multiple sed forks, suggested by Eric Blake
10628         <ebb9@byu.net>.
10629         * tests/test-argp-version-etc-1.sh: Likewise.
10630
10631 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10632
10633         * tests/test-version-etc.sh: Don't fail on different
10634         project/version.
10635
10636 2009-08-12  Bruno Haible  <bruno@clisp.org>
10637
10638         Tests for modules 'getopt-posix', 'getopt-gnu'.
10639         * modules/getopt-posix-tests: New file.
10640         * tests/test-getopt.c: New file.
10641         * tests/test-getopt.h: New file.
10642         * tests/test-getopt_long.h: New file.
10643
10644         New modules 'getopt-posix', 'getopt-gnu'.
10645         * modules/getopt-gnu: New file, renamed from modules/getopt.
10646         * modules/getopt-posix: New file.
10647         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10648         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10649         (gl_GETOPT): Remove macro.
10650         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10651         Disable the test against BSD systems that declare optreset. Test
10652         against mingw bug. Test against lack of support of optional arguments
10653         on many platforms.
10654         * doc/glibc-headers/getopt.texi: Update module name and list of
10655         relevant platforms.
10656         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10657         'getopt-gnu' and more portability problems.
10658         * NEWS: Mention the changes.
10659
10660 2009-08-12  Bruno Haible  <bruno@clisp.org>
10661
10662         Ensure that optarg etc. get declared by <unistd.h>.
10663         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10664         AC_USE_SYSTEM_EXTENSIONS.
10665         * modules/getopt (Depends-on): Add 'extensions'.
10666
10667 2009-08-12  Bruno Haible  <bruno@clisp.org>
10668
10669         Avoid test link errors.
10670         * modules/pipe-filter-ii-tests (Makefile.am): Define
10671         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10672         * modules/pipe-filter-gi-tests (Makefile.am): Define
10673         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10675
10676 2009-08-12  Bruno Haible  <bruno@clisp.org>
10677
10678         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10679         gl_GETOPT_SUBSTITUTE before.
10680         (gl_GETOPT): Use it.
10681         * m4/argp.m4 (gl_ARGP): Update.
10682         Reported by Sergey Poznyakoff.
10683
10684         * m4/getopt.m4: Reorder macros.
10685         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10686         (gl_GETOPT_SUBSTITUTE): Remove macro.
10687
10688 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10689
10690         Minor improvement in gitlog-to-changelog
10691
10692         * build-aux/gitlog-to-changelog: New option `--format' makes
10693         output format string configurable.
10694
10695 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10696
10697         Optimize exclude: use hash tables for non-wildcard patterns.
10698
10699         * lib/exclude.c: Include hash.h and mbuiter.h
10700         (struct exclude_pattern, exclude_segment): New data types.
10701         (struct exclude): Rewrite.
10702         (fnmatch_pattern_has_wildcards): New function.
10703         (new_exclude_segment, free_exclude_segment): New functions.
10704         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10705         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10706         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10707         * modules/exclude: Depend on hash and mbuiter.
10708
10709         * modules/exclude-tests: New file.
10710         * tests/test-exclude.c: New file.
10711         * tests/test-exclude1.sh: New file.
10712         * tests/test-exclude2.sh: New file.
10713         * tests/test-exclude3.sh: New file.
10714         * tests/test-exclude4.sh: New file.
10715         * tests/test-exclude5.sh: New file.
10716         * tests/test-exclude6.sh: New file.
10717         * tests/test-exclude7.sh: New file.
10718
10719 2009-08-12  Bruno Haible  <bruno@clisp.org>
10720
10721         Ensure that getopt() gets declared by <unistd.h>.
10722         * lib/unistd.in.h: Conditionally include getopt.h.
10723         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10724         Set GNULIB_UNISTD_H_GETOPT.
10725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10726         GNULIB_UNISTD_H_GETOPT.
10727         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10728
10729 2009-08-12  Bruno Haible  <bruno@clisp.org>
10730
10731         Clarify logic.
10732         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10733         gl_replace_getopt instead of GETOPT_H.
10734
10735 2009-08-12  Bruno Haible  <bruno@clisp.org>
10736
10737         * m4/getopt.m4: Add comments.
10738
10739 2009-08-12  Bruno Haible  <bruno@clisp.org>
10740
10741         Disable multithread support by default on Cygwin 1.5.x.
10742         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10743         set gl_use_threads=no if not specified otherwise.
10744
10745 2009-08-11  Bruno Haible  <bruno@clisp.org>
10746
10747         Avoid compilation error on NetBSD 5.0.
10748         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10749         * tests/test-stdio.c: Likewise.
10750         * tests/test-stdlib.c: Likewise.
10751         * tests/test-string.c: Likewise.
10752         * tests/test-unistd.c: Likewise.
10753         Reported by Greg Troxel <gdt@ir.bbn.com>
10754         at <https://savannah.gnu.org/support/?106973>.
10755
10756 2009-08-11  Bruno Haible  <bruno@clisp.org>
10757
10758         * modules/dup2-tests (Depends-on): Remove close.
10759
10760         Undo 2009-07-19 commit.
10761         * modules/acl-tests (Depends-on): Remove close.
10762         * modules/binary-io-tests (Depends-on): Likewise.
10763         * modules/closein-tests (Depends-on): Likewise.
10764         * modules/flock-tests (Depends-on): Likewise.
10765         * modules/fsync-tests (Depends-on): Likewise.
10766         * modules/lseek-tests (Depends-on): Likewise.
10767         * modules/pipe-tests (Depends-on): Likewise.
10768         * modules/posix_spawn-tests (Depends-on): Likewise.
10769         * modules/posix_spawnp-tests (Depends-on): Likewise.
10770         * modules/stat-time-tests (Depends-on): Likewise.
10771         * modules/yesno-tests (Depends-on): Likewise.
10772
10773 2009-08-10  Bruno Haible  <bruno@clisp.org>
10774
10775         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10776
10777 2009-08-10  Bruno Haible  <bruno@clisp.org>
10778
10779         Fix a gcc warning.
10780         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10781
10782 2009-08-10  Bruno Haible  <bruno@clisp.org>
10783
10784         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10785         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10786         not only the first time.
10787         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10788         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10789         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10790         is 1, not only the the first time.
10791
10792 2009-08-10  Bruno Haible  <bruno@clisp.org>
10793
10794         Make it possible to use module 'gethostname' without module 'close'.
10795         * lib/unistd.in.h (close): Evoke a link error only if
10796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10798         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10799         * modules/unistd (Makefile.am): Substitute
10800         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10801         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10802         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10804         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10805         * modules/sys_ioctl (Makefile.am): Substitute
10806         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10807         * modules/socket (configure.ac): On native Windows, set
10808         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10809         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10810         Reported by Sam Steingold <sds@gnu.org>.
10811
10812 2009-08-10  Bruno Haible  <bruno@clisp.org>
10813
10814         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10815         * modules/ioctl (configure.ac): Likewise.
10816
10817 2009-08-10  Bruno Haible  <bruno@clisp.org>
10818
10819         Avoid collision between gnulib wrapper and libintl wrapper.
10820         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10821         already defined in intl/printf.c.
10822         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10823         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10824
10825 2009-08-09  Bruno Haible  <bruno@clisp.org>
10826
10827         Make <sys/select.h> really self-contained, also on Solaris 10.
10828         * lib/sys_select.in.h: Include <string.h>.
10829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10830         Solaris 10 problem.
10831         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10832         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10833         Reported by Jim Meyering.
10834
10835 2009-08-09  Bruno Haible  <bruno@clisp.org>
10836
10837         Avoid warnings from 'aclocal' that are due to a use of macro name
10838         AM_XGETTEXT_OPTION that is not defined in automake.
10839         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10840         automake.
10841         * modules/error (configure.ac): Likewise.
10842         * modules/propername (configure.ac): Likewise.
10843         * modules/vasprintf (configure.ac): Likewise.
10844         * modules/verror (configure.ac): Likewise.
10845         * modules/xprintf (configure.ac): Likewise.
10846         * modules/xvasprintf (configure.ac): Likewise.
10847
10848 2009-08-08  Bruno Haible  <bruno@clisp.org>
10849
10850         Avoid compilation error in C++ mode.
10851         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10852         Reported by Sam Steingold <sds@gnu.org>.
10853
10854 2009-08-08  Bruno Haible  <bruno@clisp.org>
10855
10856         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10857         for the various Unix platforms.
10858         * doc/posix-headers/limits.texi: Update platforms list regarding
10859         HOST_NAME_MAX.
10860         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10861
10862 2009-08-07  Jim Meyering  <meyering@redhat.com>
10863
10864         selinux-at: fix typo in a comment
10865         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10866         Spotted by Paolo Bonzini.
10867
10868         selinux-at: remove redundant m4 code, add documentation
10869         * modules/selinux-at (configure.ac): Remove redundant code.
10870         LIB_SELINUX is already set via the dependent module, selinux-h.
10871         (Include): Add quotes around selinux-at.h.
10872         * lib/selinux-at.h: Add documentation.
10873         Reported by Bruno Haible in
10874         http://marc.info/?l=gnulib-bug&m=124958988300749
10875
10876 2009-08-07  Bruno Haible  <bruno@clisp.org>
10877
10878         Avoid link error on MacOS X 10.3 and 10.4.
10879         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10880         on non-ELF systems.
10881         * lib/argp-pv.c (argp_program_version): Likewise.
10882         Reported by Simon Josefsson.
10883
10884 2009-08-07  Simon Josefsson  <simon@josefsson.org>
10885
10886         * tests/test-version-etc.sh: Use $EXEEXT.
10887
10888 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
10889
10890         update-copyright: update documentation to point to maint.mk
10891         * build-aux/update-copyright: Here.
10892
10893 2009-08-06  Jim Meyering  <meyering@redhat.com>
10894
10895         maint.mk: support update-copyright-local
10896         * top/maint.mk (update-copyright-local): Define place-holder.
10897         (update-copyright): Depend on $(update-copyright-local).
10898
10899 2009-08-06  Jim Meyering  <meyering@redhat.com>
10900
10901         selinux-at: new module
10902         Initially written for coreutils, this module will soon be
10903         used by findutils, too.
10904         * MODULES.html.sh [Misc]: Add selinux-at.
10905         * lib/selinux-at.h: New file, from coreutils.
10906         * lib/selinux-at.c: Likewise.
10907         * modules/selinux-at: Likewise.
10908         (License): Change from LGPL to GPL, since it depends
10909         on the GPL'd openat module.
10910
10911         doc: update README
10912         * README: Remove references to cogito.
10913         Remove cvs-repo-updating instructions from 2007.
10914         Don't imply that CVS is better if you have limited disk space.
10915
10916 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10917
10918         update-copyright: support C-style comments
10919         * build-aux/update-copyright: Implement and document.
10920         * tests/test-update-copyright.sh: Test.
10921
10922 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10923
10924         update-copyright: support omitted "(C)"
10925         * build-aux/update-copyright: Implement and document.  Also,
10926         allow variable whitespace before "(C)".
10927         * tests/test-update-copyright.sh: Test.
10928
10929 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10930
10931         update-copyright: don't trip on non-FSF copyright statements
10932         * build-aux/update-copyright: Fix so that the first correctly
10933         formatted FSF copyright statement is recognized no matter what
10934         appears before it.  Update documentation.
10935         * tests/test-update-copyright.sh: Test that.
10936
10937 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10938
10939         update-copyright: clean up code a little
10940         * build-aux/update-copyright: Append "_re" to the name of any
10941         variable holding a regular expression.
10942         Replace "old" and "new" with "stmt" in variable names.
10943         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10944         handled correctly.
10945         Format code more consistently.
10946
10947 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
10948
10949         update-copyright-tests: improve portability
10950         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10951         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
10952
10953 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10954
10955         update-copyright: support @copyright{} and &copy;
10956         * build-aux/update-copyright: Implement and document.
10957         * tests/test-update-copyright.sh: Test.
10958
10959 2009-08-04  Jim Meyering  <meyering@redhat.com>
10960
10961         update-copyright-tests: correctly test EOL=\r\n handling
10962         * tests/test-update-copyright.sh: Put \r at the end of some lines
10963         for the dos-eol tests.  Based on a patch by Joel E. Denny.
10964
10965         maint.mk: make update-copyright exclusion list more configurable
10966         * top/maint.mk (update-copyright): Default to excluding COPYING,
10967         but allow an override, in case someone does want to update that file.
10968
10969         maint.mk: don't update copyright date in COPYING
10970         * top/maint.mk (update-copyright): Exclude COPYING.
10971
10972         maint.mk: add a copyright-updating rule
10973         * top/maint.mk (update-copyright): New rule.
10974         Derived from coreutils/Makefile.am.
10975
10976         update-copyright: rename some variables
10977         * build-aux/update-copyright: Rename a few variables for clarity.
10978         Tweak syntax.  List Joel E. Denny as coauthor.
10979
10980 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
10981
10982         update-copyright: fix bug for 2-digit last year and add tests
10983         * build-aux/update-copyright: Fix bug.
10984         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10985         specified.
10986         * modules/update-copyright-tests: New
10987         * tests/test-update-copyright.sh: New.
10988
10989 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10990
10991         update-copyright: handle leading tabs in line prefix
10992         * build-aux/update-copyright: Count leading tabs as 8 spaces
10993         when computing margin.  This helps with the formatting of
10994         ChangeLogs, for example.
10995         Fix documentation a little.
10996
10997 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
10998
10999         update-copyright: support EOL=\r\n
11000         * build-aux/update-copyright: Implement that.
11001
11002 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11003
11004         update-copyright: automatically format copyright statements
11005         * build-aux/update-copyright: Implement that.
11006         Also, be a little more predictable and safer by always failing
11007         when the full copyright format is not perfectly recognized as an
11008         unbroken whole.  Discussed at
11009         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11010         Rewrite documentation.
11011
11012 2009-08-03  Bruno Haible  <bruno@clisp.org>
11013
11014         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11015
11016 2009-08-02  Bruno Haible  <bruno@clisp.org>
11017
11018         Tests for module 'uname'.
11019         * modules/uname-tests: New file.
11020         * tests/test-uname.c: New file.
11021
11022         New module 'uname'.
11023         * lib/uname.c: New file.
11024         * m4/uname.m4: New file.
11025         * modules/uname: New file.
11026         * doc/posix-functions/uname.texi: Mention the new module.
11027
11028 2009-08-02  Bruno Haible  <bruno@clisp.org>
11029
11030         Tests for module 'sys_utsname'.
11031         * modules/sys_utsname-tests: New file.
11032         * tests/test-sys_utsname.c: New file.
11033
11034         New module 'sys_utsname'.
11035         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11036         * m4/sys_utsname_h.m4: New file.
11037         * modules/sys_utsname: New file.
11038         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11039
11040 2009-08-02  Bruno Haible  <bruno@clisp.org>
11041
11042         Implicitly initialize the sockets library.
11043         * lib/gethostname.c: Include sockets.h.
11044         (rpl_gethostname): Invoke gl_sockets_startup.
11045         * lib/socket.c: Include sockets.h.
11046         (rpl_socket): Invoke gl_sockets_startup.
11047         * modules/gethostname (Depends-on): Add sockets.
11048         * modules/socket (Depends-on): Likewise.
11049         * tests/test-poll.c: Don't include sockets.h.
11050         (main): Don't invoke gl_sockets_startup.
11051         * tests/test-select.c: Don't include sockets.h.
11052         (main): Don't invoke gl_sockets_startup.
11053
11054 2009-08-02  Bruno Haible  <bruno@clisp.org>
11055
11056         Allow multiple calls to gl_sockets_startup.
11057         * lib/sockets.c (initialized_sockets_version): New variable.
11058         (gl_sockets_startup): Do nothing if already called for this or a higher
11059         version.
11060         (gl_sockets_cleanup): Reset initialized_sockets_version.
11061
11062 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11063
11064         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11065         different project/version.
11066
11067 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11068             Bruno Haible  <bruno@clisp.org>
11069
11070         Tests for module 'pipe-filter-gi'.
11071         * modules/pipe-filter-gi-tests: New file.
11072         * tests/test-pipe-filter-gi1.sh: New file.
11073         * tests/test-pipe-filter-gi1.c: New file.
11074         * tests/test-pipe-filter-gi2.sh: New file.
11075         * tests/test-pipe-filter-gi2-main.c: New file.
11076         * tests/test-pipe-filter-gi2-child.c: New file.
11077
11078         New module 'pipe-filter-gi'.
11079         * lib/pipe-filter-gi.c: New file.
11080         * modules/pipe-filter-gi: New file.
11081
11082 2009-08-02  Bruno Haible  <bruno@clisp.org>
11083             Paolo Bonzini  <bonzini@gnu.org>
11084
11085         Tests for module 'pipe-filter-ii'.
11086         * modules/pipe-filter-ii-tests: New file.
11087         * tests/test-pipe-filter-ii1.sh: New file.
11088         * tests/test-pipe-filter-ii1.c: New file.
11089         * tests/test-pipe-filter-ii2.sh: New file.
11090         * tests/test-pipe-filter-ii2-main.c: New file.
11091         * tests/test-pipe-filter-ii2-child.c: New file.
11092
11093         New module 'pipe-filter-ii'.
11094         * lib/pipe-filter.h: New file.
11095         * lib/pipe-filter-ii.c: New file.
11096         * lib/pipe-filter-aux.h: New file.
11097         * modules/pipe-filter-ii: New file.
11098
11099 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11100
11101         * lib/gc-libgcrypt.c: Change copyright to FSF.
11102         * lib/gc-gnulib.c: Likewise.
11103
11104 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11105
11106         * lib/gethostname.c: Include limits.h.
11107
11108 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11109             Bruno Haible  <bruno@clisp.org>
11110
11111         Ensure HOST_NAME_MAX as part of the gethostname module.
11112         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11113         define also HOST_NAME_MAX.
11114         * tests/test-gethostname.c: Include <limits.h>.
11115         (main): Check also HOST_NAME_MAX.
11116         * doc/posix-headers/limits.texi: Document the mingw problem.
11117
11118 2009-08-02  Bruno Haible  <bruno@clisp.org>
11119
11120         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11121         Add comments.
11122
11123 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11124
11125         * lib/gethostname.c: Add Windows wrapper.
11126         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11127         * modules/gethostname: Depend on sys_socket & errno, for also
11128         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11129         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11130
11131 2009-07-31  Jim Meyering  <meyering@redhat.com>
11132
11133         getloadavg: fix symbol name in comment
11134         * lib/getloadavg.c: Correct a typo I introduced when adding
11135         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11136         Matt Kraai spotted the problem.
11137
11138 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11139
11140         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11141         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11142         code also if ! defined N_NAME_POINTER.
11143         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11144         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11145         but the n_name member is a 12-byte array.
11146
11147 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11148
11149         update-copyright: generalize comment handling
11150         * build-aux/update-copyright: Handle copyright statements
11151         within more comment styles.
11152         Document usage.
11153         Report any file with an external copyright holder or parse failure.
11154
11155 2009-07-29  Jim Meyering  <meyering@redhat.com>
11156
11157         mktime: correct setting of REPLACE_MKTIME
11158         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11159
11160         update-copyright: new module
11161         * modules/update-copyright: New file.
11162         * build-aux/update-copyright: New file.
11163         * MODULES.html.sh (maint+release support): Add update-copyright.
11164
11165 2009-07-27  Bruno Haible  <bruno@clisp.org>
11166
11167         Fix compilation error when <ctime> is used and mktime is replaced.
11168         * lib/time.in.h (mktime): New declaration.
11169         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11170         REPLACE_MKTIME instead of defining mktime in config.h.
11171         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11172         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11173         Reported by Ross McFarland <rwmcfa1@neces.com>.
11174
11175 2009-07-27  Bruno Haible  <bruno@clisp.org>
11176
11177         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11178         Reported by Matt Kraai <mkraai@beckman.com>.
11179
11180 2009-07-25  Jim Meyering  <meyering@redhat.com>
11181
11182         maint.mk: avoid warnings about missing files
11183         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11184         diagnostic when .prev-version does not exist.
11185         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11186         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11187         nonexistent cfg.mk.
11188         Suggestions from Simon Josefsson.
11189
11190 2009-07-25  Bruno Haible  <bruno@clisp.org>
11191
11192         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11193         defined as macros. Needed on QNX 6.4.1.
11194         Reported by Matt Kraai <mkraai@beckman.com>.
11195
11196 2009-07-23  Jim Meyering  <meyering@redhat.com>
11197
11198         maint.mk: invoke "make dist" with a working value of XZ_OPT
11199         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11200
11201 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11202
11203         Make fseeko.c compile on QNX.
11204         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11205
11206 2009-07-22  Peter Simons  <simons@cryp.to>
11207
11208         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11209         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11210         * lib/md4.h: Likewise.
11211         * lib/md5.h: Likewise.
11212         * lib/sha1.h: Likewise.
11213         * lib/sha256.h: Likewise.
11214         * lib/sha512.h: Likewise.
11215
11216         tests-sha1: don't assign literal string to 'char *' variable
11217         * tests/test-sha1.c (main): Declare locals with "const" to match
11218         attributes of the right hand side.
11219
11220 2009-07-21  Eric Blake  <ebb9@byu.net>
11221
11222         dup2: fix more mingw problems
11223         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11224         fd to itself.
11225         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11226         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11227         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11228         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11229         care of mingw bugs.
11230
11231 2009-07-21  Jim Meyering  <meyering@redhat.com>
11232
11233         vc-list-files: avoid failure when /bin/sh is dash
11234         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11235         On some Debian based systems, /bin/sh is a symlink to dash, and running
11236         this command would omit the "/" following each 'tests' prefix:
11237           dash -x build-aux/vc-list-files -C . tests
11238         That is because bash and dash work differently:
11239           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11240           bash ok
11241           dash odd
11242
11243 2009-07-21  Eric Blake  <ebb9@byu.net>
11244
11245         dup2-tests: test previous patch
11246         * modules/dup2-tests: New file.
11247         * tests/test-dup2.c: Likewise.
11248         * tests/test-open.c (main): Avoid unspecified behavior.
11249         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11250         test.
11251
11252         dup2: work around mingw and cygwin 1.5 bug
11253         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11255         * modules/unistd (Makefile.am): Substitute it.
11256         * lib/unistd.in.h (dup2): Declare the replacement.
11257         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11258         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11259         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11260         * modules/execute (Depends-on): Add dup2.
11261         * modules/fseterr (Depends-on): Likewise.
11262         * modules/pipe (Depends-on): Likewise.
11263         * modules/posix_spawn-internal (Depends-on): Likewise.
11264
11265 2009-07-21  Bruno Haible  <bruno@clisp.org>
11266
11267         * modules/.gitattributes: New file.
11268
11269 2009-07-20  Bruno Haible  <bruno@clisp.org>
11270
11271         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11272         (main): Use it.
11273
11274 2009-07-20  Eric Blake  <ebb9@byu.net>
11275
11276         test-pipe: make a bit more robust.
11277         * tests/test-pipe.c (myerr): Allow error messages regardless of
11278         what we do to stderr.
11279         (test_pipe): Rearrange to avoid deadlock.
11280         (child_main): Try a larger read, to ensure we avoided deadlock.
11281         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11282         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11283         if misused.
11284
11285 2009-07-19  Jim Meyering  <meyering@redhat.com>
11286
11287         fts: avoid false-positive cycle-detection
11288         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11289         for each new command line argument.
11290
11291 2009-07-19  Bruno Haible  <bruno@clisp.org>
11292
11293         Fix build error on mingw with the modules sys_select and unistd.
11294         * modules/acl-tests (Depends-on): Add close.
11295         * modules/binary-io-tests (Depends-on): Likewise.
11296         * modules/closein-tests (Depends-on): Likewise.
11297         * modules/flock-tests (Depends-on): Likewise.
11298         * modules/fsync-tests (Depends-on): Likewise.
11299         * modules/lseek-tests (Depends-on): Likewise.
11300         * modules/pipe-tests (Depends-on): Likewise.
11301         * modules/posix_spawn-tests (Depends-on): Likewise.
11302         * modules/posix_spawnp-tests (Depends-on): Likewise.
11303         * modules/stat-time-tests (Depends-on): Likewise.
11304         * modules/yesno-tests (Depends-on): Likewise.
11305
11306 2009-07-19  Bruno Haible  <bruno@clisp.org>
11307
11308         Unify conditionals.
11309         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11310         macros, not at the compiler macros.
11311         * lib/pipe.c: Likewise.
11312         * lib/execute.c: Likewise.
11313         * lib/spawni.c: Likewise.
11314
11315 2009-07-19  Bruno Haible  <bruno@clisp.org>
11316
11317         Fix handling of closed stdin/stdout/stderr on mingw.
11318         * lib/w32spawn.h: Include unistd.h.
11319         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11320         file descriptor with O_NOINHERIT flag.
11321         (fd_safer_noinherit): New function, based on fd-safer.c.
11322         (dup_safer_noinherit): New function, based on dup-safer.c.
11323         (undup_safer_noinherit): New function.
11324         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11325         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11326         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11327         instead of fd_safer.
11328         * tests/test-pipe.c: Include <windows.h>.
11329         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11330
11331         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11332         from main.
11333         (test_pipe): Pass an extra argument for disambiguation.
11334         (main): Invoke parent_main or child_main.
11335
11336         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11337         consistently.
11338
11339 2009-07-18  Eric Blake  <ebb9@byu.net>
11340
11341         test-pipe: fix mingw build
11342         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11343
11344 2009-07-18  Bruno Haible  <bruno@clisp.org>
11345
11346         * modules/pipe-tests (Makefile.am): Fix typo.
11347
11348 2009-07-18  Eric Blake  <ebb9@byu.net>
11349
11350         error: fix mingw build
11351         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11352         Reported by Bruno Haible.
11353
11354         error: avoid undefined use of stdout
11355         * lib/error.c (error, error_at_line): Check that fd 1 is open
11356         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11357         is handling faults and the close_stdout module wants to report the
11358         detection of closed stdout as an error.
11359
11360 2009-07-17  Eric Blake  <ebb9@byu.net>
11361
11362         pipe: be robust in face of closed fds
11363         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11364         should cause child to misbehave.
11365         * modules/pipe-tests: New module.
11366         * tests/test-pipe.c: New file.
11367         * tests/test-pipe.sh: New file.
11368         Reported by Akim Demaille.
11369
11370 2009-07-14  Bruno Haible  <bruno@clisp.org>
11371
11372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11373         Reported by anonymous kc.
11374
11375 2009-07-07  Jim Meyering  <meyering@redhat.com>
11376
11377         maint.mk: don't look for translatable strings in *.m4 or *.mk
11378         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11379         when searching for translatable strings.
11380
11381 2009-07-05  Jim Meyering  <meyering@redhat.com>
11382
11383         remove superfluous parentheses in STREQ definition
11384         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11385         * lib/getugroups.c (STREQ): Likewise.
11386         * lib/fnmatch.c (STREQ): Likewise.
11387         Spotted by Bruno Haible.
11388
11389 2009-07-04  Jim Meyering  <meyering@redhat.com>
11390
11391         argv-iter: new module
11392         * MODULES.html.sh: Add argv-iter.
11393         * lib/argv-iter.c, lib/argv-iter.h: New files.
11394         * modules/argv-iter: New file.
11395         * modules/argv-iter-tests: New file.
11396         * tests/test-argv-iter.c: Test it.
11397
11398 2009-07-04  Bruno Haible  <bruno@clisp.org>
11399
11400         Fix assertion.
11401         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11402         contains more exact copies of a given entry than file2, leave the extra
11403         copies unpaired rather than aborting.
11404         Reported by Eric Blake.
11405
11406 2009-07-02  Bruno Haible  <bruno@clisp.org>
11407
11408         Speedup git-merge-changelog for git cherry-pick.
11409         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11410         (entries_mapping_get): New function, extracted from compute_mapping.
11411         (entries_mapping_reverse_get): New function.
11412         (compute_mapping): Add a 'full' argument. Return the result in a
11413         'struct entries_mapping'.
11414         (main): Update. Access the mappings through entries_mapping_get.
11415         Reported by Eric Blake.
11416
11417 2009-07-02  Bruno Haible  <bruno@clisp.org>
11418
11419         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11420         best_i.
11421
11422 2009-07-02  Bruno Haible  <bruno@clisp.org>
11423
11424         Speed up approximate search for matching ChangeLog entries.
11425         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11426         argument. Call fstrcmp_bounded instead of fstrcmp.
11427         (compute_mapping, try_split_merged_entry, main): Update callers.
11428
11429 2009-07-02  Bruno Haible  <bruno@clisp.org>
11430
11431         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11432
11433 2009-06-30  Bruno Haible  <bruno@clisp.org>
11434
11435         Reduce the number of uc_is_cased calls.
11436         * lib/unicase.h (casing_suffix_context_t): Add
11437         'first_char_except_ignorable' field.
11438         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11439         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11440         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11441         Update initializer.
11442         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11443         case-ignorable characters.
11444         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11445         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11446         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11447         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11448         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11449
11450 2009-06-30  Bruno Haible  <bruno@clisp.org>
11451
11452         Tests for module 'unicase/ignorable'.
11453         * modules/unicase/ignorable-tests: New file.
11454         * tests/unicase/test-ignorable.c: New file, generated by
11455         gen-uni-tables.
11456
11457         Tests for module 'unicase/cased'.
11458         * modules/unicase/cased-tests: New file.
11459         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11460         * tests/unicase/test-predicate-part1.h: New file, derived from
11461         tests/unictype/test-predicate-part1.h.
11462         * tests/unicase/test-predicate-part2.h: New file, same as
11463         tests/unictype/test-predicate-part2.h.
11464
11465         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11466         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11467         (output_casing_properties): New function.
11468         (main): Call it.
11469         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11470         * lib/unicase/cased.c: Include unictype/bitmap.h.
11471         (uc_is_cased): Define through a bitmap lookup.
11472         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11473         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11474         (uc_is_case_ignorable): Define through a bitmap lookup.
11475         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11476         lib/unictype/bitmap.h.
11477         (Depends-on): Add inline. Clean up.
11478         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11479         lib/unictype/bitmap.h.
11480         (Depends-on): Add inline. Clean up.
11481         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11482         recognition.
11483         * tests/unicase/test-u16-tolower.c (main): Likewise.
11484         * tests/unicase/test-u32-tolower.c (main): Likewise.
11485
11486 2009-06-30  Bruno Haible  <bruno@clisp.org>
11487
11488         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11489         * lib/unicase/u16-casemap.c: Likewise.
11490         * lib/unicase/u32-casemap.c: Likewise.
11491
11492 2009-06-29  Bruno Haible  <bruno@clisp.org>
11493
11494         Define u32_casefold as a wrapper around u32_ct_casefold.
11495         * lib/unicase/u32-casefold.c: Update.
11496         * modules/unicase/u32-casefold (Depends-on): Add
11497         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11498         unicase/empty-suffix-context. Clean up.
11499
11500         Define u16_casefold as a wrapper around u16_ct_casefold.
11501         * lib/unicase/u16-casefold.c: Update.
11502         * modules/unicase/u16-casefold (Depends-on): Add
11503         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11504         unicase/empty-suffix-context. Clean up.
11505
11506         Define u8_casefold as a wrapper around u8_ct_casefold.
11507         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11508         * lib/unicase/u8-casefold.c: Update.
11509         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11510         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11511
11512         Define u32_totitle as a wrapper around u32_ct_totitle.
11513         * lib/unicase/u32-totitle.c: Update.
11514         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11515         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11516
11517         Define u16_totitle as a wrapper around u16_ct_totitle.
11518         * lib/unicase/u16-totitle.c: Update.
11519         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11520         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11521
11522         Define u8_totitle as a wrapper around u8_ct_totitle.
11523         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11524         functions.
11525         (FUNC): Delegate to U_CT_TOTITLE.
11526         * lib/unicase/u8-totitle.c: Update.
11527         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11528         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11529
11530         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11531         invocation.
11532         * modules/unicase/u32-tolower (Depends-on): Add
11533         unicase/empty-prefix-context, unicase/empty-suffix-context.
11534
11535         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11536         invocation.
11537         * modules/unicase/u16-tolower (Depends-on): Add
11538         unicase/empty-prefix-context, unicase/empty-suffix-context.
11539
11540         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11541         * modules/unicase/u8-tolower (Depends-on): Add
11542         unicase/empty-prefix-context, unicase/empty-suffix-context.
11543
11544         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11545         invocation.
11546         * modules/unicase/u32-toupper (Depends-on): Add
11547         unicase/empty-prefix-context, unicase/empty-suffix-context.
11548
11549         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11550         invocation.
11551         * modules/unicase/u16-toupper (Depends-on): Add
11552         unicase/empty-prefix-context, unicase/empty-suffix-context.
11553
11554         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11555         * modules/unicase/u8-toupper (Depends-on): Add
11556         unicase/empty-prefix-context, unicase/empty-suffix-context.
11557
11558         New module 'unicase/u32-ct-casefold'.
11559         * lib/unicase/u32-ct-casefold.c: New file.
11560         * modules/unicase/u32-ct-casefold: New file.
11561
11562         New module 'unicase/u16-ct-casefold'.
11563         * lib/unicase/u16-ct-casefold.c: New file.
11564         * modules/unicase/u16-ct-casefold: New file.
11565
11566         New module 'unicase/u8-ct-casefold'.
11567         * lib/unicase/u8-ct-casefold.c: New file.
11568         * lib/unicase/u-ct-casefold.h: New file, derived from
11569         lib/unicase/u-casefold.h.
11570         * modules/unicase/u8-ct-casefold: New file.
11571
11572         New module 'unicase/u32-ct-totitle'.
11573         * lib/unicase/u32-ct-totitle.c: New file.
11574         * modules/unicase/u32-ct-totitle: New file.
11575
11576         New module 'unicase/u16-ct-totitle'.
11577         * lib/unicase/u16-ct-totitle.c: New file.
11578         * modules/unicase/u16-ct-totitle: New file.
11579
11580         New module 'unicase/u8-ct-totitle'.
11581         * lib/unicase/u8-ct-totitle.c: New file.
11582         * lib/unicase/u-ct-totitle.h: New file, derived from
11583         lib/unicase/u-totitle.h.
11584         * modules/unicase/u8-ct-totitle: New file.
11585
11586         New module 'unicase/u32-ct-tolower'.
11587         * lib/unicase/u32-ct-tolower.c: New file.
11588         * modules/unicase/u32-ct-tolower: New file.
11589
11590         New module 'unicase/u16-ct-tolower'.
11591         * lib/unicase/u16-ct-tolower.c: New file.
11592         * modules/unicase/u16-ct-tolower: New file.
11593
11594         New module 'unicase/u8-ct-tolower'.
11595         * lib/unicase/u8-ct-tolower.c: New file.
11596         * modules/unicase/u8-ct-tolower: New file.
11597
11598         New module 'unicase/u32-ct-toupper'.
11599         * lib/unicase/u32-ct-toupper.c: New file.
11600         * modules/unicase/u32-ct-toupper: New file.
11601
11602         New module 'unicase/u16-ct-toupper'.
11603         * lib/unicase/u16-ct-toupper.c: New file.
11604         * modules/unicase/u16-ct-toupper: New file.
11605
11606         New module 'unicase/u8-ct-toupper'.
11607         * lib/unicase/u8-ct-toupper.c: New file.
11608         * modules/unicase/u8-ct-toupper: New file.
11609
11610         Add context arguments to u*_casemap functions.
11611         * lib/unicase/unicasemap.h: Include unicase.h.
11612         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11613         suffix_context arguments.
11614         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11615         functions.
11616         (FUNC): Add prefix_context and suffix_context arguments. Use
11617         uc_is_cased and uc_is_case_ignorable.
11618         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11619         * lib/unicase/u16-casemap.c: Likewise.
11620         * lib/unicase/u32-casemap.c: Likewise.
11621         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11622         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11623         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11624         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11625         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11626         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11627
11628         New module 'unicase/u32-suffix-context'.
11629         * lib/unicase/u32-suffix-context.c: New file.
11630         * modules/unicase/u32-suffix-context: New file.
11631
11632         New module 'unicase/u16-suffix-context'.
11633         * lib/unicase/u16-suffix-context.c: New file.
11634         * modules/unicase/u16-suffix-context: New file.
11635
11636         New module 'unicase/u8-suffix-context'.
11637         * lib/unicase/u8-suffix-context.c: New file.
11638         * lib/unicase/u-suffix-context.h: New file.
11639         * modules/unicase/u8-suffix-context: New file.
11640
11641         New module 'unicase/empty-suffix-context'.
11642         * lib/unicase/empty-suffix-context.c: New file.
11643         * modules/unicase/empty-suffix-context: New file.
11644
11645         New module 'unicase/u32-prefix-context'.
11646         * lib/unicase/u32-prefix-context.c: New file.
11647         * modules/unicase/u32-prefix-context: New file.
11648
11649         New module 'unicase/u16-prefix-context'.
11650         * lib/unicase/u16-prefix-context.c: New file.
11651         * modules/unicase/u16-prefix-context: New file.
11652
11653         New module 'unicase/u8-prefix-context'.
11654         * lib/unicase/u8-prefix-context.c: New file.
11655         * lib/unicase/u-prefix-context.h: New file.
11656         * lib/unicase/context.h: New file.
11657         * modules/unicase/u8-prefix-context: New file.
11658
11659         New module 'unicase/empty-prefix-context'.
11660         * lib/unicase/empty-prefix-context.c: New file.
11661         * modules/unicase/empty-prefix-context: New file.
11662
11663         New module 'unicase/ignorable'.
11664         * lib/unicase/ignorable.c: New file.
11665         * modules/unicase/ignorable: New file.
11666
11667         New module 'unicase/cased'.
11668         * lib/unicase/caseprop.h: New file.
11669         * lib/unicase/cased.c: New file.
11670         * modules/unicase/cased: New file.
11671
11672         New functions for case mapping of substrings.
11673         * lib/unicase.h (casing_prefix_context_t): New type.
11674         (unicase_empty_prefix_context): New variable.
11675         (u8_casing_prefix_context, u16_casing_prefix_context,
11676         u32_casing_prefix_context, u8_casing_prefixes_context,
11677         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11678         declarations.
11679         (casing_suffix_context_t): New type.
11680         (unicase_empty_suffix_context): New variable.
11681         (u8_casing_suffix_context, u16_casing_suffix_context,
11682         u32_casing_suffix_context, u8_casing_suffixes_context,
11683         u16_casing_suffixes_context, u32_casing_suffixes_context,
11684         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11685         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11686         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11687         declarations.
11688
11689 2009-06-28  Jim Meyering  <meyering@redhat.com>
11690
11691         boostrap: indent only with spaces
11692         * build-aux/bootstrap: Indent only with spaces, never TABs.
11693
11694         bootstrap: split long lines
11695         * build-aux/bootstrap: Keep line length < 80.
11696
11697         bootstrap: sync from coreutils
11698         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11699         just as autoreconf does.  Verify a list of prerequisite
11700         package-name,version-number pairs if defined in bootstrap.conf.
11701         Refer to README-prereq, if prerequisites are not satisfied.
11702
11703 2009-06-27  Eric Blake  <ebb9@byu.net>
11704
11705         tests: add test for bogus NULL definition
11706         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11707         * tests/test-stdlib.c: Likewise.
11708         * tests/test-string.c: Likewise.
11709         * tests/test-locale.c: Likewise.
11710         * tests/test-unistd.c: Likewise.
11711         * modules/stdio-tests (Depends-on): Add verify.
11712         * modules/stdlib-tests (Depends-on): Likewise.
11713         * modules/string-tests (Depends-on): Likewise.
11714         * modules/locale-tests (Depends-on): Likewise.
11715         * modules/unistd-tests (Depends-on): Likewise.
11716
11717 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11718
11719         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11720         self-explaining comment.
11721         * m4/selinux-selinux-h: Update serial.
11722         (gl_LIBSELINUX): New macro, adding a warning for missing development
11723         packages to code extracted from...
11724         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11725         Add warning for missing development packages here, too.
11726
11727 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11728
11729         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11730
11731 2009-06-25  Eric Blake  <ebb9@byu.net>
11732
11733         version-etc: fix regression
11734         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11735         gcc.
11736         (version_etc): Use it, to catch bugs with trailing NULL.
11737         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11738         (version_etc_va): Fix logic bug.
11739         * modules/version-etc-tests: Add test.
11740         * tests/test-version-etc.c: New file.
11741         * tests/test-version-etc.sh: Likewise.
11742
11743 2009-06-25  Sam Steingold  <sds@gnu.org>
11744
11745         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11746         mbtowc declaration.
11747
11748 2009-06-25  Eric Blake  <ebb9@byu.net>
11749
11750         fpurge: migrate into <stdio.h>
11751         * lib/fpurge.h: Delete...
11752         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11753         * lib/fpurge.c (fpurge): Change declaring header.
11754         * modules/fpurge (Files): Drop deleted file.
11755         (Depends-on): Add stdio.
11756         (configure.ac): Set witness.
11757         * modules/stdio (Makefile.am): Support fpurge macros.
11758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11759         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11760         * lib/fflush.c: Update client.
11761         * tests/test-fpurge.c: Likewise.
11762         * NEWS: Mention the change.
11763
11764 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11765
11766         * lib/argp-version-etc.c (program_authors): Add const
11767         qualifier.
11768         * lib/version-etc.c: Fix typos in the comments.
11769         * modules/argp-version-etc: Depends on version-etc.
11770
11771 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11772
11773         argp-version-etc: new module.
11774
11775         * lib/argp-version-etc.c: New file.
11776         * lib/argp-version-etc.h: New file.
11777         * modules/argp-version-etc: New file.
11778         * modules/argp-version-etc-tests: New file.
11779         * tests/test-argp-version-etc.c: New test.
11780         * tests/test-argp-version-etc-1.sh: New test.
11781
11782 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11783
11784         Provide additional interfaces and documentation for version-etc
11785         module.
11786
11787         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11788         interfaces.
11789         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11790         prototypes.
11791
11792 2009-06-24  Bruno Haible  <bruno@clisp.org>
11793
11794         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11795         HAVE_LIB${NAME} macro.
11796         Reported by Sam Steingold <sds@gnu.org>.
11797
11798 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11799
11800         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11801         needed.
11802
11803 2009-06-21  Bruno Haible  <bruno@clisp.org>
11804
11805         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11806         work.
11807         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11808         together with LIB${NAME}, LTLIB${NAME}.
11809         Reported by Sam Steingold <sds@gnu.org>.
11810
11811 2009-06-20  Jim Meyering  <meyering@redhat.com>
11812
11813         tests: make sc_require_test_exit_idiom more generic
11814         * top/maint.mk (Exit_witness_file): New overridable variable.
11815         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11816         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11817
11818 2009-06-19  Jim Meyering  <meyering@redhat.com>
11819
11820         hash: reverse order of src/dst parameters in an internal interface
11821         * lib/hash.c (transfer_entries): Reverse order of parameters to
11822         put DST before SRC.  Adjust callers.
11823
11824         tests: test-hash: avoid wholesale duplication
11825         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11826         Instead, use a loop and add a single conditional.
11827
11828         tests: test-hash: allow seed selection via a command line argument
11829         * tests/test-hash.c (get_seed): New function.
11830         (main): Use it.
11831
11832 2009-06-19  Eric Blake  <ebb9@byu.net>
11833
11834         hash: avoid memory leak on allocation failure
11835         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11836         failure.  Factor repeated algorithm...
11837         (transfer_entries): ...into new helper routine.
11838         (hash_delete): React to hash_rehash return value.
11839
11840         hash: reduce memory pressure in hash_rehash no-op case
11841         * lib/hash.c (next_prime): Avoid overflow.
11842         (hash_initialize): Factor bucket size computation...
11843         (compute_bucket_size): ...into new helper function.
11844         (hash_rehash): Use new function and open coding to reduce memory
11845         pressure, and avoid a memory leak in USE_OBSTACK code.
11846         Reported by Jim Meyering.
11847
11848 2009-06-18  Eric Blake  <ebb9@byu.net>
11849
11850         hash: make rotation more obvious
11851         * modules/hash (Depends-on): Add bitrotate and stdint.
11852         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11853         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11854         (SIZE_MAX): Rely on headers for definition.
11855         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11856         (raw_hasher): Use rotr_sz.
11857         Suggested by Jim Meyering.
11858
11859         hash: fix memory leak in last patch
11860         * lib/hash.c (hash_rehash): Avoid memory leak.
11861
11862         hash: avoid no-op rehashing
11863         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11864
11865         hash: provide default callback functions
11866         * lib/hash.c (raw_hasher, raw_comparator): New functions.
11867         (hash_initialize): Use them as defaults.
11868         * tests/test-hash.c (main): Test this.
11869
11870         hash: minor optimization
11871         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11872         when possible.
11873         (hash_initialize): Document this promise.
11874         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11875         * tests/test-hash.c (hash_compare_strings): Test this.
11876
11877 2009-06-18  Bruno Haible  <bruno@clisp.org>
11878
11879         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11880         going to be replaced anyway.
11881
11882 2009-06-18  Bruno Haible  <bruno@clisp.org>
11883
11884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11885         in one place.
11886         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11887         be replaced anyway.
11888
11889 2009-06-18  Eric Blake  <ebb9@byu.net>
11890
11891         hash: check for resize before insertion
11892         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11893         threshold before insertion, so that a pathological hash_rehash
11894         that fills every bucket can still trigger another rehash.
11895
11896 2009-06-18  Jim Meyering  <meyering@redhat.com>
11897
11898         hash-tests: add a loop around the small tests
11899         * tests/test-hash.c (main): Repeat small tests with selected
11900         small initial table sizes.
11901
11902 2009-06-17  Eric Blake  <ebb9@byu.net>
11903
11904         hash: minor cleanups
11905         * lib/hash.h (hash_entry): Make opaque, by moving...
11906         * lib/hash.c (hash_entry): ...here.
11907         (hash_insert): Clarify restrictions on what can be inserted.
11908         (hash_get_next): Clarify when it is safe to remove an element
11909         during traversal.
11910         (check_tuning): Skip verification when tuning is known safe.
11911         (hash_initialize): Clarify restrictions on tuning.
11912
11913 2009-06-17  Jim Meyering  <jim@meyering.net>
11914         and Eric Blake  <ebb9@byu.net>
11915
11916         hash-tests: new module
11917         * modules/hash-tests: New file.
11918         * tests/test-hash.c: New file.
11919
11920 2009-06-17  Eric Blake  <ebb9@byu.net>
11921
11922         strstr-simple: document new module
11923         * MODULES.html.sh: Document new module.
11924
11925         strstr, strcasestr: replace on platforms with broken memchr
11926         * modules/strstr: Split into...
11927         * modules/strstr-simple: ...new module that does not care about
11928         performance, but does care about glibc bug.
11929         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11930         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11931         if platform memchr is broken, per Debian bug 521737.
11932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11933         memchr.
11934         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11935         * doc/posix-functions/strstr.texi (strstr): Document the fix.
11936         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11937         * modules/mountlist (Depends-on): Add strstr-simple.
11938         * modules/gen-uni-tables (Depends-on): Likewise.
11939         * modules/argz (Depends-on): Add strstr.
11940
11941 2009-06-17  Bruno Haible  <bruno@clisp.org>
11942
11943         * modules/posix_spawn-internal (Depends-on): Add errno.
11944
11945 2009-06-17  Bruno Haible  <bruno@clisp.org>
11946
11947         Define missing ESTALE on Interix 3.5.
11948         * lib/errno.in.h (ESTALE): Assign a value if missing.
11949         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11950         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11951         missing.
11952         * doc/posix-headers/errno.texi: Mention the Interix bug.
11953         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11954
11955 2009-06-15  Eric Blake  <ebb9@byu.net>
11956
11957         memchr, memchr2: add valgrind exception
11958         * lib/memchr.valgrind: New file.
11959         * lib/memchr2.valgrind: New file.
11960         * modules/memchr (Files): Distribute valgrind file.
11961         * modules/memchr2 (Files): Likewise.
11962
11963         docs: memchr is no longer obsolete
11964         * MODULES.html.sh: Move memchr from obsolete to string.h section.
11965         * lib/string.in.h (memchr): Simplify logic.
11966
11967 2009-06-14  Jim Meyering  <meyering@redhat.com>
11968
11969         link-follow: fix the "checking..." message to not mention trailing slash
11970         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11971         never considered trailing slashes.
11972
11973 2009-06-14  Bruno Haible  <bruno@clisp.org>
11974
11975         * m4/memchr.m4: Mention also the bug on IA-64.
11976         * doc/posix-functions/memchr.texi: Likewise.
11977
11978 2009-06-12  Eric Blake  <ebb9@byu.net>
11979
11980         memchr: detect broken x86_64 and alpha implementations
11981         * modules/memchr-tests (Depends-on): Move mmap detection...
11982         * modules/memchr (Depends-on): ...here.
11983         (configure.ac): Set indicator.
11984         * lib/string.in.h (memchr): Declare replacement.
11985         * modules/string (Makefile.am): Trigger replacement.
11986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11987         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11988         bugs.
11989         * doc/posix-functions/memchr.texi (memchr): Document the bug.
11990         * modules/getpagesize (License): Relax license.
11991
11992 2009-06-11  Bruno Haible  <bruno@clisp.org>
11993
11994         * lib/idpriv.h: Add more references.
11995
11996 2009-06-08  Bruno Haible  <bruno@clisp.org>
11997
11998         Tests for module 'idpriv-droptemp'.
11999         * modules/idpriv-droptemp-tests: New file.
12000         * tests/test-idpriv-droptemp.sh: New file.
12001         * tests/test-idpriv-droptemp.su.sh: New file.
12002         * tests/test-idpriv-droptemp.c: New file.
12003
12004         New module 'idpriv-droptemp'.
12005         * lib/idpriv-droptemp.c: New file.
12006         * modules/idpriv-droptemp: New file.
12007
12008 2009-06-08  Bruno Haible  <bruno@clisp.org>
12009
12010         Tests for module 'idpriv-drop'.
12011         * modules/idpriv-drop-tests: New file.
12012         * tests/test-idpriv-drop.sh: New file.
12013         * tests/test-idpriv-drop.su.sh: New file.
12014         * tests/test-idpriv-drop.c: New file.
12015
12016         New module 'idpriv-drop'.
12017         * lib/idpriv.h: New file.
12018         * lib-idpriv-drop.c: New file.
12019         * m4/idpriv.m4: New file.
12020         * modules/idpriv-drop: New file.
12021
12022 2009-06-08  Bruno Haible  <bruno@clisp.org>
12023
12024         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12025         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12029         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12031
12032 2009-06-08  Eric Blake  <ebb9@byu.net>
12033
12034         test-strstr: use memory fence, when possible
12035         * tests/test-strstr.c (main): Use memory fence, in order to be
12036         more likely to trigger Debian bug 521737.
12037         * modules/strstr-tests (Files): Pull in additional files.
12038
12039         memchr: no longer obsolete, for wider field testing
12040         * modules/memchr (Status, Notice): Delete, this module is no
12041         longer obsolete.
12042         * modules/vasnprintf (Depends-on): Add memchr.
12043
12044 2009-06-07  Jim Meyering  <meyering@redhat.com>
12045
12046         hash: declare some functions with the warn_unused_result attribute
12047         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12048
12049 2009-06-07  Bruno Haible  <bruno@clisp.org>
12050
12051         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12052         Reported by Eric Blake.
12053
12054 2009-06-06  Eric Blake  <ebb9@byu.net>
12055
12056         test-alignof: fix typo with long double
12057         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12058         compiler error.
12059
12060 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12061
12062         Escape non-texinfo { and }s.
12063         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12064         markup error.
12065
12066 2009-06-04  Jim Meyering  <meyering@redhat.com>
12067
12068         gitlog-to-changelog: don't infloop on an empty commit log
12069         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12070         Reported by Boris Petersen <transacid@centerim.org>.
12071
12072 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12073
12074         version-etc: extend for packagers
12075         Add three new configure options, intended for packagers:
12076           --with-packager="packager name"
12077           --with-packager-version="packager-specific version"
12078           --with-packager-bug-reports="packager bug reporting"
12079         An example with coreutils:
12080           $ ./configure \
12081             --with-packager=Gentoo \
12082             --with-packager-bug-report=http://bugs.gentoo.org/ \
12083             --with-packager-version="patchset 1.6"
12084           $ ./src/ls --version | head -n2
12085           ls (GNU coreutils) 7.1-dirty
12086           Packaged by Gentoo (patchset 1.6)
12087         Note that the bug reporting info via --help doesn't show up because
12088         coreutils uses its own custom emit_bug_reporting_address() implementation
12089         in src/system.h.  If it didn't, it'd look like:
12090           $ ./src/ls --help | tail -n4
12091           Report bugs to <bug-coreutils@gnu.org>.
12092           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12093           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12094           General help using GNU software: <http://www.gnu.org/gethelp/>.
12095         * lib/version-etc.c: Print new information, if provided.
12096         * m4/version-etc.m4: New file.
12097         * modules/version-etc (Files): Add m4/version-etc.m4.
12098         (configure.ac): Add gl_VERSION_ETC.
12099
12100 2009-05-31  Bruno Haible  <bruno@clisp.org>
12101
12102         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12103         and 'int64_t'.
12104         * modules/alignof-tests (Dependencies): Add stdint.
12105         Reported by Eric Blake.
12106
12107 2009-05-31  Bruno Haible  <bruno@clisp.org>
12108
12109         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12110         restriction due to compiler bugs.
12111         Reported by Eric Blake.
12112
12113 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12114             Bruno Haible  <bruno@clisp.org>
12115
12116         Fix test-alignof failure.
12117         * lib/alignof.h (alignof_slot): New macro.
12118         (alignof_type): New macro, with the same semantics as the previous
12119         'alignof'.
12120         (alignof): Alias to alignof_slot.
12121         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12122         check that the results are usable as constant expressions.
12123
12124 2009-05-31  Bruno Haible  <bruno@clisp.org>
12125
12126         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12127         * tests/test-memchr.c (main): Check that memchr does not read past the
12128         first occurrence of the byte.
12129         * tests/test-strstr.c (main): Update comment.
12130         Suggested by Eric Blake.
12131
12132 2009-05-30  Bruno Haible  <bruno@clisp.org>
12133
12134         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12135         detail how to use dumpbin.
12136         Reported by David Byron <dbyron@dbyron.com>.
12137
12138 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12139
12140         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12141
12142 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12143
12144         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12145
12146 2009-05-28  Bruno Haible  <bruno@clisp.org>
12147
12148         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12149         build-aux/ files.
12150
12151 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12152
12153         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12154
12155 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12156
12157         * gnulib-tool (sed_transform_main_lib_file)
12158         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12159         regexps.
12160
12161 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12162
12163         * tests/test-strstr.c: Add another self-test.
12164         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12165         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12166
12167 2009-05-23  Bruno Haible  <bruno@clisp.org>
12168
12169         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12170         change.
12171
12172 2009-05-21  Bruno Haible  <bruno@clisp.org>
12173
12174         Simplify use of mode_t varargs.
12175         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12176         uses 'mode_t' or 'int'.
12177         * lib/openat.c (openat): Likewise.
12178         * lib/open-safer.c (open_safer): Likewise.
12179         * m4/mode_t.m4: New file.
12180         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12181         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12182         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12183         * modules/open (Files): Add m4/mode_t.m4.
12184         * modules/openat (Files): Likewise.
12185         * modules/fcntl-safer (Files): Likewise.
12186         Suggested by Eric Blake.
12187
12188 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12189
12190         * doc/glibc-functions/fallocate.texi: New file.
12191         * doc/gnulib.texi: Include it.
12192
12193 2009-05-21  Eric Blake  <ebb9@byu.net>
12194             Bruno Haible  <bruno@clisp.org>
12195
12196         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12197         invocations.
12198         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12199
12200 2009-05-21  Eric Blake  <ebb9@byu.net>
12201             Bruno Haible  <bruno@clisp.org>
12202
12203         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12204         include_next. Fix of 2008-11-20 commit.
12205         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12206         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12207         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12208         NEXT_MATH_H.
12209         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12210         instead of NEXT_MATH_H.
12211
12212 2009-05-21  Bruno Haible  <bruno@clisp.org>
12213
12214         Avoid redefinition warnings for SIZE_MAX.
12215         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12216         Reported by Simon Josefsson.
12217
12218 2009-05-21  Bruno Haible  <bruno@clisp.org>
12219
12220         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12221         AC_CACHE_VAL.
12222
12223 2009-05-20  Bruno Haible  <bruno@clisp.org>
12224
12225         Make zeroptr.h work on mingw.
12226         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12227         mprotect.
12228         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12229         * modules/memchr2-tests (configure.ac): Likewise.
12230         * modules/memcmp-tests (configure.ac): Likewise.
12231         * modules/memmem-tests (configure.ac): Likewise.
12232         * modules/memrchr-tests (configure.ac): Likewise.
12233         Reported by Simon Josefsson.
12234
12235 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12236
12237         * tests/test-glob.c: Include string.h for strcmp prototype.
12238
12239 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12240
12241         * modules/getdelim (Depends-on): Add explicit stdint, although it
12242         was implicitly already pulled in via realloc-posix.
12243         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12244
12245 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12246
12247         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12248         G. Christensen" <tgc@jupiterrise.com>.
12249         * m4/sys_socket_h.m4: Check for sa_family_t.
12250         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12251         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12252         * tests/test-sys_socket.c: Check that sa_family_t works.
12253
12254 2009-05-18  Eric Blake  <ebb9@byu.net>
12255
12256         maint.mk: allow gnulib_dir in VPATH build
12257         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12258
12259 2009-05-15  Jim Meyering  <meyering@redhat.com>
12260
12261         maint.mk: Give gnulib_dir a default definition.
12262         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12263         Thus, most packages no longer need to specify this variable in cfg.mk
12264
12265 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12266
12267         rename.m4: fix typos that would make non-mingw cross-configure fail
12268         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12269
12270 2009-05-13  Eric Blake  <ebb9@byu.net>
12271
12272         mmap-anon: avoid out-of-order autoconf expansion
12273         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12274         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12275         * modules/memchr-tests (Depends-on): Add extensions.
12276         * modules/memchr2-tests (Depends-on): Add extensions.
12277         * modules/memcmp-tests (Depends-on): Add extensions.
12278         * modules/memmem-tests (Depends-on): Add extensions.
12279         * modules/memrchr-tests (Depends-on): Add extensions.
12280
12281 2009-05-13  Bruno Haible  <bruno@clisp.org>
12282
12283         Make some tests ISO C 99 compliant.
12284         * tests/zerosize-ptr.h: New file.
12285         * tests/test-memchr.c: Include zerosize-ptr.h.
12286         (main): Use a zero-size object pointer instead of NULL.
12287         * tests/test-memchr2.c: Include zerosize-ptr.h.
12288         (main): Use a zero-size object pointer instead of NULL.
12289         * tests/test-memcmp.c: Include zerosize-ptr.h.
12290         (main): Use a zero-size object pointer instead of NULL.
12291         * tests/test-memmem.c: Include zerosize-ptr.h.
12292         (main): Use a zero-size object pointer instead of NULL.
12293         * tests/test-memrchr.c: Include zerosize-ptr.h.
12294         (main): Use a zero-size object pointer instead of NULL.
12295         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12296         m4/mmap-anon.m4.
12297         (Depends-on): Add getpagesize.
12298         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12299         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12300         m4/mmap-anon.m4.
12301         (Depends-on): Add getpagesize.
12302         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12303         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12304         m4/mmap-anon.m4.
12305         (Depends-on): Add getpagesize.
12306         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12307         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12308         m4/mmap-anon.m4.
12309         (Depends-on): Add getpagesize.
12310         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12311         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12312         m4/mmap-anon.m4.
12313         (Depends-on): Add getpagesize.
12314         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12315
12316 2009-05-12  Bruno Haible  <bruno@clisp.org>
12317
12318         Tests for module 'alignof'.
12319         * modules/alignof-tests: New file.
12320         * tests/test-alignof.c: New file.
12321
12322 2009-05-12  Bruno Haible  <bruno@clisp.org>
12323
12324         Fix alignof macro.
12325         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12326         vendor compilers that are always correct.
12327
12328 2009-05-12  Bruno Haible  <bruno@clisp.org>
12329
12330         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12331         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12332         not whether its fully works.
12333
12334 2009-05-12  Bruno Haible  <bruno@clisp.org>
12335
12336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12337
12338 2009-05-12  Jim Meyering  <meyering@redhat.com>
12339
12340         * top/maint.mk: Adjust backslash alignment.
12341
12342 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12343
12344         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12345
12346 2009-05-11  Eric Blake  <ebb9@byu.net>
12347
12348         argp: avoid undefined behavior
12349         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12350         macros.
12351
12352 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12353
12354         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12355         user.name to prevent git commit from complaining.
12356
12357 2009-05-10  Bruno Haible  <bruno@clisp.org>
12358
12359         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12360         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12361         it rewrites every file name only once.
12362         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12363
12364 2009-05-08  Bruno Haible  <bruno@clisp.org>
12365
12366         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12367         instead of 'max'.
12368
12369 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12370
12371         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12372         sockaddr_storage test.
12373
12374 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12375
12376         * modules/sys_socket (Makefile.am): Substitute
12377         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12378         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12379         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12380         * tests/test-sys_socket.c: Check sockaddr_storage.
12381
12382 2009-05-08  Bruno Haible  <bruno@clisp.org>
12383
12384         New module 'alignof'.
12385         * lib/alignof.h: New file.
12386         * modules/alignof: New file.
12387
12388 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12389             Bruno Haible  <bruno@clisp.org>
12390
12391         Fix test-file-has-acl on FreeBSD.
12392         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12393         mask is implicitly added.
12394         * tests/test-file-has-acl.c: Include <signal.h>.
12395         (main): Terminate the test after 5 seconds.
12396         * modules/acl-tests (configure.ac): Check for alarm function.
12397
12398 2009-05-04  Bruno Haible  <bruno@clisp.org>
12399
12400         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12401         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12402         * modules/errno (configure.ac): Drop AC_REQUIRE.
12403         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12404         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12405
12406 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12407
12408         * modules/glob-tests: New module.
12409         * tests/test-glob.c: Add.
12410
12411 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12412
12413         * modules/fnmatch-tests: New module.
12414         * tests/test-fnmatch.c: Add.
12415
12416 2009-05-04  Eric Blake  <ebb9@byu.net>
12417
12418         maint: make the new no-submodule-changes rule VPATH-safe
12419         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12420
12421 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12422             Bruno Haible  <bruno@clisp.org>
12423
12424         acl: Fix infinite loop on FreeBSD.
12425         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12426         of return value from acl_get_entry.
12427         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12428         Likewise.
12429
12430 2009-05-03  Bruno Haible  <bruno@clisp.org>
12431
12432         * lib/acl-internal.h (acl_entries): Clarify return value.
12433         * lib/acl_entries.c (acl_entries): Likewise.
12434
12435 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12436
12437         Bug fix in acl module.
12438         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12439
12440 2009-05-03  Bruno Haible  <bruno@clisp.org>
12441
12442         Create gperf-generated file in the source dir, not in the build dir.
12443         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12444         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12445         * modules/unicase/locale-language (unicase/locale-languages.h):
12446         Likewise.
12447         * modules/unicase/special-casing (unicase/special-casing-table.h):
12448         Likewise.
12449         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12450         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12451         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12452         Reported by Ralf Wildenhues.
12453
12454 2009-05-03  Bruno Haible  <bruno@clisp.org>
12455
12456         * modules/fnmatch (Description, configure.ac): Taken from
12457         fnmatch-posix.
12458         * modules/fnmatch-posix: Turn into a symbolic reference to the
12459         'fnmatch' module, and deprecate.
12460         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12461
12462 2009-05-03  Bruno Haible  <bruno@clisp.org>
12463
12464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12465         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12466         Reported by Ralf Wildenhues.
12467
12468 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12469
12470         * m4/fnmatch.m4: Fix fnmatch re-define.
12471
12472 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12473
12474         priv-set: new module and tests; adapt write-any-file
12475         * lib/priv-set.c: New file.
12476         * lib/priv-set.h: New file.
12477         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12478         * lib/write-any-file.c: Simplify by using priv-set module.
12479         * m4/priv-set.m4: New file.
12480         * modules/priv-set: New file.
12481         * modules/unlinkdir: Add dependency on priv-set module.
12482         * modules/write-any-file: Likewise.
12483
12484         Tests for module 'priv-set'.
12485         * modules/priv-set-tests: New file.
12486         * tests/test-priv-set.c: New file.
12487
12488 2009-05-03  Jim Meyering  <meyering@redhat.com>
12489             Bruno Haible  <bruno@clisp.org>
12490
12491         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12492         use the converted UTF-8 variant of the name instead.
12493
12494 2009-05-03  Jim Meyering  <meyering@redhat.com>
12495
12496         tests: tighten some getdate tests
12497         * tests/test-getdate.c (main): Tighten tests: require equality,
12498         not just greater than.  Set TZ envvar to UTC0.
12499
12500 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12501
12502         getdate: correctly interpret "next monday" when run on a Monday
12503         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12504         that e.g., "next tues" (when run on a tuesday) results in a date
12505         that is one week in the future, and not today's date.
12506         I.e., add a week when the wday is the same as the current one.
12507         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12508         and earlier by Martin Bernreuther and Jan Minář.
12509         * tests/test-getdate.c (main): Check that "next DAY" is always in
12510         the future and that "last DAY" is always in the past.
12511
12512 2009-05-02  Jim Meyering  <meyering@redhat.com>
12513
12514         build: ensure that a release build fails when a submodule is unclean
12515         * top/maint.mk (no-submodule-changes): New rule.
12516         (alpha beta major): Depend on it.
12517
12518 2009-05-02  Bruno Haible  <bruno@clisp.org>
12519
12520         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12521         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12522         shell variable gl_fnmatch_required to detect which variant is
12523         requested.
12524         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12525         gl_FUNC_FNMATCH_POSIX.
12526         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12527         exclude fnmatch-posix.
12528
12529 2009-05-02  Bruno Haible  <bruno@clisp.org>
12530
12531         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12532         * modules/mbsrtowcs (License): Change to LGPLv2+.
12533         * modules/strnlen1 (License): Likewise.
12534         Reported by Simon Josefsson.
12535
12536 2009-05-02  Bruno Haible  <bruno@clisp.org>
12537
12538         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12539         "cross".
12540         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12541         gnulib-tool was called with option --source-base=lib.
12542
12543 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12544
12545         Use automake *-local hooks without commands, for extensibility.
12546         * modules/localcharset (Makefile.am): Rename install-exec-local
12547         rule to install-exec-localcharset, and make it a prerequisite of
12548         install-exec-local.  Likewise, rename the uninstall-local rule to
12549         uninstall-localcharset, and make it a prerequisite of the former.
12550
12551 2009-05-01  Bruno Haible  <bruno@clisp.org>
12552
12553         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12554         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12555         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12557         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12558         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12559         m4/locale-zh.m4, m4/codeset.m4.
12560
12561         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12562         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12563         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12564         m4/locale-zh.m4.
12565
12566         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12567         REPLACE_WCRTOMB if mbstate_t must be replaced.
12568         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12569         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12570
12571 2009-05-01  Bruno Haible  <bruno@clisp.org>
12572
12573         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12574         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12575         dngettext, dcngettext, textdomain, bindtextdomain,
12576         bind_textdomain_codeset): Undefine before redefining.
12577
12578 2009-04-30  Bruno Haible  <bruno@clisp.org>
12579
12580         Fix bug introduced on 2009-04-25.
12581         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12582         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12583         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12584         is defined.
12585         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12586         is defined.
12587         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12588         is defined.
12589         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12590
12591 2009-04-28  Bruno Haible  <bruno@clisp.org>
12592
12593         Comment tweaks.
12594         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12595         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12596         * lib/unicase.h (u*_casexfrm): Likewise.
12597         Reported by Paolo Bonzini.
12598
12599 2009-04-28  Bruno Haible  <bruno@clisp.org>
12600
12601         Fix a compilation error.
12602         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12603         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12604         Reported by Jim Meyering.
12605
12606 2009-04-27  Bruno Haible  <bruno@clisp.org>
12607
12608         New module 'libunistring'.
12609         * modules/libunistring: New file.
12610         * m4/libunistring.m4: New file.
12611         * MODULES.html.sh (Unicode string functions): Add it.
12612
12613 2009-04-27  Eric Blake  <ebb9@byu.net>
12614
12615         maint.mk: allow package-specific header to provide <config.h>
12616         * top/maint.mk (sc_require_config_h): New variable.
12617         (sc_require_config_h, sc_require_config_h_first): Use it.
12618
12619 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12620
12621         * top/maint.mk (sc_avoid_if_before_free): Except
12622         useless-if-before-free script.
12623
12624 2009-04-27  Eric Blake  <ebb9@byu.net>
12625
12626         maintainer-makefile: depend on all required helper scripts
12627         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12628         useless-if-before-free.
12629         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12630         version, rather than assuming gnulib checkout is available.
12631         Reported by Simen Josefsson.
12632
12633 2009-04-26  Bruno Haible  <bruno@clisp.org>
12634
12635         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12636         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12637         "../" or "..".
12638
12639 2009-04-26  Bruno Haible  <bruno@clisp.org>
12640
12641         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12642         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12643         AC_LIB_HAVE_LINKFLAGS.
12644
12645 2009-04-26  Bruno Haible  <bruno@clisp.org>
12646
12647         Simplify calling convention of u*_conv_from_encoding.
12648         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12649         u32_conv_from_encoding): Expect a resultbuf argument and return the
12650         result directly as a pointer.
12651         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12652         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12653         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12654         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12655         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12656         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12657         Update.
12658         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12659         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12660         * lib/vasnprintf.c (VASNPRINTF): Update.
12661         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12662         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12663         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12664         * NEWS: Mention the change.
12665
12666 2009-04-26  Bruno Haible  <bruno@clisp.org>
12667
12668         Simplify calling convention of u*_conv_to_encoding.
12669         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12670         u32_conv_to_encoding): Expect a resultbuf argument and return the
12671         result directly as a pointer.
12672         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12673         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12674         freeing scaled_offsets if mem_iconveha failed.
12675         * lib/unicase/u-casexfrm.h (FUNC): Update.
12676         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12677         * lib/vasnprintf.c (VASNPRINTF): Update.
12678         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12679         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12680         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12681         * NEWS: Mention the change.
12682
12683 2009-04-26  Bruno Haible  <bruno@clisp.org>
12684
12685         Avoid test failures on AIX and OSF/1.
12686         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12687         malloc(0).
12688         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12689         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12690         Likewise.
12691         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12692         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12693         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12694         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12695         * doc/posix-functions/malloc.texi: Document the portability problem
12696         related to malloc(0).
12697
12698 2009-04-26  Bruno Haible  <bruno@clisp.org>
12699
12700         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12701         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12702         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12703
12704 2009-04-25  Bruno Haible  <bruno@clisp.org>
12705
12706         Avoid link error when creating a namespace clean library.
12707         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12708         as macro with arguments if already defined as an alias.
12709         * lib/signbitf.c (gl_signbitf): Don't undefine.
12710         * lib/signbitd.c (gl_signbitd): Don't undefine.
12711         * lib/signbitl.c (gl_signbitl): Don't undefine.
12712
12713 2009-04-25  Jim Meyering  <meyering@redhat.com>
12714
12715         vc-list-files: fix another quoting bug
12716         * build-aux/vc-list-files: Avoid sed backslash expansion
12717         of pathological directory names.
12718
12719 2009-04-25  Eric Blake  <ebb9@byu.net>
12720
12721         vc-list-files: fix shell quoting error
12722         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12723         timestamp.
12724
12725 2009-04-25  Jim Meyering  <meyering@redhat.com>
12726
12727         vc-list-files: restore lost functionality with subdir argument
12728         * build-aux/vc-list-files: When given a non-"." sub-directory
12729         argument, substitute the $dir/ prefix back onto each resulting name.
12730         Otherwise, coreutils' root_tests check would fail.
12731
12732 2009-04-24  Eric Blake  <ebb9@byu.net>
12733
12734         vc-list-files: ignore git symlinks
12735         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12736         than ls-files, to ignore git symlinks.
12737
12738         maint.mk: import improvements from m4
12739         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12740         (move_if_change): Delete unused macro.
12741         (news-date-check, vc-diff-check): Support VPATH builds.
12742         (announcement): Likewise.  Split --bootstrap-tools list...
12743         (boostrap-tools): ...into separate list, which can be overridden
12744         in cfg.mk.
12745         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12746         requiring dependency on useless-if-before-free module.
12747         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12748         Support VPATH builds.
12749
12750 2009-04-24  Jim Meyering  <meyering@redhat.com>
12751
12752         maint.mk: remove coreutils-specific rules and variables
12753         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12754         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12755         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12756
12757         maint.mk: remove obsolete rule
12758         * top/maint.mk (rel-check): Remove rule.
12759         (WGET, WGETFLAGS): Remove now-unused variables.
12760
12761 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12762
12763         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12764         consistency.
12765
12766         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12767         '$(PATH_SEPARATOR)' instead of ':'.
12768
12769 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12770
12771         * lib/getopt1.c (main): Use 'const' for static array.
12772
12773 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12774
12775         * top/maint.mk: Sync with coreutils.
12776         * NEWS: Explain incompatibilities.
12777
12778 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12779             Bruno Haible  <bruno@clisp.org>
12780
12781         Fix cross-compilation results.
12782         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12783         statement, as third argument of AC_TRY_RUN.
12784         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12785         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12786         Likewise.
12787         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12788         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12789         Likewise.
12790         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12791         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12792         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12793
12794 2009-04-20  Bruno Haible  <bruno@clisp.org>
12795
12796         Avoid test failure on mingw.
12797         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12798
12799 2009-04-20  Bruno Haible  <bruno@clisp.org>
12800
12801         Avoid compilation error on mingw.
12802         * modules/localename-tests (Depends-on): Add locale.
12803
12804 2009-04-19  Bruno Haible  <bruno@clisp.org>
12805
12806         Support for building a shared library on Windows platforms.
12807         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12808         (main): Test the presence of UNINORM_NFC here.
12809         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12810         (main): Test the presence of UNINORM_NFD here.
12811         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12812         (main): Test the presence of UNINORM_NFKC here.
12813         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12814         (main): Test the presence of UNINORM_NFKD here.
12815
12816 2009-04-19  Bruno Haible  <bruno@clisp.org>
12817
12818         Avoid a compiler warning.
12819         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12820         Change type of variable 'sequence'.
12821
12822 2009-04-19  Bruno Haible  <bruno@clisp.org>
12823
12824         * modules/configmake (Makefile.am): When the contents of configmake.h
12825         does not change, arrange to preserve its modification time.
12826
12827 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12828
12829         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12830         gettext domain.
12831
12832 2009-04-16  Jim Meyering  <meyering@redhat.com>
12833
12834         useless-if-before-free: improve conversion code
12835         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12836         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12837
12838 2009-04-14  Bruno Haible  <bruno@clisp.org>
12839
12840         * modules/fcntl (Depends-on): Add extensions.
12841         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12842
12843 2009-04-12  Ben Pfaff  <blp@gnu.org>
12844
12845         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12846         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12847
12848 2009-03-20  Ben Pfaff  <blp@gnu.org>
12849
12850         Make rename replace existing destinations on Windows.
12851         * m4/rename.m4: Add test for Mingw.
12852         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12853         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12854         * doc/posix-functions/rename.texi: Document.
12855
12856 2009-04-10  Bruno Haible  <bruno@clisp.org>
12857
12858         New include file "iconveh.h".
12859         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12860         * lib/striconveh.h: Include it.
12861         (enum iconv_ilseq_handler): Remove definition.
12862         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12863         striconveh.h.
12864         * lib/striconveha.c: Include striconveh.h.
12865         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12866         * modules/striconveh (Files): Add lib/iconveh.h.
12867         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12868         lib/striconveh.h.
12869
12870 2009-04-10  Bruno Haible  <bruno@clisp.org>
12871
12872         * lib/uniconv.h: Update comment.
12873
12874 2009-04-10  Bruno Haible  <bruno@clisp.org>
12875
12876         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12877         always.
12878         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12879         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12880         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12881         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12882         "unistring-notinline.h", so that the function gets defined always.
12883         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12884         * lib/unistr/u8-uctomb.c: Likewise.
12885         * lib/unistr/u16-mbtouc.c: Likewise.
12886         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12887         * lib/unistr/u16-uctomb.c: Likewise.
12888         * lib/unistr/u32-mbtouc.c: Likewise.
12889         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12890         * lib/unistr/u32-uctomb.c: Likewise.
12891
12892 2009-04-10  Bruno Haible  <bruno@clisp.org>
12893
12894         Mark 'utime' obsolete.
12895         * modules/utime (Status, Notice): New sections.
12896         Suggested by Jim Meyering.
12897
12898         Fix cross-compile guess for utime test.
12899         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12900         autoconf.
12901         * doc/posix-functions/utime.texi: Give more precisions.
12902         Reported by Jan <ipif@ymail.com>.
12903
12904 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
12905
12906         filevercmp: correct today's change
12907         * lib/filevercmp.c: Also handle coreutils' test inputs.
12908         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12909
12910         Fix regression in 'filevercmp' module. Thanks Sven Joachim
12911         for reporting it.
12912         * lib/filevercmp.c: Special handle for "", "." and "..".
12913         * tests/test-filevercmp.c: Enlarge the set suite.
12914
12915 2009-04-07  Jim Meyering  <meyering@redhat.com>
12916
12917         useless-if-before-free: show how to remove braced useless free, too
12918         * build-aux/useless-if-before-free: still only in a comment, though.
12919
12920 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
12921
12922         maint.mk: import changes to syntax-check macros from coreutils
12923         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12924         Use them in the relevant macros.
12925
12926 2009-04-06  Bruno Haible  <bruno@clisp.org>
12927
12928         Fix unportable use of bit-fields.
12929         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12930         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12931         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12932
12933 2009-04-06  Bruno Haible  <bruno@clisp.org>
12934
12935         Avoid test failures on AIX and OSF/1.
12936         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12937         that malloc(0) = NULL.
12938         * tests/unicase/test-u8-tolower.c (check): Likewise.
12939         * tests/unicase/test-u8-totitle.c (check): Likewise.
12940         * tests/unicase/test-u8-toupper.c (check): Likewise.
12941         * tests/unicase/test-u16-casefold.c (check): Likewise.
12942         * tests/unicase/test-u16-tolower.c (check): Likewise.
12943         * tests/unicase/test-u16-totitle.c (check): Likewise.
12944         * tests/unicase/test-u16-toupper.c (check): Likewise.
12945         * tests/unicase/test-u32-casefold.c (check): Likewise.
12946         * tests/unicase/test-u32-tolower.c (check): Likewise.
12947         * tests/unicase/test-u32-totitle.c (check): Likewise.
12948         * tests/unicase/test-u32-toupper.c (check): Likewise.
12949         * tests/uninorm/test-u8-nfc.c (check): Likewise.
12950         * tests/uninorm/test-u8-nfd.c (check): Likewise.
12951         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12952         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12953         * tests/uninorm/test-u16-nfc.c (check): Likewise.
12954         * tests/uninorm/test-u16-nfd.c (check): Likewise.
12955         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12956         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12957         * tests/uninorm/test-u32-nfc.c (check): Likewise.
12958         * tests/uninorm/test-u32-nfd.c (check): Likewise.
12959         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12960         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12961
12962 2009-04-05  Bruno Haible  <bruno@clisp.org>
12963
12964         Work around an autoconf limitation.
12965         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12966         comment line if it would be longer than 3 KB.
12967
12968 2009-04-05  Bruno Haible  <bruno@clisp.org>
12969
12970         Avoid test failure with libiconv-1.13.
12971         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12972         of the expected test results.
12973
12974 2009-04-05  Bruno Haible  <bruno@clisp.org>
12975
12976         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12977         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12978         that it should be installed.
12979
12980 2009-04-05  Bruno Haible  <bruno@clisp.org>
12981
12982         * gnulib-tool: New option --copy-file.
12983         (func_usage): Document it.
12984         (func_dest_tmpfilename): Moved out of func_import.
12985         (func_add_file, func_update_file): New functions, extracted from
12986         func_import.
12987         (func_import): Update.
12988
12989 2009-04-05  Karl Berry  <karl@gnu.org>
12990
12991         * README: prominently mention gnulib-tool.
12992         Rearrange sections so getting the code is near the top.
12993
12994 2009-04-05  Bruno Haible  <bruno@clisp.org>
12995
12996         * lib/unicase.h: Mention u*_cmp2.
12997         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12998         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12999         * lib/unicase/ulc-casecmp.c: Likewise.
13000         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13001         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13002         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13003         unistr/u8-cmp.
13004         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13005         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13006         unistr/u16-cmp.
13007         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13008         unistr/u32-cmp.
13009
13010         * lib/uninorm.h: Mention u*_cmp2.
13011         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13012         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13013         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13014         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13015         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13016         unistr/u8-cmp.
13017         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13018         unistr/u16-cmp.
13019         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13020         unistr/u32-cmp.
13021
13022         New module 'unistr/u32-cmp2'.
13023         * lib/unistr/u32-cmp2.c: New file.
13024         * modules/unistr/u32-cmp2: New file.
13025
13026         New module 'unistr/u16-cmp2'.
13027         * lib/unistr/u16-cmp2.c: New file.
13028         * modules/unistr/u16-cmp2: New file.
13029
13030         New module 'unistr/u8-cmp2'.
13031         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13032         * lib/unistr/u8-cmp2.c: New file.
13033         * lib/unistr/u-cmp2.h: New file.
13034         * modules/unistr/u8-cmp2: New file.
13035
13036 2009-04-05  Bruno Haible  <bruno@clisp.org>
13037
13038         * lib/unictype.h (uc_property_is_valid): New macro.
13039         * tests/unictype/test-pr_byname.c (main): Use it.
13040
13041         * lib/unistr.h: Doc fixes.
13042         * lib/uniconv.h: Doc fixes.
13043         * lib/unictype.h: Doc fixes.
13044
13045 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13046
13047         Port coreutils 7.2 to Solaris 8.
13048
13049         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13050         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13051         for Solaris 8.  This is a bit of a hack, as it means it's the
13052         caller's responsibility to add -lnsl if needed, but most likely it
13053         won't be needed since only getaddrinfo uses this and getaddrinfo
13054         isn't needed on Solaris 8.
13055
13056         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13057         problem to Solaris 8 encountered with coreutils 7.2, which
13058         resulted in a message "fnmatch.c:292: warning: passing argument 4
13059         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13060         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13061
13062 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13063
13064         * m4/ld-version-script.m4: Add FIXME comment.
13065
13066 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13067
13068         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13069         SOVERSION variable.
13070
13071 2009-04-02  Bruno Haible  <bruno@clisp.org>
13072
13073         * Makefile (info, html, dvi, pdf): Combine the rules.
13074         Suggested by Jim Meyering.
13075
13076 2009-04-01  Bruno Haible  <bruno@clisp.org>
13077
13078         * Makefile (info, html, dvi, pdf): New targets.
13079         Reported by Reuben Thomas <rrt@sc3d.org>.
13080
13081 2009-04-01  Bruno Haible  <bruno@clisp.org>
13082
13083         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13084         can be put into PATH.
13085         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13086
13087 2009-04-01  Bruno Haible  <bruno@clisp.org>
13088
13089         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13090
13091 2009-04-01  Bruno Haible  <bruno@clisp.org>
13092
13093         Rename module 'visibility'.
13094         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13095         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13096         * doc/gnulib.texi: Update.
13097         * MODULES.html.sh (Misc): Update.
13098         * NEWS: Mention the change.
13099
13100 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13101
13102         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13103         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13104         Eric Blake <ebb9@byu.net> for review.
13105         * MODULES.html.sh: Add lib-msvc-compat.
13106         * doc/gnulib.texi: Link to new section.
13107         * m4/ld-output-def.m4: New file.
13108         * doc/ld-output-def.texi: New file.
13109
13110 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13111
13112         Rename ld-version-script to lib-symbol-versions.  Suggested by
13113         Bruno Haible <bruno@clisp.org>.
13114         * modules/ld-version-script: Renamed to lib-symbol-versions.
13115         * doc/ld-version-script.texi: Fix module name.
13116         * MODULES.html.sh: Add lib-symbol-versions.
13117
13118 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13119
13120         * modules/u64-tests: New file.
13121         * tests/test-u64.c: New file.
13122
13123 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13124
13125         * MODULES.html.sh: Mention u64.
13126         * modules/u64: New module.
13127         * modules/crypto/sha512: Depend on u64 module instead of providing
13128         u64.h.
13129
13130 2009-03-27  Eric Blake  <ebb9@byu.net>
13131
13132         test-strerror: make debugging EAI_SYSTEM easier
13133         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13134         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13135         failure was EAI_SYSTEM.
13136
13137 2009-03-25  Bruno Haible  <bruno@clisp.org>
13138
13139         Fix a problem with --enable-relocatable on Solaris 7.
13140         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13141         since 2008-02-24.
13142
13143 2009-03-25  Eric Blake  <ebb9@byu.net>
13144
13145         test-sockets: avoid gcc warning
13146         * tests/test-sockets.c (main): Silence compiler warning.
13147
13148 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13149
13150         New modules nproc, pthread, contributed by Glen Lenker.
13151
13152         * MODULES.html.sh: Add pthread, nproc.
13153         * lib/nproc.c: New file.
13154         * lib/nproc.h: New file.
13155         * lib/pthread.in.h: New file.
13156         * m4/pthread.m4: New file.
13157         * modules/nproc: New file.
13158         * modules/pthread: New file.
13159
13160 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13161
13162         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13163         New variable.
13164
13165 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13166
13167         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13168         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13169         * tests/test-filevercmp.c: Add tests for backup suffixes.
13170
13171 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13172
13173         * modules/stdlib (Depends-on): Add stdint, needed when defining
13174         struct random_data on, for example, HP-UX 10.20.  Reported by
13175         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13176
13177 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13178
13179         * lib/readline.c (readline): Call fflush on stdout after printing
13180         prompt.
13181
13182 2009-03-20  Bruno Haible  <bruno@clisp.org>
13183
13184         Remove dependency from 'close' module to -lws2_32 on native Windows.
13185         * lib/close-hook.h: New file.
13186         * lib/close-hook.c: New file.
13187         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13188         w32sock.h.
13189         (_gl_close_fd_maybe_socket): Remove function.
13190         (rpl_close): Invoke execute_all_close_hooks instead of
13191         _gl_close_fd_maybe_socket.
13192         * lib/sockets.c: Include close-hook.h, w32sock.h.
13193         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13194         (close_sockets_hook): New variable.
13195         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13196         (gl_sockets_cleanup): Unregister it.
13197         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13198         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13199         * modules/close-hook: New file.
13200         * modules/close (Files): Remove lib/w32sock.h.
13201         (Depends-on): Add close-hook.
13202         (Link): Remove section.
13203         * modules/sockets (Files): Add lib/w32sock.h.
13204         (Depends-on): Add close-hook.
13205         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13206         invocation.
13207         * NEWS: Mention that LIB_CLOSE is gone.
13208
13209 2009-03-23  Eric Blake  <ebb9@byu.net>
13210
13211         signal-tests: test previous patch
13212         * tests/test-signal.c: New file.
13213         * modules/signal-tests: Likewise.
13214
13215         signal.h: always support 'volatile sig_atomic_t'
13216         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13217         (gl_SIGNAL_H_DEFAULTS): Add a default.
13218         * modules/signal (Makefile.am): Substitute if needed.
13219         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13220         users can blindly add volatile.
13221         * doc/posix-headers/signal.texi (signal.h): Document it.
13222         Reported by Matthew Woehlke.
13223
13224 2009-03-23  Jim Meyering  <meyering@redhat.com>
13225
13226         pathmax: PATH_MAX: use pathconf only when available
13227         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13228         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13229         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13230         This avoids a link failure in a PSP cross-compilation environment
13231         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13232
13233         * lib/vasnprintf.c (divide): Fix typo in comment.
13234
13235 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13236
13237         * gnulib-tool (func_filter_filelist): Fix comment.
13238
13239 2009-03-20  Bruno Haible  <bruno@clisp.org>
13240
13241         Make sockets.h self-contained.
13242         * lib/sockets.c: Include sockets.h first.
13243         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13244
13245 2009-03-19  Eric Blake  <ebb9@byu.net>
13246
13247         doc: mention more functions added in cygwin 1.7.0
13248         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13249         addition.
13250         * doc/posix-functions/log2f.texi: Likewise.
13251
13252 2009-03-19  Jim Meyering  <meyering@redhat.com>
13253
13254         fsusage: avoid syntax error due to statement-before-declaration
13255         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13256         after all declarations.  Reported by Matthew Woehlke in
13257         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13258
13259 2009-03-18  Eric Blake  <ebb9@byu.net>
13260
13261         build-aux/compile: sync from automake
13262         * build-aux/compile: New file, from automake.
13263         * config/srclist.txt: Mention build-aux/compile.
13264
13265 2009-03-17  Bruno Haible  <bruno@clisp.org>
13266
13267         * lib/git-merge-changelog.c: Fix typo in comment.
13268         Reported by Reuben Thomas <rrt@sc3d.org>.
13269
13270 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13271
13272         * m4/regex.m4: update and improve help for
13273         --without-included-regex.
13274
13275 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13276
13277         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13278         failure on missing include files.
13279
13280 2009-03-17  Eric Blake  <ebb9@byu.net>
13281
13282         doc: mention more functions added in cygwin 1.7.0
13283         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13284         addition.
13285         * doc/posix-functions/fwscanf.texi: Likewise.
13286         * doc/posix-functions/swprintf.texi: Likewise.
13287         * doc/posix-functions/swscanf.texi: Likewise.
13288         * doc/posix-functions/vfwprintf.texi: Likewise.
13289         * doc/posix-functions/vfwscanf.texi: Likewise.
13290         * doc/posix-functions/vswprintf.texi: Likewise.
13291         * doc/posix-functions/vswscanf.texi: Likewise.
13292         * doc/posix-functions/vwprintf.texi: Likewise.
13293         * doc/posix-functions/vwscanf.texi: Likewise.
13294         * doc/posix-functions/wcscasecmp.texi: Likewise.
13295         * doc/posix-functions/wcsdup.texi: Likewise.
13296         * doc/posix-functions/wcsftime.texi: Likewise.
13297         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13298         * doc/posix-functions/wprintf.texi: Likewise.
13299         * doc/posix-functions/wscanf.texi: Likewise.
13300         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13301
13302 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13303
13304         maint.mk: really add $(AM_MAKEFLAGS)
13305         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13306         was inadvertently omitted in the last commit.
13307         Spotted by Bruno Haible.
13308
13309         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13310         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13311         $(AM_MAKEFLAGS)' rather than plain `make'.
13312
13313         gnulib-tool: execute $MAKE not make
13314         * gnulib-tool: Default $MAKE to 'make'.
13315         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13316         than make.  Initialize $MAKE in the do-autobuild script.
13317
13318         gnulib-tool: use $MAKE not make in generated files
13319         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13320         make, in generated files.  Initialize $MAKE in the do-autobuild
13321         script.
13322
13323         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13324
13325         GNUmakefile: disable parallelism only for multiple, recursive targets
13326         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13327         additions in the Makefile.
13328         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13329         by Automake.
13330         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13331         are listed on the command line and at least one of them is
13332         listed in $(ALL_RECURSIVE_TARGETS).
13333
13334 2009-03-14  Bruno Haible  <bruno@clisp.org>
13335
13336         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13337         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13338         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13339         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13340         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13341         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13342         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13343         unistr/u8-uctomb.
13344         * modules/unistr/u8-strchr (Depends-on): Likewise.
13345         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13346         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13347         unistr/u16-uctomb.
13348         * modules/unistr/u16-strchr (Depends-on): Likewise.
13349         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13350
13351 2009-03-12  Bruno Haible  <bruno@clisp.org>
13352
13353         Work around select() bug on Interix 3.5.
13354         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13355         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13356         * m4/select.m4: New file.
13357         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13358         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13359         * modules/select (Files): Add m4/select.m4.
13360         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13361         * modules/nanosleep (Depends-on): Add select.
13362         * modules/poll (Depends-on): Likewise.
13363         * doc/posix-functions/select.texi: Mention the Interix bug.
13364         Reported by Markus Duft <mduft@gentoo.org>.
13365
13366         * lib/select.c: Renamed from lib/winsock-select.c.
13367         * modules/select (Files): Add lib/select.c, remove
13368         lib/winsock-select.c.
13369         (configure.ac): Update.
13370
13371 2009-03-12  Jim Meyering  <meyering@redhat.com>
13372
13373         avoid gcc warnings about unused macro definitions
13374         * lib/readtokens.c (STREQ): Remove unused definition.
13375         * lib/xmalloc.c (SIZE_MAX): Likewise.
13376         * lib/openat-die.c (N_): Likewise.
13377         * lib/mountlist.c (SIZE_MAX): Remove definition.
13378         Instead, include <stdint.h>.
13379         * lib/readutmp.c: Likewise.
13380         * modules/readutmp (Depends-on): Add stdint.
13381         * modules/mountlist (Depends-on): Add stdint.
13382         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13383
13384 2009-03-10  Bruno Haible  <bruno@clisp.org>
13385
13386         Tests for module 'mbmemcasecoll'.
13387         * modules/mbmemcasecoll-tests: New file.
13388         * tests/test-mbmemcasecoll1.sh: New file.
13389         * tests/test-mbmemcasecoll2.sh: New file.
13390         * tests/test-mbmemcasecoll3.sh: New file.
13391         * tests/test-mbmemcasecoll.c: New file.
13392
13393         New module 'mbmemcasecoll'.
13394         * lib/mbmemcasecoll.h: New file.
13395         * lib/mbmemcasecoll.c: New file.
13396         * modules/mbmemcasecoll: New file.
13397
13398         * tests/test-mbmemcasecmp.h: New file, extracted from
13399         tests/test-mbmemcasecmp.c.
13400         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13401         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13402         (main): Update.
13403         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13404
13405 2009-03-09  Bruno Haible  <bruno@clisp.org>
13406
13407         Tests for module 'mbmemcasecmp'.
13408         * modules/mbmemcasecmp-tests: New file.
13409         * tests/test-mbmemcasecmp1.sh: New file.
13410         * tests/test-mbmemcasecmp2.sh: New file.
13411         * tests/test-mbmemcasecmp3.sh: New file.
13412         * tests/test-mbmemcasecmp.c: New file.
13413
13414         New module 'mbmemcasecmp'.
13415         * lib/mbmemcasecmp.h: New file.
13416         * lib/mbmemcasecmp.c: New file.
13417         * modules/mbmemcasecmp: New file.
13418
13419 2009-03-09  Bruno Haible  <bruno@clisp.org>
13420
13421         Tests for module 'unicase/ulc-casecoll'.
13422         * modules/unicase/ulc-casecoll-tests: New file.
13423         * tests/unicase/test-ulc-casecoll1.sh: New file.
13424         * tests/unicase/test-ulc-casecoll2.sh: New file.
13425         * tests/unicase/test-ulc-casecoll.c: New file.
13426
13427         New module 'unicase/ulc-casecoll'.
13428         * lib/unicase.h (ulc_casecoll): New declaration.
13429         * lib/unicase/ulc-casecoll.c: New file.
13430         * modules/unicase/ulc-casecoll: New file.
13431
13432         New module 'unicase/ulc-casexfrm'.
13433         * lib/unicase.h (ulc_casexfrm): New declaration.
13434         * lib/unicase/ulc-casexfrm.c: New file.
13435         * modules/unicase/ulc-casexfrm: New file.
13436
13437 2009-03-09  Bruno Haible  <bruno@clisp.org>
13438
13439         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13440         invocations.
13441
13442         * m4/mbscasecmp.m4: Remove file.
13443         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13444         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13445
13446         * m4/mbscasestr.m4: Remove file.
13447         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13448         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13449
13450         * m4/mbschr.m4: Remove file.
13451         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13452         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13453
13454         * m4/mbscspn.m4: Remove file.
13455         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13456         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13457
13458         * m4/mbslen.m4: Remove file.
13459         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13460         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13461
13462         * m4/mbsncasecmp.m4: Remove file.
13463         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13464         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13465
13466         * m4/mbsnlen.m4: Remove file.
13467         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13468         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13469
13470         * m4/mbspbrk.m4: Remove file.
13471         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13472         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13473
13474         * m4/mbspcasecmp.m4: Remove file.
13475         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13476         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13477
13478         * m4/mbsrchr.m4: Remove file.
13479         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13480         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13481
13482         * m4/mbssep.m4: Remove file.
13483         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13484         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13485
13486         * m4/mbsspn.m4: Remove file.
13487         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13488         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13489
13490         * m4/mbsstr.m4: Remove file.
13491         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13492         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13493
13494         * m4/mbstok_r.m4: Remove file.
13495         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13496         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13497
13498         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13499
13500         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13501         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13502
13503         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13504
13505 2009-03-08  Bruno Haible  <bruno@clisp.org>
13506
13507         Tests for module 'unicase/ulc-casecmp'.
13508         * modules/unicase/ulc-casecmp-tests: New file.
13509         * tests/unicase/test-ulc-casecmp1.sh: New file.
13510         * tests/unicase/test-ulc-casecmp2.sh: New file.
13511         * tests/unicase/test-ulc-casecmp.c: New file.
13512
13513         New module 'unicase/ulc-casecmp'.
13514         * lib/unicase.h (ulc_casecmp): New declaration.
13515         * lib/unicase/ulc-casecmp.c: New file.
13516         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13517         'const SRC_UNIT *'.
13518         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13519         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13520         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13521         * modules/unicase/ulc-casecmp: New file.
13522
13523         Tests for module 'unicase/u32-is-cased'.
13524         * modules/unicase/u32-is-cased-tests: New file.
13525         * tests/unicase/test-u32-is-cased.c: New file.
13526
13527         Tests for module 'unicase/u16-is-cased'.
13528         * modules/unicase/u16-is-cased-tests: New file.
13529         * tests/unicase/test-u16-is-cased.c: New file.
13530
13531         Tests for module 'unicase/u8-is-cased'.
13532         * modules/unicase/u8-is-cased-tests: New file.
13533         * tests/unicase/test-u8-is-cased.c: New file.
13534         * tests/unicase/test-is-cased.h: New file.
13535
13536         New module 'unicase/u32-is-cased'.
13537         * lib/unicase/u32-is-cased.c: New file.
13538         * modules/unicase/u32-is-cased: New file.
13539
13540         New module 'unicase/u16-is-cased'.
13541         * lib/unicase/u16-is-cased.c: New file.
13542         * modules/unicase/u16-is-cased: New file.
13543
13544         New module 'unicase/u8-is-cased'.
13545         * lib/unicase/u8-is-cased.c: New file.
13546         * lib/unicase/u-is-cased.h: New file.
13547         * modules/unicase/u8-is-cased: New file.
13548
13549         Tests for module 'unicase/u32-is-casefolded'.
13550         * modules/unicase/u32-is-casefolded-tests: New file.
13551         * tests/unicase/test-u32-is-casefolded.c: New file.
13552
13553         Tests for module 'unicase/u16-is-casefolded'.
13554         * modules/unicase/u16-is-casefolded-tests: New file.
13555         * tests/unicase/test-u16-is-casefolded.c: New file.
13556
13557         Tests for module 'unicase/u8-is-casefolded'.
13558         * modules/unicase/u8-is-casefolded-tests: New file.
13559         * tests/unicase/test-u8-is-casefolded.c: New file.
13560         * tests/unicase/test-is-casefolded.h: New file.
13561
13562         New module 'unicase/u32-is-casefolded'.
13563         * lib/unicase/u32-is-casefolded.c: New file.
13564         * modules/unicase/u32-is-casefolded: New file.
13565
13566         New module 'unicase/u16-is-casefolded'.
13567         * lib/unicase/u16-is-casefolded.c: New file.
13568         * modules/unicase/u16-is-casefolded: New file.
13569
13570         New module 'unicase/u8-is-casefolded'.
13571         * lib/unicase/u8-is-casefolded.c: New file.
13572         * modules/unicase/u8-is-casefolded: New file.
13573
13574         Tests for module 'unicase/u32-is-titlecase'.
13575         * modules/unicase/u32-is-titlecase-tests: New file.
13576         * tests/unicase/test-u32-is-titlecase.c: New file.
13577
13578         Tests for module 'unicase/u16-is-titlecase'.
13579         * modules/unicase/u16-is-titlecase-tests: New file.
13580         * tests/unicase/test-u16-is-titlecase.c: New file.
13581
13582         Tests for module 'unicase/u8-is-titlecase'.
13583         * modules/unicase/u8-is-titlecase-tests: New file.
13584         * tests/unicase/test-u8-is-titlecase.c: New file.
13585         * tests/unicase/test-is-titlecase.h: New file.
13586
13587         New module 'unicase/u32-is-titlecase'.
13588         * lib/unicase/u32-is-titlecase.c: New file.
13589         * modules/unicase/u32-is-titlecase: New file.
13590
13591         New module 'unicase/u16-is-titlecase'.
13592         * lib/unicase/u16-is-titlecase.c: New file.
13593         * modules/unicase/u16-is-titlecase: New file.
13594
13595         New module 'unicase/u8-is-titlecase'.
13596         * lib/unicase/u8-is-titlecase.c: New file.
13597         * modules/unicase/u8-is-titlecase: New file.
13598
13599         Tests for module 'unicase/u32-is-lowercase'.
13600         * modules/unicase/u32-is-lowercase-tests: New file.
13601         * tests/unicase/test-u32-is-lowercase.c: New file.
13602
13603         Tests for module 'unicase/u16-is-lowercase'.
13604         * modules/unicase/u16-is-lowercase-tests: New file.
13605         * tests/unicase/test-u16-is-lowercase.c: New file.
13606
13607         Tests for module 'unicase/u8-is-lowercase'.
13608         * modules/unicase/u8-is-lowercase-tests: New file.
13609         * tests/unicase/test-u8-is-lowercase.c: New file.
13610         * tests/unicase/test-is-lowercase.h: New file.
13611
13612         New module 'unicase/u32-is-lowercase'.
13613         * lib/unicase/u32-is-lowercase.c: New file.
13614         * modules/unicase/u32-is-lowercase: New file.
13615
13616         New module 'unicase/u16-is-lowercase'.
13617         * lib/unicase/u16-is-lowercase.c: New file.
13618         * modules/unicase/u16-is-lowercase: New file.
13619
13620         New module 'unicase/u8-is-lowercase'.
13621         * lib/unicase/u8-is-lowercase.c: New file.
13622         * modules/unicase/u8-is-lowercase: New file.
13623
13624         Tests for module 'unicase/u32-is-uppercase'.
13625         * modules/unicase/u32-is-uppercase-tests: New file.
13626         * tests/unicase/test-u32-is-uppercase.c: New file.
13627
13628         Tests for module 'unicase/u16-is-uppercase'.
13629         * modules/unicase/u16-is-uppercase-tests: New file.
13630         * tests/unicase/test-u16-is-uppercase.c: New file.
13631
13632         Tests for module 'unicase/u8-is-uppercase'.
13633         * modules/unicase/u8-is-uppercase-tests: New file.
13634         * tests/unicase/test-u8-is-uppercase.c: New file.
13635         * tests/unicase/test-is-uppercase.h: New file.
13636
13637         New module 'unicase/u32-is-uppercase'.
13638         * lib/unicase/u32-is-uppercase.c: New file.
13639         * modules/unicase/u32-is-uppercase: New file.
13640
13641         New module 'unicase/u16-is-uppercase'.
13642         * lib/unicase/u16-is-uppercase.c: New file.
13643         * modules/unicase/u16-is-uppercase: New file.
13644
13645         New module 'unicase/u8-is-uppercase'.
13646         * lib/unicase/u8-is-uppercase.c: New file.
13647         * modules/unicase/u8-is-uppercase: New file.
13648
13649         New module 'unicase/u32-is-invariant'.
13650         * lib/unicase/u32-is-invariant.c: New file.
13651         * modules/unicase/u32-is-invariant: New file.
13652
13653         New module 'unicase/u16-is-invariant'.
13654         * lib/unicase/u16-is-invariant.c: New file.
13655         * modules/unicase/u16-is-invariant: New file.
13656
13657         New module 'unicase/u8-is-invariant'.
13658         * lib/unicase/u8-is-invariant.c: New file.
13659         * lib/unicase/invariant.h: New file.
13660         * lib/unicase/u-is-invariant.h: New file.
13661         * modules/unicase/u8-is-invariant: New file.
13662
13663         Tests for module 'unicase/u32-casecoll'.
13664         * modules/unicase/u32-casecoll-tests: New file.
13665         * tests/unicase/test-u32-casecoll.c: New file.
13666
13667         Tests for module 'unicase/u16-casecoll'.
13668         * modules/unicase/u16-casecoll-tests: New file.
13669         * tests/unicase/test-u16-casecoll.c: New file.
13670
13671         Tests for module 'unicase/u8-casecoll'.
13672         * modules/unicase/u8-casecoll-tests: New file.
13673         * tests/unicase/test-u8-casecoll.c: New file.
13674
13675         New module 'unicase/u32-casecoll'.
13676         * lib/unicase/u32-casecoll.c: New file.
13677         * modules/unicase/u32-casecoll: New file.
13678
13679         New module 'unicase/u16-casecoll'.
13680         * lib/unicase/u16-casecoll.c: New file.
13681         * modules/unicase/u16-casecoll: New file.
13682
13683         New module 'unicase/u8-casecoll'.
13684         * lib/unicase/u8-casecoll.c: New file.
13685         * lib/unicase/u-casecoll.h: New file.
13686         * modules/unicase/u8-casecoll: New file.
13687
13688         New module 'unicase/u32-casexfrm'.
13689         * lib/unicase/u32-casexfrm.c: New file.
13690         * modules/unicase/u32-casexfrm: New file.
13691
13692         New module 'unicase/u16-casexfrm'.
13693         * lib/unicase/u16-casexfrm.c: New file.
13694         * modules/unicase/u16-casexfrm: New file.
13695
13696         New module 'unicase/u8-casexfrm'.
13697         * lib/unicase/u8-casexfrm.c: New file.
13698         * lib/unicase/u-casexfrm.h: New file.
13699         * modules/unicase/u8-casexfrm: New file.
13700
13701         Tests for module 'unicase/u32-casecmp'.
13702         * modules/unicase/u32-casecmp-tests: New file.
13703         * tests/unicase/test-u32-casecmp.c: New file.
13704
13705         Tests for module 'unicase/u16-casecmp'.
13706         * modules/unicase/u16-casecmp-tests: New file.
13707         * tests/unicase/test-u16-casecmp.c: New file.
13708
13709         Tests for module 'unicase/u8-casecmp'.
13710         * modules/unicase/u8-casecmp-tests: New file.
13711         * tests/unicase/test-u8-casecmp.c: New file.
13712         * tests/unicase/test-casecmp.h: New file.
13713
13714         New module 'unicase/u32-casecmp'.
13715         * lib/unicase/u32-casecmp.c: New file.
13716         * modules/unicase/u32-casecmp: New file.
13717
13718         New module 'unicase/u16-casecmp'.
13719         * lib/unicase/u16-casecmp.c: New file.
13720         * modules/unicase/u16-casecmp: New file.
13721
13722         New module 'unicase/u8-casecmp'.
13723         * lib/unicase/u8-casecmp.c: New file.
13724         * lib/unicase/u-casecmp.h: New file.
13725         * modules/unicase/u8-casecmp: New file.
13726
13727         Tests for module 'unicase/u32-casefold'.
13728         * modules/unicase/u32-casefold-tests: New file.
13729         * tests/unicase/test-u32-casefold.c: New file.
13730
13731         Tests for module 'unicase/u16-casefold'.
13732         * modules/unicase/u16-casefold-tests: New file.
13733         * tests/unicase/test-u16-casefold.c: New file.
13734
13735         Tests for module 'unicase/u8-casefold'.
13736         * modules/unicase/u8-casefold-tests: New file.
13737         * tests/unicase/test-u8-casefold.c: New file.
13738
13739         New module 'unicase/u32-casefold'.
13740         * lib/unicase/u32-casefold.c: New file.
13741         * modules/unicase/u32-casefold: New file.
13742
13743         New module 'unicase/u16-casefold'.
13744         * lib/unicase/u16-casefold.c: New file.
13745         * modules/unicase/u16-casefold: New file.
13746
13747         New module 'unicase/u8-casefold'.
13748         * lib/unicase/u8-casefold.c: New file.
13749         * lib/unicase/u-casefold.h: New file.
13750         * modules/unicase/u8-casefold: New file.
13751
13752         New module 'unicase/tocasefold'.
13753         * lib/unicase/casefold.h: New file.
13754         * lib/unicase/tocasefold.c: New file.
13755         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13756         * modules/unicase/tocasefold: New file.
13757
13758         Tests for module 'unicase/u32-totitle'.
13759         * modules/unicase/u32-totitle-tests: New file.
13760         * tests/unicase/test-u32-totitle.c: New file.
13761
13762         Tests for module 'unicase/u16-totitle'.
13763         * modules/unicase/u16-totitle-tests: New file.
13764         * tests/unicase/test-u16-totitle.c: New file.
13765
13766         Tests for module 'unicase/u8-totitle'.
13767         * modules/unicase/u8-totitle-tests: New file.
13768         * tests/unicase/test-u8-totitle.c: New file.
13769
13770         New module 'unicase/u32-totitle'.
13771         * lib/unicase/u32-totitle.c: New file.
13772         * modules/unicase/u32-totitle: New file.
13773
13774         New module 'unicase/u16-totitle'.
13775         * lib/unicase/u16-totitle.c: New file.
13776         * modules/unicase/u16-totitle: New file.
13777
13778         New module 'unicase/u8-totitle'.
13779         * lib/unicase/u8-totitle.c: New file.
13780         * lib/unicase/u-totitle.h: New file.
13781         * modules/unicase/u8-totitle: New file.
13782
13783         Tests for module 'unicase/u32-tolower'.
13784         * modules/unicase/u32-tolower-tests: New file.
13785         * tests/unicase/test-u32-tolower.c: New file.
13786
13787         Tests for module 'unicase/u16-tolower'.
13788         * modules/unicase/u16-tolower-tests: New file.
13789         * tests/unicase/test-u16-tolower.c: New file.
13790
13791         Tests for module 'unicase/u8-tolower'.
13792         * modules/unicase/u8-tolower-tests: New file.
13793         * tests/unicase/test-u8-tolower.c: New file.
13794
13795         New module 'unicase/u32-tolower'.
13796         * lib/unicase/u32-tolower.c: New file.
13797         * modules/unicase/u32-tolower: New file.
13798
13799         New module 'unicase/u16-tolower'.
13800         * lib/unicase/u16-tolower.c: New file.
13801         * modules/unicase/u16-tolower: New file.
13802
13803         New module 'unicase/u8-tolower'.
13804         * lib/unicase/u8-tolower.c: New file.
13805         * modules/unicase/u8-tolower: New file.
13806
13807         Tests for module 'unicase/u32-toupper'.
13808         * modules/unicase/u32-toupper-tests: New file.
13809         * tests/unicase/test-u32-toupper.c: New file.
13810
13811         Tests for module 'unicase/u16-toupper'.
13812         * modules/unicase/u16-toupper-tests: New file.
13813         * tests/unicase/test-u16-toupper.c: New file.
13814
13815         Tests for module 'unicase/u8-toupper'.
13816         * modules/unicase/u8-toupper-tests: New file.
13817         * tests/unicase/test-u8-toupper.c: New file.
13818
13819         New module 'unicase/u32-toupper'.
13820         * lib/unicase/u32-toupper.c: New file.
13821         * modules/unicase/u32-toupper: New file.
13822
13823         New module 'unicase/u16-toupper'.
13824         * lib/unicase/u16-toupper.c: New file.
13825         * modules/unicase/u16-toupper: New file.
13826
13827         New module 'unicase/u8-toupper'.
13828         * lib/unicase/u8-toupper.c: New file.
13829         * modules/unicase/u8-toupper: New file.
13830
13831         New module 'unicase/u32-casemap'.
13832         * lib/unicase/u32-casemap.c: New file.
13833         * modules/unicase/u32-casemap: New file.
13834
13835         New module 'unicase/u16-casemap'.
13836         * lib/unicase/u16-casemap.c: New file.
13837         * modules/unicase/u16-casemap: New file.
13838
13839         New module 'unicase/u8-casemap'.
13840         * lib/unicase/unicasemap.h: New file.
13841         * lib/unicase/u8-casemap.c: New file.
13842         * lib/unicase/u-casemap.h: New file.
13843         * modules/unicase/u8-casemap: New file.
13844
13845         New module 'unicase/special-casing'.
13846         * lib/unicase/special-casing.h: New file.
13847         * lib/unicase/special-casing.c: New file.
13848         * lib/unicase/special-casing-table.gperf: New file, generated by
13849         gen-uni-tables.c.
13850         * modules/unicase/special-casing: New file.
13851
13852         Tests for module 'unicase/locale-language'.
13853         * modules/unicase/locale-language-tests: New file.
13854         * tests/unicase/test-locale-language.sh: New file.
13855         * tests/unicase/test-locale-language.c: New file.
13856
13857         New module 'unicase/locale-language'.
13858         * lib/unicase/locale-language.c: New file.
13859         * lib/unicase/locale-languages.gperf: New file.
13860         * modules/unicase/locale-language: New file.
13861
13862         Generate more tables for case conversion and case folding.
13863         * lib/gen-uni-tables.c (SCC_*): New enum items.
13864         (struct special_casing_rule): New type.
13865         (casing_rules, num_casing_rules, allocated_casing_rules): New
13866         variables.
13867         (add_casing_rule, fill_casing_rules): New functions.
13868         (struct casefold_rule): New type.
13869         (casefolding_rules, num_casefolding_rules,
13870         allocated_casefolding_rules): New variables.
13871         (fill_casefolding_rules): New function.
13872         (unicode_casefold): New variable.
13873         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13874         sort_casing_rules, output_casing_rules): New functions.
13875         (main): Accept to more arguments: SpecialCasing.txt and
13876         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13877         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13878         Output mapping for casefolding.
13879
13880         * lib/unicase.h: Include stdbool.h, uninorm.h.
13881         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13882         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13883         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13884         arguments.
13885         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13886         resultp arguments.
13887         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13888         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13889         resultp arguments.
13890         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13891         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13892         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13893         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13894         declarations.
13895         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13896
13897 2009-03-08  Bruno Haible  <bruno@clisp.org>
13898
13899         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13900         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13901         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13902         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13903
13904 2009-03-07  Bruno Haible  <bruno@clisp.org>
13905
13906         Adjust u*_normcmp, u*_normcoll API.
13907         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13908         u16_normcoll, u32_normcoll): Change failure conventions.
13909         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13910         errno and return -1.
13911         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13912
13913 2009-03-07  Bruno Haible  <bruno@clisp.org>
13914
13915         Tests for module 'uninorm/u32-normcoll'.
13916         * modules/uninorm/u32-normcoll-tests: New file.
13917         * tests/uninorm/test-u32-normcoll.c: New file.
13918
13919         Tests for module 'uninorm/u16-normcoll'.
13920         * modules/uninorm/u16-normcoll-tests: New file.
13921         * tests/uninorm/test-u16-normcoll.c: New file.
13922
13923         Tests for module 'uninorm/u8-normcoll'.
13924         * modules/uninorm/u8-normcoll-tests: New file.
13925         * tests/uninorm/test-u8-normcoll.c: New file.
13926
13927 2009-03-07  Bruno Haible  <bruno@clisp.org>
13928
13929         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13930         tests/uninorm/test-u32-normcmp.c.
13931         * tests/uninorm/test-u32-normcmp.c: Include it.
13932         (test_nonascii): New function, extracted from main. Add some more
13933         tests.
13934         (main): Invoke test_ascii and test_nonascii.
13935         * modules/uninorm/u32-normcmp-tests (Files): Add
13936         tests/uninorm/test-u32-normcmp.h.
13937         (Depends-on): Remove uninorm/u32-normcmp.
13938
13939         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13940         tests/uninorm/test-u16-normcmp.c.
13941         * tests/uninorm/test-u16-normcmp.c: Include it.
13942         (test_nonascii): New function, extracted from main. Add some more
13943         tests.
13944         (main): Invoke test_ascii and test_nonascii.
13945         * modules/uninorm/u16-normcmp-tests (Files): Add
13946         tests/uninorm/test-u16-normcmp.h.
13947         (Depends-on): Remove uninorm/u16-normcmp.
13948
13949         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13950         tests/uninorm/test-u8-normcmp.c.
13951         * tests/uninorm/test-u8-normcmp.c: Include it.
13952         (test_nonascii): New function, extracted from main. Add some more
13953         tests.
13954         (main): Invoke test_ascii and test_nonascii.
13955         * modules/uninorm/u8-normcmp-tests (Files): Add
13956         tests/uninorm/test-u8-normcmp.h.
13957         (Depends-on): Remove uninorm/u8-normcmp.
13958
13959 2009-03-07  Bruno Haible  <bruno@clisp.org>
13960
13961         New module 'uninorm/u32-normcoll'.
13962         * lib/uninorm/u32-normcoll.c: New file.
13963         * modules/uninorm/u32-normcoll: New file.
13964
13965         New module 'uninorm/u16-normcoll'.
13966         * lib/uninorm/u16-normcoll.c: New file.
13967         * modules/uninorm/u16-normcoll: New file.
13968
13969         New module 'uninorm/u8-normcoll'.
13970         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13971         declarations.
13972         * lib/uninorm/u8-normcoll.c: New file.
13973         * lib/uninorm/u-normcoll.h: New file.
13974         * modules/uninorm/u8-normcoll: New file.
13975
13976         New module 'uninorm/u32-normxfrm'.
13977         * lib/uninorm/u32-normxfrm.c: New file.
13978         * modules/uninorm/u32-normxfrm: New file.
13979
13980         New module 'uninorm/u16-normxfrm'.
13981         * lib/uninorm/u16-normxfrm.c: New file.
13982         * modules/uninorm/u16-normxfrm: New file.
13983
13984         New module 'uninorm/u8-normxfrm'.
13985         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13986         declarations.
13987         * lib/uninorm/u8-normxfrm.c: New file.
13988         * lib/uninorm/u-normxfrm.h: New file.
13989         * modules/uninorm/u8-normxfrm: New file.
13990
13991 2009-03-07  Bruno Haible  <bruno@clisp.org>
13992
13993         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13994         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13995         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13996
13997 2009-03-07  Bruno Haible  <bruno@clisp.org>
13998
13999         New module 'memxfrm'.
14000         * lib/memxfrm.h: New file.
14001         * lib/memxfrm.c: New file.
14002         * modules/memxfrm: New file.
14003
14004 2009-03-07  Bruno Haible  <bruno@clisp.org>
14005
14006         New module 'memcmp2'.
14007         * lib/memcmp2.h: New file.
14008         * lib/memcmp2.c: New file.
14009         * modules/memcmp2: New file.
14010
14011 2009-03-07  Bruno Haible  <bruno@clisp.org>
14012
14013         Tests for module 'uninorm/decomposing-form'.
14014         * modules/uninorm/decomposing-form-tests: New file.
14015         * tests/uninorm/test-decomposing-form.c: New file.
14016
14017         New module 'uninorm/decomposing-form'.
14018         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14019         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14020         Add 'decomposing_variant' field.
14021         * lib/uninorm/decomposing-form.c: New file.
14022         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14023         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14024         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14025         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14026         * modules/uninorm/decomposing-form: New file.
14027         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14028         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14029
14030 2009-03-07  Bruno Haible  <bruno@clisp.org>
14031
14032         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14033         strings.
14034
14035 2009-03-06  Bruno Haible  <bruno@clisp.org>
14036
14037         Tests for module 'uninorm/u32-normcmp'.
14038         * tests/uninorm/test-u32-normcmp.c: New file.
14039         * modules/uninorm/u32-normcmp-tests: New file.
14040
14041         Tests for module 'uninorm/u16-normcmp'.
14042         * tests/uninorm/test-u16-normcmp.c: New file.
14043         * modules/uninorm/u16-normcmp-tests: New file.
14044
14045         Tests for module 'uninorm/u8-normcmp'.
14046         * tests/uninorm/test-u8-normcmp.c: New file.
14047         * modules/uninorm/u8-normcmp-tests: New file.
14048
14049         New module 'uninorm/u32-normcmp'.
14050         * lib/uninorm/u32-normcmp.c: New file.
14051         * modules/uninorm/u32-normcmp: New file.
14052
14053         New module 'uninorm/u16-normcmp'.
14054         * lib/uninorm/u16-normcmp.c: New file.
14055         * modules/uninorm/u16-normcmp: New file.
14056
14057         New module 'uninorm/u8-normcmp'.
14058         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14059         declarations.
14060         * lib/uninorm/u8-normcmp.c: New file.
14061         * lib/uninorm/u-normcmp.h: New file.
14062         * modules/uninorm/u8-normcmp: New file.
14063
14064 2009-03-06  Bruno Haible  <bruno@clisp.org>
14065
14066         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14067         Reported by Eric Blake.
14068
14069 2009-03-06  Eric Blake  <ebb9@byu.net>
14070             Bruno Haible  <bruno@clisp.org>
14071
14072         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14073         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14074         condition.
14075         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14076         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14077         condition.
14078         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14079
14080 2009-03-06  Eric Blake  <ebb9@byu.net>
14081
14082         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14083         to avoid compiler warnings.
14084         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14085
14086 2009-03-05  Bruno Haible  <bruno@clisp.org>
14087
14088         * tests/test-ftell.c (main): Disable test beyond end of file on
14089         FreeMiNT.
14090         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14091
14092 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14093
14094         * lib/filevercmp.c: Move hidden files up in ordering.
14095         * tests/test-filevercmp.c: Add tests for hidden files.
14096
14097 2009-03-04  Bruno Haible  <bruno@clisp.org>
14098
14099         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14100         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14101         AM_CFLAGS.
14102         Reported by Simon Josefsson.
14103
14104 2009-03-03  Bruno Haible  <bruno@clisp.org>
14105
14106         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14107         Reported by Simon Josefsson.
14108
14109         * doc/ld-version-script.texi: Update node reference.
14110
14111 2009-03-03  Bruno Haible  <bruno@clisp.org>
14112
14113         * modules/visibility (License): Change to 'unlimited'.
14114         Suggested by Simon Josefsson.
14115
14116 2009-03-03  Jim Meyering  <meyering@redhat.com>
14117
14118         unlinkdir: cannot_unlink_dir may modify process state
14119         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14120         it's neither thread-safe nor appropriate for use in a library.
14121
14122 2009-03-03  Eric Blake  <ebb9@byu.net>
14123
14124         test-closein: silence test under Darwin
14125         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14126         care if it dies from EPIPE or EBADF.
14127
14128 2009-03-03  Bruno Haible  <bruno@clisp.org>
14129
14130         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14131         earlier.
14132         * doc/visibility.texi: Fix @node and @section.
14133
14134 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14135
14136         * doc/gnulib.texi: Link to sections for ld version script and
14137         visibility.
14138         * doc/visibility.texi: Add @node and @section.
14139         * modules/ld-version-script: New module.
14140         * m4/ld-version-script.m4: New file.
14141         * doc/ld-version-script.texi: New file.
14142
14143 2009-03-02  David Lutterkort  <lutter@redhat.com>
14144
14145         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14146         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14147
14148 2009-03-02  Bruno Haible  <bruno@clisp.org>
14149
14150         * doc/visibility.texi: Mention libtool's -export-symbols option.
14151
14152 2009-03-02  Jim Meyering  <meyering@redhat.com>
14153
14154         announce-gen: new option: --no-print-checksums
14155         * build-aux/announce-gen (usage): Describe it.
14156         (print_checksums): Print a newline here, not in the [*] footnote.
14157         (main): Honor it.
14158
14159 2009-03-01  Bruno Haible  <bruno@clisp.org>
14160
14161         Use socklen_t in the native Windows replacements prototypes.
14162         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14163         instead of 'int'.
14164         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14165         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14166         * modules/getsockopt (Depends-on): Add socklen.
14167         * modules/setsockopt (Depends-on): Add socklen.
14168
14169 2009-03-01  Bruno Haible  <bruno@clisp.org>
14170
14171         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14172         least 4.2.
14173
14174 2009-03-01  Eric Blake  <ebb9@byu.net>
14175             Bruno Haible  <bruno@clisp.org>
14176
14177         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14178         error messages.
14179         * lib/wait-process.c (wait_subprocess): Omit error message about
14180         deadly signal sent to the child of termsigp != NULL.
14181
14182 2009-03-01  Eric Blake  <ebb9@byu.net>
14183
14184         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14185
14186 2009-03-01  Bruno Haible  <bruno@clisp.org>
14187
14188         Avoid a gcc warning.
14189         * tests/test-sched.c (b): Make global.
14190         Reported by Eric Blake.
14191
14192 2009-01-19  Martin Lambers  <marlam@marlam.de>
14193
14194         Provide POSIX semantics for socket timeout options on W32.
14195         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14196         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14197         * modules/setsockopt: Depend on sys_time module for struct timeval.
14198         * modules/getsockopt: Depend on sys_time module for struct timeval.
14199
14200 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14201
14202         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14203         __USE_GNU, for consistency with netdb.in.h.
14204         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14205
14206 2009-03-01  Bruno Haible  <bruno@clisp.org>
14207
14208         More support for FreeMiNT.
14209         * lib/fseeko.c (rpl_fseeko): Complete last commit.
14210         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14211
14212 2009-03-01  Bruno Haible  <bruno@clisp.org>
14213
14214         More support for FreeMiNT.
14215         * lib/fpurge.c (fpurge): Correct last commit.
14216         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14217
14218 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14219
14220         Fix unportable awk script in vc-list-files.
14221         * build-aux/vc-list-files: In the replacement awk script, use
14222         substr with a second argument of 1, not zero.
14223         Report by Simon Josefsson.
14224
14225 2009-02-28  Bruno Haible  <bruno@clisp.org>
14226
14227         More support for FreeMiNT.
14228         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14229         to FreeMiNT today.
14230         * lib/fwriting.c (fwriting): Likewise.
14231         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14232
14233 2009-02-28  Bruno Haible  <bruno@clisp.org>
14234
14235         * tests/test-freadseek.c (main): Disable test beyond end of file on
14236         FreeMiNT.
14237         * tests/test-ftello.c (main): Likewise.
14238         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14239
14240 2009-02-28  Bruno Haible  <bruno@clisp.org>
14241
14242         Add tentative support for FreeMiNT.
14243         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14244         * lib/fpurge.c (fpurge): Likewise.
14245         * lib/freadable.c (freadable): Likewise.
14246         * lib/freading.c (freading): Likewise.
14247         * lib/freadptr.c (freadptr): Likewise.
14248         * lib/freadseek.c (freadptrinc): Likewise.
14249         * lib/fseeko.c (rpl_fseeko): Likewise.
14250         * lib/fseterr.c (fseterr): Likewise.
14251         * lib/fwritable.c (fwritable): Likewise.
14252         * lib/fwriting.c (fwriting): Likewise.
14253         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14254         Hourihane.
14255         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14256
14257 2009-02-28  Bruno Haible  <bruno@clisp.org>
14258
14259         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14260         SIGCHLD.
14261         Reported by Jim Meyering.
14262
14263 2009-02-28  Bruno Haible  <bruno@clisp.org>
14264
14265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14266         Mention the results of these tests on various platforms.
14267         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14268         order.
14269         * doc/posix-functions/printf.texi: Likewise.
14270         * doc/posix-functions/snprintf.texi: Likewise.
14271         * doc/posix-functions/sprintf.texi: Likewise.
14272         * doc/posix-functions/vfprintf.texi: Likewise.
14273         * doc/posix-functions/vprintf.texi: Likewise.
14274         * doc/posix-functions/vsnprintf.texi: Likewise.
14275         * doc/posix-functions/vsprintf.texi: Likewise.
14276         * doc/glibc-functions/obstack_printf.texi: Likewise.
14277         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14278
14279 2009-02-28  Bruno Haible  <bruno@clisp.org>
14280
14281         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14282         Reported by Loïc Minier <lool@dooz.org>.
14283
14284 2009-02-27  Bruno Haible  <bruno@clisp.org>
14285
14286         * gnulib-tool (func_import): Make the sed expression used to create the
14287         sed script for updating the .gitignore file POSIX compliant.
14288         Reported by Eric Blake.
14289
14290 2009-02-27  Bruno Haible  <bruno@clisp.org>
14291
14292         * gnulib-tool (sed): Don't alias as "sed --posix".
14293         Reported by Eric Blake.
14294
14295 2009-02-27  Bruno Haible  <bruno@clisp.org>
14296
14297         Avoid test link errors.
14298         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14299         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14300         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14301         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14302         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14303
14304 2009-02-27  Bruno Haible  <bruno@clisp.org>
14305
14306         Avoid spurious "(cached)" in configure output.
14307         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14308         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14309         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14310         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14311         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14312         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14313         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14314         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14315         Reported by Eric Blake.
14316
14317 2009-02-27  Eric Blake  <ebb9@byu.net>
14318
14319         printf: fix regression in previous patch
14320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14321
14322 2009-02-27  Bruno Haible  <bruno@clisp.org>
14323
14324         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14325         value.
14326         * lib/stdint.in.h: Likewise.
14327         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14328
14329 2009-02-27  Eric Blake  <ebb9@byu.net>
14330
14331         doc: mention more functions added in cygwin 1.7.0
14332         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14333         addition.
14334         * doc/posix-functions/open_wmemstream.texi: Likewise.
14335         * doc/posix-functions/wcsnlen.texi: Likewise.
14336         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14337         * doc/posix-functions/wcstod.texi: Likewise.
14338         * doc/posix-functions/wcstof.texi: Likewise.
14339         * doc/posix-functions/wcstoimax.texi: Likewise.
14340         * doc/posix-functions/wcstok.texi: Likewise.
14341         * doc/posix-functions/wcstoumax.texi: Likewise.
14342
14343         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14344         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14345         * doc/posix-functions/fprintf.texi: Update.
14346         * doc/posix-functions/printf.texi: Update.
14347         * doc/posix-functions/snprintf.texi: Update.
14348         * doc/posix-functions/sprintf.texi: Update.
14349         * doc/posix-functions/vfprintf.texi: Update.
14350         * doc/posix-functions/vprintf.texi: Update.
14351         * doc/posix-functions/vsnprintf.texi: Update.
14352         * doc/posix-functions/vsprintf.texi: Update.
14353         * doc/glibc-functions/obstack_printf.texi: Update.
14354         * doc/glibc-functions/obstack_vprintf.texi: Update.
14355
14356 2009-02-26  Eric Blake  <ebb9@byu.net>
14357
14358         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14359         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14360         compilation bug by using runtime conversion.
14361         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14362         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14363         * modules/ceill-tests (Files): Use nan.h.
14364         * modules/floorl-tests (Files): Likewise.
14365         * modules/frexpl-tests (Files): Likewise.
14366         * modules/isnanl-tests (Files): Likewise.
14367         * modules/ldexpl-tests (Files): Likewise.
14368         * modules/roundl-tests (Files): Likewise.
14369         * modules/truncl-tests (Files): Likewise.
14370         * tests/test-ceill.c (main): Use a working NaN.
14371         * tests/test-floorl.c (main): Likewise.
14372         * tests/test-frexpl.c (main): Likewise.
14373         * tests/test-isnan.c (test_long_double): Likewise.
14374         * tests/test-isnanl.h (main): Likewise.
14375         * tests/test-ldexpl.h (main): Likewise.
14376         * tests/test-roundl.h (main): Likewise.
14377         * tests/test-truncl.h (main): Likewise.
14378         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14379
14380 2009-02-26  Eric Blake  <ebb9@byu.net>
14381             Bruno Haible  <bruno@clisp.org>
14382
14383         Work around a *printf bug with %ls on Solaris.
14384         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14385         precision is specified, sprintf stops converting the wide string
14386         argument when the number of bytes that have been produced by this
14387         conversion equals or exceeds the precision.
14388         * doc/posix-functions/fprintf.texi: Update.
14389         * doc/posix-functions/printf.texi: Update.
14390         * doc/posix-functions/snprintf.texi: Update.
14391         * doc/posix-functions/sprintf.texi: Update.
14392         * doc/posix-functions/vfprintf.texi: Update.
14393         * doc/posix-functions/vprintf.texi: Update.
14394         * doc/posix-functions/vsnprintf.texi: Update.
14395         * doc/posix-functions/vsprintf.texi: Update.
14396         * doc/glibc-functions/obstack_printf.texi: Update.
14397         * doc/glibc-functions/obstack_vprintf.texi: Update.
14398
14399 2009-02-26  Eric Blake  <ebb9@byu.net>
14400
14401         stdlib: favor compiler check of random.h
14402         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14403         to avoid an ObjC random.h installed by Swarm.
14404
14405 2009-02-26  Bruno Haible  <bruno@clisp.org>
14406
14407         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14408         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14409         Reported by Gary V. Vaughan <gary@gnu.org>.
14410
14411 2009-02-26  Bruno Haible  <bruno@clisp.org>
14412
14413         Fix *printf behaviour regarding the %ls directive.
14414         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14415         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14416         NEED_PRINTF_DIRECTIVE_LS.
14417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14418         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14420         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14421         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14422         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14423         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14428         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14432         * doc/posix-functions/fprintf.texi: Update.
14433         * doc/posix-functions/printf.texi: Update.
14434         * doc/posix-functions/snprintf.texi: Update.
14435         * doc/posix-functions/sprintf.texi: Update.
14436         * doc/posix-functions/vfprintf.texi: Update.
14437         * doc/posix-functions/vprintf.texi: Update.
14438         * doc/posix-functions/vsnprintf.texi: Update.
14439         * doc/posix-functions/vsprintf.texi: Update.
14440         * doc/glibc-functions/obstack_printf.texi: Update.
14441         * doc/glibc-functions/obstack_vprintf.texi: Update.
14442         Reported by Eric Blake.
14443
14444 2009-02-25  Bruno Haible  <bruno@clisp.org>
14445
14446         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14447         with known value.
14448         Reported by Gary V. Vaughan <gary@gnu.org>.
14449
14450 2009-02-25  Bruno Haible  <bruno@clisp.org>
14451
14452         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14453         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14454         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14455         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14456         Reported by Gary V. Vaughan <gary@gnu.org>.
14457
14458 2009-02-25  Bruno Haible  <bruno@clisp.org>
14459
14460         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14461         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14462         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14463         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14464         Reported by Gary V. Vaughan <gary@gnu.org>.
14465
14466 2009-02-25  Eric Blake  <ebb9@byu.net>
14467
14468         tests: skip fseek/ftell tests if ungetc is broken
14469         * m4/ungetc.m4: New file.
14470         * modules/fseek-tests: Split test, so ungetc dependency is
14471         separate from rest of test.
14472         * modules/fseeko-tests: Likewise.
14473         * modules/ftell-tests: Likewise.
14474         * modules/ftello-tests: Likewise.
14475         * tests/test-fseek.c (main): Isolate ungetc dependency.
14476         * tests/test-fseeko.c (main): Likewise.
14477         * tests/test-ftell.c (main): Likewise.
14478         * tests/test-ftello.c (main): Likewise.
14479         * tests/test-fseek2.sh: New file.
14480         * tests/test-fseeko2.sh: Likewise.
14481         * tests/test-ftell2.sh: Likewise.
14482         * tests/test-ftello2.sh: Likewise.
14483
14484 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
14485
14486         test-getaddrinfo: fix usage of skip return code 77
14487         * tests/test-gettaddrinfo.c: Return skip code 77 only
14488         for first occurance of skip (4x77 is not 77)
14489
14490 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14491
14492         strtod: avoid C99 decl-after-statement
14493         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14494
14495 2009-02-24  Eric Blake  <ebb9@byu.net>
14496
14497         strtod: detect HP-UX 11.31 bug
14498         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14499         Reported by Gary V. Vaughan.
14500
14501 2009-02-23  Bruno Haible  <bruno@clisp.org>
14502
14503         Fix invalid read past end of memory block.
14504         * lib/vasnprintf.c (DCHAR_SET): Define.
14505         (local_wcslen): Define only when needed.
14506         (local_strnlen, local_wcsnlen): New functions.
14507         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14508         directives that involve a conversion ourselves.
14509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14510         wcsnlen, mbrtowc, wcrtomb.
14511         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14512         * tests/test-vasprintf-posix.c (test_function): Likewise.
14513         * tests/test-snprintf-posix.h (test_function): Likewise.
14514         * tests/test-sprintf-posix.h (test_function): Likewise.
14515         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14516
14517 2009-02-22  Bruno Haible  <bruno@clisp.org>
14518
14519         Implement new clarified decomposition of Hangul syllables.
14520         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14521         of type LTV, return only a pairwise decomposition.
14522         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14523         Likewise.
14524         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14525         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14526         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14527
14528 2009-02-22  Bruno Haible  <bruno@clisp.org>
14529
14530         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14531         zero-length results and shrink excess allocated memory.
14532         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14533         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14534         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14535         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14536         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14537         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14538         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14539         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14540         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14541         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14542         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14543         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14544
14545 2009-02-21  Bruno Haible  <bruno@clisp.org>
14546
14547         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14548         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14549         spaces after a period. Put a space between a macro name and its
14550         argument list. Trivial rewordings.
14551         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14552         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14553         (main): Return 0 explicitly.
14554
14555 2009-02-21  Bruno Haible  <bruno@clisp.org>
14556
14557         Tests for module 'uninorm/filter'.
14558         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14559         * modules/uninorm/filter-tests: New file.
14560
14561         New module 'uninorm/filter'.
14562         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14563         uninorm_filter_flush, uninorm_filter_free): New declarations.
14564         * lib/uninorm/uninorm-filter.c: New file.
14565         * modules/uninorm/filter: New file.
14566
14567 2009-02-21  Bruno Haible  <bruno@clisp.org>
14568
14569         Tests for module 'uninorm/nfkc'.
14570         * tests/uninorm/test-nfkc.c: New file.
14571         * tests/uninorm/test-u8-nfkc.c: New file.
14572         * tests/uninorm/test-u16-nfkc.c: New file.
14573         * tests/uninorm/test-u32-nfkc.c: New file.
14574         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14575         * tests/uninorm/test-u32-nfkc-big.c: New file.
14576         * modules/uninorm/nfkc-tests: New file.
14577
14578         New module 'uninorm/nfkc'.
14579         * lib/uninorm/nfkc.c: New file.
14580         * modules/uninorm/nfkc: New file.
14581
14582         Tests for module 'uninorm/nfkd'.
14583         * tests/uninorm/test-nfkd.c: New file.
14584         * tests/uninorm/test-u8-nfkd.c: New file.
14585         * tests/uninorm/test-u16-nfkd.c: New file.
14586         * tests/uninorm/test-u32-nfkd.c: New file.
14587         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14588         * tests/uninorm/test-u32-nfkd-big.c: New file.
14589         * modules/uninorm/nfkd-tests: New file.
14590
14591         New module 'uninorm/nfkd'.
14592         * lib/uninorm/nfkd.c: New file.
14593         * modules/uninorm/nfkd: New file.
14594
14595         Tests for module 'uninorm/nfc'.
14596         * tests/uninorm/test-nfc.c: New file.
14597         * tests/uninorm/test-u8-nfc.c: New file.
14598         * tests/uninorm/test-u16-nfc.c: New file.
14599         * tests/uninorm/test-u32-nfc.c: New file.
14600         * tests/uninorm/test-u32-nfc-big.sh: New file.
14601         * tests/uninorm/test-u32-nfc-big.c: New file.
14602         * modules/uninorm/nfc-tests: New file.
14603
14604         New module 'uninorm/nfc'.
14605         * lib/uninorm/nfc.c: New file.
14606         * modules/uninorm/nfc: New file.
14607
14608         Tests for module 'uninorm/nfd'.
14609         * tests/uninorm/test-nfd.c: New file.
14610         * tests/uninorm/test-u8-nfd.c: New file.
14611         * tests/uninorm/test-u16-nfd.c: New file.
14612         * tests/uninorm/test-u32-nfd.c: New file.
14613         * tests/uninorm/test-u32-nfd-big.sh: New file.
14614         * tests/uninorm/test-u32-nfd-big.c: New file.
14615         * tests/uninorm/test-u32-normalize-big.h: New file.
14616         * tests/uninorm/test-u32-normalize-big.c: New file.
14617         * tests/uninorm/NormalizationTest.txt: New file, created from
14618         Unicode 5.1.0 NormalizationTest.txt.
14619         * modules/uninorm/nfd-tests: New file.
14620
14621         New module 'uninorm/nfd'.
14622         * lib/uninorm/nfd.c: New file.
14623         * modules/uninorm/nfd: New file.
14624
14625         New module 'uninorm/u32-normalize'.
14626         * lib/uninorm/u32-normalize.c: New file.
14627         * modules/uninorm/u32-normalize: New file.
14628
14629         New module 'uninorm/u16-normalize'.
14630         * lib/uninorm/u16-normalize.c: New file.
14631         * modules/uninorm/u16-normalize: New file.
14632
14633         New module 'uninorm/u8-normalize'.
14634         * lib/uninorm/u8-normalize.c: New file.
14635         * lib/uninorm/normalize-internal.h: New file.
14636         * lib/uninorm/u-normalize-internal.h: New file.
14637         * modules/uninorm/u8-normalize: New file.
14638
14639         New module 'uninorm/decompose-internal'.
14640         * lib/uninorm/decompose-internal.c: New file.
14641         * modules/uninorm/decompose-internal: New file.
14642
14643         Tests for module 'uninorm/composition'.
14644         * tests/uninorm/test-composition.c: New file.
14645         * modules/uninorm/composition-tests: New file.
14646
14647         New module 'uninorm/composition'.
14648         * lib/uninorm/composition.c: New file.
14649         * lib/uninorm/composition-table.gperf: New file, generated by
14650         gen-uni-tables.
14651         * modules/uninorm/composition: New file.
14652
14653         Tests for module 'uninorm/compat-decomposition'.
14654         * tests/uninorm/test-compat-decomposition.c: New file.
14655         * modules/uninorm/compat-decomposition-tests: New file.
14656
14657         New module 'uninorm/compat-decomposition'.
14658         * lib/uninorm/decompose-internal.h: New file.
14659         * lib/uninorm/compat-decomposition.c: New file.
14660         * modules/uninorm/compat-decomposition: New file.
14661
14662         Tests for module 'uninorm/canonical-decomposition'.
14663         * tests/uninorm/test-canonical-decomposition.c: New file.
14664         * modules/uninorm/canonical-decomposition-tests: New file.
14665
14666         New module 'uninorm/canonical-decomposition'.
14667         * lib/uninorm/canonical-decomposition.c: New file.
14668         * modules/uninorm/canonical-decomposition: New file.
14669
14670         Tests for module 'uninorm/decomposition'.
14671         * tests/uninorm/test-decomposition.c: New file.
14672         * modules/uninorm/decomposition-tests: New file.
14673
14674         New module 'uninorm/decomposition'.
14675         * lib/uninorm/decomposition.c: New file.
14676         * modules/uninorm/decomposition: New file.
14677
14678         New module 'uninorm/decomposition-table'.
14679         * lib/uninorm/decomposition-table.h: New file.
14680         * lib/uninorm/decomposition-table.c: New file.
14681         * lib/uninorm/decomposition-table1.h: New file, generated by
14682         gen-uni-tables.
14683         * lib/uninorm/decomposition-table2.h: New file, generated by
14684         gen-uni-tables.
14685         * modules/uninorm/decomposition-table: New file.
14686
14687         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14688         (UC_DECOMP_*): New enumeration items.
14689         (get_decomposition): New function.
14690         (struct decomp_table): New type.
14691         (output_decomposition, output_decomposition_tables): New functions.
14692         (unicode_composition_exclusions): New variable.
14693         (fill_composition_exclusions, debug_output_composition_tables): New
14694         functions.
14695         (main): Accept one more argument. Invoke fill_composition_exclusions.
14696         Output decomposition and composition tables.
14697
14698         New module 'uninorm/base'.
14699         * lib/uninorm.h: New file.
14700         * lib/unictype.h: Update comment.
14701         * modules/uninorm/base: New file.
14702
14703 2009-02-21  David Lutterkort  <lutter@redhat.com>
14704
14705         Tests for module 'safe-alloc'.
14706         * tests/test-safe-alloc.c: New file.
14707         * modules/safe-alloc-tests: New file.
14708
14709         New module 'safe-alloc'.
14710         * lib/safe-alloc.h: New file.
14711         * lib/safe-alloc.c: New file.
14712         * m4/safe-alloc.m4: New file.
14713         * modules/safe-alloc: New file.
14714         * doc/safe-alloc.texi: New file.
14715         * doc/gnulib.texi: Include it.
14716         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14717         safe-alloc.
14718
14719 2009-02-18  Bruno Haible  <bruno@clisp.org>
14720
14721         Fix link error on non-glibc systems.
14722         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14723         variable.
14724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14725
14726 2009-02-18  Jim Meyering  <meyering@redhat.com>
14727
14728         fts: avoid used-uninitialized error due to recent change
14729         * lib/fts.c (fts_read): Guard uses of the new member,
14730         parent->fts_n_dirs_remaining, since it's not relevant for
14731         the parent of a directory specified on the command-line.
14732
14733 2009-02-17  James Youngman  <jay@gnu.org>
14734             Bruno Haible  <bruno@clisp.org>
14735
14736         * m4/include_next.m4: Reformulate comment.
14737
14738 2009-02-16  Jim Meyering  <meyering@redhat.com>
14739
14740         fts: add #if guards so that the fts_lgpl module still builds
14741         * lib/fts.c: Guard just-added hash-table-using parts with
14742         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14743         Reported by Simon Josefsson.
14744
14745 2009-02-15  Bruno Haible  <bruno@clisp.org>
14746
14747         * modules/array-mergesort-tests: New file.
14748         * tests/test-array-mergesort.c: New file.
14749
14750         New module 'array-mergesort'.
14751         * modules/array-mergesort: New file.
14752         * lib/array-mergesort.h: New file.
14753
14754 2009-02-15  Bruno Haible  <bruno@clisp.org>
14755
14756         Fix 2009-02-07 commit.
14757         * lib/gen-uni-tables.c (output_predicate, output_category,
14758         output_combclass, output_bidi_category, output_decimal_digit,
14759         output_digit, output_numeric, output_mirror, output_scripts,
14760         output_ident_category, output_simple_mapping): Fix format directives.
14761         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14762
14763 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14764
14765         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14766         fixes are available from IBM.
14767
14768 2009-02-13  Jim Meyering  <meyering@redhat.com>
14769
14770         fts: arrange not to stat non-directories in more cases
14771         This makes GNU find (when it doesn't need to stat each file)
14772         *much* more efficient at traversing reiserfs file systems.
14773         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14774         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14775         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14776         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14777         (leaf_optimization_applies): New function.
14778         (LCO_hash, LCO_compare): New helper functions.
14779         (link_count_optimize_ok): New function.
14780         (fts_stat): Initialize new member (if dir).
14781         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14782         we've just stat'ed a directory.  Skip the stat call when possible.
14783         ---
14784         Note this AFS-related exchange:
14785         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14786         and note find's pioctl call in find/fstype.c.
14787         But that is necessary only if you want to enable the
14788         optimization for AFS, and for now, I don't.
14789
14790         fts: move a function definition "up" (no semantic change)
14791         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14792         "up" to precede upcoming use of a related function.
14793
14794 2009-02-11  Jim Meyering  <meyering@redhat.com>
14795
14796         fts: correct internal computation of nlinks (optimization-related)
14797         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14798         whether the current entry is a directory, so don't test it.
14799
14800 2009-02-10  Bruno Haible  <bruno@clisp.org>
14801
14802         Tests for module 'uniwbrk/ulc-wordbreaks'.
14803         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14804         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14805         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14806
14807         Tests for module 'uniwbrk/u32-wordbreaks'.
14808         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14809         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14810
14811         Tests for module 'uniwbrk/u16-wordbreaks'.
14812         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14813         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14814
14815         Tests for module 'uniwbrk/u8-wordbreaks'.
14816         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14817         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14818
14819 2009-02-10  Bruno Haible  <bruno@clisp.org>
14820
14821         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14822         property.
14823         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14824         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14825         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14826
14827 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14828
14829         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14830         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14831
14832 2009-02-10  Bruno Haible  <bruno@clisp.org>
14833
14834         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14835         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14836         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14837         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14838         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14839         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14840
14841 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14842
14843         * lib/sockets.h (gl_fd_to_handle): New function.
14844
14845         * tests/test-sockets.c: Call gl_fd_to_handle.
14846
14847 2009-02-09  Bruno Haible  <bruno@clisp.org>
14848
14849         * doc/havelib.texi: Document the conventions on bi-arch systems.
14850
14851 2009-02-08  Bruno Haible  <bruno@clisp.org>
14852
14853         Document the AC_LIB_LINKFLAGS macro.
14854         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14855         * doc/gnulib.texi: Include it.
14856
14857 2009-02-08  Bruno Haible  <bruno@clisp.org>
14858
14859         Fix wrong order of sections, compared to TOC.
14860         * doc/gnulib.texi: Include relocatable-maint.texi after the
14861         "Regular expressions" node, not before.
14862
14863 2009-02-08  Bruno Haible  <bruno@clisp.org>
14864
14865         Tests for module 'unicase/totitle'.
14866         * modules/unicase/totitle-tests: New file.
14867
14868         Tests for module 'unicase/tolower'.
14869         * modules/unicase/tolower-tests: New file.
14870
14871         Tests for module 'unicase/toupper'.
14872         * modules/unicase/toupper-tests: New file.
14873         * tests/unicase/test-mapping-part1.h: New file.
14874         * tests/unicase/test-mapping-part2.h: New file.
14875
14876         New module 'unicase/totitle'.
14877         * modules/unicase/totitle: New file.
14878         * lib/unicase/totitle.c: New file.
14879
14880         New module 'unicase/tolower'.
14881         * modules/unicase/tolower: New file.
14882         * lib/unicase/tolower.c: New file.
14883
14884         New module 'unicase/toupper'.
14885         * modules/unicase/toupper: New file.
14886         * lib/unicase/toupper.c: New file.
14887         * lib/unicase/simple-mapping.h: New file.
14888
14889         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14890         (mapping_table): New structure.
14891         (output_simple_mapping): New function.
14892         (main): Invoke output_simple_mapping_test and output_simple_mapping.
14893         * modules/gen-uni-tables (Description): Update.
14894         * lib/unicase/toupper.h: New file, automatically generated by
14895         gen-uni-tables.
14896         * lib/unicase/tolower.h: New file, automatically generated by
14897         gen-uni-tables.
14898         * lib/unicase/totitle.h: New file, automatically generated by
14899         gen-uni-tables.
14900         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14901         gen-uni-tables.
14902         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14903         gen-uni-tables.
14904         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14905         gen-uni-tables.
14906
14907         New module 'unicase/base'.
14908         * modules/unicase/base: New file.
14909         * lib/unicase.h: New file.
14910
14911 2009-02-08  Bruno Haible  <bruno@clisp.org>
14912
14913         New module 'uniwbrk/ulc-wordbreaks'.
14914         * modules/uniwbrk/ulc-wordbreaks: New file.
14915         * lib/uniwbrk/ulc-wordbreaks.c: New file.
14916
14917         New module 'uniwbrk/u32-wordbreaks'.
14918         * modules/uniwbrk/u32-wordbreaks: New file.
14919         * lib/uniwbrk/u32-wordbreaks.c: New file.
14920
14921         New module 'uniwbrk/u16-wordbreaks'.
14922         * modules/uniwbrk/u16-wordbreaks: New file.
14923         * lib/uniwbrk/u16-wordbreaks.c: New file.
14924
14925         New module 'uniwbrk/u8-wordbreaks'.
14926         * modules/uniwbrk/u8-wordbreaks: New file.
14927         * lib/uniwbrk/u8-wordbreaks.c: New file.
14928         * lib/uniwbrk/u-wordbreaks.h: New file.
14929
14930         New module 'uniwbrk/table'.
14931         * modules/uniwbrk/table: New file.
14932         * lib/uniwbrk/wbrktable.h: New file.
14933         * lib/uniwbrk/wbrktable.c: New file.
14934
14935         New module 'uniwbrk/wordbreak-property'.
14936         * modules/uniwbrk/wordbreak-property: New file.
14937         * lib/uniwbrk/wordbreak-property.c: New file.
14938
14939         * lib/gen-uni-tables.c (WBP_*): New enum items.
14940         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14941         (unicode_org_wbp): New variable.
14942         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14943         New functions.
14944         (wbp_table): New structure.
14945         (output_wbp, output_wbrk_tables): New functions.
14946         (main): Accept additional argument. Invoke fill_org_wbp,
14947         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14948         output_wbrk_tables.
14949         * modules/gen-uni-tables (Description): Update.
14950         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14951         gen-uni-tables.
14952
14953         New module 'uniwbrk/base'.
14954         * modules/uniwbrk/base: New file.
14955         * lib/uniwbrk.h: New file.
14956
14957 2009-02-08  Bruno Haible  <bruno@clisp.org>
14958
14959         Update to Unicode 5.1.0.
14960         * lib/gen-uni-tables.c (is_property_alphabetic): Include
14961         U+2185..U+2188.
14962         (is_property_default_ignorable_code_point): Don't include characters
14963         of category Cc or Cs and not-a-characters.
14964         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14965         U+0D79, U+109E, U+109F, U+A60C.
14966         * lib/unictype/bidi_of.h: Regenerated.
14967         * lib/unictype/blocks.h: Regenerated.
14968         * lib/unictype/categ_C.h: Regenerated.
14969         * lib/unictype/categ_Cf.h: Regenerated.
14970         * lib/unictype/categ_Cn.h: Regenerated.
14971         * lib/unictype/categ_L.h: Regenerated.
14972         * lib/unictype/categ_Ll.h: Regenerated.
14973         * lib/unictype/categ_Lm.h: Regenerated.
14974         * lib/unictype/categ_Lo.h: Regenerated.
14975         * lib/unictype/categ_Lu.h: Regenerated.
14976         * lib/unictype/categ_M.h: Regenerated.
14977         * lib/unictype/categ_Mc.h: Regenerated.
14978         * lib/unictype/categ_Me.h: Regenerated.
14979         * lib/unictype/categ_Mn.h: Regenerated.
14980         * lib/unictype/categ_N.h: Regenerated.
14981         * lib/unictype/categ_Nd.h: Regenerated.
14982         * lib/unictype/categ_Nl.h: Regenerated.
14983         * lib/unictype/categ_No.h: Regenerated.
14984         * lib/unictype/categ_P.h: Regenerated.
14985         * lib/unictype/categ_Pd.h: Regenerated.
14986         * lib/unictype/categ_Pe.h: Regenerated.
14987         * lib/unictype/categ_Pf.h: Regenerated.
14988         * lib/unictype/categ_Pi.h: Regenerated.
14989         * lib/unictype/categ_Po.h: Regenerated.
14990         * lib/unictype/categ_Ps.h: Regenerated.
14991         * lib/unictype/categ_S.h: Regenerated.
14992         * lib/unictype/categ_Sk.h: Regenerated.
14993         * lib/unictype/categ_Sm.h: Regenerated.
14994         * lib/unictype/categ_So.h: Regenerated.
14995         * lib/unictype/categ_of.h: Regenerated.
14996         * lib/unictype/combining.h: Regenerated.
14997         * lib/unictype/ctype_alnum.h: Regenerated.
14998         * lib/unictype/ctype_alpha.h: Regenerated.
14999         * lib/unictype/ctype_graph.h: Regenerated.
15000         * lib/unictype/ctype_lower.h: Regenerated.
15001         * lib/unictype/ctype_print.h: Regenerated.
15002         * lib/unictype/ctype_punct.h: Regenerated.
15003         * lib/unictype/ctype_upper.h: Regenerated.
15004         * lib/unictype/decdigit.h: Regenerated.
15005         * lib/unictype/digit.h: Regenerated.
15006         * lib/unictype/mirror.h: Regenerated.
15007         * lib/unictype/numeric.h: Regenerated.
15008         * lib/unictype/pr_alphabetic.h: Regenerated.
15009         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15010         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15011         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15012         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15013         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15014         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15015         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15016         * lib/unictype/pr_combining.h: Regenerated.
15017         * lib/unictype/pr_dash.h: Regenerated.
15018         * lib/unictype/pr_decimal_digit.h: Regenerated.
15019         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15020         * lib/unictype/pr_deprecated.h: Regenerated.
15021         * lib/unictype/pr_diacritic.h: Regenerated.
15022         * lib/unictype/pr_extender.h: Regenerated.
15023         * lib/unictype/pr_format_control.h: Regenerated.
15024         * lib/unictype/pr_grapheme_base.h: Regenerated.
15025         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15026         * lib/unictype/pr_grapheme_link.h: Regenerated.
15027         * lib/unictype/pr_id_continue.h: Regenerated.
15028         * lib/unictype/pr_id_start.h: Regenerated.
15029         * lib/unictype/pr_ideographic.h: Regenerated.
15030         * lib/unictype/pr_ignorable_control.h: Regenerated.
15031         * lib/unictype/pr_lowercase.h: Regenerated.
15032         * lib/unictype/pr_math.h: Regenerated.
15033         * lib/unictype/pr_numeric.h: Regenerated.
15034         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15035         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15036         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15037         * lib/unictype/pr_other_id_continue.h: Regenerated.
15038         * lib/unictype/pr_other_lowercase.h: Regenerated.
15039         * lib/unictype/pr_other_math.h: Regenerated.
15040         * lib/unictype/pr_punctuation.h: Regenerated.
15041         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15042         * lib/unictype/pr_soft_dotted.h: Regenerated.
15043         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15044         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15045         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15046         * lib/unictype/pr_uppercase.h: Regenerated.
15047         * lib/unictype/pr_xid_continue.h: Regenerated.
15048         * lib/unictype/pr_xid_start.h: Regenerated.
15049         * lib/unictype/pr_zero_width.h: Regenerated.
15050         * lib/unictype/scripts.h: Regenerated.
15051         * lib/unictype/scripts_byname.gperf: Regenerated.
15052         * lib/unictype/sy_java_ident.h: Regenerated.
15053         * lib/unilbrk/lbrkprop1.h: Regenerated.
15054         * lib/unilbrk/lbrkprop2.h: Regenerated.
15055         * tests/unictype/test-categ_C.c: Regenerated.
15056         * tests/unictype/test-categ_Cf.c: Regenerated.
15057         * tests/unictype/test-categ_Cn.c: Regenerated.
15058         * tests/unictype/test-categ_L.c: Regenerated.
15059         * tests/unictype/test-categ_Ll.c: Regenerated.
15060         * tests/unictype/test-categ_Lm.c: Regenerated.
15061         * tests/unictype/test-categ_Lo.c: Regenerated.
15062         * tests/unictype/test-categ_Lu.c: Regenerated.
15063         * tests/unictype/test-categ_M.c: Regenerated.
15064         * tests/unictype/test-categ_Mc.c: Regenerated.
15065         * tests/unictype/test-categ_Me.c: Regenerated.
15066         * tests/unictype/test-categ_Mn.c: Regenerated.
15067         * tests/unictype/test-categ_N.c: Regenerated.
15068         * tests/unictype/test-categ_Nd.c: Regenerated.
15069         * tests/unictype/test-categ_Nl.c: Regenerated.
15070         * tests/unictype/test-categ_No.c: Regenerated.
15071         * tests/unictype/test-categ_P.c: Regenerated.
15072         * tests/unictype/test-categ_Pd.c: Regenerated.
15073         * tests/unictype/test-categ_Pe.c: Regenerated.
15074         * tests/unictype/test-categ_Pf.c: Regenerated.
15075         * tests/unictype/test-categ_Pi.c: Regenerated.
15076         * tests/unictype/test-categ_Po.c: Regenerated.
15077         * tests/unictype/test-categ_Ps.c: Regenerated.
15078         * tests/unictype/test-categ_S.c: Regenerated.
15079         * tests/unictype/test-categ_Sk.c: Regenerated.
15080         * tests/unictype/test-categ_Sm.c: Regenerated.
15081         * tests/unictype/test-categ_So.c: Regenerated.
15082         * tests/unictype/test-ctype_alnum.c: Regenerated.
15083         * tests/unictype/test-ctype_alpha.c: Regenerated.
15084         * tests/unictype/test-ctype_graph.c: Regenerated.
15085         * tests/unictype/test-ctype_lower.c: Regenerated.
15086         * tests/unictype/test-ctype_print.c: Regenerated.
15087         * tests/unictype/test-ctype_punct.c: Regenerated.
15088         * tests/unictype/test-ctype_upper.c: Regenerated.
15089         * tests/unictype/test-decdigit.h: Regenerated.
15090         * tests/unictype/test-digit.h: Regenerated.
15091         * tests/unictype/test-numeric.h: Regenerated.
15092         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15093         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15094         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15095         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15096         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15097         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15098         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15099         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15100         * tests/unictype/test-pr_combining.c: Regenerated.
15101         * tests/unictype/test-pr_dash.c: Regenerated.
15102         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15103         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15104         * tests/unictype/test-pr_deprecated.c: Regenerated.
15105         * tests/unictype/test-pr_diacritic.c: Regenerated.
15106         * tests/unictype/test-pr_extender.c: Regenerated.
15107         * tests/unictype/test-pr_format_control.c: Regenerated.
15108         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15109         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15110         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15111         * tests/unictype/test-pr_id_continue.c: Regenerated.
15112         * tests/unictype/test-pr_id_start.c: Regenerated.
15113         * tests/unictype/test-pr_ideographic.c: Regenerated.
15114         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15115         * tests/unictype/test-pr_lowercase.c: Regenerated.
15116         * tests/unictype/test-pr_math.c: Regenerated.
15117         * tests/unictype/test-pr_numeric.c: Regenerated.
15118         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15119         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15120         Regenerated.
15121         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15122         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15123         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15124         * tests/unictype/test-pr_other_math.c: Regenerated.
15125         * tests/unictype/test-pr_punctuation.c: Regenerated.
15126         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15127         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15128         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15129         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15130         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15131         * tests/unictype/test-pr_uppercase.c: Regenerated.
15132         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15133         * tests/unictype/test-pr_xid_start.c: Regenerated.
15134         * tests/unictype/test-pr_zero_width.c: Regenerated.
15135
15136         Update to Unicode 5.1.0.
15137         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15138         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15139         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15140         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15141         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15142         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15143         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15144         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15145         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15146         (nonspacing_table_ind): Update.
15147         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15148
15149         Update to Unicode 5.1.0.
15150         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15151         code transform.
15152         * lib/uniname/uniname.c (unicode_character_name,
15153         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15154         * lib/uniname/uninames.h: Regenerated.
15155         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15156
15157 2009-02-07  Bruno Haible  <bruno@clisp.org>
15158
15159         Merge gen-ctype and gen-lbrk into a single program.
15160         * lib/gen-uni-tables.c: New file, incorporating
15161         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15162         Add directory prefixes to the names of the generated files.
15163         * lib/unictype/gen-ctype.c: Remove file.
15164         * lib/unilbrk/gen-lbrk.c: Remove file.
15165         * modules/gen-uni-tables: New file.
15166         * modules/unictype/gen-ctype: Remove file.
15167         * modules/unilbrk/gen-lbrk: Remove file.
15168
15169 2009-02-07  Bruno Haible  <bruno@clisp.org>
15170
15171         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15172
15173         New module 'unistr/u32-strcoll'.
15174         * modules/unistr/u32-strcoll: New file.
15175         * lib/unistr/u32-strcoll.c: New file.
15176
15177         New module 'unistr/u16-strcoll'.
15178         * modules/unistr/u16-strcoll: New file.
15179         * lib/unistr/u16-strcoll.c: New file.
15180
15181         New module 'unistr/u8-strcoll'.
15182         * modules/unistr/u8-strcoll: New file.
15183         * lib/unistr/u8-strcoll.c: New file.
15184         * lib/unistr/u-strcoll.h: New file.
15185
15186 2009-02-07  Bruno Haible  <bruno@clisp.org>
15187
15188         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15189         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15190         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15191         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15192         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15193         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15194
15195 2009-02-07  Bruno Haible  <bruno@clisp.org>
15196
15197         Make 64-bit clean.
15198         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15199         output_combclass, output_bidi_category, output_decimal_digit,
15200         output_digit, output_numeric, output_mirror, output_scripts,
15201         output_ident_category): Use proper width specifier in format strings.
15202
15203 2009-02-07  Bruno Haible  <bruno@clisp.org>
15204
15205         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15206         failure behaviour.
15207
15208 2009-02-07  Jim Meyering  <meyering@redhat.com>
15209
15210         regex: avoid compilation failure with upcoming gcc-4.4
15211         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15212         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15213         "... error: integer overflow in preprocessor expression".
15214
15215 2009-02-05  Ben Pfaff  <blp@gnu.org>
15216
15217         Fix link errors on Windows when close module is used.
15218         * modules/close: Add $(LIB_CLOSE) to Link section.
15219         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15220         $(LIB_CLOSE) on Windows.
15221
15222 2009-02-05  Jim Meyering  <meyering@redhat.com>
15223
15224         still avoid unused-parameter warnings, but do it cleanly
15225         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15226         (get_fs_usage): Cast to void instead.
15227         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15228         (dev_from_mount_options, read_file_system_list): Cast to void.
15229         Prompted by Bruno Haible.
15230
15231 2009-02-04  Jim Meyering  <meyering@redhat.com>
15232
15233         fsusage.c: correct copyright year
15234         * lib/fsusage.c: Reflect year in which the change is pushed into
15235
15236         avoid misc. warnings
15237         * lib/fsusage.c (UNUSED_PARAM): Define.
15238         (get_fs_usage): Mark parameter "disk" as unused.
15239         * lib/getugroups.c (getgrent): Use "void" in prototype.
15240         * lib/mountlist.c: Mark unused parameters.
15241         (read_file_system_list): Declare a local with "const".
15242         * lib/nanosleep.c (getnow): Declare static.
15243         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15244
15245         dirfd: set errno upon failure
15246         * lib/dirfd.c: Include <errno.h>.
15247         Set errno to ENOTSUP when returning -1.
15248         * modules/dirfd (Depends-on): Add errno.
15249         Suggested by John Kodis <kodis@comcast.net>.
15250
15251 2009-02-01  Bruno Haible  <bruno@clisp.org>
15252
15253         Don't assume sizeof (long) >= sizeof (void *).
15254         * lib/memcmp.c: Include stdint.h.
15255         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15256         srcp2 to 'const byte *'.
15257         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15258         types to uintptr_t.
15259         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15260         * modules/memcmp (Depends-on): Add stdint.
15261         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15262
15263 2009-01-30  Eric Blake  <ebb9@byu.net>
15264
15265         fix more require-before-expand issues
15266         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15267         expand, AC_PROG_AWK.
15268         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15269
15270 2009-01-28  Eric Blake  <ebb9@byu.net>
15271
15272         version-etc: use consistent URL formatting
15273         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15274         Improve formatting.  Use fputs for string without %.
15275
15276 2009-01-28  Jim Meyering  <meyering@redhat.com>
15277
15278         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15279         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15280         "underquoted definition of NAME" from autoconf-2.59.
15281
15282 2009-01-28  Bruno Haible  <bruno@clisp.org>
15283
15284         * doc/gnulib.texi: Add "Obsolete modules" to index.
15285
15286 2009-01-28  Jim Meyering  <meyering@redhat.com>
15287
15288         useless-if-before-free: recognize more variants
15289         * build-aux/useless-if-before-free: Also recognize e.g.,
15290         if (NULL != p) free (p);
15291
15292 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15293
15294         test-getaddrinfo: skip (don't fail) this test when there's no network
15295         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15296         on the presumption that it means you lack network access.
15297
15298 2009-01-26  Jim Meyering  <meyering@redhat.com>
15299
15300         fflush: avoid warnings on modern systems
15301         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15302         pos and result, into scopes where they're used.
15303
15304 2009-01-26  Eric Blake  <ebb9@byu.net>
15305
15306         Silence warning reintroduced by recent extensions patch.
15307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15308         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15309         autoconf.
15310
15311         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15312         * m4/00gnulib.m4: New file.
15313         * gnulib-tool (func_get_filelist): Always use it.
15314         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15315         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15316
15317 2009-01-25  Bruno Haible  <bruno@clisp.org>
15318
15319         Make test-quotearg work on MacOS X and AIX.
15320         * tests/test-quotearg.sh: New file.
15321         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15322         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15323         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15324         include <libintl.h>.
15325         (fake_locale): Remove variable.
15326         (gettext, dgettext, dcgettext): Remove functions.
15327         (main): Instead of setting a fake locale, set a real locale. Call
15328         textdomain and bindtextdomain.
15329         * modules/quotearg-tests (Files): Add the new files.
15330         (Depends-on): Add gettext, setenv, unsetenv.
15331         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15332         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15333         Augment TESTS_ENVIRONMENT.
15334
15335 2009-01-25  Bruno Haible  <bruno@clisp.org>
15336
15337         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15338         fr_FR.ISO8859-1 locale on MacOS X.
15339         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15340         ja_JP.eucJP locale on MacOS X.
15341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15342         zh_CN.GB18030 locale on MacOS X.
15343
15344 2009-01-25  Bruno Haible  <bruno@clisp.org>
15345
15346         Avoid link errors on MacOS X 10.3.
15347         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15348         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15349
15350 2009-01-25  Bruno Haible  <bruno@clisp.org>
15351
15352         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15353         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15354         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15355         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15356         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15357         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15358         posix_spawnattr_init, posix_spawnattr_setsigmask,
15359         posix_spawnattr_setflags, posix_spawnattr_destroy.
15360
15361         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15362         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15363         * modules/execute (Files): Remove m4/posix_spawn.m4.
15364         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15365         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15366         posix_spawnattr_init, posix_spawnattr_setsigmask,
15367         posix_spawnattr_setflags, posix_spawnattr_destroy.
15368
15369 2009-01-25  Bruno Haible  <bruno@clisp.org>
15370
15371         * lib/glthread/threadlib.c: Include <stdlib.h>.
15372
15373 2009-01-25  Bruno Haible  <bruno@clisp.org>
15374
15375         * lib/glthread/threadlib.c (dummy): New declaration.
15376
15377 2009-01-25  Bruno Haible  <bruno@clisp.org>
15378
15379         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15380         multibyte characters also for the GB18030 encoding. Don't crash when
15381         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15382
15383 2009-01-25  Bruno Haible  <bruno@clisp.org>
15384
15385         Avoid redefining 'struct random_data' on OSF/1 5.1.
15386         * lib/stdlib.in.h: Include <random.h> if it exists.
15387         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15388         HAVE_RANDOM_H. Include <random.h> when testing whether
15389         'struct random_data' exists.
15390         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15391
15392 2009-01-25  Bruno Haible  <bruno@clisp.org>
15393
15394         Don't install charset.alias on MacOS X >= 10.3.
15395         * lib/localcharset.c (DARWIN7): New macro.
15396         (get_charset_aliases): Hardcode the result for Darwin7.
15397         * modules/localcharset (install-exec-local): Don't install
15398         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15399
15400 2009-01-25  Bruno Haible  <bruno@clisp.org>
15401
15402         Don't install charset.alias on mingw and Cygwin.
15403         * modules/localcharset (install-exec-local): Don't install
15404         charset.alias on mingw and Cygwin, if the file does not yet exist.
15405         The result for these platforms is hardcoded in localcharset.c.
15406
15407 2009-01-25  Bruno Haible  <bruno@clisp.org>
15408
15409         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15410         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15411         before requiring AC_USE_SYSTEM_EXTENSIONS.
15412
15413 2009-01-25  Jim Meyering  <meyering@redhat.com>
15414
15415         c-strtod: avoid warnings
15416         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15417         "assignment discards qualifiers from pointer target type" warnings.
15418
15419 2009-01-24  Bruno Haible  <bruno@clisp.org>
15420
15421         Add support for non-UTF-8 locales on MacOS X.
15422         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15423         canonical encodings. For Darwin 7 and newer, don't map traditional
15424         encodings to UTF-8.
15425         Reported by Vincent Lefevre <vincent@vinc17.org>
15426         at <http://savannah.gnu.org/bugs/?25235>.
15427
15428 2009-01-24  Bruno Haible  <bruno@clisp.org>
15429
15430         * doc/gnulib.texi (Obsolete modules): New section.
15431         Reported by Mike Frysinger <vapier@gentoo.org>.
15432
15433 2009-01-24  Bruno Haible  <bruno@clisp.org>
15434
15435         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15436         (%.dvi): New rule.
15437
15438 2009-01-24  Bruno Haible  <bruno@clisp.org>
15439
15440         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15441         Reported by Eric Blake.
15442
15443 2009-01-24  Bruno Haible  <bruno@clisp.org>
15444
15445         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15446         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15447         Reported by Gary V. Vaughan <gary@gnu.org>.
15448
15449 2009-01-24  Bruno Haible  <bruno@clisp.org>
15450
15451         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15452
15453 2009-01-23  Bruno Haible  <bruno@clisp.org>
15454
15455         Make c-strtod, c-strtold usable in libraries.
15456         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15457         (C_STRTOD): Call strdup instead of xstrdup.
15458         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15459         * modules/c-strtold (Depends-on): Likewise.
15460         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15461         * NEWS: Mention the change.
15462         Reported by Michael Gold <mgold@ncf.ca>.
15463
15464 2009-01-23  Jim Meyering  <meyering@redhat.com>
15465
15466         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15467         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15468         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15469
15470 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15471
15472         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15473         GNU CoreUtils.
15474         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15475         * modules/version-etc (Description): Update.
15476
15477 2009-01-22  Bruno Haible  <bruno@clisp.org>
15478
15479         Cache the C locale object.
15480         * lib/c-strtod.c (c_locale_cache): New variable.
15481         (c_locale): New function.
15482         (C_STRTOD): Use it, and don't call freelocale.
15483         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15484         Suggested by Paolo Bonzini.
15485
15486 2009-01-21  Bruno Haible  <bruno@clisp.org>
15487
15488         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15489         conditions other than overflow.
15490
15491 2009-01-21  Bruno Haible  <bruno@clisp.org>
15492
15493         * lib/c-strtod.c: Include errno.h.
15494         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15495         value from STRTOD_L and STRTOD.
15496
15497 2009-01-21  Bruno Haible  <bruno@clisp.org>
15498         and Jim Meyering  <meyering@redhat.com>
15499
15500         nanosleep: skip configure test (fail it) for apple universal builds
15501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15502         universal builds, assume that nanosleep does not work.
15503         * modules/nanosleep (Depends-on): Add multiarch.
15504
15505         mktime: skip configure test (fail it) for apple universal builds
15506         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15507         universal builds, assume that mktime does not work.
15508         * modules/mktime (Depends-on): Add multiarch.
15509
15510 2009-01-21  Eric Blake  <ebb9@byu.net>
15511
15512         multiarch: avoid expand-before-require warning
15513         * modules/multiarch (configure.ac): Require, rather than expand,
15514         gl_MULTIARCH.
15515         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15516         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15517         enforce that all clients require it.  Partial reversion of
15518         2008-12-29 patch.
15519
15520         error: avoid expand-before-require warning
15521         * modules/errno (configure.ac): Require, rather than expand,
15522         gl_HEADER_ERRNO_H.
15523         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15524         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15525         enforce that all clients require it.
15526
15527         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15528         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15529         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15530         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15531
15532 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15533
15534         Revert:
15535         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15536
15537         regex: do not depend on obsolete modules.
15538         * modules/regex: Remove memcmp and memmove.
15539
15540 2009-01-20  Bruno Haible  <bruno@clisp.org>
15541
15542         Make the 'link' module link on Windows NT 4.
15543         * lib/link.c (_WIN32_WINNT): Don't define.
15544         (CreateHardLinkFuncType): New type.
15545         (CreateHardLinkFunc, initialized): New variables.
15546         (initialize): New function.
15547         (link): Invoke CreateHardLink indirectly through the function pointer.
15548
15549 2009-01-20  Bruno Haible  <bruno@clisp.org>
15550
15551         Fix compilation failure on mingw.
15552         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15553
15554 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15555
15556         * doc/c-strtod.texi: Mention a couple of restrictions.
15557
15558 2009-01-20  Jim Meyering  <meyering@redhat.com>
15559
15560         gettimeofday: move more declarations out of functions
15561         * lib/gettimeofday.c: Move extern declarations of tzset and
15562         gmtime out of containing functions.  Prompted by Bruno Haible.
15563
15564 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15565
15566         regex: do not depend on obsolete modules.
15567         * modules/regex: Remove memcmp and memmove.
15568
15569 2009-01-19  Bruno Haible  <bruno@clisp.org>
15570
15571         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15572         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15573         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15574         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15575         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15576
15577 2009-01-19  Bruno Haible  <bruno@clisp.org>
15578
15579         * tests/test-link.c: Include <errno.h>.
15580         (main): Exit with code 77 when a hard link cannot be created due to
15581         the file system.
15582         * tests/test-link.sh: Skip test when a hard link cannot be created due
15583         to the file system.
15584         Suggested by Eric Blake.
15585
15586 2009-01-19  Martin Lambers  <marlam@marlam.de>
15587
15588         * modules/link-tests: New file.
15589         * tests/test-link.sh: New file.
15590         * tests/test-link.c: New file.
15591
15592 2009-01-19  Eric Blake  <ebb9@byu.net>
15593
15594         doc: mention another function added in cygwin 1.7.0
15595         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15596         Another new function in cygwin 1.7.
15597
15598 2009-01-19  Bruno Haible  <bruno@clisp.org>
15599
15600         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15601         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15602         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15603         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15604         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15605         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15606         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15607         * m4/md4.m4 (gl_MD4): Likewise.
15608         * m4/md5.m4 (gl_MD5): Likewise.
15609         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15610         * m4/sha1.m4 (gl_SHA1): Likewise.
15611         * m4/sha256.m4 (gl_SHA256): Likewise.
15612         * m4/sha512.m4 (gl_SHA512): Likewise.
15613
15614 2009-01-19  Bruno Haible  <bruno@clisp.org>
15615
15616         * modules/uniname/uniname-tests (Depends-on): Add progname.
15617         * tests/uniname/test-uninames.c: Include progname.h.
15618         (main): Call set_program_name.
15619
15620         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15621         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15622         (main): Call set_program_name.
15623
15624         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15625         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15626         (main): Call set_program_name.
15627
15628         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15629         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15630         (main): Call set_program_name.
15631
15632         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15633         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15634         (main): Call set_program_name.
15635
15636         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15637         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15638         (main): Call set_program_name.
15639
15640         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15641         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15642         (main): Call set_program_name.
15643
15644         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15645         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15646         (main): Call set_program_name.
15647
15648         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15649         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15650         (main): Call set_program_name.
15651
15652 2009-01-19  Eric Blake  <ebb9@byu.net>
15653
15654         test-unistd: test previous patch
15655         * tests/test-unistd.c: Test *_FILENO macros.
15656
15657         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15658         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15659         Guarantee a definition.
15660         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15661         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15662         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15663         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15664         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15665         Likewise.
15666         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15667         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15668         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15669         Likewise.
15670         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15671         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15672         (STDERR_FILENO): Likewise.
15673         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15674         (STDERR_FILENO): Likewise.
15675         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15676         (STDERR_FILENO): Likewise.
15677         Reported by Elbert Pol.
15678
15679 2009-01-19  Eric Blake  <ebb9@byu.net>
15680
15681         doc: mention more functions added in cygwin 1.7.0
15682         * doc/posix-functions/abort.texi (abort): Update wording related
15683         to cygwin.
15684         * doc/posix-functions/daylight.texi (daylight): Likewise.
15685         * doc/posix-functions/optarg.texi (optarg): Likewise.
15686         * doc/posix-functions/optarg.texi (opterr): Likewise.
15687         * doc/posix-functions/optarg.texi (optind): Likewise.
15688         * doc/posix-functions/optarg.texi (optopt): Likewise.
15689         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15690         worked in 1.5.x, and was withdrawn in 1.7.
15691         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15692         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15693         cygwin versions.
15694         * doc/posix-functions/perror.texi (perror): Likewise.
15695         * doc/posix-functions/printf.texi (printf): Likewise.
15696         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15697         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15698         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15699         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15700         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15701         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15702         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15703         Likewise.
15704         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15705         Likewise.
15706         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15707         this function.
15708         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15709         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15710         Likewise.
15711         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15712         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15713         * doc/posix-functions/confstr.texi (confstr): Likewise.
15714         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15715         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15716         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15717         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15718         * doc/posix-functions/fputws.texi (fputws): Likewise.
15719         * doc/posix-functions/fwide.texi (fwide): Likewise.
15720         * doc/posix-functions/getwc.texi (getwc): Likewise.
15721         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15722         * doc/posix-functions/putwc.texi (putwc): Likewise.
15723         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15724         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15725         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15726         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15727         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15728         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15729         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15730         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15731         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15732         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15733         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15734
15735 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15736
15737         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15738         * lib/ioctl.c: Include <sys/ioctl.h>.
15739
15740 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15741
15742         * modules/getdate-tests (Depends-on): Add progname.
15743         * tests/test-getdate.c: Use progname module, to avoid link errors
15744         on non-glibc systems.
15745
15746 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15747
15748         * modules/filenamecat-tests (Depends-on): Add progname.
15749         * modules/fstrcmp-tests (Depends-on): Likewise.
15750
15751         * tests/test-filenamecat.c: Use progname module, to avoid link
15752         errors on non-glibc systems.
15753         * tests/test-fstrcmp.c: Likewise.
15754
15755 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15756
15757         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15758         * lib/gettimeofday.c: Move extern declaration out of function.
15759
15760 2009-01-18  Bruno Haible  <bruno@clisp.org>
15761
15762         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15763         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15764         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15765
15766 2009-01-18  Bruno Haible  <bruno@clisp.org>
15767
15768         * lib/strftime.c (MEMPCPY): Remove unused macro.
15769         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15770
15771 2009-01-18  Martin Lambers  <marlam@marlam.de>
15772
15773         New module 'link'.
15774         * lib/unistd.in.h (link): New declaration.
15775         * lib/link.c: New file.
15776         * m4/link.m4: New file.
15777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15778         HAVE_LINK.
15779         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15780         * modules/link: New file.
15781         * doc/posix-functions/link.texi: Mention the new module.
15782
15783 2009-01-18  Bruno Haible  <bruno@clisp.org>
15784
15785         * tests/test-avltree_list.c (main): Call set_program_name.
15786         * tests/test-avltree_oset.c (main): Likewise.
15787         * tests/test-obstack-printf.c: Include progname.h.
15788         (main): Call set_program_name.
15789         * tests/test-quotearg.c: Include progname.h.
15790         (main): Call set_program_name.
15791         * tests/test-xmemdup0.c: Include progname.h.
15792         (main): Call set_program_name.
15793
15794 2009-01-18  Bruno Haible  <bruno@clisp.org>
15795
15796         New module 'alphasort'.
15797         * lib/dirent.in.h (alphasort): New declaration.
15798         * lib/alphasort.c: New file, from glibc with modifications.
15799         * m4/alphasort.m4: New file.
15800         * modules/alphasort: New file.
15801         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15802         HAVE_ALPHASORT.
15803         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15804         HAVE_ALPHASORT.
15805         * doc/posix-functions/alphasort.texi: Mention the new module and the
15806         portability problems.
15807
15808 2009-01-18  Bruno Haible  <bruno@clisp.org>
15809
15810         New module 'scandir'.
15811         * lib/dirent.in.h (scandir): New declaration.
15812         * lib/scandir.c: New file, from glibc with modifications.
15813         * m4/scandir.m4: New file.
15814         * modules/scandir: New file.
15815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15816         HAVE_SCANDIR.
15817         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15818         HAVE_SCANDIR.
15819         * doc/posix-functions/scandir.texi: Mention the new module and the
15820         portability problems.
15821
15822 2009-01-17  Bruno Haible  <bruno@clisp.org>
15823
15824         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15825         Update documentation.
15826         (func_remove_suffix): Escape all dots in the suffix. Update
15827         documentation.
15828         (func_filter_filelist): Update documentation.
15829         Reported by Ralf Wildenhues.
15830
15831 2009-01-17  Bruno Haible  <bruno@clisp.org>
15832
15833         * modules/dprintf-posix-tests: New file.
15834         * tests/test-dprintf-posix.sh: New file.
15835         * tests/test-dprintf-posix.c: New file.
15836
15837         New modules 'dprintf', 'dprintf-posix'.
15838         * lib/stdio.in.h (dprintf): New declaration.
15839         * lib/dprintf.c: New file.
15840         * m4/dprintf.m4: New file.
15841         * m4/dprintf-posix.m4: New file.
15842         * modules/dprintf: New file.
15843         * modules/dprintf-posix: New file.
15844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15845         HAVE_DPRINTF, REPLACE_DPRINTF.
15846         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15847         HAVE_DPRINTF, REPLACE_DPRINTF.
15848         * doc/posix-functions/dprintf.texi: Mention the new modules.
15849
15850 2009-01-17  Bruno Haible  <bruno@clisp.org>
15851
15852         * modules/vdprintf-posix-tests: New file.
15853         * tests/test-vdprintf-posix.sh: New file.
15854         * tests/test-vdprintf-posix.c: New file.
15855
15856         New modules 'vdprintf', 'vdprintf-posix'.
15857         * lib/stdio.in.h (vdprintf): New declaration.
15858         * lib/vdprintf.c: New file.
15859         * m4/vdprintf.m4: New file.
15860         * m4/vdprintf-posix.m4: New file.
15861         * modules/vdprintf: New file.
15862         * modules/vdprintf-posix: New file.
15863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15864         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15865         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15866         HAVE_VDPRINTF, REPLACE_VDPRINTF.
15867         * doc/posix-functions/vdprintf.texi: Mention the new modules.
15868
15869 2009-01-17  Bruno Haible  <bruno@clisp.org>
15870
15871         Fix replacement of fopen on mingw.
15872         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15873         mingw.
15874
15875 2009-01-17  Bruno Haible  <bruno@clisp.org>
15876
15877         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15878         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15879
15880 2009-01-17  Bruno Haible  <bruno@clisp.org>
15881
15882         Avoid test-fflush2.sh failure on mingw.
15883         * tests/test-fflush2.c: Include binary-io.h.
15884         (main): Put standard input into binary mode.
15885         * modules/fflush-tests (Depends-on): Add binary-io.
15886
15887 2009-01-17  Bruno Haible  <bruno@clisp.org>
15888
15889         * lib/wchar.in.h: In another particular situation, include only the
15890         system's <wchar.h> file.
15891         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15892         Reported by Albert Chin-A-Young <china@thewrittenword.com>
15893         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15894
15895 2009-01-17  Bruno Haible  <bruno@clisp.org>
15896
15897         Support for stripping executables in --enable-relocatable.
15898         * build-aux/install-reloc: Expect one more argument, or an environment
15899         variable RELOC_STRIP_PROG. If set, strip the destination program and
15900         its wrapper.
15901         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15902         RELOC_STRIP_PROG.
15903         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15904         to set RELOCATABLE_STRIP.
15905         * NEWS: Mention the new Makefile requirement.
15906
15907 2009-01-17  Bruno Haible  <bruno@clisp.org>
15908
15909         * build-aux/install-reloc: Remove debugging information left over by
15910         C compiler on MacOS X.
15911
15912 2009-01-17  Bruno Haible  <bruno@clisp.org>
15913
15914         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15915         * lib/progreloc.c (find_executable): Fix type of pointer passed to
15916         _NSGetExecutablePath.
15917
15918 2009-01-16  Jim Meyering  <meyering@redhat.com>
15919
15920         strerror: avoid warnings about discarding "const"
15921         * lib/strerror.c (rpl_strerror): Instead of returning a const
15922         string from each and every "case", use a variable, and add a single
15923         cast after the switch.
15924
15925 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
15926
15927         * lib/arpa_inet.in.h: Add extern "C" block for C++.
15928
15929 2009-01-16  Bruno Haible  <bruno@clisp.org>
15930
15931         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15932         array initializer syntax that also works in C++ mode.
15933         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15934
15935 2009-01-16  Jim Meyering  <meyering@redhat.com>
15936
15937         poll: suppress a warning
15938         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15939         to ignore "...unsigned expression < 0 is always false" warnings.
15940
15941 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
15942
15943         poll: remove declarations of unused variables
15944         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15945         sockbuf and optlen.
15946
15947 2009-01-15  Bruno Haible  <bruno@clisp.org>
15948
15949         Make fflush-after-ungetc POSIX compliant on BSD systems.
15950         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15951         (clear_ungetc_buffer): Implement also for other systems.
15952         (rpl_fflush): On glibc systems, invoke
15953         clear_ungetc_buffer_preserving_position. Otherwise, invoke
15954         clear_ungetc_buffer after fetching the stream's position, not before.
15955
15956 2009-01-15  Bruno Haible  <bruno@clisp.org>
15957
15958         Make fflush-after-ungetc POSIX compliant on glibc systems.
15959         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15960         after ungetc.
15961         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15962         (rpl_fflush): On glibc systems, simply call the system's fflush
15963         function after clearing the ungetc buffer.
15964         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15965         Instead, lseek only to the end of file, then use the system's fseeko
15966         for the rest. On glibc systems, reset the EOF indicator bit.
15967
15968 2009-01-15  Jim Meyering  <meyering@redhat.com>
15969
15970         openmp.m4: revert quote-adding change, for portability to older autoconf
15971         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15972         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15973         Simon Josefsson noticed the problem when using autoconf-2.61.
15974
15975 2009-01-15  Bruno Haible  <bruno@clisp.org>
15976
15977         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15978         * tests/test-fflush2.c (ASSERT): Always fail.
15979         (main): Add two tests for fflush() after ungetc(), taking into account
15980         the Austin Group's clarification.
15981         Suggested by Eric Blake.
15982
15983 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
15984
15985         mktime.m4: remove K&R-style function prototypes
15986         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15987         for the Sun C++ compiler.
15988
15989 2009-01-14  Bruno Haible  <bruno@clisp.org>
15990
15991         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15992         while including <wchar.h>.
15993         * lib/wchar.in.h: In two particular situations on HP-UX, include only
15994         the system's <wchar.h> file.
15995         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15996
15997 2009-01-14  Bruno Haible  <bruno@clisp.org>
15998
15999         * m4/csharp.m4: Don't mention gettext on the serial number line.
16000         * m4/csharpexec.m4: Likewise.
16001         * m4/eaccess.m4: Likewise.
16002         * m4/javaexec.m4: Likewise.
16003         * m4/sig_atomic_t.m4: Likewise.
16004         * m4/tmpdir.m4: Likewise.
16005         * m4/intldir.m4: Bump gettext version.
16006         * m4/lib-ld.m4: Likewise.
16007
16008 2009-01-14  Bruno Haible  <bruno@clisp.org>
16009
16010         * lib/progname.c (set_program_name): Add more comments.
16011         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16012
16013 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16014
16015         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16016         were sys/stat.h does not define it.
16017
16018 2009-01-14  Jim Meyering  <meyering@redhat.com>
16019
16020         many *.m4 files: improve m4 quoting
16021         99% of this change was performed by running the following commands:
16022         git ls-files | grep '\.m4$' | xargs perl -pi \
16023           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16024           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16025           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16026           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16027         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16028         The remainder were to add Copyright dates, increment serial numbers,
16029         undo some changes in comments, exclude m4/intl.m4, and add quotes
16030         around the "1" in ",1" where the unusual spacing prohibited the
16031         above regexps from doing the job.  For more details, see
16032         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16033         * m4/acl.m4: Modified.
16034         * m4/afs.m4: Likewise.
16035         * m4/alloca.m4: Likewise.
16036         * m4/argp.m4: Likewise.
16037         * m4/argz.m4: Likewise.
16038         * m4/atexit.m4: Likewise.
16039         * m4/bison-i18n.m4: Likewise.
16040         * m4/bison.m4: Likewise.
16041         * m4/byteswap.m4: Likewise.
16042         * m4/c-stack.m4: Likewise.
16043         * m4/c-strtod.m4: Likewise.
16044         * m4/calloc.m4: Likewise.
16045         * m4/canonicalize-lgpl.m4: Likewise.
16046         * m4/chown.m4: Likewise.
16047         * m4/clock_time.m4: Likewise.
16048         * m4/codeset.m4: Likewise.
16049         * m4/copy-file.m4: Likewise.
16050         * m4/csharp.m4: Likewise.
16051         * m4/csharpcomp.m4: Likewise.
16052         * m4/csharpexec.m4: Likewise.
16053         * m4/d-ino.m4: Likewise.
16054         * m4/d-type.m4: Likewise.
16055         * m4/dirfd.m4: Likewise.
16056         * m4/double-slash-root.m4: Likewise.
16057         * m4/eaccess.m4: Likewise.
16058         * m4/eealloc.m4: Likewise.
16059         * m4/environ.m4: Likewise.
16060         * m4/errno_h.m4: Likewise.
16061         * m4/euidaccess.m4: Likewise.
16062         * m4/execute.m4: Likewise.
16063         * m4/fatal-signal.m4: Likewise.
16064         * m4/fchdir.m4: Likewise.
16065         * m4/fcntl_h.m4: Likewise.
16066         * m4/fileblocks.m4: Likewise.
16067         * m4/filenamecat.m4: Likewise.
16068         * m4/findprog.m4: Likewise.
16069         * m4/flexmember.m4: Likewise.
16070         * m4/fnmatch.m4: Likewise.
16071         * m4/fopen.m4: Likewise.
16072         * m4/fpending.m4: Likewise.
16073         * m4/fprintf-posix.m4: Likewise.
16074         * m4/free.m4: Likewise.
16075         * m4/frexp.m4: Likewise.
16076         * m4/frexpl.m4: Likewise.
16077         * m4/fsusage.m4: Likewise.
16078         * m4/ftruncate.m4: Likewise.
16079         * m4/gc-camellia.m4: Likewise.
16080         * m4/gc-random.m4: Likewise.
16081         * m4/gc.m4: Likewise.
16082         * m4/getaddrinfo.m4: Likewise.
16083         * m4/getcwd-abort-bug.m4: Likewise.
16084         * m4/getcwd-path-max.m4: Likewise.
16085         * m4/getdate.m4: Likewise.
16086         * m4/getdomainname.m4: Likewise.
16087         * m4/getgroups.m4: Likewise.
16088         * m4/gethostname.m4: Likewise.
16089         * m4/gethrxtime.m4: Likewise.
16090         * m4/getline.m4: Likewise.
16091         * m4/getloadavg.m4: Likewise.
16092         * m4/getndelim2.m4: Likewise.
16093         * m4/getpass.m4: Likewise.
16094         * m4/gettext.m4: Likewise.
16095         * m4/gettime.m4: Likewise.
16096         * m4/gettimeofday.m4: Likewise.
16097         * m4/gnulib-common.m4: Likewise.
16098         * m4/group-member.m4: Likewise.
16099         * m4/host-os.m4: Likewise.
16100         * m4/iconv.m4: Likewise.
16101         * m4/iconv_open.m4: Likewise.
16102         * m4/inet_ntop.m4: Likewise.
16103         * m4/inet_pton.m4: Likewise.
16104         * m4/inline.m4: Likewise.
16105         * m4/intldir.m4: Likewise.
16106         * m4/intlmacosx.m4: Likewise.
16107         * m4/intmax.m4: Likewise.
16108         * m4/intmax_t.m4: Likewise.
16109         * m4/inttypes.m4: Likewise.
16110         * m4/inttypes_h.m4: Likewise.
16111         * m4/inttypes-pri.m4: Likewise.
16112         * m4/isapipe.m4: Likewise.
16113         * m4/isnand.m4: Likewise.
16114         * m4/isnanf.m4: Likewise.
16115         * m4/isnanl.m4: Likewise.
16116         * m4/javacomp.m4: Likewise.
16117         * m4/javaexec.m4: Likewise.
16118         * m4/jm-winsz1.m4: Likewise.
16119         * m4/jm-winsz2.m4: Likewise.
16120         * m4/lchown.m4: Likewise.
16121         * m4/lcmessage.m4: Likewise.
16122         * m4/ldexpl.m4: Likewise.
16123         * m4/lib-ld.m4: Likewise.
16124         * m4/lib-link.m4: Likewise.
16125         * m4/libsigsegv.m4: Likewise.
16126         * m4/link-follow.m4: Likewise.
16127         * m4/localcharset.m4: Likewise.
16128         * m4/locale-fr.m4: Likewise.
16129         * m4/locale-ja.m4: Likewise.
16130         * m4/locale-tr.m4: Likewise.
16131         * m4/locale-zh.m4: Likewise.
16132         * m4/lock.m4: Likewise.
16133         * m4/longlong.m4: Likewise.
16134         * m4/ls-mntd-fs.m4: Likewise.
16135         * m4/lstat.m4: Likewise.
16136         * m4/malloc.m4: Likewise.
16137         * m4/mathl.m4: Likewise.
16138         * m4/mbrtowc.m4: Likewise.
16139         * m4/mbstate_t.m4: Likewise.
16140         * m4/mbswidth.m4: Likewise.
16141         * m4/memchr.m4: Likewise.
16142         * m4/memcmp.m4: Likewise.
16143         * m4/memcpy.m4: Likewise.
16144         * m4/memmem.m4: Likewise.
16145         * m4/memmove.m4: Likewise.
16146         * m4/mempcpy.m4: Likewise.
16147         * m4/memrchr.m4: Likewise.
16148         * m4/memset.m4: Likewise.
16149         * m4/minmax.m4: Likewise.
16150         * m4/mkdir-slash.m4: Likewise.
16151         * m4/mkdtemp.m4: Likewise.
16152         * m4/mktime.m4: Likewise.
16153         * m4/mmap-anon.m4: Likewise.
16154         * m4/mountlist.m4: Likewise.
16155         * m4/nanosleep.m4: Likewise.
16156         * m4/nls.m4: Likewise.
16157         * m4/nocrash.m4: Likewise.
16158         * m4/open.m4: Likewise.
16159         * m4/openat.m4: Likewise.
16160         * m4/openmp.m4: Likewise.
16161         * m4/pathmax.m4: Likewise.
16162         * m4/perl.m4: Likewise.
16163         * m4/physmem.m4: Likewise.
16164         * m4/pipe.m4: Likewise.
16165         * m4/po.m4: Likewise.
16166         * m4/poll.m4: Likewise.
16167         * m4/posixtm.m4: Likewise.
16168         * m4/posixver.m4: Likewise.
16169         * m4/printf-frexp.m4: Likewise.
16170         * m4/printf-frexpl.m4: Likewise.
16171         * m4/printf-posix.m4: Likewise.
16172         * m4/printf-posix-rpl.m4: Likewise.
16173         * m4/printf.m4: Likewise.
16174         * m4/progtest.m4: Likewise.
16175         * m4/putenv.m4: Likewise.
16176         * m4/readline.m4: Likewise.
16177         * m4/readlink.m4: Likewise.
16178         * m4/readutmp.m4: Likewise.
16179         * m4/realloc.m4: Likewise.
16180         * m4/regex.m4: Likewise.
16181         * m4/relocatable.m4: Likewise.
16182         * m4/relocatable-lib.m4: Likewise.
16183         * m4/rename-dest-slash.m4: Likewise.
16184         * m4/rename.m4: Likewise.
16185         * m4/rmdir-errno.m4: Likewise.
16186         * m4/rmdir.m4: Likewise.
16187         * m4/roundf.m4: Likewise.
16188         * m4/roundl.m4: Likewise.
16189         * m4/rpmatch.m4: Likewise.
16190         * m4/save-cwd.m4: Likewise.
16191         * m4/selinux-selinux-h.m4: Likewise.
16192         * m4/setenv.m4: Likewise.
16193         * m4/settime.m4: Likewise.
16194         * m4/sig2str.m4: Likewise.
16195         * m4/sig_atomic_t.m4: Likewise.
16196         * m4/signalblocking.m4: Likewise.
16197         * m4/signbit.m4: Likewise.
16198         * m4/sigpipe.m4: Likewise.
16199         * m4/sockets.m4: Likewise.
16200         * m4/sockpfaf.m4: Likewise.
16201         * m4/st_dm_mode.m4: Likewise.
16202         * m4/stat-time.m4: Likewise.
16203         * m4/stdbool.m4: Likewise.
16204         * m4/stdint.m4: Likewise.
16205         * m4/stdint_h.m4: Likewise.
16206         * m4/stpcpy.m4: Likewise.
16207         * m4/stpncpy.m4: Likewise.
16208         * m4/strcase.m4: Likewise.
16209         * m4/strchrnul.m4: Likewise.
16210         * m4/strcspn.m4: Likewise.
16211         * m4/strdup.m4: Likewise.
16212         * m4/strftime.m4: Likewise.
16213         * m4/strndup.m4: Likewise.
16214         * m4/strnlen.m4: Likewise.
16215         * m4/strpbrk.m4: Likewise.
16216         * m4/strptime.m4: Likewise.
16217         * m4/strsep.m4: Likewise.
16218         * m4/strtod.m4: Likewise.
16219         * m4/strtoimax.m4: Likewise.
16220         * m4/strtok_r.m4: Likewise.
16221         * m4/strtol.m4: Likewise.
16222         * m4/strtoll.m4: Likewise.
16223         * m4/strtoul.m4: Likewise.
16224         * m4/strtoull.m4: Likewise.
16225         * m4/strtoumax.m4: Likewise.
16226         * m4/strverscmp.m4: Likewise.
16227         * m4/threadlib.m4: Likewise.
16228         * m4/timegm.m4: Likewise.
16229         * m4/tm_gmtoff.m4: Likewise.
16230         * m4/tmpdir.m4: Likewise.
16231         * m4/tmpfile.m4: Likewise.
16232         * m4/tzset.m4: Likewise.
16233         * m4/uintmax_t.m4: Likewise.
16234         * m4/unlinkdir.m4: Likewise.
16235         * m4/unlocked-io.m4: Likewise.
16236         * m4/uptime.m4: Likewise.
16237         * m4/userspec.m4: Likewise.
16238         * m4/utimbuf.m4: Likewise.
16239         * m4/utime.m4: Likewise.
16240         * m4/utimes-null.m4: Likewise.
16241         * m4/utimes.m4: Likewise.
16242         * m4/vararrays.m4: Likewise.
16243         * m4/vasnprintf.m4: Likewise.
16244         * m4/vfprintf-posix.m4: Likewise.
16245         * m4/vprintf-posix.m4: Likewise.
16246         * m4/wait-process.m4: Likewise.
16247         * m4/wchar_t.m4: Likewise.
16248         * m4/wint_t.m4: Likewise.
16249         * m4/write-any-file.m4: Likewise.
16250         * m4/yield.m4: Likewise.
16251
16252 2009-01-13  Bruno Haible  <bruno@clisp.org>
16253
16254         Avoid test-copy-file.sh failures when ACL support insufficient.
16255         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16256         TESTS_ENVIRONMENT.
16257         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16258         Reported by Jim Meyering.
16259
16260 2009-01-13  Bruno Haible  <bruno@clisp.org>
16261
16262         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16263         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16264         * modules/unistdio/u8-printf-parse (Files): Likewise.
16265         * modules/unistdio/u32-printf-parse (Files): Likewise.
16266         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16267
16268 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16269
16270         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16271         and m4/inttypes_h.m4 too.
16272
16273 2009-01-12  Eric Blake  <ebb9@byu.net>
16274
16275         tests: IRIX 6.2 cc can't compile -0.0 into .data
16276         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16277         rather than at compile-time.
16278         * tests/test-floorl.c (minus_zero): Likewise.
16279         * tests/test-frexpl.c (minus_zero): Likewise.
16280         * tests/test-isnan.c (minus_zerol): Likewise.
16281         * tests/test-isnanl.h (minus_zero): Likewise.
16282         * tests/test-ldexpl.c (minus_zero): Likewise.
16283         * tests/test-roundl.c (minus_zero): Likewise.
16284         * tests/test-signbit.c (minus_zerol): Likewise.
16285         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16286         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16287         * tests/test-truncl.c (minus_zero): Likewise.
16288         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16289         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16290         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16291
16292 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16293
16294         regex: fix glibc bug 9697
16295         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16296         handling.
16297
16298 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16299
16300         regex: fix glibc bug 697
16301         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16302         being NULL also if there are no backreferences.
16303
16304 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16305
16306         regex: merge glibc changes
16307         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16308         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16309         re_string_skip_chars, re_string_reconstruct): Likewise.
16310         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16311
16312 2009-01-07  Jim Meyering  <meyering@redhat.com>
16313
16314         poll: filter through cppi
16315         * lib/poll.c: Indent cpp directives to reflect nesting.
16316
16317 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16318
16319         poll: don't return uninitialized
16320         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16321
16322 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16323
16324         avoid compile failure on AIX 6.1
16325         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16326         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16327
16328 2009-01-04  Jim Meyering  <meyering@redhat.com>
16329
16330         remove duplicate inclusion of <stdio.h>
16331         * tests/test-fprintf-posix.c: Likewise.
16332         * tests/test-printf-posix.c: Likewise.
16333         * tests/test-snprintf-posix.c: Likewise.
16334         * tests/test-sprintf-posix.c: Likewise.
16335         * tests/test-vasprintf-posix.c: Likewise.
16336         * tests/test-vfprintf-posix.c: Likewise.
16337         * tests/test-vprintf-posix.c: Likewise.
16338         * tests/test-vsnprintf-posix.c: Likewise.
16339         * tests/test-vsprintf-posix.c: Likewise.
16340
16341 2009-01-03  Jim Meyering  <meyering@redhat.com>
16342
16343         gnulib-tool: fix sed-based filtering
16344         * gnulib-tool (func_filter_filelist): Remove extra backslash
16345         in sed_fff_filter definition.
16346
16347 2009-01-02  Jim Meyering  <meyering@redhat.com>
16348
16349         strftime: avoid compilation failure on Solaris 2.6
16350         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16351         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16352         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16353         be available.  Reported by Tom G. Christensen.  Details in
16354         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16355
16356 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16357             Bruno Haible  <bruno@clisp.org>
16358
16359         Speed up gnulib-tool by doing more string processing through shell
16360         built-ins.
16361         * gnulib-tool (fast_func_append): New variable.
16362         (func_remove_prefix, func_remove_suffix): New functions.
16363         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16364         (func_filter_filelist): New function.
16365         (func_get_dependencies): Use func_remove_suffix instead of sed.
16366         (func_get_automake_snippet): Use func_filter_filelist instead of a
16367         subshell and sed invocation.
16368
16369 2009-01-01  Bruno Haible  <bruno@clisp.org>
16370
16371         Fix a security bug.
16372         * gnulib-tool (func_import, import, update): Don't allow the characters
16373         '"', '$', '`', '\' in macro arguments that become part of commands that
16374         are evaluated.
16375
16376 2009-01-01  Bruno Haible  <bruno@clisp.org>
16377
16378         * gnulib-tool (func_reset_sigpipe): Add more comments.
16379
16380 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16381
16382         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16383         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16384         already know the answer.
16385
16386 2009-01-01  Jim Meyering  <meyering@redhat.com>
16387
16388         * lib/version-etc.c (version_etc_va): Update copyright year.
16389
16390 2008-12-30  Bruno Haible  <bruno@clisp.org>
16391
16392         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16393         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16394         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16395
16396 2008-12-29  Eric Blake  <ebb9@byu.net>
16397
16398         multiarch: avoid autoconf AC_REQUIRE bug
16399         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16400         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16401         2.63 and older.
16402         Reported by Bruno Haible, and analyzed in
16403         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16404
16405 2008-12-29  Bruno Haible  <bruno@clisp.org>
16406
16407         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16408         files in subdirectories correctly.
16409         Reported by Ralf Wildenhues.
16410
16411 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16412
16413         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16414         rather than 'join FILE -', for Solaris join.
16415
16416 2008-12-29  Bruno Haible  <bruno@clisp.org>
16417
16418         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16419         quoting.
16420         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16421         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16422         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16423         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16424         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16425         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16426         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16427         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16428         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16429         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16430         * m4/nls.m4 (AM_NLS): Likewise.
16431         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16432         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16433         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16434         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16435         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16436         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16437         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16438         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16439         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16440         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16441         * m4/xsize.m4 (gl_XSIZE): Likewise.
16442         Suggested by Jim Meyering.
16443
16444 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16445
16446         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16447         * lib/parse-duration.c: use a switch instead of cascading if's.
16448
16449 2008-12-29  Eric Blake  <ebb9@byu.net>
16450
16451         wchar.h: supply WEOF on Irix 5.3
16452         * lib/wchar.in.h (wint_t): Also supply WEOF.
16453         * lib/wctype.in.h (wint_t): Likewise.
16454         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16455         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16456         Reported by Tom G. Christensen.
16457
16458 2008-12-26  Bruno Haible  <bruno@clisp.org>
16459
16460         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16461         i486, i586, i686.
16462
16463 2008-12-26  Bruno Haible  <bruno@clisp.org>
16464
16465         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16466
16467 2008-12-26  Bruno Haible  <bruno@clisp.org>
16468
16469         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16470         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16471         not __STDC_CONSTANT_MACROS.
16472         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16473
16474 2008-12-25  Bruno Haible  <bruno@clisp.org>
16475
16476         Add support for universal builds to vasnprintf.
16477         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16478         universal builds, guess no.
16479         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16480         * modules/vasprintf-posix (Depends-on): Likewise.
16481         * modules/fprintf-posix (Depends-on): Likewise.
16482         * modules/vfprintf-posix (Depends-on): Likewise.
16483         * modules/snprintf-posix (Depends-on): Likewise.
16484         * modules/vsnprintf-posix (Depends-on): Likewise.
16485         * modules/sprintf-posix (Depends-on): Likewise.
16486         * modules/vsprintf-posix (Depends-on): Likewise.
16487         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16494
16495         Add support for universal builds to <inttypes.h>.
16496         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16497         _SCNu64_PREFIX): In Apple
16498         universal builds, define directly, using _LP64.
16499         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16500         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16501         * modules/inttypes (Depends-on): Add multiarch.
16502         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16503
16504         Add support for universal builds to <stdint.h>.
16505         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16506         universal builds, define directly, using _LP64.
16507         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16508         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16509         and size_t.
16510         * modules/stdint (Depends-on): Add multiarch.
16511         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16512
16513         New module 'multiarch'.
16514         * modules/multiarch: New file.
16515         * m4/multiarch.m4: New file.
16516
16517 2008-12-25  Bruno Haible  <bruno@clisp.org>
16518
16519         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16520
16521 2008-12-25  Bruno Haible  <bruno@clisp.org>
16522
16523         * modules/btowc (License): Relicense under LGPLv2+.
16524         * modules/mbsinit (License): Likewise.
16525         * modules/mbrtowc (License): Likewise.
16526         * modules/wcrtomb (License): Likewise.
16527         * modules/streq (License): Likewise.
16528         Reported by David Lutterkort <lutter@redhat.com>.
16529
16530 2008-12-23  Bruno Haible  <bruno@clisp.org>
16531
16532         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16533
16534 2008-12-23  Bruno Haible  <bruno@clisp.org>
16535
16536         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16538         GETADDRINFO_LIB, not in LIBS.
16539         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16540         * modules/canon-host (Link): Likewise.
16541         * NEWS: Mention the change.
16542         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16543         GETADDRINFO_LIB.
16544
16545 2008-12-22  Bruno Haible  <bruno@clisp.org>
16546
16547         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16548         * doc/posix-functions/iswalpha_l.texi: Likewise.
16549         * doc/posix-functions/iswblank_l.texi: Likewise.
16550         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16551         * doc/posix-functions/iswctype_l.texi: Likewise.
16552         * doc/posix-functions/iswdigit_l.texi: Likewise.
16553         * doc/posix-functions/iswgraph_l.texi: Likewise.
16554         * doc/posix-functions/iswlower_l.texi: Likewise.
16555         * doc/posix-functions/iswprint_l.texi: Likewise.
16556         * doc/posix-functions/iswpunct_l.texi: Likewise.
16557         * doc/posix-functions/iswspace_l.texi: Likewise.
16558         * doc/posix-functions/iswupper_l.texi: Likewise.
16559         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16560         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16561         * doc/posix-functions/open_wmemstream.texi: Likewise.
16562         * doc/posix-functions/swscanf.texi: Likewise.
16563         * doc/posix-functions/towctrans_l.texi: Likewise.
16564         * doc/posix-functions/towlower.texi: Likewise.
16565         * doc/posix-functions/towlower_l.texi: Likewise.
16566         * doc/posix-functions/towupper.texi: Likewise.
16567         * doc/posix-functions/towupper_l.texi: Likewise.
16568         * doc/posix-functions/vfwprintf.texi: Likewise.
16569         * doc/posix-functions/vfwscanf.texi: Likewise.
16570         * doc/posix-functions/vswscanf.texi: Likewise.
16571         * doc/posix-functions/vwprintf.texi: Likewise.
16572         * doc/posix-functions/vwscanf.texi: Likewise.
16573         * doc/posix-functions/wcpcpy.texi: Likewise.
16574         * doc/posix-functions/wcpncpy.texi: Likewise.
16575         * doc/posix-functions/wcscasecmp.texi: Likewise.
16576         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16577         * doc/posix-functions/wcscoll_l.texi: Likewise.
16578         * doc/posix-functions/wcsdup.texi: Likewise.
16579         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16580         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16581         * doc/posix-functions/wcsnlen.texi: Likewise.
16582         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16583         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16584         * doc/posix-functions/wctrans_l.texi: Likewise.
16585         * doc/posix-functions/wctype_l.texi: Likewise.
16586         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16587         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16588         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16589         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16590         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16591         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16592         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16593         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16594         * doc/glibc-functions/wcschrnul.texi: Likewise.
16595         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16596         * doc/glibc-functions/wcstod_l.texi: Likewise.
16597         * doc/glibc-functions/wcstof_l.texi: Likewise.
16598         * doc/glibc-functions/wcstol_l.texi: Likewise.
16599         * doc/glibc-functions/wcstold_l.texi: Likewise.
16600         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16601         * doc/glibc-functions/wcstoq.texi: Likewise.
16602         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16603         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16604         * doc/glibc-functions/wcstouq.texi: Likewise.
16605         * doc/glibc-functions/wmempcpy.texi: Likewise.
16606
16607 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16608             Eric Blake  <ebb9@byu.net>
16609             Paolo Bonzini  <bonzini@gnu.org>
16610             Bruno Haible  <bruno@clisp.org>
16611
16612         Make c-stack work on Haiku.
16613         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16614         (c_stack_action): Use SA_ONSTACK flag.
16615
16616 2008-12-22  Bruno Haible  <bruno@clisp.org>
16617
16618         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16619
16620 2008-12-22  Bruno Haible  <bruno@clisp.org>
16621
16622         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16623         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16624         being overridden.
16625         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16626         New macros.
16627         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16629         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16630         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16631
16632 2008-12-22  Bruno Haible  <bruno@clisp.org>
16633
16634         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16635         from test code.
16636
16637 2008-12-22  Eric Blake  <ebb9@byu.net>
16638
16639         Avoid gcc warnings on cygwin.
16640         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16641         Avoid unused variable.
16642         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16643         Likewise.
16644
16645 2008-12-22  Bruno Haible  <bruno@clisp.org>
16646
16647         Remove HAVE_MBRTOWC conditionals.
16648         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16649         (mbscasecmp): Assume mbrtowc function.
16650         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16651         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16652         * lib/mbschr.c: Include mbuiter.h unconditionally.
16653         (mbschr): Assume mbrtowc function.
16654         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16655         (mbscspn): Assume mbrtowc function.
16656         * lib/mbslen.c: Include mbuiter.h unconditionally.
16657         (mbslen): Assume mbrtowc function.
16658         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16659         (mbsncasecmp): Assume mbrtowc function.
16660         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16661         (mbsnlen): Assume mbrtowc function.
16662         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16663         (mbspbrk): Assume mbrtowc function.
16664         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16665         (mbspcasecmp): Assume mbrtowc function.
16666         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16667         (mbsrchr): Assume mbrtowc function.
16668         * lib/mbssep.c: Include mbuiter.h unconditionally.
16669         (mbssep): Assume mbrtowc function.
16670         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16671         (mbsspn): Assume mbrtowc function.
16672         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16673         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16674         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16675         (mbstok_r): Assume mbrtowc function.
16676         * lib/propername.c: Include mbuiter.h unconditionally.
16677         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16678         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16679         (trim2): Assume mbrtowc function.
16680         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16681         (mbsnwidth): Assume mbrtowc function.
16682         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16683         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16684         fallback definitions.
16685         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16686
16687 2008-12-22  Bruno Haible  <bruno@clisp.org>
16688
16689         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16690
16691 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16692
16693         * modules/regex: Request emulations for the mb*/wc* functions we need.
16694         * m4/regex.m4: Don't look for those functions here.
16695         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16696
16697 2008-12-22  Bruno Haible  <bruno@clisp.org>
16698
16699         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16700
16701 2008-12-21  Bruno Haible  <bruno@clisp.org>
16702
16703         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16704         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16705         (Include): Remove conditionalization.
16706         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16707         (Include): Remove conditionalization.
16708         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16709         (Include): Remove conditionalization.
16710         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16711         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16712         * NEWS: Mention the change.
16713         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16714         via Sergey Poznyakoff <gray@gnu.org.ua>.
16715
16716 2008-12-21  Bruno Haible  <bruno@clisp.org>
16717
16718         * MODULES.html.sh (Extended multibyte and wide character utilities
16719         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16720         wcrtomb, wcsrtombs.
16721         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16722         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16723         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16724         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16725
16726 2008-12-21  Bruno Haible  <bruno@clisp.org>
16727
16728         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16729
16730 2008-12-21  Bruno Haible  <bruno@clisp.org>
16731
16732         * modules/wcsnrtombs-tests: New file.
16733         * tests/test-wcsnrtombs1.sh: New file.
16734         * tests/test-wcsnrtombs2.sh: New file.
16735         * tests/test-wcsnrtombs3.sh: New file.
16736         * tests/test-wcsnrtombs4.sh: New file.
16737         * tests/test-wcsnrtombs.c: New file.
16738
16739         New module 'wcsnrtombs'.
16740         * lib/wchar.in.h (wcsnrtombs): New declaration.
16741         * lib/wcsnrtombs.c: New file.
16742         * lib/wcsrtombs-state.c: New file.
16743         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16744         (internal_state): Remove variable.
16745         * m4/wcsnrtombs.m4: New file.
16746         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16747         compilation units.
16748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16749         HAVE_WCSNRTOMBS.
16750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16751         HAVE_WCSNRTOMBS.
16752         * modules/wcsnrtombs: New file.
16753         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16754         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16755
16756 2008-12-21  Bruno Haible  <bruno@clisp.org>
16757
16758         * modules/wcsrtombs-tests: New file.
16759         * tests/test-wcsrtombs1.sh: New file.
16760         * tests/test-wcsrtombs2.sh: New file.
16761         * tests/test-wcsrtombs3.sh: New file.
16762         * tests/test-wcsrtombs4.sh: New file.
16763         * tests/test-wcsrtombs.c: New file.
16764
16765         New module 'wcsrtombs'.
16766         * lib/wchar.in.h (wcsrtombs): New declaration.
16767         * lib/wcsrtombs.c: New file.
16768         * m4/wcsrtombs.m4: New file.
16769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16770         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16772         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16773         * modules/wcsrtombs: New file.
16774         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16775         bugs.
16776
16777 2008-12-21  Bruno Haible  <bruno@clisp.org>
16778
16779         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16780         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16781         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16782         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16783         if not correct.
16784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16785         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16786         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16787         m4/locale-zh.m4, m4/codeset.m4.
16788         * doc/posix-functions/wcrtomb.texi: Document the bug.
16789
16790 2008-12-21  Bruno Haible  <bruno@clisp.org>
16791
16792         Work around a btowc() bug on IRIX 6.5.
16793         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16794         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16795         REPLACE_WTOBC if not.
16796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16797         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16798         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16799
16800 2008-12-21  Bruno Haible  <bruno@clisp.org>
16801
16802         * modules/wcrtomb-tests: New file.
16803         * tests/test-wcrtomb.sh: New file.
16804         * tests/test-wcrtomb.c: New file.
16805
16806         New module 'wcrtomb'.
16807         * lib/wchar.in.h (wcrtomb): New declaration.
16808         * lib/wcrtomb.c: New file.
16809         * m4/wcrtomb.m4: New file.
16810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16811         HAVE_WCRTOMB.
16812         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16813         HAVE_WCRTOMB.
16814         * modules/wcrtomb: New file.
16815         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16816
16817 2008-12-21  Bruno Haible  <bruno@clisp.org>
16818
16819         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16820         * modules/mbsrtowcs (Files): Likewise.
16821         * modules/wctob (Files): Likewise.
16822         * modules/c-strcase-tests (Files): Likewise.
16823         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16824         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16825         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16826         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16827         * modules/vasnprintf-posix-tests (Files): Likewise.
16828
16829 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16830
16831         gitlog-to-changelog: pass all command-line arguments to git-log
16832         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16833         it is sometimes convenient to filter the commits in various ways.
16834         gitlog-to-changelog only allows --since to specify a start date,
16835         but git-log itself supports many other filtering mechanisms.
16836         At the moment, I want to filter by branch name.  Rather than
16837         adding a --branch option to gitlog-to-changelog, it seems more
16838         flexible to simply pass all options directly to git-log and let
16839         git do the work.  Notice that this effectively makes --since a
16840         redundant option for gitlog-to-changelog, but removing it would
16841         require current usage to change since calls would then require
16842         an additional '--'.
16843
16844 2008-12-21  Bruno Haible  <bruno@clisp.org>
16845
16846         * modules/mbsnrtowcs-tests: New file.
16847         * tests/test-mbsnrtowcs1.sh: New file.
16848         * tests/test-mbsnrtowcs2.sh: New file.
16849         * tests/test-mbsnrtowcs3.sh: New file.
16850         * tests/test-mbsnrtowcs4.sh: New file.
16851         * tests/test-mbsnrtowcs.c: New file.
16852
16853         New module 'mbsnrtowcs'.
16854         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16855         * lib/mbsnrtowcs.c: New file.
16856         * lib/mbsrtowcs-state.c: New file.
16857         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16858         (internal_state): Remove variable.
16859         * m4/mbsnrtowcs.m4: New file.
16860         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16861         compilation units.
16862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16863         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16864         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16865         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16866         * modules/mbsnrtowcs: New file.
16867         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16868         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16869         portability problem.
16870
16871 2008-12-21  Bruno Haible  <bruno@clisp.org>
16872
16873         Work around mbsrtowcs bug.
16874         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16875         (gl_FUNC_MBSRTOWCS): Invoke it.
16876         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16877         m4/locale-zh.m4.
16878         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16879
16880 2008-12-21  Bruno Haible  <bruno@clisp.org>
16881
16882         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16883
16884 2008-12-21  Bruno Haible  <bruno@clisp.org>
16885
16886         Update doc for AIX.
16887         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16888         16-bit wchar_t type.
16889         * doc/posix-functions/btowc.texi: Likewise.
16890         * doc/posix-functions/fgetwc.texi: Likewise.
16891         * doc/posix-functions/fgetws.texi: Likewise.
16892         * doc/posix-functions/fputwc.texi: Likewise.
16893         * doc/posix-functions/fputws.texi: Likewise.
16894         * doc/posix-functions/fwide.texi: Likewise.
16895         * doc/posix-functions/fwprintf.texi: Likewise.
16896         * doc/posix-functions/fwscanf.texi: Likewise.
16897         * doc/posix-functions/getwchar.texi: Likewise.
16898         * doc/posix-functions/getwc.texi: Likewise.
16899         * doc/posix-functions/iswalnum.texi: Likewise.
16900         * doc/posix-functions/iswalpha.texi: Likewise.
16901         * doc/posix-functions/iswblank.texi: Likewise.
16902         * doc/posix-functions/iswcntrl.texi: Likewise.
16903         * doc/posix-functions/iswctype.texi: Likewise.
16904         * doc/posix-functions/iswdigit.texi: Likewise.
16905         * doc/posix-functions/iswgraph.texi: Likewise.
16906         * doc/posix-functions/iswlower.texi: Likewise.
16907         * doc/posix-functions/iswprint.texi: Likewise.
16908         * doc/posix-functions/iswpunct.texi: Likewise.
16909         * doc/posix-functions/iswspace.texi: Likewise.
16910         * doc/posix-functions/iswupper.texi: Likewise.
16911         * doc/posix-functions/iswxdigit.texi: Likewise.
16912         * doc/posix-functions/mbrtowc.texi: Likewise.
16913         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16914         * doc/posix-functions/mbstowcs.texi: Likewise.
16915         * doc/posix-functions/mbtowc.texi: Likewise.
16916         * doc/posix-functions/putwchar.texi: Likewise.
16917         * doc/posix-functions/putwc.texi: Likewise.
16918         * doc/posix-functions/swprintf.texi: Likewise.
16919         * doc/posix-functions/tolower.texi: Likewise.
16920         * doc/posix-functions/toupper.texi: Likewise.
16921         * doc/posix-functions/towctrans.texi: Likewise.
16922         * doc/posix-functions/ungetwc.texi: Likewise.
16923         * doc/posix-functions/vswprintf.texi: Likewise.
16924         * doc/posix-functions/wcrtomb.texi: Likewise.
16925         * doc/posix-functions/wcscat.texi: Likewise.
16926         * doc/posix-functions/wcschr.texi: Likewise.
16927         * doc/posix-functions/wcscmp.texi: Likewise.
16928         * doc/posix-functions/wcscoll.texi: Likewise.
16929         * doc/posix-functions/wcscpy.texi: Likewise.
16930         * doc/posix-functions/wcscspn.texi: Likewise.
16931         * doc/posix-functions/wcsftime.texi: Likewise.
16932         * doc/posix-functions/wcslen.texi: Likewise.
16933         * doc/posix-functions/wcsncat.texi: Likewise.
16934         * doc/posix-functions/wcsncmp.texi: Likewise.
16935         * doc/posix-functions/wcsncpy.texi: Likewise.
16936         * doc/posix-functions/wcspbrk.texi: Likewise.
16937         * doc/posix-functions/wcsrchr.texi: Likewise.
16938         * doc/posix-functions/wcsrtombs.texi: Likewise.
16939         * doc/posix-functions/wcsspn.texi: Likewise.
16940         * doc/posix-functions/wcsstr.texi: Likewise.
16941         * doc/posix-functions/wcstod.texi: Likewise.
16942         * doc/posix-functions/wcstof.texi: Likewise.
16943         * doc/posix-functions/wcstoimax.texi: Likewise.
16944         * doc/posix-functions/wcstok.texi: Likewise.
16945         * doc/posix-functions/wcstold.texi: Likewise.
16946         * doc/posix-functions/wcstoll.texi: Likewise.
16947         * doc/posix-functions/wcstol.texi: Likewise.
16948         * doc/posix-functions/wcstombs.texi: Likewise.
16949         * doc/posix-functions/wcstoull.texi: Likewise.
16950         * doc/posix-functions/wcstoul.texi: Likewise.
16951         * doc/posix-functions/wcstoumax.texi: Likewise.
16952         * doc/posix-functions/wcswidth.texi: Likewise.
16953         * doc/posix-functions/wcsxfrm.texi: Likewise.
16954         * doc/posix-functions/wctob.texi: Likewise.
16955         * doc/posix-functions/wctomb.texi: Likewise.
16956         * doc/posix-functions/wctrans.texi: Likewise.
16957         * doc/posix-functions/wctype.texi: Likewise.
16958         * doc/posix-functions/wcwidth.texi: Likewise.
16959         * doc/posix-functions/wmemchr.texi: Likewise.
16960         * doc/posix-functions/wmemcmp.texi: Likewise.
16961         * doc/posix-functions/wmemcpy.texi: Likewise.
16962         * doc/posix-functions/wmemmove.texi: Likewise.
16963         * doc/posix-functions/wmemset.texi: Likewise.
16964         * doc/posix-functions/wprintf.texi: Likewise.
16965         * doc/posix-functions/wscanf.texi: Likewise.
16966
16967 2008-12-21  Bruno Haible  <bruno@clisp.org>
16968
16969         Update doc for HP-UX 11.11.
16970         * doc/posix-functions/btowc.texi: Clarify that the function is missing
16971         in HP-UX version 11.00, not in all versions of HP-UX 11.
16972         * doc/posix-functions/fwide.texi: Likewise.
16973         * doc/posix-functions/fwprintf.texi: Likewise.
16974         * doc/posix-functions/fwscanf.texi: Likewise.
16975         * doc/posix-functions/inet_ntop.texi: Likewise.
16976         * doc/posix-functions/inet_pton.texi: Likewise.
16977         * doc/posix-functions/mbrlen.texi: Likewise.
16978         * doc/posix-functions/mbrtowc.texi: Likewise.
16979         * doc/posix-functions/mbsinit.texi: Likewise.
16980         * doc/posix-functions/mbsrtowcs.texi: Likewise.
16981         * doc/posix-functions/swprintf.texi: Likewise.
16982         * doc/posix-functions/swscanf.texi: Likewise.
16983         * doc/posix-functions/towctrans.texi: Likewise.
16984         * doc/posix-functions/vfwprintf.texi: Likewise.
16985         * doc/posix-functions/vswprintf.texi: Likewise.
16986         * doc/posix-functions/vwprintf.texi: Likewise.
16987         * doc/posix-functions/wcrtomb.texi: Likewise.
16988         * doc/posix-functions/wcsrtombs.texi: Likewise.
16989         * doc/posix-functions/wcsstr.texi: Likewise.
16990         * doc/posix-functions/wctob.texi: Likewise.
16991         * doc/posix-functions/wctrans.texi: Likewise.
16992         * doc/posix-functions/wmemchr.texi: Likewise.
16993         * doc/posix-functions/wmemcmp.texi: Likewise.
16994         * doc/posix-functions/wmemcpy.texi: Likewise.
16995         * doc/posix-functions/wmemmove.texi: Likewise.
16996         * doc/posix-functions/wmemset.texi: Likewise.
16997         * doc/posix-functions/wprintf.texi: Likewise.
16998         * doc/posix-functions/wscanf.texi: Likewise.
16999
17000 2008-12-21  Bruno Haible  <bruno@clisp.org>
17001
17002         Work around a portability problem.
17003         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17004         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17005
17006 2008-12-20  Bruno Haible  <bruno@clisp.org>
17007
17008         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17009         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17010         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17012         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17013
17014         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17015         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17016         set.
17017         (GNULIB_defined_mbstate_t): New macro.
17018         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17019         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17020         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17021         reuses the system's mbrtowc function but works around the bugs.
17022         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17023         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17024         macros.
17025         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17026         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17027         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17028         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17029         REPLACE_MBSINIT if mbsinit needs to be overridden.
17030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17031         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17032         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17033         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17034         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17035         m4/locale-zh.m4.
17036         (Depends): Add mbsinit.
17037         * modules/mbsinit (Depends): Add mbrtowc.
17038         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17039
17040 2008-12-20  Bruno Haible  <bruno@clisp.org>
17041
17042         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17043         so that there are no conversion errors on AIX.
17044         * tests/test-mbsrtowcs.c (main): LIkewise.
17045
17046 2008-12-20  Bruno Haible  <bruno@clisp.org>
17047
17048         Work around wctob bug on Solaris <= 9.
17049         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17050         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17051         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17052         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17053         * modules/wctob (Files): Add m4/locale-fr.m4.
17054         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17055
17056 2008-12-20  Bruno Haible  <bruno@clisp.org>
17057
17058         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17059         /dev/null.
17060         * tests/test-select-in.sh: Likewise.
17061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17062
17063 2008-12-20  Bruno Haible  <bruno@clisp.org>
17064
17065         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17066         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17067         Cygwin 1.5.x.
17068
17069 2008-12-20  Bruno Haible  <bruno@clisp.org>
17070
17071         Ensure mbstate_t is defined on HP-UX 11.11.
17072         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17073         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17074         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17075         AC_USE_SYSTEM_EXTENSIONS.
17076         * modules/fnmatch (Depends-on): Add extensions.
17077         * modules/mbrlen (Depends-on): Likewise.
17078         * modules/mbrtowc (Depends-on): Likewise.
17079         * modules/mbsinit (Depends-on): Likewise.
17080         * modules/mbsrtowcs (Depends-on): Likewise.
17081         * modules/mbswidth (Depends-on): Likewise.
17082         * modules/quotearg (Depends-on): Likewise.
17083         * modules/strftime (Depends-on): Likewise.
17084
17085 2008-12-20  Bruno Haible  <bruno@clisp.org>
17086
17087         Ensure wctob is declared on IRIX 6.5.
17088         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17089         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17090         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17092         of HAVE_WCTOB.
17093         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17094         HAVE_WCTOB.
17095         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17096
17097 2008-12-19  Bruno Haible  <bruno@clisp.org>
17098
17099         * modules/mbsrtowcs-tests: New file.
17100         * tests/test-mbsrtowcs1.sh: New file.
17101         * tests/test-mbsrtowcs2.sh: New file.
17102         * tests/test-mbsrtowcs3.sh: New file.
17103         * tests/test-mbsrtowcs4.sh: New file.
17104         * tests/test-mbsrtowcs.c: New file.
17105
17106         New module 'mbsrtowcs'.
17107         * lib/wchar.in.h (mbsrtowcs): New declaration.
17108         * lib/mbsrtowcs.c: New file.
17109         * m4/mbsrtowcs.m4: New file.
17110         * modules/mbsrtowcs: New file.
17111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17112         HAVE_MBSRTOWCS.
17113         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17114         HAVE_MBSRTOWCS.
17115         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17116
17117 2008-12-19  Bruno Haible  <bruno@clisp.org>
17118
17119         New module 'mbrlen'.
17120         * lib/wchar.in.h (mbrlen): New declaration.
17121         * lib/mbrlen.c: New file.
17122         * m4/mbrlen.m4: New file.
17123         * modules/mbrlen: New file.
17124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17125         HAVE_MBRLEN.
17126         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17127         HAVE_MBRLEN.
17128         * doc/posix-functions/mbrlen.texi: Document the new module.
17129
17130 2008-12-19  Bruno Haible  <bruno@clisp.org>
17131
17132         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17133         * modules/mbrtowc (Depends-on): Add verify.
17134         Suggested by Paul Eggert.
17135
17136 2008-12-18  Bruno Haible  <bruno@clisp.org>
17137
17138         * modules/mbsinit-tests: New file.
17139         * tests/test-mbsinit.sh: New file.
17140         * tests/test-mbsinit.c: New file.
17141
17142 2008-12-18  Bruno Haible  <bruno@clisp.org>
17143
17144         * modules/mbrtowc-tests: New file.
17145         * tests/test-mbrtowc1.sh: New file.
17146         * tests/test-mbrtowc2.sh: New file.
17147         * tests/test-mbrtowc3.sh: New file.
17148         * tests/test-mbrtowc4.sh: New file.
17149         * tests/test-mbrtowc.c: New file.
17150
17151         New module 'mbrtowc'.
17152         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17153         mbsinit and mbrtowc.
17154         (mbrtowc): New declaration.
17155         * lib/mbrtowc.c: New file.
17156         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17157         * modules/mbrtowc: New file.
17158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17159         HAVE_MBRTOWC.
17160         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17161         HAVE_MBRTOWC.
17162         * doc/posix-functions/mbrtowc.texi: Document the new module.
17163
17164 2008-12-18  Bruno Haible  <bruno@clisp.org>
17165
17166         New module 'wctob'.
17167         * lib/wchar.in.h (wctob): New declaration.
17168         * lib/wctob.c: New file.
17169         * m4/wctob.m4: New file.
17170         * modules/wctob: New file.
17171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17172         HAVE_WCTOB.
17173         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17174         * doc/posix-functions/wctob.texi: Document the new module.
17175
17176 2008-12-18  Bruno Haible  <bruno@clisp.org>
17177
17178         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17179         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17180
17181 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17182
17183         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17184         G. Christensen" <tgc@jupiterrise.com>.
17185
17186         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17187         G. Christensen" <tgc@jupiterrise.com>.
17188
17189         * lib/flock.c: Need to include string.h.  Reported by "Tom
17190         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17191         <ebb9@byu.net>.
17192
17193 2008-12-18  Bruno Haible  <bruno@clisp.org>
17194
17195         * m4/locale-ja.m4: New file, from GNU gettext.
17196
17197 2008-12-17  Bruno Haible  <bruno@clisp.org>
17198
17199         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17200         Suggested by Eric Blake.
17201
17202 2008-12-17  Bruno Haible  <bruno@clisp.org>
17203
17204         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17205
17206 2008-12-17  Bruno Haible  <bruno@clisp.org>
17207
17208         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17209         * modules/mbsinit (Depends-on): Add verify.
17210         Suggested by Paul Eggert.
17211
17212 2008-12-17  Bruno Haible  <bruno@clisp.org>
17213
17214         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17215         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17216         gl_FUNC_MBRTOWC.
17217         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17218         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17219         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17220         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17221         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17222         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17223         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17224         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17225         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17226         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17227         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17228         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17229         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17230         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17231         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17232         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17233         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17234         * modules/trim (configure.ac): Likewise.
17235
17236 2008-12-17  Bruno Haible  <bruno@clisp.org>
17237
17238         * modules/btowc-tests: New file.
17239         * tests/test-btowc1.sh: New file.
17240         * tests/test-btowc2.sh: New file.
17241         * tests/test-btowc.c: New file.
17242
17243         New module 'btowc'.
17244         * lib/wchar.in.h (btowc): New declaration.
17245         * lib/btowc.c: New file.
17246         * m4/btowc.m4: New file.
17247         * modules/btowc: New file.
17248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17249         HAVE_BTOWC.
17250         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17251         * doc/posix-functions/btowc.texi: Document the new module.
17252
17253 2008-12-17  Bruno Haible  <bruno@clisp.org>
17254
17255         New module 'mbsinit'.
17256         * lib/wchar.in.h (mbsinit): New declaration.
17257         * lib/mbsinit.c: New file.
17258         * m4/mbsinit.m4: New file.
17259         * modules/mbsinit: New file.
17260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17261         HAVE_MBSINIT.
17262         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17263         HAVE_MBSINIT.
17264         * doc/posix-functions/mbsinit.texi: Document the new module.
17265
17266 2008-12-16  Bruno Haible  <bruno@clisp.org>
17267
17268         * lib/unistd.in.h: Add comment.
17269         * tests/test-environ.c: Don't include <stdlib.h>.
17270
17271 2008-12-16  Bruno Haible  <bruno@clisp.org>
17272
17273         * lib/parse-duration.h (parse_duration): Document return value
17274         convention.
17275         * lib/parse-duration.c: Include specification header first. Add
17276         comments.
17277         (_): Remove macro.
17278         (parse_year_month_day, parse_hour_minute_second): Move side effects
17279         outside of strchr call.
17280         (parse_non_iso8601): Move side effects outside of isspace call.
17281         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17282         call.
17283
17284 2008-12-16  Bruno Haible  <bruno@clisp.org>
17285
17286         * tests/test-parse-duration.sh: Produce no output when the test
17287         succeeds.
17288
17289 2008-12-16  Bruno Haible  <bruno@clisp.org>
17290
17291         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17292         expressions.
17293
17294 2008-12-15  Bruno Haible  <bruno@clisp.org>
17295
17296         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17297         * doc/glibc-functions/flistxattr.texi: Likewise.
17298         * doc/glibc-functions/fopencookie.texi: Likewise.
17299         * doc/glibc-functions/fremovexattr.texi: Likewise.
17300         * doc/glibc-functions/fsetxattr.texi: Likewise.
17301         * doc/glibc-functions/getxattr.texi: Likewise.
17302         * doc/glibc-functions/lgetxattr.texi: Likewise.
17303         * doc/glibc-functions/listxattr.texi: Likewise.
17304         * doc/glibc-functions/llistxattr.texi: Likewise.
17305         * doc/glibc-functions/lremovexattr.texi: Likewise.
17306         * doc/glibc-functions/lsetxattr.texi: Likewise.
17307         * doc/glibc-functions/removexattr.texi: Likewise.
17308         * doc/glibc-functions/setxattr.texi: Likewise.
17309         * doc/posix-functions/open_memstream.texi: Likewise.
17310
17311 2008-12-15  Eric Blake  <ebb9@byu.net>
17312
17313         Update doc for cygwin 1.7.
17314         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17315         functions.
17316         * doc/posix-functions/fchmodat.texi: Likewise.
17317         * doc/posix-functions/fchownat.texi: Likewise.
17318         * doc/posix-functions/fdopendir.texi: Likewise.
17319         * doc/posix-functions/fmemopen.texi: Likewise.
17320         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17321         * doc/posix-functions/fstatat.texi: Likewise.
17322         * doc/posix-functions/futimens.texi: Likewise.
17323         * doc/posix-functions/gai_strerror.texi: Likewise.
17324         * doc/posix-functions/getaddrinfo.texi: Likewise.
17325         * doc/posix-functions/getnameinfo.texi: Likewise.
17326         * doc/posix-functions/if_freenameindex.texi: Likewise.
17327         * doc/posix-functions/if_indextoname.texi: Likewise.
17328         * doc/posix-functions/if_nameindex.texi: Likewise.
17329         * doc/posix-functions/if_nametoindex.texi: Likewise.
17330         * doc/posix-functions/insque.texi: Likewise.
17331         * doc/posix-functions/linkat.texi: Likewise.
17332         * doc/posix-functions/llrint.texi: Likewise.
17333         * doc/posix-functions/llrintf.texi: Likewise.
17334         * doc/posix-functions/llrintl.texi: Likewise.
17335         * doc/posix-functions/lockf.texi: Likewise.
17336         * doc/posix-functions/lrintl.texi: Likewise.
17337         * doc/posix-functions/mkdirat.texi: Likewise.
17338         * doc/posix-functions/mkfifoat.texi: Likewise.
17339         * doc/posix-functions/mknodat.texi: Likewise.
17340         * doc/posix-functions/mq_close.texi: Likewise.
17341         * doc/posix-functions/mq_getattr.texi: Likewise.
17342         * doc/posix-functions/mq_notify.texi: Likewise.
17343         * doc/posix-functions/mq_open.texi: Likewise.
17344         * doc/posix-functions/mq_receive.texi: Likewise.
17345         * doc/posix-functions/mq_send.texi: Likewise.
17346         * doc/posix-functions/mq_setattr.texi: Likewise.
17347         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17348         * doc/posix-functions/mq_timedsend.texi: Likewise.
17349         * doc/posix-functions/mq_unlink.texi: Likewise.
17350         * doc/posix-functions/open_memstream.texi: Likewise.
17351         * doc/posix-functions/openat.texi: Likewise.
17352         * doc/posix-functions/posix_fadvise.texi: Likewise.
17353         * doc/posix-functions/posix_fallocate.texi: Likewise.
17354         * doc/posix-functions/posix_madvise.texi: Likewise.
17355         * doc/posix-functions/posix_memalign.texi: Likewise.
17356         * doc/posix-functions/posix_openpt.texi: Likewise.
17357         * doc/posix-functions/readlinkat.texi: Likewise.
17358         * doc/posix-functions/remque.texi: Likewise.
17359         * doc/posix-functions/renameat.texi: Likewise.
17360         * doc/posix-functions/rintl.texi: Likewise.
17361         * doc/posix-functions/sem_unlink.texi: Likewise.
17362         * doc/posix-functions/shm_open.texi: Likewise.
17363         * doc/posix-functions/shm_unlink.texi: Likewise.
17364         * doc/posix-functions/signgam.texi: Likewise.
17365         * doc/posix-functions/sigset.texi: Likewise.
17366         * doc/posix-functions/stpcpy.texi: Likewise.
17367         * doc/posix-functions/stpncpy.texi: Likewise.
17368         * doc/posix-functions/strerror.texi: Likewise.
17369         * doc/posix-functions/strtod.texi: Likewise.
17370         * doc/posix-functions/symlinkat.texi: Likewise.
17371         * doc/posix-functions/unlinkat.texi: Likewise.
17372         * doc/posix-functions/utimensat.texi: Likewise.
17373         * doc/glibc-functions/bindresvport.texi: Likewise.
17374         * doc/glibc-functions/dn_expand.texi: Likewise.
17375         * doc/glibc-functions/exp10.texi: Likewise.
17376         * doc/glibc-functions/exp10f.texi: Likewise.
17377         * doc/glibc-functions/fgetxattr.texi: Likewise.
17378         * doc/glibc-functions/flistxattr.texi: Likewise.
17379         * doc/glibc-functions/fopencookie.texi: Likewise.
17380         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17381         * doc/glibc-functions/fremovexattr.texi: Likewise.
17382         * doc/glibc-functions/fsetxattr.texi: Likewise.
17383         * doc/glibc-functions/getifaddrs.texi: Likewise.
17384         * doc/glibc-functions/getxattr.texi: Likewise.
17385         * doc/glibc-functions/lgetxattr.texi: Likewise.
17386         * doc/glibc-functions/listxattr.texi: Likewise.
17387         * doc/glibc-functions/llistxattr.texi: Likewise.
17388         * doc/glibc-functions/lremovexattr.texi: Likewise.
17389         * doc/glibc-functions/lsetxattr.texi: Likewise.
17390         * doc/glibc-functions/pow10.texi: Likewise.
17391         * doc/glibc-functions/pow10f.texi: Likewise.
17392         * doc/glibc-functions/rcmd_af.texi: Likewise.
17393         * doc/glibc-functions/removexattr.texi: Likewise.
17394         * doc/glibc-functions/res_init.texi: Likewise.
17395         * doc/glibc-functions/res_mkquery.texi: Likewise.
17396         * doc/glibc-functions/res_query.texi: Likewise.
17397         * doc/glibc-functions/res_querydomain.texi: Likewise.
17398         * doc/glibc-functions/res_send.texi: Likewise.
17399         * doc/glibc-functions/rresvport_af.texi: Likewise.
17400         * doc/glibc-functions/setxattr.texi: Likewise.
17401         * doc/glibc-functions/strcasestr.texi: Likewise.
17402
17403 2008-12-15  Bruno Haible  <bruno@clisp.org>
17404
17405         Fix compilation error on OSF/1 4.0.
17406         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17407         <sys/time.h>, simply delegate to the system header.
17408         Reported by Daniel Richard G. <oss@teragram.com>.
17409
17410 2008-12-15  Bruno Haible  <bruno@clisp.org>
17411
17412         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17413         * doc/posix-functions/fchmodat.texi: Likewise.
17414         * doc/posix-functions/fchownat.texi: Likewise.
17415         * doc/posix-functions/fdopendir.texi: Likewise.
17416         * doc/posix-functions/fstatat.texi: Likewise.
17417         * doc/posix-functions/mkdirat.texi: Likewise.
17418         * doc/posix-functions/unlinkat.texi: Likewise.
17419
17420 2008-12-14  Bruno Haible  <bruno@clisp.org>
17421
17422         Update doc for POSIX:2008.
17423         * doc/posix-functions/faccessat.texi: New file.
17424         * doc/posix-functions/fchmodat.texi: New file.
17425         * doc/posix-functions/fchownat.texi: New file.
17426         * doc/posix-functions/fdopendir.texi: New file.
17427         * doc/posix-functions/fstatat.texi: New file.
17428         * doc/posix-functions/futimens.texi: New file.
17429         * doc/posix-functions/linkat.texi: New file.
17430         * doc/posix-functions/mkdirat.texi: New file.
17431         * doc/posix-functions/mkfifoat.texi: New file.
17432         * doc/posix-functions/mknodat.texi: New file.
17433         * doc/posix-functions/open_wmemstream.texi: New file.
17434         * doc/posix-functions/openat.texi: New file.
17435         * doc/posix-functions/psiginfo.texi: New file.
17436         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17437         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17438         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17439         * doc/posix-functions/readlinkat.texi: New file.
17440         * doc/posix-functions/renameat.texi: New file.
17441         * doc/posix-functions/strerror_l.texi: New file.
17442         * doc/posix-functions/symlinkat.texi: New file.
17443         * doc/posix-functions/unlinkat.texi: New file.
17444         * doc/posix-functions/utimensat.texi: New file.
17445         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17446
17447 2008-12-14  Bruno Haible  <bruno@clisp.org>
17448
17449         Update doc for POSIX:2008.
17450         * doc/posix-functions/alphasort.texi: Renamed from
17451         doc/glibc-functions/alphasort.texi.
17452         * doc/posix-functions/dirfd.texi: Renamed from
17453         doc/glibc-functions/dirfd.texi.
17454         * doc/posix-functions/dprintf.texi: Renamed from
17455         doc/glibc-functions/dprintf.texi.
17456         * doc/posix-functions/duplocale.texi: Renamed from
17457         doc/glibc-functions/duplocale.texi.
17458         * doc/posix-functions/fexecve.texi: Renamed from
17459         doc/glibc-functions/fexecve.texi.
17460         * doc/posix-functions/fmemopen.texi: Renamed from
17461         doc/glibc-functions/fmemopen.texi.
17462         * doc/posix-functions/freelocale.texi: Renamed from
17463         doc/glibc-functions/freelocale.texi.
17464         * doc/posix-functions/getdate_err.texi: Renamed from
17465         doc/glibc-functions/getdate_err.texi.
17466         * doc/posix-functions/isalnum_l.texi: Renamed from
17467         doc/glibc-functions/isalnum_l.texi.
17468         * doc/posix-functions/isalpha_l.texi: Renamed from
17469         doc/glibc-functions/isalpha_l.texi.
17470         * doc/posix-functions/isblank_l.texi: Renamed from
17471         doc/glibc-functions/isblank_l.texi.
17472         * doc/posix-functions/iscntrl_l.texi: Renamed from
17473         doc/glibc-functions/iscntrl_l.texi.
17474         * doc/posix-functions/isdigit_l.texi: Renamed from
17475         doc/glibc-functions/isdigit_l.texi.
17476         * doc/posix-functions/isgraph_l.texi: Renamed from
17477         doc/glibc-functions/isgraph_l.texi.
17478         * doc/posix-functions/islower_l.texi: Renamed from
17479         doc/glibc-functions/islower_l.texi.
17480         * doc/posix-functions/isprint_l.texi: Renamed from
17481         doc/glibc-functions/isprint_l.texi.
17482         * doc/posix-functions/ispunct_l.texi: Renamed from
17483         doc/glibc-functions/ispunct_l.texi.
17484         * doc/posix-functions/isspace_l.texi: Renamed from
17485         doc/glibc-functions/isspace_l.texi.
17486         * doc/posix-functions/isupper_l.texi: Renamed from
17487         doc/glibc-functions/isupper_l.texi.
17488         * doc/posix-functions/iswalnum_l.texi: Renamed from
17489         doc/glibc-functions/iswalnum_l.texi.
17490         * doc/posix-functions/iswalpha_l.texi: Renamed from
17491         doc/glibc-functions/iswalpha_l.texi.
17492         * doc/posix-functions/iswblank_l.texi: Renamed from
17493         doc/glibc-functions/iswblank_l.texi.
17494         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17495         doc/glibc-functions/iswcntrl_l.texi.
17496         * doc/posix-functions/iswctype_l.texi: Renamed from
17497         doc/glibc-functions/iswctype_l.texi.
17498         * doc/posix-functions/iswdigit_l.texi: Renamed from
17499         doc/glibc-functions/iswdigit_l.texi.
17500         * doc/posix-functions/iswgraph_l.texi: Renamed from
17501         doc/glibc-functions/iswgraph_l.texi.
17502         * doc/posix-functions/iswlower_l.texi: Renamed from
17503         doc/glibc-functions/iswlower_l.texi.
17504         * doc/posix-functions/iswprint_l.texi: Renamed from
17505         doc/glibc-functions/iswprint_l.texi.
17506         * doc/posix-functions/iswpunct_l.texi: Renamed from
17507         doc/glibc-functions/iswpunct_l.texi.
17508         * doc/posix-functions/iswspace_l.texi: Renamed from
17509         doc/glibc-functions/iswspace_l.texi.
17510         * doc/posix-functions/iswupper_l.texi: Renamed from
17511         doc/glibc-functions/iswupper_l.texi.
17512         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17513         doc/glibc-functions/iswxdigit_l.texi.
17514         * doc/posix-functions/isxdigit_l.texi: Renamed from
17515         doc/glibc-functions/isxdigit_l.texi.
17516         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17517         doc/glibc-functions/mbsnrtowcs.texi.
17518         * doc/posix-functions/mkdtemp.texi: Renamed from
17519         doc/glibc-functions/mkdtemp.texi.
17520         * doc/posix-functions/newlocale.texi: Renamed from
17521         doc/glibc-functions/newlocale.texi.
17522         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17523         doc/glibc-functions/nl_langinfo_l.texi.
17524         * doc/posix-functions/open_memstream.texi: Renamed from
17525         doc/glibc-functions/open_memstream.texi.
17526         * doc/posix-functions/opterr.texi: Renamed from
17527         doc/glibc-functions/opterr.texi.
17528         * doc/posix-functions/optind.texi: Renamed from
17529         doc/glibc-functions/optind.texi.
17530         * doc/posix-functions/optopt.texi: Renamed from
17531         doc/glibc-functions/optopt.texi.
17532         * doc/posix-functions/psignal.texi: Renamed from
17533         doc/glibc-functions/psignal.texi.
17534         * doc/posix-functions/scandir.texi: Renamed from
17535         doc/glibc-functions/scandir.texi.
17536         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17537         doc/glibc-functions/sched_get_priority_min.texi.
17538         * doc/posix-functions/signgam.texi: Renamed from
17539         doc/glibc-functions/signgam.texi.
17540         * doc/posix-functions/stpcpy.texi: Renamed from
17541         doc/glibc-functions/stpcpy.texi.
17542         * doc/posix-functions/stpncpy.texi: Renamed from
17543         doc/glibc-functions/stpncpy.texi.
17544         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17545         doc/glibc-functions/strcasecmp_l.texi.
17546         * doc/posix-functions/strcoll_l.texi: Renamed from
17547         doc/glibc-functions/strcoll_l.texi.
17548         * doc/posix-functions/strfmon_l.texi: Renamed from
17549         doc/glibc-functions/strfmon_l.texi.
17550         * doc/posix-functions/strftime_l.texi: Renamed from
17551         doc/glibc-functions/strftime_l.texi.
17552         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17553         doc/glibc-functions/strncasecmp_l.texi.
17554         * doc/posix-functions/strndup.texi: Renamed from
17555         doc/glibc-functions/strndup.texi.
17556         * doc/posix-functions/strnlen.texi: Renamed from
17557         doc/glibc-functions/strnlen.texi.
17558         * doc/posix-functions/strsignal.texi: Renamed from
17559         doc/glibc-functions/strsignal.texi.
17560         * doc/posix-functions/strxfrm_l.texi: Renamed from
17561         doc/glibc-functions/strxfrm_l.texi.
17562         * doc/posix-functions/timer_gettime.texi: Renamed from
17563         doc/glibc-functions/timer_gettime.texi.
17564         * doc/posix-functions/tolower_l.texi: Renamed from
17565         doc/glibc-functions/tolower_l.texi.
17566         * doc/posix-functions/toupper_l.texi: Renamed from
17567         doc/glibc-functions/toupper_l.texi.
17568         * doc/posix-functions/towctrans_l.texi: Renamed from
17569         doc/glibc-functions/towctrans_l.texi.
17570         * doc/posix-functions/towlower_l.texi: Renamed from
17571         doc/glibc-functions/towlower_l.texi.
17572         * doc/posix-functions/towupper_l.texi: Renamed from
17573         doc/glibc-functions/towupper_l.texi.
17574         * doc/posix-functions/uselocale.texi: Renamed from
17575         doc/glibc-functions/uselocale.texi.
17576         * doc/posix-functions/vdprintf.texi: Renamed from
17577         doc/glibc-functions/vdprintf.texi.
17578         * doc/posix-functions/wcpcpy.texi:
17579         Renamed from doc/glibc-functions/wcpcpy.texi.
17580         * doc/posix-functions/wcpncpy.texi: Renamed from
17581         doc/glibc-functions/wcpncpy.texi.
17582         * doc/posix-functions/wcscasecmp.texi: Renamed from
17583         doc/glibc-functions/wcscasecmp.texi.
17584         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17585         doc/glibc-functions/wcscasecmp_l.texi.
17586         * doc/posix-functions/wcscoll_l.texi: Renamed from
17587         doc/glibc-functions/wcscoll_l.texi.
17588         * doc/posix-functions/wcsdup.texi: Renamed from
17589         doc/glibc-functions/wcsdup.texi.
17590         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17591         doc/glibc-functions/wcsncasecmp.texi.
17592         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17593         doc/glibc-functions/wcsncasecmp_l.texi.
17594         * doc/posix-functions/wcsnlen.texi: Renamed from
17595         doc/glibc-functions/wcsnlen.texi.
17596         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17597         doc/glibc-functions/wcsnrtombs.texi.
17598         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17599         doc/glibc-functions/wcsxfrm_l.texi.
17600         * doc/posix-functions/wctrans_l.texi: Renamed from
17601         doc/glibc-functions/wctrans_l.texi.
17602         * doc/posix-functions/wctype_l.texi: Renamed from
17603         doc/glibc-functions/wctype_l.texi.
17604         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17605         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17606         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17607         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17608         these subsections.
17609         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17610         Remove sections.
17611
17612 2008-12-14  Bruno Haible  <bruno@clisp.org>
17613
17614         Update doc for POSIX:2008.
17615         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17616
17617 2008-12-14  Bruno Haible  <bruno@clisp.org>
17618
17619         Update doc for POSIX:2008.
17620         * doc/pastposix-functions/bcmp.texi: Renamed from
17621         doc/posix-functions/bcmp.texi.
17622         * doc/pastposix-functions/bcopy.texi: Renamed from
17623         doc/posix-functions/bcopy.texi.
17624         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17625         doc/posix-functions/bsd_signal.texi.
17626         * doc/pastposix-functions/bzero.texi: Renamed from
17627         doc/posix-functions/bzero.texi.
17628         * doc/pastposix-functions/ecvt.texi: Renamed from
17629         doc/posix-functions/ecvt.texi.
17630         * doc/pastposix-functions/fcvt.texi: Renamed from
17631         doc/posix-functions/fcvt.texi.
17632         * doc/pastposix-functions/ftime.texi: Renamed from
17633         doc/posix-functions/ftime.texi.
17634         * doc/pastposix-functions/gcvt.texi: Renamed from
17635         doc/posix-functions/gcvt.texi.
17636         * doc/pastposix-functions/getcontext.texi: Renamed from
17637         doc/posix-functions/getcontext.texi.
17638         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17639         doc/posix-functions/gethostbyaddr.texi.
17640         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17641         doc/posix-functions/gethostbyname.texi.
17642         * doc/pastposix-functions/getwd.texi: Renamed from
17643         doc/posix-functions/getwd.texi.
17644         * doc/pastposix-functions/h_errno.texi: Renamed from
17645         doc/posix-functions/h_errno.texi.
17646         * doc/pastposix-functions/index.texi: Renamed from
17647         doc/posix-functions/index.texi.
17648         * doc/pastposix-functions/makecontext.texi: Renamed from
17649         doc/posix-functions/makecontext.texi.
17650         * doc/pastposix-functions/mktemp.texi: Renamed from
17651         doc/posix-functions/mktemp.texi.
17652         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17653         doc/posix-functions/pthread_attr_getstackaddr.texi.
17654         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17655         doc/posix-functions/pthread_attr_setstackaddr.texi.
17656         * doc/pastposix-functions/rindex.texi: Renamed from
17657         doc/posix-functions/rindex.texi.
17658         * doc/pastposix-functions/scalb.texi: Renamed from
17659         doc/posix-functions/scalb.texi.
17660         * doc/pastposix-functions/setcontext.texi: Renamed from
17661         doc/posix-functions/setcontext.texi.
17662         * doc/pastposix-functions/swapcontext.texi: Renamed from
17663         doc/posix-functions/swapcontext.texi.
17664         * doc/pastposix-functions/ualarm.texi: Renamed from
17665         doc/posix-functions/ualarm.texi.
17666         * doc/pastposix-functions/usleep.texi: Renamed from
17667         doc/posix-functions/usleep.texi.
17668         * doc/pastposix-functions/vfork.texi: Renamed from
17669         doc/posix-functions/vfork.texi.
17670         * doc/pastposix-functions/wcswcs.texi: Renamed from
17671         doc/posix-functions/wcswcs.texi.
17672         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17673         (Function Substitutes): Update.
17674
17675 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17676
17677         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17678         m4/strerror.m4.
17679
17680 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17681             Bruno Haible  <bruno@clisp.org>
17682
17683         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17684
17685 2008-12-13  Bruno Haible  <bruno@clisp.org>
17686
17687         * modules/strtoull (Depends-on): Remove unistd.
17688
17689 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690
17691         * modules/strtoull (Depends-on): Add stdlib.
17692
17693 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17694
17695         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17696
17697 2008-12-10  Jim Meyering  <meyering@redhat.com>
17698
17699         gl_ASSERT: don't say assertions are disabled when they're not
17700         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17701         "checking whether to enable assertions... no", when they are in
17702         fact enabled.  This is solely a bug in the output of configure.
17703         In spite of saying "no", NDEBUG was not defined in that case.
17704         Also, as noted by Eric Blake, leave assertions enabled upon
17705         --enable-assert=INVALID.
17706
17707 2008-12-10  Bruno Haible  <bruno@clisp.org>
17708
17709         Change MODULES.html to refer to POSIX:2008 where possible.
17710         * MODULES.html.sh (POSIX2008_URL): New variable.
17711         (posix_headers): Remove sys/timeb, ucontext.
17712         (posix2001_headers): New variable.
17713         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17714         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17715         index, makecontext, mktemp, pthread_attr_getstackaddr,
17716         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17717         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17718         (posix2001_functions): New variable.
17719         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17720         otherwise.
17721
17722 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17723
17724         add missing include to parse-duration.c
17725         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17726         * modules/parse-duration (Depends-on): Add xalloc.
17727
17728         fix sed script reading maint.mk
17729         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17730         (syntax-check-rules): Use it.
17731
17732 2008-12-09  Bruno Haible  <bruno@clisp.org>
17733
17734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17735         MacOS X 10.4/PowerPC.
17736         Reported by Simon Josefsson.
17737
17738 2008-12-08  Jim Meyering  <meyering@redhat.com>
17739
17740         work around mingw's lack of some S_IF definitions
17741         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17742         Reported by Simon Josefsson.
17743
17744 2008-12-08  Bruno Haible  <bruno@clisp.org>
17745
17746         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17747         applied to variables. Needed on MacOS X 10.4/PowerPC.
17748         Reported by Simon Josefsson.
17749
17750 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17751         and Eric Blake  <ebb9@byu.net>
17752
17753         assert: honor --enable-assert
17754         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17755         order to honor --enable-assert, rather than treating it as a
17756         synonym for --disable-assert.
17757
17758 2008-12-08  Jim Meyering  <meyering@redhat.com>
17759
17760         * lib/posixtm.c: Remove now-useless declaration of mktime.
17761
17762         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17763
17764 2008-12-07  Bruno Haible  <bruno@clisp.org>
17765
17766         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17767         test_once): Mark functions as static.
17768         * tests/test-tls.c (test_tls): Likewise.
17769
17770 2008-12-07  Bruno Haible  <bruno@clisp.org>
17771
17772         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17773         iconv_register_autodetect.
17774
17775 2008-12-07  Jim Meyering  <meyering@redhat.com>
17776
17777         posixtm.c: avoid a warning
17778         * lib/posixtm.c (posixtime): Don't initialize tm0.
17779         It's no longer needed to placate gcc4's -Wuninitialized,
17780         and the attempt to placate would elicit a new warning.
17781
17782         unicodeio.c: mark unused parameters
17783         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17784         (fallback_failure_callback): Likewise.
17785
17786 2008-12-07  Bruno Haible  <bruno@clisp.org>
17787
17788         * gnulib-tool (func_create_testdir): When building the tests
17789         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17790         Reported by Simon Josefsson.
17791
17792 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17793
17794         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17795
17796 2008-12-06  Bruno Haible  <bruno@clisp.org>
17797
17798         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17799         Suggested by Eric Blake.
17800
17801 2008-12-06  Bruno Haible  <bruno@clisp.org>
17802
17803         Fix a c-stack test failure on MacOS X.
17804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17805         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17806         handler for SIGBUS as well.
17807         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17808         install a signal handler for SIGBUS as well.
17809         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17810
17811 2008-12-06  Bruno Haible  <bruno@clisp.org>
17812
17813         Advocacy documentation.
17814         * doc/gnulib-intro.texi (Benefits): New section.
17815         * doc/gnulib.texi: Update.
17816
17817 2008-12-06  Bruno Haible  <bruno@clisp.org>
17818
17819         Document the 'manywarnings' module.
17820         * doc/manywarnings.texi: New file.
17821         * doc/gnulib.texi: Include it.
17822
17823 2008-12-05  Eric Blake  <ebb9@byu.net>
17824
17825         tests: silence some gcc warnings
17826         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17827         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17828         type mismatches.
17829
17830 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17831             Bruno Haible  <bruno@clisp.org>
17832
17833         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17834
17835 2008-11-29  Jim Meyering  <meyering@redhat.com>
17836
17837         unicodeio.c: mark unused parameters
17838         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17839         (fallback_failure_callback): Likewise.
17840
17841         fts: fix a thinko
17842         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17843         (set_stat_type): Return S_IF*-valued "type" directly.
17844         Prompted by James Youngman's spotting a related bug.
17845         Confirmed by further testing through find.
17846
17847         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17848         * lib/fts.c (D_TYPE): Define.
17849         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17850         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17851         (s_ifmt_shift_bits): New function.
17852         (set_stat_type): New function.
17853         (fts_build): When not calling fts_stat, call set_stat_type
17854         to propagate dirent.d_type info to fts_read caller.
17855         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17856         fts_statp->st_mode type information may be valid.
17857
17858 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17859
17860         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
17861         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
17862         <sds@gnu.org>.
17863
17864 2008-11-20  Bruno Haible  <bruno@clisp.org>
17865
17866         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17867         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17868         INCLUDE_NEXT.
17869         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17870         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17871         * modules/math (Makefile.am): Substitute
17872         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17873         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17874
17875 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17876             Bruno Haible  <bruno@clisp.org>
17877
17878         * lib/stdint.in.h: Define all type macros so that their expansion is
17879         a single typedef'ed token. Fixes a compilation failure in Boost which
17880         does "using ::int8_t;".
17881
17882 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17883
17884         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17885         gl_MANYWARN_ALL_GCC.
17886         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17887         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
17888         * modules/manywarnings: New file.
17889         * MODULES.html.sh: Mention manywarnings module.
17890
17891 2008-11-18  Bruno Haible  <bruno@clisp.org>
17892
17893         * doc/gnulib-tool.texi (Unit tests): New section.
17894
17895 2008-11-18  Simon Josefsson  <simon@josefsson.org>
17896
17897         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17898         paths like 'lib/po/foo.po'.
17899
17900 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17901
17902         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
17903         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17904
17905 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17906
17907         * m4/warnings.m4: Use CPPFLAGS to really check whether the
17908         parameter works.
17909
17910 2008-11-17  Simon Josefsson  <simon@josefsson.org>
17911
17912         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17913
17914 2008-11-17  Bruce Korb  <bkorb@gnu.org>
17915
17916         * modules/parse-duration-tests: New file.
17917         * tests/test-parse-duration.sh: New file.
17918         * tests/test-parse-duration.c: New file.
17919
17920         New module 'parse-duration'.
17921         * lib/parse-duration.h: New file.
17922         * lib/parse-duration.c: New file.
17923         * modules/parse-duration: New file.
17924
17925 2008-11-17  Bruno Haible  <bruno@clisp.org>
17926
17927         * tests/test-select-out.sh: Comment out the first pipe test.
17928         Reported by Simon Josefsson.
17929
17930 2008-11-17  Bruno Haible  <bruno@clisp.org>
17931
17932         * modules/getaddrinfo (Depends-on): Add servent, hostent.
17933         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17934         gl_HOSTENT.
17935
17936 2008-11-17  Bruno Haible  <bruno@clisp.org>
17937
17938         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17939         -lnetwork and -lnet. Needed for Haiku and BeOS.
17940
17941 2008-11-16  Bruno Haible  <bruno@clisp.org>
17942
17943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17944
17945 2008-11-16  Bruno Haible  <bruno@clisp.org>
17946
17947         Avoid test failure on Haiku.
17948         * tests/test-fsync.c: Include <errno.h>.
17949         (main): Don't require that fsync (0) fails.
17950
17951 2008-11-15  Bruno Haible  <bruno@clisp.org>
17952
17953         New module 'hostent'.
17954         * modules/hostent: New file.
17955         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17956
17957 2008-11-15  Bruno Haible  <bruno@clisp.org>
17958
17959         New module 'servent'.
17960         * modules/servent: New file.
17961         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17962
17963 2008-11-15  Bruno Haible  <bruno@clisp.org>
17964
17965         Avoid generating same test program with two different rules.
17966         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17967         test-frexp to test-frexp-nolibm.
17968         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17969         test-frexpl to test-frexpl-nolibm.
17970
17971 2008-11-15  Bruno Haible  <bruno@clisp.org>
17972
17973         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17974         $(FREXPL_LIBM).
17975
17976 2008-11-15  Bruno Haible  <bruno@clisp.org>
17977
17978         * lib/netdb.in.h: Activate the definitions also when the system's
17979         <netdb.h> has 'struct addrinfo'.
17980         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17981         EAI_OVERFLOW or AI_NUMERICSERV.
17982         * doc/posix-headers/netdb.texi: Document the problem.
17983
17984 2008-11-15  Bruno Haible  <bruno@clisp.org>
17985
17986         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17987
17988         Make the 'sched' module work on platforms where <sched.h> exists but
17989         is incomplete (such as Haiku).
17990         * lib/sched.in.h; Include the system's <sched.h> if it exists.
17991         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17992         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17993         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17994         HAVE_STRUCT_SCHED_PARAM.
17995         * modules/sched (Depends-on): Add include_next.
17996         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17997         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17998         * doc/posix-headers/sched.texi: Document the issue.
17999
18000 2008-11-13  Jim Meyering  <meyering@redhat.com>
18001
18002         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18003         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18004         test would fail due to the difference in the Report bugs to ...
18005         line.  The expected address is empty, "<>", while the actual
18006         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18007
18008 2008-11-12  Bruno Haible  <bruno@clisp.org>
18009
18010         lstat: don't compile lstat.c on systems lacking lstat
18011         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18012         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18013         Reported by Daniel P. Berrange via Jim Meyering.
18014
18015 2008-11-12  Jim Meyering  <meyering@redhat.com>
18016
18017         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18018
18019 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18020
18021         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18022         instead.
18023
18024 2008-11-12  Bruno Haible  <bruno@clisp.org>
18025
18026         * lib/unicodeio.c: Include unistr.h.
18027         (utf8_wctomb): Remove function.
18028         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18029
18030 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18031
18032         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18033         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18034         <bruno@clisp.org>.
18035         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18036
18037 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18038
18039         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18040         * doc/gnulib.texi: Add section for warnings.
18041
18042 2008-11-11  Bruno Haible  <bruno@clisp.org>
18043
18044         * lib/sockets.h: Add a comment.
18045
18046 2008-11-11  Karl Berry  <karl@gnu.org>
18047
18048         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18049
18050 2008-11-11  Eric Blake  <ebb9@byu.net>
18051
18052         fdl.texi: avoid git symlinks
18053         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18054
18055 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18056
18057         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18058
18059 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18060
18061         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18062         (gl_WARN_ADD): Substitute $2 if literal.
18063
18064 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18065
18066         * m4/warning.m4: Remove.
18067
18068 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18069
18070         * m4/warnings.m4: Almost complete rewrite. :-)
18071
18072 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18073
18074         * modules/warnings: New module.
18075         * m4/warnings.m4: New file.
18076         * MODULES.html.sh: Mention warnings module.
18077         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18078         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18079
18080 2008-11-10  Eric Blake  <ebb9@byu.net>
18081
18082         fdl.texi: make a symlink to the latest version
18083         * doc/standards.texi: Revert today's earlier change.
18084         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18085         * doc/fdl.texi: ...and replace this with a symlink to the newer
18086         fdl-1.3.texi.
18087
18088 2008-11-10  Bruno Haible  <bruno@clisp.org>
18089
18090         * tests/test-select-fd.c (main): Accept the result file name as fourth
18091         argument.
18092         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18093         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18094
18095 2008-11-10  Bruno Haible  <bruno@clisp.org>
18096
18097         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18098         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18099         as autoconf-substituted macros.
18100         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18101         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18102         gl_NETDB_H_DEFAULTS. Set these variables.
18103         * modules/netdb (Makefile.am): Substitute these variables.
18104
18105 2008-11-10  Eric Blake  <ebb9@byu.net>
18106
18107         standards.texi: include correct file for FDL 1.3
18108         * doc/standards.texi (GNU Free Documentation License): Change
18109         include file to pull in FDL 1.3, not 1.2.
18110
18111         fdl.texi: revert accidental change to license
18112         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18113
18114 2008-11-10  Bruno Haible  <bruno@clisp.org>
18115
18116         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18117         cross-compiling guesses also when the native compile gives no result.
18118
18119 2008-11-10  Bruno Haible  <bruno@clisp.org>
18120
18121         * lib/spawni.c (__spawni): Force variable into the stack.
18122
18123 2008-11-10  Bruno Haible  <bruno@clisp.org>
18124
18125         Add support for Haiku.
18126         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18127         glibc and BeOS, but also on Haiku.
18128         * lib/fpurge.c (fpurge): Likewise.
18129         * lib/freadable.c (freadable): Likewise.
18130         * lib/freadahead.c (freadahead): Likewise.
18131         * lib/freading.c (freading): Likewise.
18132         * lib/freadptr.c (freadptr): Likewise.
18133         * lib/freadseek.c (freadptrinc): Likewise.
18134         * lib/fseeko.c (rpl_fseeko): Likewise.
18135         * lib/fseterr.c (fseterr): Likewise.
18136         * lib/fwritable.c (fwritable): Likewise.
18137         * lib/fwriting.c (fwriting): Likewise.
18138         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18139
18140 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18141
18142         * lib/config.charset: Treat Haiku like BeOS.
18143
18144 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18145
18146         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18147         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18148
18149 2008-11-08  Bruno Haible  <bruno@clisp.org>
18150
18151         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18152         AC_CACHE_CHECK.
18153
18154 2008-11-08  Bruno Haible  <bruno@clisp.org>
18155
18156         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18157
18158 2008-11-08  Bruno Haible  <bruno@clisp.org>
18159
18160         * tests/test-select-fd.c: New file.
18161         * tests/test-select-in.sh: New file.
18162         * tests/test-select-out.sh: New file.
18163         * tests/test-select-stdin.c: New file.
18164         * modules/select-tests (Files): Add the new files.
18165         (Depends-on): Add gettimeofday.
18166         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18167         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18168         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18169
18170 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18171             Bruno Haible  <bruno@clisp.org>
18172
18173         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18174
18175 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18176
18177         * build-aux/pmccabe2html: Added support for C++ source files.
18178
18179 2008-11-05  Ben Pfaff  <blp@gnu.org>
18180
18181         Fix lib/close.c build on Windows.
18182         * modules/close (Files): Add lib/w32sock.h.
18183
18184 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18185
18186         Accept Bison's NEWS format.
18187         * build-aux/announce-gen (print_news_deltas): Tweak
18188         $re_prefix.
18189
18190 2008-11-04  Bruno Haible  <bruno@clisp.org>
18191
18192         * modules/random_r (Maintainer): Add glibc.
18193
18194 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18195
18196         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18197         by karl@freefriends.org (Karl Berry).
18198         * doc/alloca.texi: Likewise.
18199         * doc/c-ctype.texi: Likewise.
18200         * doc/c-strcase.texi: Likewise.
18201         * doc/c-strcaseeq.texi: Likewise.
18202         * doc/c-strcasestr.texi: Likewise.
18203         * doc/c-strstr.texi: Likewise.
18204         * doc/c-strtod.texi: Likewise.
18205         * doc/c-strtold.texi: Likewise.
18206         * doc/ctime.texi: Likewise.
18207         * doc/error.texi: Likewise.
18208         * doc/fdl.texi: Likewise.
18209         * doc/gcd.texi: Likewise.
18210         * doc/getdate.texi: Likewise.
18211         * doc/gnulib-intro.texi: Likewise.
18212         * doc/gnulib-tool.texi: Likewise.
18213         * doc/gnulib.texi: Likewise.
18214         * doc/inet_ntoa.texi: Likewise.
18215         * doc/maintain.texi: Likewise.
18216         * doc/make-stds.texi: Likewise.
18217         * doc/quote.texi: Likewise.
18218         * doc/regexprops-generic.texi: Likewise.
18219         * doc/standards.texi: Likewise.
18220         * doc/verify.texi: Likewise.
18221         * doc/visibility.texi: Likewise.
18222         * doc/gnulib.texi (GNU Free Documentation License): Include
18223         fdl-1.3.texi instead of fdl.texi.
18224
18225 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18226
18227         * doc/fdl-1.3.texi: New file, from
18228         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18229         * modules/fdl-1.3: Add.
18230         * MODULES.html.sh: Add fdl-1.3.
18231
18232 2008-11-03  Bruno Haible  <bruno@clisp.org>
18233
18234         Make determination of absolute name of header file work with AIX xlc.
18235         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18236         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18237         preprocessing.
18238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18239         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18240
18241 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18242
18243         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18244         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18245         <ludo@gnu.org>.
18246
18247 2008-11-02  Bruno Haible  <bruno@clisp.org>
18248
18249         Mark 'strpbrk' obsolete.
18250         * modules/strpbrk (Status, Notice): New sections.
18251         * modules/strtok_r (Depends-on): Add strpbrk.
18252
18253 2008-11-02  Bruno Haible  <bruno@clisp.org>
18254
18255         Mark 'strdup' obsolete.
18256         * modules/strdup (Status, Notice): New sections.
18257         * modules/findprog (Depends-on): Add strdup.
18258         * modules/getaddrinfo (Depends-on): Likewise.
18259         * modules/localename (Depends-on): Likewise.
18260         * modules/relocatable-lib (Depends-on): Likewise.
18261         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18262         * modules/relocatable-prog (Depends-on): Likewise.
18263         * modules/trim (Depends-on): Likewise.
18264         * modules/unictype/gen-ctype (Depends-on): Likewise.
18265         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18266
18267 2008-11-02  Bruno Haible  <bruno@clisp.org>
18268
18269         Mark 'strcspn' obsolete.
18270         * modules/strcspn (Status, Notice): New sections.
18271
18272 2008-11-02  Bruno Haible  <bruno@clisp.org>
18273
18274         Mark 'rmdir' obsolete.
18275         * modules/rmdir (Status, Notice): New sections.
18276         * modules/clean-temp (Depends-on): Add rmdir.
18277         * modules/openat (Depends-on): Likewise.
18278
18279 2008-11-02  Bruno Haible  <bruno@clisp.org>
18280
18281         Mark 'raise' obsolete.
18282         * modules/raise (Status, Notice): New sections.
18283         (Include): Specify <signal.h>.
18284         * modules/stdio (Depends-on): Add raise.
18285         * modules/write (Depends-on): Likewise.
18286
18287 2008-11-02  Bruno Haible  <bruno@clisp.org>
18288
18289         Mark 'memset' obsolete.
18290         * modules/memset (Status, Notice): New sections.
18291
18292 2008-11-02  Bruno Haible  <bruno@clisp.org>
18293
18294         Mark 'memmove' obsolete.
18295         * modules/memmove (Status, Notice): New sections.
18296         * modules/argp (Depends-on): Add memmove.
18297         * modules/argz (Depends-on): Likewise.
18298         * modules/canonicalize (Depends-on): Likewise.
18299         * modules/canonicalize-lgpl (Depends-on): Likewise.
18300         * modules/fts (Depends-on): Likewise.
18301         * modules/getcwd (Depends-on): Likewise.
18302         * modules/human (Depends-on): Likewise.
18303         * modules/regex (Depends-on): Likewise.
18304         * modules/striconveh (Depends-on): Likewise.
18305         * modules/trim (Depends-on): Likewise.
18306         * modules/unistr/u8-move (Depends-on): Likewise.
18307         * modules/unistr/u16-move (Depends-on): Likewise.
18308         * modules/unistr/u32-move (Depends-on): Likewise.
18309
18310 2008-11-02  Bruno Haible  <bruno@clisp.org>
18311
18312         Mark 'memcpy' obsolete.
18313         * modules/memcpy (Status, Notice): New sections.
18314
18315 2008-11-02  Bruno Haible  <bruno@clisp.org>
18316
18317         Mark 'memcmp' obsolete.
18318         * modules/memcmp (Status, Notice): New sections.
18319         * modules/argmatch (Depends-on): Add memchr.
18320         * modules/backupfile (Depends-on): Likewise.
18321         * modules/c-strcasestr (Depends-on): Likewise.
18322         * modules/crypto/des (Depends-on): Likewise.
18323         * modules/csharpcomp (Depends-on): Likewise.
18324         * modules/fnmatch (Depends-on): Likewise.
18325         * modules/git-merge-changelog (Depends-on): Likewise.
18326         * modules/isnand (Depends-on): Likewise.
18327         * modules/isnand-nolibm (Depends-on): Likewise.
18328         * modules/isnanf (Depends-on): Likewise.
18329         * modules/isnanf-nolibm (Depends-on): Likewise.
18330         * modules/isnanl (Depends-on): Likewise.
18331         * modules/isnanl-nolibm (Depends-on): Likewise.
18332         * modules/mbchar (Depends-on): Likewise.
18333         * modules/memcoll (Depends-on): Likewise.
18334         * modules/quotearg (Depends-on): Likewise.
18335         * modules/regex (Depends-on): Likewise.
18336         * modules/relocatable-prog (Depends-on): Likewise.
18337         * modules/same (Depends-on): Likewise.
18338         * modules/signbit (Depends-on): Likewise.
18339         * modules/strcasestr-simple (Depends-on): Likewise.
18340         * modules/unictype/gen-ctype (Depends-on): Likewise.
18341         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18342         * modules/uniname/uniname (Depends-on): Likewise.
18343         * modules/unistr/u8-cmp (Depends-on): Likewise.
18344
18345 2008-11-02  Bruno Haible  <bruno@clisp.org>
18346
18347         Mark 'memchr' obsolete.
18348         * modules/memchr (Status, Notice): New sections.
18349         * modules/argp (Depends-on): Add memchr.
18350         * modules/base64 (Depends-on): Likewise.
18351         * modules/c-strcasestr (Depends-on): Likewise.
18352         * modules/chdir-long (Depends-on): Likewise.
18353         * modules/fnmatch (Depends-on): Likewise.
18354         * modules/getsubopt (Depends-on): Likewise.
18355         * modules/git-merge-changelog (Depends-on): Likewise.
18356         * modules/glob (Depends-on): Likewise.
18357         * modules/strcasestr-simple (Depends-on): Likewise.
18358         * modules/strnlen (Depends-on): Likewise.
18359
18360 2008-11-02  Bruno Haible  <bruno@clisp.org>
18361
18362         Mark 'atexit' obsolete.
18363         * modules/atexit (Status, Notice): New sections.
18364         * modules/chdir-long (Depends-on): Add atexit.
18365         * modules/wait-process (Depends-on): Likewise.
18366
18367 2008-11-02  Bruno Haible  <bruno@clisp.org>
18368
18369         * gnulib-tool: New option --with-obsolete.
18370         (func_usage): Document it.
18371         (func_modules_transitive_closure): Drop obsolete dependencies if
18372         incobsolete is not true.
18373         (func_import): Read and save the incobsolete variable to the cache.
18374
18375 2008-11-02  Bruno Haible  <bruno@clisp.org>
18376
18377         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18378         * gnulib-tool: New option --extract-status.
18379         (func_usage): Document it.
18380         (sed_extract_prog): Recognize it.
18381         (func_get_status): New function.
18382
18383 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18384
18385         * modules/sockets (License): Change from LGPL to LGPLv2+.
18386
18387 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18388
18389         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18390
18391 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18392
18393         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18394         Mention times and sys_times.
18395         * modules/sys_times, modules/sys_times-tests: New modules.
18396         * modules/times, modules/times-tests: Likewise
18397         * m4/sys_times_h.m4: New file.
18398         * lib/sys_times.in.h: Likewise
18399         * lib/times.c: Likewise.
18400         * tests/test-sys_times.c: Likewise.
18401         * tests/test-times.c: Likewise.
18402         * doc/posix-headers/sys_times.texi: Update.
18403         * doc/posix-functions/times.texi: Update.
18404
18405 2008-10-28  Jim Meyering  <meyering@redhat.com>
18406
18407         * modules/tempname (Depends-on): Add lstat.
18408
18409         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18410
18411 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18412
18413         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18414         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18415         using idiom used elsewhere in gnulib.
18416
18417 2008-10-27  Jim Meyering  <meyering@redhat.com>
18418
18419         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18420
18421 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18422
18423         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18424         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18425         programs.
18426         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18427
18428 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18429
18430         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18431
18432 2008-10-27  Bruno Haible  <bruno@clisp.org>
18433
18434         * tests/test-lstat.c: Include <stdio.h>.
18435
18436 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18437
18438         * modules/lstat-tests: New module.
18439         * tests/test-lstat.c: New file.
18440
18441 2008-10-26  Jim Meyering  <meyering@redhat.com>
18442
18443         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18444
18445 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18446             Bruno Haible  <bruno@clisp.org>
18447
18448         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18449         * modules/configmake (Include): Add a note that the include must come
18450         after all system headers.
18451         * lib/javaversion.c: Include configmake.h after all other includes.
18452
18453 2008-10-26  Bruno Haible  <bruno@clisp.org>
18454
18455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18456         HAVE_STRUCT_RANDOM_DATA to 1.
18457         (gl_STDLIB_H): Simplify.
18458
18459 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18460
18461         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18462         substitute HAVE_STRUCT_RANDOM_DATA.
18463         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18464         random_data.
18465         * modules/stdlib (Makefile.am): Substitute
18466         HAVE_STRUCT_RANDOM_DATA.
18467
18468 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18469
18470         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18471         * doc/gnulib-intro.texi (Copyright): Likewise.
18472
18473 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18474
18475         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18476         findings.
18477
18478 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18479             Bruno Haible  <bruno@clisp.org>
18480
18481         * lib/unistd.in.h: Include <winsock2.h>.
18482         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18483         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18484         Provide dummy declarations.
18485         (gethostname): Override.
18486         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18488         gl_PREREQ_SYS_H_WINSOCK2.
18489         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18490         * doc/posix-functions/gethostname.texi: More details.
18491
18492 2008-10-25  Bruno Haible  <bruno@clisp.org>
18493
18494         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18495         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18496         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18497
18498         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18499         here ...
18500         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18502         gl_UNISTD_H_DEFAULTS.
18503
18504 2008-10-25  Eric Blake  <ebb9@byu.net>
18505
18506         signbit: avoid spurious compiler failure
18507         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18508         declarations inside function.
18509
18510 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18511             Bruno Haible  <bruno@clisp.org>
18512
18513         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18514         * modules/random_r (Depends-on): Add stdint.
18515
18516 2008-10-24  Bruno Haible  <bruno@clisp.org>
18517
18518         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18519         Eggert.
18520         * modules/strerror (License): Likewise.
18521
18522 2008-10-24  Jim Meyering  <meyering@redhat.com>
18523
18524         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18525         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18526
18527 2008-10-24  Eric Blake  <ebb9@byu.net>
18528
18529         getgroups: fix compilation when getgroups is available
18530         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18531         but with <config.h> override of getgroups disabled.
18532
18533 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18534
18535         * doc/gnulib.texi (Header files): Add note about C++ problems.
18536         Explained by Bruno Haible <bruno@clisp.org>.
18537
18538 2008-10-23  Bruno Haible  <bruno@clisp.org>
18539
18540         Define a dummy SA_NODEFER macro on Interix.
18541         * lib/signal.in.h (SA_NODEFER): Define fallback.
18542         Reported by Aleksey Cheusov <cheusov@tut.by> via
18543         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18544
18545 2008-10-23  Bruno Haible  <bruno@clisp.org>
18546
18547         * modules/freadahead (License): Change to LGPLv2+.
18548         Suggested by Simon Josefsson.
18549
18550 2008-10-23  Jim Meyering  <meyering@redhat.com>
18551
18552         random_r: new module
18553         * modules/random_r: New file.
18554         * m4/random_r.m4: New file.
18555         * lib/random_r.c: New file, from glibc.
18556         * modules/random_r-tests: New file.
18557         * tests/test-random_r.c: New file.
18558         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18559          Declare.
18560         (RAND_MAX): Define.
18561         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18562         * modules/stdlib: Substitute them, too.
18563         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18564         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18565         * doc/glibc-functions/random_r.texi: Likewise.
18566         * doc/glibc-functions/setstate_r.texi: Likewise.
18567         * doc/glibc-functions/srandom_r.texi: Likewise.
18568         * config/srclist.txt: Mention it.
18569
18570 2008-10-23  David Lutterkort  <lutter@redhat.com>
18571
18572         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18573         link requirement
18574
18575 2008-10-23  Jim Meyering  <meyering@redhat.com>
18576
18577         selinux-h: mark parameters of stub functions as intentionally unused
18578         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18579         * lib/se-context.in.h: Likewise.
18580
18581 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18582
18583         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18584
18585 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18586
18587         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18588
18589 2008-10-22  Eric Blake  <ebb9@byu.net>
18590
18591         glthread/thread: avoid compiler warning
18592         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18593         Add unreachable abort to silence compiler.
18594
18595 2008-10-22  Eric Blake  <ebb9@byu.net>
18596
18597         netdb: also supply struct addrinfo for cygwin 1.5.x
18598         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18599         older cygwin.
18600         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18601         cygwin.
18602         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18603
18604 2008-10-22  Bruno Haible  <bruno@clisp.org>
18605
18606         * users.txt: Update entry about pspp.
18607
18608 2008-10-21  Bruno Haible  <bruno@clisp.org>
18609
18610         Simplification.
18611         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18612         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18613
18614         Simplification.
18615         * lib/ioctl.c (ioctl): Don't undefine.
18616         * lib/socket.c (socket): Don't undefine.
18617
18618         Remove unused module indicator macros.
18619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18620         GNULIB_$1 as a C macro.
18621
18622         * doc/posix-functions/close.texi: Undo last change.
18623         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18624         Windows platforms.
18625
18626 2008-10-21  Bruno Haible  <bruno@clisp.org>
18627
18628         Add gethostname() declaration to <unistd.h>.
18629         * lib/unistd.in.h (gethostname): New declaration.
18630         * lib/gethostname.c: Include <unistd.h>.
18631         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18632         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18634         and HAVE_GETHOSTNAME.
18635         * modules/gethostname (Depends-on): Add unistd.
18636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18637         (Include): Specify <unistd.h>.
18638         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18639         HAVE_GETHOSTNAME.
18640         * tests/test-gethostname.c: Include <unistd.h> first.
18641
18642 2008-10-21  Bruno Haible  <bruno@clisp.org>
18643
18644         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18645         * modules/select-tests (Depends-on): Likewise.
18646         Reported by Simon Josefsson.
18647
18648 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18649
18650         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18651         * lib/accept.c: New file, based on winsock.c.
18652         * lib/bind.c: New file, based on winsock.c.
18653         * lib/connect.c: New file, based on winsock.c.
18654         * lib/getpeername.c: New file, based on winsock.c.
18655         * lib/getsockname.c: New file, based on winsock.c.
18656         * lib/getsockopt.c: New file, based on winsock.c.
18657         * lib/ioctl.c: New file, based on winsock.c.
18658         * lib/listen.c: New file, based on winsock.c.
18659         * lib/recv.c: New file, based on winsock.c.
18660         * lib/recvfrom.c: New file, based on winsock.c.
18661         * lib/send.c: New file, based on winsock.c.
18662         * lib/sendto.c: New file, based on winsock.c.
18663         * lib/setsockopt.c: New file, based on winsock.c.
18664         * lib/shutdown.c: New file, based on winsock.c.
18665         * lib/socket.c: New file, based on winsock.c.
18666         * lib/w32sock.h: New file, based on winsock.c.
18667         * lib/winsock.c: Remove file.
18668         * modules/accept: Likewise.
18669         * modules/bind: Likewise.
18670         * modules/connect: Likewise.
18671         * modules/getpeername: Likewise.
18672         * modules/getsockname: Likewise.
18673         * modules/getsockopt: Likewise.
18674         * modules/ioctl: Likewise.
18675         * modules/listen: Likewise.
18676         * modules/recv: Likewise.
18677         * modules/recvfrom: Likewise.
18678         * modules/send: Likewise.
18679         * modules/sendto: Likewise.
18680         * modules/setsockopt: Likewise.
18681         * modules/shutdown: Likewise.
18682         * modules/socket: Use socket.c instead of winsock.c.
18683         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18684         * doc/posix-functions/accept.texi: Doc fix.
18685         * doc/posix-functions/bind.texi: Doc fix.
18686         * doc/posix-functions/close.texi: Doc fix.
18687         * doc/posix-functions/connect.texi: Doc fix.
18688         * doc/posix-functions/getpeername.texi: Doc fix.
18689         * doc/posix-functions/getsockname.texi: Doc fix.
18690         * doc/posix-functions/getsockopt.texi: Doc fix.
18691         * doc/posix-functions/ioctl.texi: Doc fix.
18692         * doc/posix-functions/listen.texi: Doc fix.
18693         * doc/posix-functions/recv.texi: Doc fix.
18694         * doc/posix-functions/recvfrom.texi: Doc fix.
18695         * doc/posix-functions/send.texi: Doc fix.
18696         * doc/posix-functions/sendto.texi: Doc fix.
18697         * doc/posix-functions/setsockopt.texi: Doc fix.
18698         * doc/posix-functions/shutdown.texi: Doc fix.
18699         * doc/posix-functions/socket.texi: Doc fix.
18700
18701 2008-10-20  Bruno Haible  <bruno@clisp.org>
18702
18703         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18704         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18705         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18706         as an alias for SIGABRT.
18707         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18708         (sigaction): Map it to SIGABRT.
18709         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18710
18711 2008-10-20  Bruno Haible  <bruno@clisp.org>
18712
18713         * lib/fts.c: Don't include lstat.h.
18714         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18715
18716         Move the lstat() declaration to <sys/stat.h>.
18717         * lib/lstat.h: Remove file.
18718         * lib/sys_stat.in.h: Add special invocation convention.
18719         (lstat): New declaration.
18720         * lib/lstat.c (orig_lstat): New function.
18721         (rpl_lstat): Use orig_lstat instead of lstat.
18722         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18723         AC_C_INLINE. Set REPLACE_LSTAT.
18724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18725         and REPLACE_LSTAT.
18726         * modules/lstat (Files): Remove lib/lstat.h.
18727         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18728         (Include): Specify <sys/stat.h> instead of lstat.h.
18729         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18730         REPLACE_LSTAT.
18731         * NEWS: Mention the change.
18732
18733 2008-10-20  Bruno Haible  <bruno@clisp.org>
18734
18735         * modules/posix_spawn-tests: New file.
18736         * tests/test-posix_spawn3.c: New file.
18737
18738 2008-10-20  Bruno Haible  <bruno@clisp.org>
18739
18740         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18741         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18742         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18743         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18744         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18745
18746 2008-10-20  Bruno Haible  <bruno@clisp.org>
18747
18748         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18749         of posix_spawn on AIX 5.3.
18750
18751 2008-10-20  Bruno Haible  <bruno@clisp.org>
18752
18753         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18754
18755 2008-10-20  Bruno Haible  <bruno@clisp.org>
18756
18757         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18758         of AC_LANG_PROGRAM.
18759
18760 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18761
18762         * lib/netdb.in.h: Don't define GNU specific constants until they
18763         are supported or needed.  Reported by Bruno Haible
18764         <bruno@clisp.org>.
18765
18766 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18767
18768         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18769
18770 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18771
18772         * lib/getaddrinfo.h: Remove file.
18773         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18774         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18775         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18776         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18777         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18778         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18779         * tests/test-getaddrinfo.c: Likewise.
18780         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18781         * NEWS: Mention change.
18782
18783 2008-10-19  Bruno Haible  <bruno@clisp.org>
18784
18785         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18786
18787 2008-10-19  Bruno Haible  <bruno@clisp.org>
18788
18789         * lib/wait-process.c: Include simply <sys/wait.h>.
18790         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18791         WIFSTOPPED): Remove fallback definitions.
18792         * modules/wait-process (Depends-on): Add sys_wait.
18793
18794         New module 'sys_wait'.
18795         * modules/sys_wait: New file.
18796         * lib/sys_wait.in.h: New file, partially copied from
18797         lib/wait-process.c.
18798         * m4/sys_wait_h.m4: New file.
18799         * doc/posix-headers/sys_wait.texi: Mention the new module.
18800
18801 2008-10-19  Bruno Haible  <bruno@clisp.org>
18802
18803         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18804
18805 2008-10-19  Bruno Haible  <bruno@clisp.org>
18806
18807         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18808         * lib/wait-process.c (WAIT_T): Remove type.
18809         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18810         (wait_subprocess): Update.
18811
18812 2008-10-19  Bruno Haible  <bruno@clisp.org>
18813
18814         New module 'atoll'.
18815         * modules/atoll: New file.
18816         * lib/stdlib.in.h (atoll): New declaration.
18817         * lib/atoll.c: New file, from glibc with modifications.
18818         * m4/atoll.m4: New file.
18819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18820         HAVE_ATOLL.
18821         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18822         * doc/posix-functions/atoll.texi: Mention the new module.
18823
18824 2008-10-19  Bruno Haible  <bruno@clisp.org>
18825
18826         Add strtoull() declaration to <stdlib.h>.
18827         * lib/stdlib.in.h (strtoull): New declaration.
18828         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18829         Set HAVE_STRTOULL.
18830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18831         HAVE_STRTOULL.
18832         * modules/strtoull (Depends-on): Add stdlib.
18833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18834         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18835         HAVE_STRTOULL.
18836
18837 2008-10-19  Bruno Haible  <bruno@clisp.org>
18838
18839         Add strtoll() declaration to <stdlib.h>.
18840         * lib/stdlib.in.h (strtoll): New declaration.
18841         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18842         Set HAVE_STRTOLL.
18843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18844         HAVE_STRTOLL.
18845         * modules/strtoll (Depends-on): Add stdlib.
18846         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18847         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18848
18849 2008-10-19  Bruno Haible  <bruno@clisp.org>
18850
18851         * modules/bcopy (Depends-on): Add strings.
18852         (Include): Specify <strings.h>.
18853
18854 2008-10-19  Bruno Haible  <bruno@clisp.org>
18855
18856         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18857
18858 2008-10-19  Bruno Haible  <bruno@clisp.org>
18859
18860         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18861         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18862         mingw.
18863
18864 2008-10-19  Bruno Haible  <bruno@clisp.org>
18865
18866         * lib/atanl.c: Don't include isnanl.h.
18867         * lib/cosl.c: Likewise.
18868         * lib/ldexpl.c: Likewise.
18869         * lib/logl.c: Likewise.
18870         * lib/sinl.c: Likewise.
18871         * lib/sqrtl.c: Likewise.
18872         * lib/tanl.c: Likewise.
18873
18874         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18875         * lib/isnanf.h: Remove file.
18876         * lib/isnand.h: Remove file.
18877         * lib/isnanl.h: Remove file.
18878         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18879         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18880         macros.
18881         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18882         HAVE_ISNANF, don't define it as a C macro.
18883         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18884         HAVE_ISNAND, don't define it as a C macro.
18885         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18886         HAVE_ISNANL, don't define it as a C macro.
18887         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18888         HAVE_ISNAN[FDL].
18889         * modules/isnanf (Files): Remove lib/isnanf.h.
18890         (Depends-on): Add math.
18891         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18892         (Include): Specify <math.h> instead of isnanf.h.
18893         * modules/isnand (Files): Remove lib/isnand.h.
18894         (Depends-on): Add math.
18895         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18896         (Include): Specify <math.h> instead of isnand.h.
18897         * modules/isnanl (Files): Remove lib/isnanl.h.
18898         (Depends-on): Add math.
18899         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18900         (Include): Specify <math.h> instead of isnanl.h.
18901         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18902         HAVE_ISNAN[FDL].
18903         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18904         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18905         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18906         * NEWS: Mention the change.
18907
18908 2008-10-18  Bruno Haible  <bruno@clisp.org>
18909
18910         Add getusershell(), setusershell(), endusershell() declarations to
18911         <unistd.h>.
18912         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18913         declarations.
18914         * lib/getusershell.c: Include unistd.h.
18915         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18916         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18917         HAVE_GETUSERSHELL.
18918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18919         and HAVE_GETUSERSHELL.
18920         * modules/getusershell (Depends-on): Add unistd, extensions.
18921         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18922         (Include): Specify <unistd.h>.
18923         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18924         HAVE_GETUSERSHELL.
18925
18926 2008-10-18  Bruno Haible  <bruno@clisp.org>
18927
18928         Add a getloadavg() declaration to <stdlib.h>.
18929         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18930         getloadavg declaration.
18931         (getloadavg): New declaration.
18932         * lib/getloadavg.c: Include <stdlib.h> first.
18933         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18934         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18935         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18937         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18938         * modules/getloadavg (Depends-on): Add stdlib, extensions.
18939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18940         (Include): Specify <stdlib.h>.
18941         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18942         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18943
18944 2008-10-18  Bruno Haible  <bruno@clisp.org>
18945
18946         * lib/dirchownmod.c: Don't include lchmod.h.
18947
18948         Move the lchmod() declaration to <sys/stat.h>.
18949         * lib/lchmod.h: Remove file.
18950         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18951         (lchmod): New declaration, moved here from lib/lchown.h.
18952         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18953         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18955         and HAVE_LCHMOD.
18956         * modules/lchmod (Files): Remove lib/lchmod.h.
18957         (Depends-on): Add sys_stat, extensions.
18958         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18959         (Include): Specify <sys/stat.h> instead of lchmod.h.
18960         * modules/sys_stat (Depends-on): Add link-warning.
18961         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18962         definition of GL_LINK_WARNING.
18963         * NEWS: Mention the change.
18964
18965 2008-10-18  Bruno Haible  <bruno@clisp.org>
18966
18967         * lib/fchdir.c: Don't include dirfd.h.
18968         * lib/fts.c: Likewise.
18969         * lib/getcwd.c: Likewise.
18970         * lib/glob.c: Likewise.
18971
18972         Move the dirfd() declaration to <dirent.h>.
18973         * lib/dirfd.h: Remove file.
18974         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18975         (dirfd): New declaration.
18976         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18977         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18978         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18979         HAVE_DECL_DIRFD.
18980         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18981         HAVE_DECL_DIRFD.
18982         * modules/dirfd (Files): Remove lib/dirfd.h.
18983         (Depends-on): Add dirent, extensions.
18984         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18985         (Include): Specify <dirent.h> instead of dirfd.h.
18986         * modules/dirent (Depends-on): Add link-warning.
18987         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18988         definition of GL_LINK_WARNING.
18989         * NEWS: Mention the change.
18990
18991 2008-10-18  Bruno Haible  <bruno@clisp.org>
18992
18993         Move the euidaccess() declaration to <unistd.h>.
18994         * lib/euidaccess.h: Remove file.
18995         * lib/unistd.in.h (euidaccess): New declaration.
18996         * lib/euidaccess.c: Don't include euidaccess.h.
18997         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18998         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19000         and HAVE_EUIDACCESS.
19001         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19002         (Depends-on): Add unistd.
19003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19004         (Include): Specify <unistd.h> instead of euidaccess.h.
19005         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19006         HAVE_EUIDACCESS.
19007         * NEWS: Mention the change.
19008
19009 2008-10-18  Bruno Haible  <bruno@clisp.org>
19010
19011         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19012
19013         Move the getdomainname() declaration to <unistd.h>.
19014         * lib/getdomainname.h: Remove file.
19015         * lib/unistd.in.h (getdomainname): New declaration.
19016         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19017         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19018         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19019         HAVE_GETDOMAINNAME.
19020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19021         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19022         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19023         (Depends-on): Add unistd, extensions.
19024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19025         (Includes): Specify <unistd.h> instead of getdomainname.h.
19026         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19027         HAVE_GETDOMAINNAME.
19028         * NEWS: Mention the change.
19029
19030 2008-10-18  Bruno Haible  <bruno@clisp.org>
19031
19032         * modules/dirent: New file.
19033         * m4/dirent_h.m4: New file.
19034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19035         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19036         * modules/fchdir (Files): Remove lib/dirent.in.h.
19037         (Depends-on): Add dirent.
19038         (Makefile.am): Move rules to modules/dirent.
19039         * doc/posix-headers/dirent.texi: Mention the new module.
19040
19041 2008-10-18  Bruno Haible  <bruno@clisp.org>
19042
19043         Avoid -Wunused-parameter warnings in public gnulib header files.
19044         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19045         macro.
19046         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19047
19048 2008-10-18  Bruno Haible  <bruno@clisp.org>
19049
19050         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19051         * doc/glibc-functions/error.texi: Mention the module 'error'.
19052         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19053         * doc/glibc-functions/getdomainname.texi: Mention the module
19054         'getdomainname'.
19055         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19056         * doc/glibc-functions/getpagesize.texi: Mention the module
19057         'getpagesize'.
19058         * doc/glibc-functions/getusershell.texi: Mention the module
19059         'getusershell'.
19060         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19061         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19062         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19063         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19064         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19065         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19066         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19067         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19068         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19069         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19070         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19071         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19072         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19073         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19074
19075 2008-10-17  Bruno Haible  <bruno@clisp.org>
19076
19077         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19078         HP-UX and IRIX, use -0.0L.
19079         * tests/test-ceill.c (minus_zero): Likewise.
19080         * tests/test-floorl.c (minus_zero): Likewise.
19081         * tests/test-frexpl.c (minus_zero): Likewise.
19082         * tests/test-isnan.c (minus_zerol): Likewise.
19083         * tests/test-isnanl.h (minus_zero): Likewise.
19084         * tests/test-ldexpl.c (minus_zero): Likewise.
19085         * tests/test-roundl.c (minus_zero): Likewise.
19086         * tests/test-signbit.c (minus_zerol): Likewise.
19087         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19088         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19089         * tests/test-truncl.c (minus_zero): Likewise.
19090         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19091         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19092         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19093         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19094
19095 2008-10-17  Bruno Haible  <bruno@clisp.org>
19096
19097         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19098         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19099         that it gets activated only for gcc >= 3.0.
19100         * lib/dirent.in.h: Likewise.
19101         * lib/errno.in.h: Likewise.
19102         * lib/fcntl.in.h: Likewise.
19103         * lib/float.in.h: Likewise.
19104         * lib/iconv.in.h: Likewise.
19105         * lib/inttypes.in.h: Likewise.
19106         * lib/locale.in.h: Likewise.
19107         * lib/math.in.h: Likewise.
19108         * lib/netdb.in.h: Likewise.
19109         * lib/netinet_in.in.h: Likewise.
19110         * lib/search.in.h: Likewise.
19111         * lib/signal.in.h: Likewise.
19112         * lib/spawn.in.h: Likewise.
19113         * lib/stdarg.in.h: Likewise.
19114         * lib/stdint.in.h: Likewise.
19115         * lib/stdio.in.h: Likewise.
19116         * lib/stdlib.in.h: Likewise.
19117         * lib/string.in.h: Likewise.
19118         * lib/strings.in.h: Likewise.
19119         * lib/sys_file.in.h: Likewise.
19120         * lib/sys_ioctl.in.h: Likewise.
19121         * lib/sys_select.in.h: Likewise.
19122         * lib/sys_socket.in.h: Likewise.
19123         * lib/sys_stat.in.h: Likewise.
19124         * lib/sys_time.in.h: Likewise.
19125         * lib/sysexits.in.h: Likewise.
19126         * lib/time.in.h: Likewise.
19127         * lib/unistd.in.h: Likewise.
19128         * lib/wchar.in.h: Likewise.
19129         * lib/wctype.in.h: Likewise.
19130         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19131
19132 2008-10-17  Jim Meyering  <meyering@redhat.com>
19133
19134         ignore-value: don't depend on inline module
19135         * modules/ignore-value (Depends-on): Remove 'inline'.
19136         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19137         Suggestion from Bruno Haible.
19138
19139 2008-10-17  Bruno Haible  <bruno@clisp.org>
19140
19141         New implementation of condition variables for Win32.
19142         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19143         (gl_linked_waitqueue_t): New type.
19144         (gl_cond_t): Use it.
19145         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19146         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19147         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19148         (glthread_cond_init_func, glthread_cond_wait_func,
19149         glthread_cond_timedwait_func, glthread_cond_signal_func,
19150         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19151         Reimplemented on the basis of gl_linked_waitqueue_t.
19152         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19153         gl_waitqueue_t.
19154         (gl_rwlock_t): Update.
19155         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19156
19157 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19158
19159         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19160         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19161
19162 2008-10-17  Jim Meyering  <meyering@redhat.com>
19163
19164         ignore-value: new module
19165         * modules/ignore-value: New file.
19166         * lib/ignore-value.h: New file.
19167         * MODULES.html.sh (Compiler warning management): New section,
19168         just for this module.  More to come.
19169
19170 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19171
19172         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19173         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19174         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19175
19176 2008-10-16  Jim Meyering  <meyering@redhat.com>
19177
19178         openat-die.c: avoid 'no previous prototype' warning
19179         * lib/openat-die.c: Include "openat.h".
19180         Reported by Reuben Thomas <rrt@sc3d.org>.
19181
19182 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19183
19184         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19185         * lib/netdb.in.h: Fix typo.
19186         Reported by Bruno Haible  <bruno@clisp.org>
19187
19188         * lib/netdb.in.h: Include sys/socket.h for platforms without
19189         netdb.h, to get structures like hostent on MinGW.
19190         * modules/netdb (Depends-on): Add sys_socket.
19191
19192 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19193
19194         * modules/netdb, modules/netdb-tests: New file.
19195         * m4/netdb_h.m4: New file.
19196         * lib/netdb.in.h: Add, currently just an empty file pending
19197         definitions.
19198         * tests/test-netdb.c: New file.
19199         * doc/posix-headers/netdb.texi: Mention that we replace it if
19200         needed.
19201         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19202         netdb.
19203
19204 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19205
19206         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19207         with code.
19208
19209 2008-10-13  Bruno Haible  <bruno@clisp.org>
19210
19211         * lib/glthread/cond.c (glthread_cond_wait_func,
19212         glthread_cond_timedwait_func): Add a comment.
19213
19214 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19215
19216         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19217         * tests/test-select.c: Likewise,
19218
19219 2008-10-13  Bruno Haible  <bruno@clisp.org>
19220
19221         * lib/glthread/cond.c (glthread_cond_wait_func,
19222         glthread_cond_timedwait_func): Fix variable name.
19223         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19224
19225 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19226
19227         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19228         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19229         struct sockaddr.sa_len.
19230         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19231
19232 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19233
19234         * build-aux/pmccabe2html: Add css and css_url parameters.
19235
19236 2008-10-12  Bruno Haible  <bruno@clisp.org>
19237
19238         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19239         calling aclx_get.
19240         Reported by Rainer Tammer <tammer@tammer.net>.
19241
19242 2008-10-12  Bruno Haible  <bruno@clisp.org>
19243
19244         Use msvcrt aware primitives for creation/termination of Win32 threads.
19245         * lib/glthread/thread.c: Include <process.h>.
19246         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19247         (wrapper_func): Update signature.
19248         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19249
19250 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19251             Bruno Haible  <bruno@clisp.org>
19252
19253         Provide a Win32 implementation of the 'cond' module.
19254         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19255         * lib/glthread/cond.c (glthread_cond_init_func,
19256         glthread_cond_wait_func, glthread_cond_timedwait_func,
19257         glthread_cond_signal_func, glthread_cond_broadcast_func,
19258         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19259         * modules/cond (Dependencies): Add gettimeofday.
19260
19261 2008-10-11  Bruno Haible  <bruno@clisp.org>
19262
19263         Make sleep work on older versions of mingw.
19264         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19265         only whether it exists.
19266         * doc/posix-functions/sleep.texi: Mention the problem with older
19267         versions of mingw.
19268
19269 2008-10-11  Bruno Haible  <bruno@clisp.org>
19270
19271         New module 'shutdown'.
19272         * modules/shutdown: New file.
19273         * lib/sys_socket.in.h (shutdown): New declaration.
19274         * lib/winsock.c (shutdown): New function.
19275         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19276         GNULIB_SHUTDOWN.
19277         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19278         * doc/posix-functions/shutdown.texi: Document the new module.
19279
19280 2008-10-11  Jim Meyering  <meyering@redhat.com>
19281
19282         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19283
19284 2008-10-11  Bruno Haible  <bruno@clisp.org>
19285
19286         New module 'fclose'.
19287         * modules/fclose: New file.
19288         * lib/stdio.in.h (fclose): New declaration.
19289         * lib/fclose.c: New file.
19290         * m4/fclose.m4: New file.
19291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19292         REPLACE_FCLOSE.
19293         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19294         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19295         REPLACE_FCLOSE.
19296         * modules/close (Depends-on): fclose.
19297         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19298
19299 2008-10-11  Bruno Haible  <bruno@clisp.org>
19300
19301         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19302         set errno and don't call _close.
19303
19304 2008-10-10  Bruno Haible  <bruno@clisp.org>
19305
19306         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19307         ACL, not afterwards. Fixes test failure on Cygwin.
19308
19309 2008-10-09  Ben Pfaff  <blp@gnu.org>
19310
19311         * build-aux/announce-gen: Fix gnulib version related part of usage
19312         message.  Die with a useful error message if no tarballs are
19313         found.
19314
19315 2008-10-10  Jim Meyering  <meyering@redhat.com>
19316
19317         bootstrap: use git's --depth=N option only if it's supported
19318         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19319         recognize the --depth option.  Reported by Pádraig Brady.
19320
19321 2008-10-09  Bruno Haible  <bruno@clisp.org>
19322
19323         New module 'ioctl'.
19324         * modules/ioctl: New file.
19325         * lib/sys_socket.in.h (ioctl): Remove declaration.
19326         * lib/winsock.c: Include <sys/ioctl.h>.
19327         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19328         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19329         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19330         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19331         * doc/posix-functions/ioctl.texi: Mention the new module.
19332
19333 2008-10-09  Bruno Haible  <bruno@clisp.org>
19334
19335         New module 'sys_ioctl'.
19336         * lib/sys_ioctl.in.h: New file.
19337         * m4/sys_ioctl_h.m4: New file.
19338         * modules/sys_ioctl: New file.
19339         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19340
19341 2008-10-09  Bruno Haible  <bruno@clisp.org>
19342
19343         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19344         * lib/winsock.c: Include <stdarg.h>.
19345         (rpl_ioctl): Change to second argument 'int' and then varargs.
19346
19347 2008-10-09  Bruno Haible  <bruno@clisp.org>
19348
19349         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19350         when the sys_socket module is present and the system has <winsock2.h>.
19351
19352 2008-10-09  Bruno Haible  <bruno@clisp.org>
19353
19354         * doc/posix-functions/close.texi: Mention module 'close' instead of
19355         module 'sys_socket'.
19356
19357 2008-10-09  Bruno Haible  <bruno@clisp.org>
19358
19359         * doc/glibc-headers/sys_ioctl.texi: New file.
19360         * doc/gnulib.texi: Include it.
19361
19362 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19363             Bruno Haible  <bruno@clisp.org>
19364
19365         Combine the two replacements of 'close'.
19366         * lib/sys_socket.in.h (close): Define to a reminder to include
19367         <unistd.h>.
19368         (_gl_close_fd_maybe_socket): New declaration.
19369         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19370         * lib/winsock.c (close): Remove undefinition.
19371         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19372         needed for the gnulib module 'close'.
19373         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19374         define to an error symbol or to a warning, if suitable.
19375         * lib/close.c: Include <sys/socket.h>.
19376         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19377         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19378         UNISTD_H_HAVE_WINSOCK2_H.
19379         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19381         UNISTD_H_HAVE_WINSOCK2_H.
19382         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19383         (configure.ac): Set a module indicator.
19384         (Makefile.am): Substitute GNULIB_CLOSE.
19385         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19386         * modules/poll-tests (Depends-on): Add close.
19387         * modules/select-tests (Depends-on): Likewise.
19388
19389 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19390             Bruno Haible  <bruno@clisp.org>
19391
19392         New module 'close'.
19393         * modules/close: New file.
19394         * lib/unistd.in.h (close): Move declaration out of the
19395         FCHDIR_REPLACEMENT scope.
19396         (_gl_unregister_fd): New declaration.
19397         * lib/close.c: New file.
19398         * lib/fchdir.c (rpl_close): Remove function.
19399         * m4/close.m4: New file.
19400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19401         close.
19402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19403         REPLACE_CLOSE.
19404         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19405         REPLACE_CLOSE.
19406         * modules/fchdir (Depends-on): Add close.
19407
19408 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19409             Bruno Haible  <bruno@clisp.org>
19410
19411         * lib/fcntl.in.h (open): Simplify conditionals.
19412         (_gl_register_fd): New declaration.
19413         * lib/fchdir.c (rpl_open): Remove function.
19414         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19415         also.
19416         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19418         open.
19419
19420 2008-10-09  Jim Meyering  <meyering@redhat.com>
19421
19422         GNUmakefile: use the more name-space-friendly "_version"
19423         * top/GNUmakefile (_dummy): Update.
19424         (_version): Rename from "version".
19425
19426 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19427             Bruno Haible  <bruno@clisp.org>
19428
19429         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19430         rpl_close.
19431         (_gl_register_fd): New function, extracted from rpl_open.
19432         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19433         (rpl_open, rpl_opendir): Use _gl_register_fd.
19434
19435 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19436
19437         Fix organization of 'open' replacement.
19438         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19439         (gl_FUNC_OPEN): Use it.
19440         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19441
19442 2008-10-08  Bruno Haible  <bruno@clisp.org>
19443
19444         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19445
19446 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19447
19448         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19449         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19450         listen).
19451
19452 2008-10-08  Eric Blake  <ebb9@byu.net>
19453
19454         GNUmakefile: add 'make version' target
19455         * top/GNUmakefile (_curr-ver): Split version update rules...
19456         (version): ...into a target.
19457
19458 2008-10-07  Bruno Haible  <bruno@clisp.org>
19459
19460         Use a more portable replacement expression for -0.0L.
19461         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19462         instead of -0.0L. Fix m4 quotation.
19463
19464         * tests/test-signbit.c: Include <float.h>.
19465         (minus_zero): New variable.
19466         (test_signbitl): Use minus_zero instead of -zero.
19467         * modules/signbit-tests (Depends-on): Add float.
19468
19469         * tests/test-ceill.c: Include <float.h>.
19470         (zero): Remove variable.
19471         (minus_zero): New variable.
19472         (main): Use minus_zero instead of -zero.
19473         * modules/ceill-tests (Depends-on): Add float.
19474
19475         * tests/test-floorl.c: Include <float.h>.
19476         (zero): Remove variable.
19477         (minus_zero): New variable.
19478         (main): Use minus_zero instead of -zero.
19479         * modules/floorl-tests (Depends-on): Add float.
19480
19481         * tests/test-roundl.c: Include <float.h>.
19482         (zero): Remove variable.
19483         (minus_zero): New variable.
19484         (main): Use minus_zero instead of -zero.
19485         * modules/roundl-tests (Depends-on): Add float.
19486
19487         * tests/test-truncl.c: Include <float.h>.
19488         (zero): Remove variable.
19489         (minus_zero): New variable.
19490         (main): Use minus_zero instead of -zero.
19491         * modules/truncl-tests (Depends-on): Add float.
19492
19493         * tests/test-frexpl.c (zero): Remove variable.
19494         (minus_zero): New variable.
19495         (main): Use minus_zero instead of -zero.
19496         * modules/frexpl-tests (Depends-on): Add float.
19497
19498         * tests/test-isnan.c (zerol): Remove variable.
19499         (minus_zerol): New variable.
19500         (test_long_double): Use minus_zerol instead of -zerol.
19501         * modules/isnan-tests (Depends-on): Add float.
19502
19503         * tests/test-isnanl.h (zero): Remove variable.
19504         (minus_zero): New variable.
19505         (main): Use minus_zero instead of -zero.
19506         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19507         * modules/isnanl-tests (Depends-on): Add float.
19508
19509         * tests/test-ldexpl.c (zero): Remove variable.
19510         (minus_zero): New variable.
19511         (main): Use minus_zero instead of -zero.
19512         * modules/ldexpl-tests (Depends-on): Add float.
19513
19514         * tests/test-snprintf-posix.h (zerol): Remove variable.
19515         (minus_zerol): New variable.
19516         (test_function): Use minus_zerol instead of -zerol.
19517         * modules/snprintf-posix-tests (Depends-on): Add float.
19518         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19519
19520         * tests/test-sprintf-posix.h (zerol): Remove variable.
19521         (minus_zerol): New variable.
19522         (test_function): Use minus_zerol instead of -zerol.
19523         * modules/sprintf-posix-tests (Depends-on): Add float.
19524         * modules/vsprintf-posix-tests (Depends-on): Add float.
19525
19526         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19527         (minus_zerol): New variable.
19528         (test_function): Use minus_zerol instead of -zerol.
19529         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19530
19531         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19532         (minus_zerol): New variable.
19533         (test_function): Use minus_zerol instead of -zerol.
19534         * modules/vasprintf-posix-tests (Depends-on): Add float.
19535
19536 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19537
19538         * MODULES.html.sh (Support for building documentation): Mention
19539         pmccabe2html.  Sort entries.
19540
19541         Add pmccabe2html module, from gnupdf.
19542         * build-aux/pmccabe.css: New file.
19543         * build-aux/pmccabe2html: New file.
19544         * m4/pmccabe2html.m4: New file.
19545         * modules/pmccabe2html: New file.
19546
19547 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19548
19549         flock: new module
19550         * MODULES.html.sh: Add to list of modules.
19551         * lib/flock.c: flock implementation for Windows and Unix systems
19552         which have fcntl.
19553         * doc/glibc-functions/flock.texi: Update documentation.
19554         * lib/sys_file.in.h: <sys/file.h> header file.
19555         * m4/flock.m4: M4 macros.
19556         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19557         * modules/flock: flock module.
19558         * modules/flock-tests: flock tests module.
19559         * modules/sys_file: sys/file.h module.
19560         * tests/test-flock.c: test suite for flock.
19561
19562 2008-10-06  Jim Meyering  <meyering@redhat.com>
19563
19564         bootstrap: check for LT_INIT more portably still ;-)
19565         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19566         Spotted by Bruno Haible.
19567
19568 2008-10-06  Eric Blake  <ebb9@byu.net>
19569
19570         test-signbit: avoid tripping Irix cc bug on -0.0L
19571         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19572         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19573         entire testsuite consistent and avoids an Irix 6.2 bug.
19574
19575 2008-10-05  Bruno Haible  <bruno@clisp.org>
19576             Jim Meyering  <jim@meyering.net>
19577
19578         Add an option for ignoring EPIPE during close_stdout.
19579         * lib/closeout.h: Include <stdbool.h>.
19580         (close_stdout_set_ignore_EPIPE): New declaration.
19581         * lib/closeout.c: Include <stdbool.h>.
19582         (ignore_EPIPE): New variable.
19583         (close_stdout_set_ignore_EPIPE): New function.
19584         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19585         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19586         failure.
19587         * modules/closeout (Depends-on): Add stdbool.
19588
19589 2008-10-05  Bruno Haible  <bruno@clisp.org>
19590
19591         * modules/accept: New file.
19592         * modules/bind: New file.
19593         * modules/connect: New file.
19594         * modules/getpeername: New file.
19595         * modules/getsockname: New file.
19596         * modules/getsockopt: New file.
19597         * modules/listen: New file.
19598         * modules/recv: New file.
19599         * modules/recvfrom: New file.
19600         * modules/send: New file.
19601         * modules/sendto: New file.
19602         * modules/setsockopt: New file.
19603         * modules/socket: New file.
19604         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19605         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19606         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19607         the particular module is requested. Add a link warning when the
19608         particular module is not requested.
19609         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19610         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19611         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19612         the particular module is requested.
19613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19614         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19615         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19616         * modules/sys_socket (Depends-on): Add link-warning.
19617         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19618         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19619         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19620         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19621         GL_LINK_WARNING.
19622         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19623         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19624         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19625         * doc/posix-functions/getpeername.texi: Mention the new module
19626         'getpeername'.
19627         * doc/posix-functions/getsockname.texi: Mention the new module
19628         'getsockname'.
19629         * doc/posix-functions/getsockopt.texi: Mention the new module
19630         'getsockopt'.
19631         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19632         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19633         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19634         * doc/posix-functions/send.texi: Mention the new module 'send'.
19635         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19636         * doc/posix-functions/setsockopt.texi: Mention the new module
19637         'setsockopt'.
19638         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19639         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19640         listen, connect, accept.
19641         * modules/select-tests (Depends-on): Likewise.
19642
19643 2008-10-05  Bruno Haible  <bruno@clisp.org>
19644
19645         * lib/winsock.c (strerror): Remove unused #undef.
19646         (rpl_close): Remove unused local variable.
19647
19648         * modules/sys_socket (Depends-on); Add errno.
19649
19650 2008-10-05  Bruno Haible  <bruno@clisp.org>
19651
19652         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19653         (select): Add a link warning when the 'select' module is not used.
19654         * modules/sys_select (Depends-on): Add link-warning.
19655         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19656         Suggested by Paolo Bonzini.
19657
19658 2008-10-05  Jim Meyering  <meyering@redhat.com>
19659
19660         bootstrap: check for LT_INIT more portably
19661         * build-aux/bootstrap: Avoid using grep -E, since it's not
19662         portable enough.  Suggestion from Bruno Haible.
19663
19664 2008-10-05  Bruno Haible  <bruno@clisp.org>
19665
19666         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19667         as being fixed by gnulib.
19668
19669 2008-10-05  Bruno Haible  <bruno@clisp.org>
19670
19671         * modules/select-tests: New file, mostly copied from
19672         modules/sys_select-tests.
19673         * tests/test-select.c: New file, mostly copied from
19674         tests/test-sys_select.c.
19675         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19676         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19677         (Makefile.am): Remove test_sys_select_LDADD.
19678
19679         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19680         to an undefined symbol, for an error message.
19681         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19682         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19683         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19684         winsock-select.c here.
19685         * modules/sys_select (Files): Remove lib/winsock-select.c.
19686         (Depends-on): Remove alloca.
19687         (Makefile.am): Substitute GNULIB_SELECT.
19688         * modules/select: New file.
19689         * doc/posix-functions/select.texi: Update.
19690
19691 2008-10-05  Bruno Haible  <bruno@clisp.org>
19692
19693         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19694         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19695         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19696         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19697         getdtablesize.
19698         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19699         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19700
19701 2008-10-05  Bruno Haible  <bruno@clisp.org>
19702
19703         * modules/getdtablesize-tests: New file.
19704         * tests/test-getdtablesize.c: New file.
19705
19706         New module 'getdtablesize'.
19707         * lib/unistd.in.h (getdtablesize): New declaration.
19708         * lib/getdtablesize.c: New file.
19709         * m4/getdtablesize.m4: New file.
19710         * modules/getdtablesize: New file.
19711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19712         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19713         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19714         HAVE_GETDTABLESIZE.
19715         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19716
19717 2008-10-05  Bruno Haible  <bruno@clisp.org>
19718
19719         * modules/sched (Makefile.am): Fix typo.
19720         Reported by Simon Josefsson.
19721
19722 2008-10-05  Jim Meyering  <meyering@redhat.com>
19723
19724         bootstrap: check for LT_INIT, too
19725         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19726         are deprecated.  Suggestion from Ralf Wildenhues.
19727
19728 2008-10-05  Bruno Haible  <bruno@clisp.org>
19729
19730         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19731         overriding them by ours.
19732         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19733
19734 2008-10-05  Jim Meyering  <meyering@redhat.com>
19735
19736         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19737         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19738         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19739
19740 2008-10-04  Bruno Haible  <bruno@clisp.org>
19741
19742         * modules/dup2 (License): Change to LGPLv2+.
19743         * modules/sleep (License): Likewise.
19744         * modules/perror (License): Likewise.
19745         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19746         Blake.
19747         * modules/signal (License): Likewise.
19748         * modules/sigprocmask (License): Likewise.
19749         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19750         Meyering.
19751
19752 2008-10-04  Bruno Haible  <bruno@clisp.org>
19753
19754         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19755         Reported by Rainer Tammer <tammer@tammer.net>.
19756
19757 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19758             Bruno Haible  <bruno@clisp.org>
19759
19760         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19761         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19762         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19763
19764 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19765
19766         filevercmp: new module
19767         * lib/filevercmp.h: New function filevercmp comparing version strings.
19768         * lib/filevercmp.c: Implementation of filevercmp function.
19769         * modules/filevercmp: Module metadata.
19770         * tests/test-filevercmp.c: Unit test for new module.
19771         * modules/filevercmp-tests: Unit test metadata.
19772         * MODULES.html.sh: Add filevercmp module.
19773
19774 2008-10-03  Bruno Haible  <bruno@clisp.org>
19775
19776         * lib/c-ctype.h: Add comment.
19777         Reported by Jim Meyering.
19778
19779 2008-10-02  Bruno Haible  <bruno@clisp.org>
19780
19781         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19782
19783 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19784
19785         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19786         name of bootstrap.conf accordingly.
19787
19788 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19789
19790         * build-aux/bootstrap: Install git-merge-changelog configuration
19791         items into .gitconfig if needed.
19792
19793 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19794
19795         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19796         git repository, and initialize/update it accordingly.
19797
19798 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19799
19800         * modules/fsync-tests: New file.
19801         * tests/test-fsync.c: New file.
19802
19803         New module 'fsync'.
19804         * lib/fsync.c: New file.
19805         * m4/fsync.m4: New file.
19806         * modules/fsync: New file.
19807         * lib/unistd.in.h (fsync): New declaration.
19808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19809         GNULIB_FSYNC and HAVE_FSYNC.
19810         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19811         * MODULES.html.sh (posix_functions): Add fsync.
19812         * doc/posix-functions/fsync.texi: Mention the new module.
19813
19814 2008-10-02  Jim Meyering  <meyering@redhat.com>
19815
19816         fts.c: sync with similar code from coreutils' remove.c
19817         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19818         Guard also with "#if defined __linux__", since for now at least,
19819         this code is Linux-kernel-specific.
19820
19821 2008-10-02  Jim Meyering  <meyering@redhat.com>
19822
19823         fts: bug fixes
19824         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19825         Include <sys/vfs.h>, not <sys/statfs.h>.
19826
19827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19828         Include <sys/vfs.h>, not <sys/statfs.h>.
19829
19830 2008-10-01  Bruno Haible  <bruno@clisp.org>
19831
19832         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19833         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19834         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19835         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19836         * doc/posix-functions/posix_spawnp.texi: Likewise.
19837         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19838         whether posix_spawn actually works.
19839         * m4/pipe.m4 (gl_PIPE): Likewise.
19840         * modules/execute (Files): Add m4/posix_spawn.m4.
19841         * modules/pipe (Files): Add m4/posix_spawn.m4.
19842         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19843
19844 2008-10-01  Jim Meyering  <meyering@redhat.com>
19845
19846         remove trailing spaces
19847         * NEWS: Likewise.
19848         * lib/poll.c (poll): Likewise.
19849         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19850         * lib/winsock.c (rpl_close): Likewise.
19851         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19852         * modules/yield: Likewise.
19853         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19854         * tests/test-sys_select.c (connect_to_socket): Likewise.
19855
19856         fts.c: adjust a new interface to be more generally useful
19857         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19858         (fts_build): Adjust caller.
19859
19860 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19861
19862         * modules/cond-tests: New file.
19863         * tests/test-cond.c: New file.
19864
19865 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19866             Bruno Haible  <bruno@clisp.org>
19867
19868         * modules/cond (Dependencies): Add errno, time.
19869         * lib/glthread/cond.h: Include <time.h>.
19870         (gl_cond_define, gl_cond_define_initialized): Use the same definition
19871         across platforms.
19872
19873 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19874             Bruno Haible  <bruno@clisp.org>
19875
19876         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19877
19878 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19879             Bruno Haible  <bruno@clisp.org>
19880
19881         * modules/tls-tests (Depends-on): Add thread, yield.
19882         (configure.ac): Remove all checks.
19883         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19884         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19885         gl_thread_self): Remove definitions. Include glthread/thread.h and
19886         glthread/yield.h instead.
19887         (test_tls): Pass an additional NULL argument to gl_thread_join.
19888
19889 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19890             Bruno Haible  <bruno@clisp.org>
19891
19892         * modules/lock-tests (Depends-on): Add thread, yield.
19893         (configure.ac): Remove all checks.
19894         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19895         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19896         gl_thread_self): Remove definitions. Include glthread/thread.h and
19897         glthread/yield.h instead.
19898         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19899         additional NULL argument to gl_thread_join.
19900
19901 2008-09-30  Bruno Haible  <bruno@clisp.org>
19902
19903         Fix the Win32 implementation of the 'thread' module.
19904         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19905         pointer type.
19906         (gl_thread_self): Invoke gl_thread_self_func.
19907         (gl_thread_self_func): New declaration.
19908         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19909         (do_init_self_key, init_self_key): New functions.
19910         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19911         Remove some fields.
19912         (running_threads, running_lock): Remove variables.
19913         (get_current_thread_handle): New function.
19914         (gl_thread_self_func, wrapper_func, glthread_create_func,
19915         glthread_join_func, gl_thread_exit_func): Largely rewritten and
19916         simplified.
19917
19918 2008-09-30  Bruno Haible  <bruno@clisp.org>
19919
19920         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19921         files.
19922
19923 2008-09-30  Jim Meyering  <meyering@redhat.com>
19924
19925         fts.m4: correct the test for statfs.f_type
19926         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19927         when checking for statfs.f_type.
19928
19929 2008-09-15  Simon Josefsson  <simon@josefsson.org>
19930
19931         tests: avoid some compiler warnings
19932         * tests/test-memchr.c (main): Pass NULL indirectly.
19933         * tests/test-getdate.c (main): Remove unused variable 'ret'.
19934
19935 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
19936
19937         getdate.y: disallow countable dayshifts like "4 yesterday ago"
19938         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19939         exactly specified dayshifts.
19940         (dayshift): New rule.
19941         (rel): Add dayshift.
19942         (relative_time_table) [tomorrow, yesterday, today, now]:
19943         Use tDAY_SHIFT in place of tDAY_UNIT.
19944         * tests/test-getdate.c: Add tests for now-disallowed countable
19945         dayshifts, e.g., "4 yesterday ago".
19946
19947 2008-09-29  Bruno Haible  <bruno@clisp.org>
19948
19949         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19950         * tests/test-posix_spawn1.in.sh: Renamed from
19951         tests/test-posix_spawn.in.sh.
19952         * tests/test-posix_spawn2.c: New file.
19953         * tests/test-posix_spawn2.in.sh: New file.
19954         * modules/posix_spawnp-tests (Files): Update.
19955         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19956
19957 2008-09-29  Bruno Haible  <bruno@clisp.org>
19958
19959         Propagate effects of putenv/setenv/unsetenv to child processes.
19960         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19961         * lib/pipe.c (create_pipe): Likewise.
19962
19963 2008-09-29  Bruno Haible  <bruno@clisp.org>
19964
19965         Enable use of shell scripts as executables in mingw.
19966         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19967         run the program as a shell script.
19968         * lib/pipe.c (create_pipe): Likewise.
19969         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19970         resulting array.
19971
19972 2008-09-29  Eric Blake  <ebb9@byu.net>
19973
19974         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19975
19976 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
19977
19978         * doc/posix-functions/accept.texi: Update mingw problems.
19979         * doc/posix-functions/bind.texi: Update mingw problems.
19980         * doc/posix-functions/close.texi: Update mingw problems.
19981         * doc/posix-functions/connect.texi: Update mingw problems.
19982         * doc/posix-functions/getpeername.texi: Update mingw problems.
19983         * doc/posix-functions/getsockname.texi: Update mingw problems.
19984         * doc/posix-functions/getsockopt.texi: Update mingw problems.
19985         * doc/posix-functions/ioctl.texi: Update mingw problems.
19986         * doc/posix-functions/listen.texi: Update mingw problems.
19987         * doc/posix-functions/recv.texi: Update mingw problems.
19988         * doc/posix-functions/recvfrom.texi: Update mingw problems.
19989         * doc/posix-functions/select.texi: Update mingw problems.
19990         * doc/posix-functions/send.texi: Update mingw problems.
19991         * doc/posix-functions/sendto.texi: Update mingw problems.
19992         * doc/posix-functions/setsockopt.texi: Update mingw problems.
19993         * doc/posix-functions/socket.texi: Update mingw problems.
19994
19995 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
19996             Bruno Haible  <bruno@clisp.org>
19997
19998         * lib/sys_select.in.h: Include sys/time.h.
19999         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20000         * modules/sys_select: Depend on sys_time.
20001         * tests/test-sys_select.c: Test that sys/select.h defines struct
20002         timeval fully.
20003
20004 2008-09-29  Bruno Haible  <bruno@clisp.org>
20005
20006         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20007         * lib/sys_select.in.h: Likewise.
20008
20009 2008-09-29  Bruno Haible  <bruno@clisp.org>
20010
20011         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20012
20013 2008-09-29  Bruno Haible  <bruno@clisp.org>
20014
20015         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20016         Set LIBSOCKET instead of augmenting LIBS.
20017         * modules/sockets (Link): New section.
20018         * modules/sockets-tests (test_sockets_LDADD): New variable.
20019         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20020         * modules/poll-tests (test_poll_LDADD): New variable.
20021         * NEWS: Document the change.
20022
20023 2008-09-29  Bruno Haible  <bruno@clisp.org>
20024
20025         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20026         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20027         ARPA_INET_H directly.
20028         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20029
20030 2008-09-28  Bruno Haible  <bruno@clisp.org>
20031
20032         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20033         from gl_HEADER_SYS_SOCKET.
20034         (gl_HEADER_SYS_SOCKET): Invoke it.
20035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20036
20037 2008-09-28  Bruno Haible  <bruno@clisp.org>
20038
20039         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20040         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20041         Needed on OSF/1 4.0.
20042
20043 2008-09-28  Bruno Haible  <bruno@clisp.org>
20044
20045         Override open more carefully.
20046         * lib/open.c (orig_open): New function.
20047         (rpl_open): Use orig_open instead of open.
20048         * lib/fcntl.in.h: Add special invocation convention.
20049         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20050         (gl_FUNC_OPEN): Invoke it.
20051
20052         Override freopen more carefully.
20053         * lib/freopen.c (orig_freopen): New function.
20054         (rpl_freopen): Use orig_freopen instead of freopen.
20055         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20056         (gl_FUNC_FREOPEN): Invoke it.
20057
20058         Override fopen more carefully.
20059         * lib/fopen.c (orig_fopen): New function.
20060         (rpl_fopen): Use orig_fopen instead of fopen.
20061         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20062         (gl_FUNC_FOPEN): Invoke it.
20063         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20064
20065 2008-09-28  Bruno Haible  <bruno@clisp.org>
20066
20067         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20068         SIGPIPE.
20069
20070 2008-09-28  Bruno Haible  <bruno@clisp.org>
20071
20072         * tests/test-sigaction.c (handler, main): Disable the check whether
20073         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20074         glibc systems with LinuxThreads.
20075
20076 2008-09-28  Bruno Haible  <bruno@clisp.org>
20077
20078         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20079
20080         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20081         with AIX xlc.
20082         * lib/fcntl.in.h (open): Likewise.
20083         Reported by Rainer Tammer <tammer@tammer.net>.
20084
20085 2008-09-28  Bruno Haible  <bruno@clisp.org>
20086
20087         * modules/posix_spawnp-tests: New file.
20088         * tests/test-posix_spawn.c: New file.
20089         * tests/test-posix_spawn.in.sh: New file.
20090
20091         New module 'posix_spawnp'.
20092         * modules/posix_spawnp: New file.
20093         * lib/spawnp.c: New file, from GNU libc with modifications.
20094         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20095
20096         New module 'posix_spawn'.
20097         * modules/posix_spawn: New file.
20098         * lib/spawn.c: New file, from GNU libc with modifications.
20099         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20100
20101         New module 'posix_spawnattr_destroy'.
20102         * modules/posix_spawnattr_destroy: New file.
20103         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20104         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20105         module.
20106
20107         New module 'posix_spawnattr_setsigmask'.
20108         * modules/posix_spawnattr_setsigmask: New file.
20109         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20110         modifications.
20111         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20112         new module.
20113
20114         New module 'posix_spawnattr_getsigmask'.
20115         * modules/posix_spawnattr_getsigmask: New file.
20116         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20117         modifications.
20118         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20119         new module.
20120
20121         New module 'posix_spawnattr_setsigdefault'.
20122         * modules/posix_spawnattr_setsigdefault: New file.
20123         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20124         modifications.
20125         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20126         new module.
20127
20128         New module 'posix_spawnattr_getsigdefault'.
20129         * modules/posix_spawnattr_getsigdefault: New file.
20130         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20131         modifications.
20132         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20133         new module.
20134
20135         New module 'posix_spawnattr_setschedpolicy'.
20136         * modules/posix_spawnattr_setschedpolicy: New file.
20137         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20138         modifications.
20139         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20140         new module.
20141
20142         New module 'posix_spawnattr_getschedpolicy'.
20143         * modules/posix_spawnattr_getschedpolicy: New file.
20144         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20145         modifications.
20146         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20147         new module.
20148
20149         New module 'posix_spawnattr_setschedparam'.
20150         * modules/posix_spawnattr_setschedparam: New file.
20151         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20152         modifications.
20153         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20154         new module.
20155
20156         New module 'posix_spawnattr_getschedparam'.
20157         * modules/posix_spawnattr_getschedparam: New file.
20158         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20159         modifications.
20160         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20161         new module.
20162
20163         New module 'posix_spawnattr_setpgroup'.
20164         * modules/posix_spawnattr_setpgroup: New file.
20165         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20166         modifications.
20167         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20168         module.
20169
20170         New module 'posix_spawnattr_getpgroup'.
20171         * modules/posix_spawnattr_getpgroup: New file.
20172         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20173         modifications.
20174         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20175         module.
20176
20177         New module 'posix_spawnattr_setflags'.
20178         * modules/posix_spawnattr_setflags: New file.
20179         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20180         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20181         module.
20182
20183         New module 'posix_spawnattr_getflags'.
20184         * modules/posix_spawnattr_getflags: New file.
20185         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20186         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20187         module.
20188
20189         New module 'posix_spawnattr_init'.
20190         * modules/posix_spawnattr_init: New file.
20191         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20192         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20193         module.
20194
20195         New module 'posix_spawn_file_actions_destroy'.
20196         * modules/posix_spawn_file_actions_destroy: New file.
20197         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20198         modifications.
20199         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20200         the new module.
20201
20202         New module 'posix_spawn_file_actions_addopen'.
20203         * modules/posix_spawn_file_actions_addopen: New file.
20204         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20205         modifications.
20206         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20207         the new module.
20208
20209         New module 'posix_spawn_file_actions_adddup2'.
20210         * modules/posix_spawn_file_actions_adddup2: New file.
20211         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20212         modifications.
20213         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20214         the new module.
20215
20216         New module 'posix_spawn_file_actions_addclose'.
20217         * modules/posix_spawn_file_actions_addclose: New file.
20218         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20219         modifications.
20220         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20221         the new module.
20222
20223         New module 'posix_spawn_file_actions_init'.
20224         * modules/posix_spawn_file_actions_init: New file.
20225         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20226         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20227         new module.
20228
20229         New module 'posix_spawn-internal'.
20230         * modules/posix_spawn-internal: New file.
20231         * lib/spawn_int.h: New file, from GNU libc with modifications.
20232         * lib/spawni.c: New file, from GNU libc with modifications.
20233         * m4/posix_spawn.m4: New file.
20234
20235         New module 'spawn'.
20236         * modules/spawn: New file.
20237         * lib/spawn.in.h: New file, from GNU libc with modifications.
20238         * m4/spawn_h.m4: New file.
20239         * doc/posix-headers/spawn.texi: Mention the new module.
20240
20241 2008-09-28  Bruno Haible  <bruno@clisp.org>
20242
20243         * modules/sched-tests: New file.
20244         * tests/test-sched.c: New file.
20245
20246         New module 'sched'.
20247         * modules/sched: New file.
20248         * lib/sched.in.h: New file.
20249         * m4/sched_h.m4: New file.
20250         * doc/posix-headers/sched.texi: Mention the new module.
20251
20252 2008-09-27  Eric Blake  <ebb9@byu.net>
20253
20254         Fix previous patch, and tweak references to $0.
20255         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20256         (func_version, func_gnulib_dir): Don't call this program
20257         gnulib-tool.
20258         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20259         with using $0 in function.
20260         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20261         (func_fatal_error): Reuse the name the user invoked us with.
20262
20263 2008-09-27  Bruno Haible  <bruno@clisp.org>
20264
20265         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20266         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20267         (gl_ICONV_H): Not here.
20268         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20269         instead of assigning ICONV_H directly.
20270
20271         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20273         WCHAR_H directly.
20274
20275 2008-09-27  Bruno Haible  <bruno@clisp.org>
20276
20277         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20278         * modules/arpa_inet (Depends-on): Add link-warning.
20279         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20280         * modules/unistd (Makefile.am): Likewise.
20281
20282 2008-09-26  Bruno Haible  <bruno@clisp.org>
20283
20284         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20285         variables.
20286         (func_version): Essentially copied from gnulib-tool.
20287         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20288         func_readlink): Copied from gnulib-tool.
20289
20290 2008-09-26  Bruno Haible  <bruno@clisp.org>
20291
20292         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20293         invoking git-version-gen.
20294
20295 2008-09-26  Bruno Haible  <bruno@clisp.org>
20296
20297         * posix-modules: Update to directory names changed on 2008-01-19.
20298         Remove commas in output before splitting into words. No more need to
20299         avoid 'ftruncate' since 2007-02-19.
20300
20301 2008-09-26  Bruno Haible  <bruno@clisp.org>
20302
20303         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20304
20305 2008-09-26  Bruno Haible  <bruno@clisp.org>
20306
20307         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20308         * modules/fwriteerror (Depends-on): Add errno.
20309
20310 2008-09-26  Bruno Haible  <bruno@clisp.org>
20311
20312         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20313         * tests/test-vc-list-files-cvs.sh: Likewise.
20314
20315 2008-09-26  Bruno Haible  <bruno@clisp.org>
20316
20317         * doc/posix-headers/sys_resource.texi: Reorder items.
20318
20319 2008-09-26  Jim Meyering  <meyering@redhat.com>
20320
20321         fts: tweak inode comparison function
20322         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20323         inode numbers, as documented.
20324
20325         fts: sort dirent entries on inode number before traversing
20326         This avoids a quadratic, seek-related performance penalty when
20327         operating on a directory containing many entries (measurable at 10k;
20328         3.5 hours at 2 million entries with a cold cache) on certain types
20329         of file systems, including ext3 and ext4, but not tmpfs.
20330         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20331         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20332         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20333         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20334         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20335         (fts_build): Set the stat.st_ino member from D_INO.
20336         If it is likely to be useful, sort dirent entries on inode number.
20337
20338         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20339         and the struct statfs.f_type member.
20340         * modules/fts (Depends-on): Add d-ino.
20341
20342 2008-09-26  Bruno Haible  <bruno@clisp.org>
20343
20344         * modules/sigpipe-die (Depends-on): Add sigpipe.
20345
20346         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20347         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20348         and GNULIB_STDIO_H_SIGPIPE are set.
20349         * lib/stdio-write.c: New file.
20350         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20351         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20352         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20353         REPLACE_STDIO_WRITE_FUNCS.
20354         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20355         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20356         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20357         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20358         * modules/stdio (Files): Add lib/stdio-write.c.
20359         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20360         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20361         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20362         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20363         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20364         REPLACE_FPRINTF_POSIX.
20365         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20366         REPLACE_PRINTF_POSIX.
20367         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20368         REPLACE_VFPRINTF_POSIX.
20369         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20370         REPLACE_VPRINTF_POSIX.
20371         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20372         SIGPIPE issue.
20373         * doc/posix-functions/fputc.texi: Likewise.
20374         * doc/posix-functions/fputs.texi: Likewise.
20375         * doc/posix-functions/fwrite.texi: Likewise.
20376         * doc/posix-functions/printf.texi: Likewise.
20377         * doc/posix-functions/putc.texi: Likewise.
20378         * doc/posix-functions/putchar.texi: Likewise.
20379         * doc/posix-functions/puts.texi: Likewise.
20380         * doc/posix-functions/vfprintf.texi: Likewise.
20381         * doc/posix-functions/vprintf.texi: Likewise.
20382
20383         * modules/safe-write (Depends-on): Add write.
20384
20385         * modules/sigpipe-tests: New file.
20386         * tests/test-sigpipe.c: New file.
20387         * tests/test-sigpipe.sh: New file.
20388
20389         * modules/write: New file.
20390         * lib/unistd.in.h: Include <sys/types.h>.
20391         (write): New declaration.
20392         * lib/write.c: New file.
20393         * m4/write.m4: New file.
20394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20395         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20396         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20397         GNULIB_WRITE, REPLACE_WRITE.
20398         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20399         and the SIGPIPE issue.
20400
20401         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20402         (raise): New declaration.
20403         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20404         (ext_signal): New function.
20405         (rpl_raise): New function.
20406         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20407         GNULIB_SIGNAL_H_SIGPIPE.
20408         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20409         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20410
20411         * modules/sigpipe: New file.
20412         * m4/sigpipe.m4: New file.
20413
20414 2008-09-25  Derek Price  <derek@ximbiot.com>
20415             Bruno Haible  <bruno@clisp.org>
20416
20417         * gnulib-tool (func_import): Report all license incompatibilities, not
20418         just the first one.
20419
20420 2008-09-25  Bruno Haible  <bruno@clisp.org>
20421
20422         * gnulib-tool (func_import): When computing the edits, consider not
20423         only the Makefile.ams that exist but also those that will be generated.
20424
20425 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20426
20427         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20428         fixes gnulib-tool --test warning about duplicate dependency.
20429
20430 2008-09-25  Bruno Haible  <bruno@clisp.org>
20431
20432         * gnulib-tool: Don't ask the user to perform edits in the generated
20433         Makefile.ams.
20434         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20435         apply to the Makefile.am being generated.
20436         (func_emit_tests_Makefile_am): Execute edits that apply to the
20437         Makefile.am being generated.
20438         (func_import): Setup list of Makefile.am edits before emitting the
20439         Makefile.ams, not at the end.
20440         (func_create_testdir): Update.
20441         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20442
20443 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20444
20445         * gnulib-tool (func_import): Store the --tests-base option in the
20446         comment in gnulib-cache.m4.
20447
20448 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20449
20450         * NEWS: Document increased portability that sys_select now provides.
20451
20452         * lib/sys_select.in.h: Install select wrapper.
20453         * lib/sys_socket.in.h: Use more descriptive name when there is no
20454         select wrapper.
20455         * lib/winsock-select.c: New.
20456         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20457         Require gl_HEADER_SYS_SOCKET.
20458         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20459         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20460         * tests/test-sys_select.c: Add functional tests.
20461
20462 2008-09-24  Eric Blake  <ebb9@byu.net>
20463
20464         open, fopen: close fd leak in last patch
20465         * lib/open.c (rpl_open): Close fd before returning error.
20466         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20467         * doc/posix-functions/open.texi (open): Document that Irix also
20468         has the bug.
20469         * doc/posix-functions/fopen.texi (fopen): Likewise.
20470         Reported by Paolo Bonzini.
20471
20472 2008-09-24  Bruno Haible  <bruno@clisp.org>
20473
20474         Ensure that a filename ending in a slash cannot be used to access a
20475         non-directory.
20476         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20477         to check whether it's really a directory.
20478         * lib/fopen.c: Include fcntl.h, unistd.h.
20479         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20480         and fdopen().
20481         * modules/fopen (Depends-on): Add unistd.
20482         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20483         * tests/test-fopen.c (main): Likewise.
20484         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20485         * doc/posix-functions/fopen.texi: Likewise.
20486         Reported by Eric Blake.
20487
20488 2008-09-23  Eric Blake  <ebb9@byu.net>
20489
20490         c-stack: avoid compiler optimizations when provoking overflow
20491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20492         recursion harder to optimize, to ensure a stack overflow occurs.
20493         * tests/test-c-stack.c (recurse): Likewise.
20494         Borrowed from libsigsegv.
20495
20496         c-stack: work around Irix sigaltstack bug
20497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20498         whether sigaltstack uses wrong end of stack_t (copied in part from
20499         libsigsegv).
20500         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20501         Irix bug, without requiring an over-allocation.
20502         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20503         bug.
20504
20505         fopen: document mingw bug on directories
20506         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20507         not allowing a stream visiting a directory, even though reading
20508         from such a stream is not portable.
20509
20510 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20511
20512         * lib/poll.c: Rewrite.
20513         * modules/poll: Depend on alloca.
20514
20515 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20516
20517         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20518         instead define prototypes for a full set of wrappers.  Ensure
20519         that Cygwin does not use the compatibility code, which is only
20520         for MinGW.
20521         * lib/winsock.c: New.
20522         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20523         * modules/sys_socket: Add lib/winsock.c.
20524
20525         * modules/poll-tests: Add errno and perror.
20526         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20527
20528 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20529
20530         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20531
20532 2008-09-23  Bruno Haible  <bruno@clisp.org>
20533
20534         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20535         * doc/glibc-functions/*: Likewise.
20536
20537 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20538
20539         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20540         success.
20541
20542 2008-09-22  Eric Blake  <ebb9@byu.net>
20543             Bruno Haible  <bruno@clisp.org>
20544
20545         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20546         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20547         supply %A but mishandle pseudo-NaN.
20548         Reported by Simon Josefsson.
20549
20550 2008-09-21  Bruno Haible  <bruno@clisp.org>
20551
20552         * tests/test-lock.c (main): Tweak skip message.
20553         * tests/test-tls.c (main): Likewise.
20554
20555 2008-09-21  Bruno Haible  <bruno@clisp.org>
20556
20557         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20558         whether 'struct sigaction' has sa_sigaction here...
20559         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20560         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20561
20562 2008-09-21  Bruno Haible  <bruno@clisp.org>
20563
20564         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20565         section.
20566         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20567         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20568         the new section.
20569         (Support for obsolete systems lacking POSIX:2001): New section.
20570         (String handling <string.h>): Move strdup to the new section.
20571         Suggested by Simon Josefsson and Paolo Bonzini.
20572
20573 2008-09-21  Bruno Haible  <bruno@clisp.org>
20574
20575         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20576         exponents in %e and %g results on 'long double'. Needed for mingw's
20577         improved *printf functions.
20578         * tests/test-vasprintf-posix.c (test_function): Likewise.
20579         * tests/test-snprintf-posix.h (test_function): Likewise.
20580         * tests/test-sprintf-posix.h (test_function): Likewise.
20581         Reported by Eric Blake.
20582
20583 2008-09-21  Bruno Haible  <bruno@clisp.org>
20584
20585         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20586         * tests/test-sprintf-posix.h (test_function): Likewise.
20587
20588 2008-09-21  Bruno Haible  <bruno@clisp.org>
20589
20590         * modules/getpass (Depends-on): Add strdup-posix.
20591
20592         New module 'strdup-posix'.
20593         * modules/strdup-posix: New file.
20594         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20595         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20597         REPLACE_STRDUP.
20598         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20599         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20600         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20601         strdup-posix.
20602
20603         * modules/strdup (Depends-on): Remove malloc-posix.
20604
20605 2008-09-20  Bruno Haible  <bruno@clisp.org>
20606
20607         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20608         Wildenhues.
20609
20610 2008-09-20  Bruno Haible  <bruno@clisp.org>
20611
20612         Ensure that wint_t gets defined on IRIX 5.3.
20613         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20614         * lib/wctype.in.h (wint_t): Likewise.
20615         (__wctype_wint_t): Remove type.
20616         (isw*): Use wint_t instead of __wctype_wint_t.
20617         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20618         * modules/wchar (Files): Add m4/wint_t.m4.
20619         (Makefile.am): Substitute HAVE_WINT_T.
20620         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20621         * tests/test-wctype.c: Check that wint_t is defined.
20622         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20623         * doc/posix-headers/wctype.texi: Likewise.
20624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20625
20626 2008-09-18  Bruno Haible  <bruno@clisp.org>
20627
20628         * gnulib-tool (func_exit): Update comment.
20629
20630 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20631
20632         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20633         assumes strdup exists and does not depend on strdup to return
20634         ENOMEM on out of memory conditions.
20635
20636 2008-09-18  Bruno Haible  <bruno@clisp.org>
20637
20638         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
20639         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20640         digits for the exponent.
20641
20642 2008-09-18  Jim Meyering  <meyering@redhat.com>
20643             Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/vasnprintf.c (decimal_point_char): Define also if
20646         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20647
20648 2008-09-16  Bruno Haible  <bruno@clisp.org>
20649         and Eric Blake  <ebb9@byu.net>
20650
20651         vasnprintf: support Irix 5.3
20652         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20653         that mishandle long double infinity.
20654         Reported by Tom G. Christensen.
20655
20656 2008-09-16  Bruno Haible  <bruno@clisp.org>
20657
20658         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20659         Solaris 9.
20660         * doc/glibc-functions/alphasort.texi: Likewise.
20661         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20662
20663 2008-09-16  Jim Meyering  <meyering@redhat.com>
20664
20665         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20666         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20667         a umask modification leak out of a subshell.  Otherwise, the
20668         opensolaris /bin/sh would be accepted and thus cause unwarranted
20669         failures in the coreutils test suite.
20670
20671 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20672
20673         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20674         to succeed.
20675
20676 2008-09-16  Jim Meyering  <meyering@redhat.com>
20677
20678         avoid spurious test failure when library is built without ACL support
20679         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20680         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20681         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20682         * tests/test-copy-acl.sh: Likewise.
20683
20684 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20685
20686         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20687         based on character occurrence counts.
20688
20689 2008-09-15  Eric Blake  <ebb9@byu.net>
20690
20691         tests: avoid some compiler warnings
20692         * tests/test-memchr.c (main): Pass NULL indirectly.
20693         * tests/test-closein.c (main): Avoid unused variable.
20694
20695 2008-09-15  Bruno Haible  <bruno@clisp.org>
20696
20697         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20698         are missing on OpenBSD 4.0 individually.
20699         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20700
20701 2008-09-15  Bruno Haible  <bruno@clisp.org>
20702
20703         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20704         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20705         * doc/posix-functions/perror.texi: Likewise.
20706         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20707         is missing.
20708         Reported by Eric Blake.
20709
20710         * lib/errno.in.h: Use replacement values >= 2000.
20711         Reported by Eric Blake.
20712
20713 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20714
20715         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20716         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20717         limit.
20718         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20719         compareseq was aborted.
20720
20721 2008-09-14  Bruno Haible  <bruno@clisp.org>
20722
20723         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20724         yvec_edit_count.
20725         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20726         (fstrcmp_bounded): Simplify result computation accordingly.
20727
20728 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20729
20730         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20731         (fstrcmp): Define in terms of fstrcmp_bounded.
20732         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20733         lower_bound argument.
20734         Return quickly if the result is certainly < lower_bound.
20735         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20736
20737 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738
20739         * lib/diffseq.h (EARLY_ABORT): New macro.
20740         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20741         evaluates to true.
20742
20743 2008-09-14  Bruno Haible  <bruno@clisp.org>
20744
20745         * modules/perror-tests: New file.
20746         * tests/test-perror.sh: New file.
20747         * tests/test-perror.c: New file.
20748
20749         New module 'perror'.
20750         * lib/stdio.in.h (perror): New declaration.
20751         * lib/perror.c: New file.
20752         * m4/perror.m4: New file.
20753         * modules/perror: New file.
20754         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20755         * doc/posix-functions/perror.texi: Mention the perror module.
20756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20757         REPLACE_PERROR.
20758         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20759         REPLACE_PERROR.
20760
20761 2008-09-14  Bruno Haible  <bruno@clisp.org>
20762
20763         * modules/stdio (Makefile.am): Reorder to match the order in
20764         lib/stdio.in.h.
20765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20766
20767 2008-09-13  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20770
20771 2008-09-13  Bruno Haible  <bruno@clisp.org>
20772
20773         Extend strerror to cover the added errno values.
20774         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20775         (rpl_strerror): Provide error messages for the added errno values and
20776         for the WSA* values.
20777         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20778         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20779         strerror.
20780         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20781         * modules/strerror (Depends-on): Add errno.
20782         * doc/posix-functions/strerror.texi: Document the change.
20783         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20784         and EOVERFLOW.
20785
20786 2008-09-13  Bruno Haible  <bruno@clisp.org>
20787
20788         * modules/EOVERFLOW: Remove file.
20789         * m4/eoverflow.m4: Remove file.
20790         * modules/EOVERFLOW-tests: Remove file.
20791         * tests/test-EOVERFLOW.c: Remove file.
20792         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20793         * modules/ftell (Depends-on): Likewise.
20794         * modules/getdelim (Depends-on): Likewise.
20795         * modules/getugroups (Depends-on): Likewise.
20796         * modules/poll (Depends-on): Likewise.
20797         * modules/snprintf (Depends-on): Likewise.
20798         * modules/sprintf-posix (Depends-on): Likewise.
20799         * modules/vasnprintf (Depends-on): Likewise.
20800         * modules/vasprintf (Depends-on): Likewise.
20801         * modules/vfprintf-posix (Depends-on): Likewise.
20802         * modules/vsnprintf (Depends-on): Likewise.
20803         * modules/vsprintf-posix (Depends-on): Likewise.
20804         * modules/xvasprintf (Depends-on): Likewise.
20805         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20806         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20807         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20808         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20809         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20810         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20811         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20812         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20813         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20814         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20815         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20816         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20817         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20818         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20819         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20820         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20821         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20822         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20823         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20824         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20825         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20826         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20827         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20828         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20829         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20830         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20831         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20832         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20833         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20834         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20835         * MODULES.html.sh: Remove EOVERFLOW.
20836         * NEWS: Mention the change.
20837
20838 2008-09-13  Bruno Haible  <bruno@clisp.org>
20839
20840         * modules/errno-tests: New file.
20841         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20842
20843         * lib/errno.in.h: New file.
20844         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20845         * modules/errno: New file.
20846         * doc/posix-headers/errno.texi: Update documentation.
20847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20848
20849 2008-09-13  Bruno Haible  <bruno@clisp.org>
20850
20851         * tests/test-poll.c: Use #if for native Windows, rather than testing
20852         __MSVCRT__.
20853
20854 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20855             Bruno Haible  <bruno@clisp.org>
20856
20857         * lib/glob.c: Don't include <pwd.h> on native Windows.
20858         (WINDOWS32): New macro.
20859         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20860
20861 2008-09-13  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20864         (ETIMEDOUT): Remove macro.
20865         (glthread_cond_timedwait_multithreaded): New declaration.
20866         (glthread_cond_timedwait): Use it.
20867         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20868         (glthread_cond_timedwait_multithreaded): New function.
20869
20870 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20871
20872         * modules/poll-tests: Do not check for io.h.
20873         * tests/test-poll.c: Check for __MSVCRT__ instead.
20874
20875 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20876
20877         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20878         * modules/poll-tests: Add inet_pton, stdbool, sockets.
20879         * tests/test-poll.c: Use them.  Use _pipe on Windows.
20880
20881 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
20882
20883         * modules/poll-tests: New.
20884         * tests/test-poll.c: New.
20885
20886 2008-09-12  Eric Blake  <ebb9@byu.net>
20887
20888         frexp: test for NetBSD failure on -0.0
20889         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20890         not all, bugs from NetBSD 3.0 have been fixed.
20891         * doc/posix-functions/frexp.texi (frexp): Document bug.
20892         Reported by Thomas Klausner.
20893
20894         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20895         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20896         literal -0.0.
20897         Reported by Jonathan C. Patschke <jp@centtech.com>.
20898
20899 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20900
20901         * lib/glthread/cond.h: Use dummy implementation also if
20902         USE_WIN32_THREADS.
20903
20904 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20905
20906         * modules/fnmatch-posix (License): Change to LGPLv2+.
20907         * modules/fnmatch-gnu (License): Likewise.
20908
20909 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20910
20911         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20912
20913 2008-09-11  Jim Meyering  <meyering@redhat.com>
20914
20915         * users.txt: Add gtk-vnc.
20916
20917 2008-09-08  Simon Josefsson  <simon@josefsson.org>
20918
20919         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20920         rotate amounts.
20921
20922         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20923         required for 16-bit and 8-bit rotates.
20924         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20925         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20926         UINT8_MAX instead of hard-coded constants.
20927         Suggested by Paul Eggert.
20928
20929 2008-09-07  Bruno Haible  <bruno@clisp.org>
20930
20931         * tests/test-striconveh.c (main): Check behaviour when converting from
20932         UTF-7.
20933
20934         Make striconveh work better with stateful encodings.
20935         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20936         that iconv does not increment the inptr when returning -1/EINVAL.
20937
20938 2008-09-07  Bruno Haible  <bruno@clisp.org>
20939
20940         * build-aux/config.rpath: Update according to libtool-2.2.6.
20941         * build-aux/config.libpath: Likewise.
20942
20943 2008-09-06  Bruno Haible  <bruno@clisp.org>
20944
20945         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20946         * lib/freadptr.c (freadptr): Likewise.
20947         * lib/freadseek.c (freadptrinc): Likewise.
20948         Reported by Simon Josefsson.
20949
20950 2008-09-06  Bruno Haible  <bruno@clisp.org>
20951
20952         * modules/freadptr (License): Change to LGPLv2+.
20953         * modules/freadseek (License): Likewise.
20954         Suggested by Eric Blake.
20955
20956         * modules/memchr2 (License): Change to LGPLv2+.
20957         Approved by Eric Blake.
20958
20959 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20960             Bruno Haible  <bruno@clisp.org>
20961
20962         Make gnulib-tool work with native 'sed' on AIX.
20963         * gnulib-tool (sed_noop): New variable.
20964         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20965         func_add_or_update, func_create_testdir): Use it to initialize sed
20966         script variables.
20967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20968
20969 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
20970             Bruno Haible  <bruno@clisp.org>
20971
20972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20973         also works after #include directives.
20974
20975 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
20976
20977         getdate.y: reject an out-of-range timezone value
20978         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20979         the range [-24...+24].  When specified with only one or two digits,
20980         * tests/test-getdate.c: Tests for the fix.
20981         * doc/getdate.texi: Document this change.
20982
20983 2008-09-03  Bruno Haible  <bruno@clisp.org>
20984
20985         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20986
20987 2008-09-02  Simon Josefsson  <simon@josefsson.org>
20988
20989         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
20990         <bruce.korb@gmail.com> with ideas from Ben Pfaff
20991         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20992         Blake <ebb9@byu.net>.
20993
20994         * tests/test-bitrotate.c: Add more test vectors.
20995
20996 2008-09-02  Eric Blake  <ebb9@byu.net>
20997
20998         vasnprintf-posix: handle large precision via %.*d
20999         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21000         when handling it ourselves.
21001         * tests/test-vasnprintf-posix.c (test_function): Add test.
21002         * tests/test-snprintf-posix.h (test_function): Likewise.
21003         * tests/test-sprintf-posix.h (test_function): Likewise.
21004         * tests/test-vasprintf-posix.c (test_function): Likewise.
21005         Reported by Alain Guibert.
21006
21007 2008-09-01  Eric Blake  <ebb9@byu.net>
21008
21009         c-stack: make configure-time check more robust
21010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21011         successful sigaction call.
21012         Reported by Tom G. Christensen.
21013
21014 2008-09-01  Bruno Haible  <bruno@clisp.org>
21015
21016         New module 'findprog-lgpl'.
21017         * modules/findprog-lgpl: New file.
21018         * lib/findprog-lgpl.c: New file.
21019         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21020         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21021         to decide whether to use strdup or xstrdup, concatenated_filename or
21022         xconcatenated_filename.
21023
21024 2008-09-01  Bruno Haible  <bruno@clisp.org>
21025
21026         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21027         'xconcat-filename' (GPL).
21028         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21029         (License): Change to LGPLv2+.
21030         * modules/xconcat-filename: New file.
21031         * lib/concat-filename.h (concatenated_filename): Change specification.
21032         (xconcatenated_filename): New declaration.
21033         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21034         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21035         memory situations.
21036         * lib/xconcat-filename.c: New file.
21037         * NEWS: Mention the change.
21038         * lib/findprog.c: Include concat-filename.h, not filename.h.
21039         (find_in_path): Use xconcatenated_filename instead of
21040         concatenated_filename.
21041         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21042         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21043         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21044         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21045         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21046         instead of concatenated_filename.
21047         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21048         (execute_java_class): Use xconcatenated_filename instead of
21049         concatenated_filename.
21050         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21051         * modules/javacomp (Depends-on): Likewise.
21052         * modules/javaexec (Depends-on): Likewise.
21053
21054 2008-09-01  Bruno Haible  <bruno@clisp.org>
21055
21056         Split module 'filename' into 'filename' and 'concat-filename'.
21057         * modules/filename: Keep only lib/filename.h.
21058         (License): Change to LGPLv2+.
21059         * modules/concat-filename: New file, extracted from modules/filename.
21060         * lib/filename.h (concatenated_filename): Remove declaration.
21061         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21062         * lib/concat-filename.c: Include concat-filename.h.
21063         * NEWS: Mention the change.
21064
21065 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21066
21067         * lib/bitrotate.h (rotl8, rotr8): Add.
21068
21069         * modules/bitrotate (configure.ac): Need
21070         AC_REQUIRE([AC_C_INLINE]).
21071         (Description): Mention stdint.h.  Reported by Bruno Haible
21072         <bruno@clisp.org>.
21073
21074         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21075         Paolo Bonzini <bonzini@gnu.org>.
21076
21077 2008-08-31  Bruno Haible  <bruno@clisp.org>
21078
21079         Assume Solaris specific bi-arch conventions on Solaris systems.
21080         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21081         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21082         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21083         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21084         like acl_libdirstem.
21085         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21086         acl_libdirstem.
21087         * NEWS: Mention the change.
21088         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21089
21090 2008-08-31  Jim Meyering  <meyering@redhat.com>
21091
21092         * lib/strftime.h: Add comments describing the two added arguments.
21093
21094         remove duplicate #include directives
21095         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21096         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21097
21098 2008-08-31  Bruno Haible  <bruno@clisp.org>
21099
21100         New module 'sigpipe-die'.
21101         * modules/sigpipe-die: New file.
21102         * lib/sigpipe-die.h: New file.
21103         * lib/sigpipe-die.c: New file.
21104         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21105
21106 2008-08-31  Bruno Haible  <bruno@clisp.org>
21107
21108         Don't override previously installed signal handlers.
21109         * lib/fatal-signal.c (saved_sigactions): New variable.
21110         (uninstall_handlers): Reset the signal to the saved handler, not
21111         to SIG_DFL (except when ignored).
21112         (install_handlers): Save the previous handlers.
21113
21114 2008-08-30  Bruno Haible  <bruno@clisp.org>
21115
21116         * gnulib-tool (func_reset_sigpipe): New function.
21117         (func_get_automake_snippet, func_modules_transitive_closure,
21118         func_import): Invoke it before a join command that reads from stdin,
21119         to avoid "echo: write error: Broken pipe" error messages on stderr.
21120         Reported by Sam Steingold <sds@gnu.org>.
21121
21122 2008-08-30  Bruno Haible  <bruno@clisp.org>
21123
21124         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21125         Code copied from m4/open.m4.
21126         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21127         access and the filename ends in a slash. Code copied from lib/open.c.
21128         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21129         * tests/test-fopen.c (main): Check against bug with trailing slash.
21130
21131 2008-08-29  Bruno Haible  <bruno@clisp.org>
21132
21133         Avoid some "gcc -pedantic" warnings.
21134         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21135         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21136         * lib/dirent.in.h: Likewise.
21137         * lib/fcntl.in.h: Likewise.
21138         * lib/float.in.h: Likewise.
21139         * lib/iconv.in.h: Likewise.
21140         * lib/inttypes.in.h: Likewise.
21141         * lib/locale.in.h: Likewise.
21142         * lib/math.in.h: Likewise.
21143         * lib/netinet_in.in.h: Likewise.
21144         * lib/search.in.h: Likewise.
21145         * lib/signal.in.h: Likewise.
21146         * lib/stdarg.in.h: Likewise.
21147         * lib/stdint.in.h: Likewise.
21148         * lib/stdio.in.h: Likewise.
21149         * lib/stdlib.in.h: Likewise.
21150         * lib/string.in.h: Likewise.
21151         * lib/strings.in.h: Likewise.
21152         * lib/sys_select.in.h: Likewise.
21153         * lib/sys_socket.in.h: Likewise.
21154         * lib/sys_stat.in.h: Likewise.
21155         * lib/sys_time.in.h: Likewise.
21156         * lib/sysexits.in.h: Likewise.
21157         * lib/time.in.h: Likewise.
21158         * lib/unistd.in.h: Likewise.
21159         * lib/wchar.in.h: Likewise.
21160         * lib/wctype.in.h: Likewise.
21161         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21162         * modules/fchdir (Makefile.am): Likewise.
21163         * modules/fcntl (Makefile.am): Likewise.
21164         * modules/float (Makefile.am): Likewise.
21165         * modules/iconv_open (Makefile.am): Likewise.
21166         * modules/inttypes (Makefile.am): Likewise.
21167         * modules/locale (Makefile.am): Likewise.
21168         * modules/math (Makefile.am): Likewise.
21169         * modules/netinet_in (Makefile.am): Likewise.
21170         * modules/search (Makefile.am): Likewise.
21171         * modules/signal (Makefile.am): Likewise.
21172         * modules/stdarg (Makefile.am): Likewise.
21173         * modules/stdint (Makefile.am): Likewise.
21174         * modules/stdio (Makefile.am): Likewise.
21175         * modules/stdlib (Makefile.am): Likewise.
21176         * modules/string (Makefile.am): Likewise.
21177         * modules/strings (Makefile.am): Likewise.
21178         * modules/sys_select (Makefile.am): Likewise.
21179         * modules/sys_socket (Makefile.am): Likewise.
21180         * modules/sys_stat (Makefile.am): Likewise.
21181         * modules/sys_time (Makefile.am): Likewise.
21182         * modules/sysexits (Makefile.am): Likewise.
21183         * modules/time (Makefile.am): Likewise.
21184         * modules/unistd (Makefile.am): Likewise.
21185         * modules/wchar (Makefile.am): Likewise.
21186         * modules/wctype (Makefile.am): Likewise.
21187         Reported by Reuben Thomas <rrt@sc3d.org>.
21188
21189 2008-08-29  Bruno Haible  <bruno@clisp.org>
21190
21191         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21192         any more.
21193
21194 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21195
21196         * MODULES.html.sh (Misc): Add bitrotate.
21197
21198         * modules/bitrotate: New file.
21199
21200         * lib/bitrotate.h: New file.
21201
21202         * modules/bitrotate-tests: New file.
21203
21204         * tests/test-bitrotate.c: New file.
21205
21206         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21207         on the bitrotate module.
21208
21209         * lib/arctwo.c: Use new bitrotate module.
21210
21211 2008-08-29  Jim Meyering  <meyering@redhat.com>
21212
21213         bootstrap: merge changes from coreutils
21214         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21215         of copied files.  Remove a kludge, now that this is fixed.
21216         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21217         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21218         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21219
21220 2008-08-29  Bruno Haible  <bruno@clisp.org>
21221
21222         * MODULES.html.sh: Remove --cvs-urls option.
21223
21224 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21225
21226         maint.mk: adjust to file name change
21227         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21228
21229 2008-08-28  Jim Meyering  <meyering@redhat.com>
21230
21231         * modules/getndelim2 (License): Relicense to LGPLv2+.
21232         Approved by Richard Stallman for the version of 1995, and by
21233         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21234
21235 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21236
21237         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21238         dummy if one is not available.  Do not touch them if
21239         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21240         (getc_maybe_unlocked): New.
21241         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21242
21243 2008-08-26  Eric Blake  <ebb9@byu.net>
21244
21245         doc/INSTALL: resync from autoconf
21246         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21247         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21248         moving...
21249         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21250         * INSTALL: Regenerate.
21251         * INSTALL.ISO: New file.
21252         * INSTALL.UTF-8: Likewise.
21253
21254 2008-08-26  Jim Meyering  <meyering@redhat.com>
21255
21256         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21257         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21258         these definitions conditional, so that they may be overridden, too.
21259
21260 2008-08-26  Bruno Haible  <bruno@clisp.org>
21261
21262         Generate INSTALL file variants with prettier quotes.
21263         * doc/Makefile (INSTALL_PRELUDE): New macro.
21264         (INSTALL): Use it.
21265         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21266
21267 2008-08-26  Bruno Haible  <bruno@clisp.org>
21268
21269         Run makeinfo in an English locale.
21270         * doc/Makefile (MAKEINFO): New variable.
21271
21272 2008-08-26  Bruno Haible  <bruno@clisp.org>
21273
21274         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21275         Suggested by Eric Blake.
21276
21277 2008-08-25  Bruno Haible  <bruno@clisp.org>
21278
21279         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21280
21281 2008-08-25  Eric Blake  <ebb9@byu.net>
21282
21283         c-stack: test that stack overflow can be caught
21284         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21285         that platform allows handling stack overflow; at least OS/2 EMX
21286         has sigaltstack, but crashes before transferring control to
21287         handler on stack overflow.
21288         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21289         check for HAVE_STACK_OVERFLOW_HANDLING.
21290         Reported by Elbert Pol.
21291
21292 2008-08-25  Bruno Haible  <bruno@clisp.org>
21293
21294         * doc/posix-functions/strftime.texi: Fix description of strftime
21295         module.
21296
21297 2008-08-24  Bruno Haible  <bruno@clisp.org>
21298
21299         * tests/uniwidth/test-uc_width2.c: New file.
21300         * tests/uniwidth/test-uc_width2.sh: New file.
21301         * modules/uniwidth/width-tests (Files): Add the new files.
21302         (TESTS): Add uniwidth/test-uc_width2.sh.
21303         (TESTS_ENVIRONMENT): New variable.
21304         (check_PROGRAMS): Add test-uc_width2.
21305         (test_uc_width2_SOURCES): New variable.
21306
21307         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21308         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21309         not 0x00AB.
21310         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21311
21312 2008-08-22  Eric Blake  <ebb9@byu.net>
21313
21314         test-lock, test-tls: mention why a test is skipped
21315         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21316         skipped.
21317         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21318
21319         count-one-bits: relax license
21320         * modules/count-one-bits (License): Relicense to LGPLv2+.
21321         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21322
21323 2008-08-22  Andreas Schwab  <schwab@suse.de>
21324
21325         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21326         Remove spurious space in assignment.
21327
21328 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21329
21330         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21331         Paul Eggert <eggert@CS.UCLA.EDU>.
21332
21333 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21334
21335         * modules/gettext: Add m4/threadlib.m4.
21336
21337 2008-08-19  Eric Blake  <ebb9@byu.net>
21338
21339         test-c-stack: fix compilation failure on FreeBSD 5.0
21340         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21341         headers before <sys/resource.h>.
21342         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21343         the bug.
21344         Reported by Nelson H. F. Beebe.
21345
21346         strverscmp: migrate from "strverscmp.h" to <string.h>
21347         * modules/string (Makefile.am): Add new hooks.
21348         * modules/strverscmp (Files): Remove strverscmp.h.
21349         (Depends-on): Add string.
21350         (configure.ac): Add indicator.
21351         (Include): Mention new header.
21352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21353         defaults.
21354         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21355         results.
21356         * lib/strverscmp.h: Delete.
21357         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21358         * tests/test-strverscmp.c (includes): Adjust client.
21359         * lib/check-version.c (includes): Likewise.
21360         * NEWS: Document the change.
21361
21362         strverscmp: add unit test
21363         * modules/strverscmp-tests: New file.
21364         * tests/test-strverscmp.c: Likewise.
21365
21366 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21367
21368         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21369         regarding Windows crypto stuff, from Mono.
21370
21371 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21372
21373         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21374         if present, for intel RND.  Return error on failures.
21375
21376 2008-08-18  Ben Pfaff  <blp@gnu.org>
21377
21378         gitlog-to-changelog: give better diagnostic for failed pipe-open
21379         * build-aux/gitlog-to-changelog: Improve error message: suggest
21380         that the version of Git may be too old.
21381
21382 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21383
21384         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21385         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21386
21387 2008-08-18  Bruno Haible  <bruno@clisp.org>
21388
21389         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21390         pthread_in_use().
21391
21392 2008-08-18  Bruno Haible  <bruno@clisp.org>
21393
21394         * lib/glthread/threadlib.c: Include <pthread.h>.
21395
21396 2008-08-18  Bruno Haible  <bruno@clisp.org>
21397
21398         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21399         glthread_recursive_lock_* macros.
21400         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21401         Fix syntax error.
21402
21403 2008-08-18  Bruno Haible  <bruno@clisp.org>
21404
21405         * lib/glthread/thread.c: Avoid forcing a context switch right after
21406         thread creation.
21407
21408 2008-08-17  Bruno Haible  <bruno@clisp.org>
21409
21410         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21411         * lib/glthread/thread.h: Provide Win32 specific implementation.
21412         * modules/thread (Files): Add lib/glthread/thread.c.
21413         (Depends-on): Add lock.
21414         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21415
21416 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21417
21418         New module 'yield'.
21419         * modules/yield: New file.
21420         * lib/glthread/yield.h: New file.
21421         * m4/yield.m4: New file.
21422         * MODULES.html.sh (Multithreading): Add yield.
21423
21424 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21425
21426         New module 'thread'.
21427         * modules/thread: New file.
21428         * lib/glthread/thread.h: New file.
21429         * m4/thread.m4: New file.
21430         * MODULES.html.sh (Multithreading): Add thread.
21431
21432 2008-08-17  Bruno Haible  <bruno@clisp.org>
21433
21434         * lib/glthread/lock.h: Include <stdlib.h> always.
21435         * lib/glthread/tls.h: Likewise.
21436         * lib/glthread/cond.h: Likewise.
21437
21438 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21439
21440         New module 'cond'.
21441         * modules/cond: New file.
21442         * lib/glthread/cond.h: New file.
21443         * lib/glthread/cond.c: New file.
21444         * m4/cond.m4: New file.
21445         * MODULES.html.sh (Multithreading): Add cond.
21446
21447 2008-08-16  Eric Blake  <ebb9@byu.net>
21448
21449         c-stack: fix regression on Irix 5.3 from 2008-06-21
21450         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21451         sa_sigaction...
21452         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21453         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21454         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21455         * modules/signal (Makefile.am): Use the value.
21456         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21457         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21458         * doc/posix-headers/signal.texi (signal.h): Document this
21459         portability issue.
21460         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21461         Reported by Tom G. Christensen.
21462
21463 2008-08-17  Bruno Haible  <bruno@clisp.org>
21464
21465         New module 'threadlib'.
21466         * modules/threadlib: New file.
21467         * lib/glthread/threadlib.c: New file, extracted from
21468         lib/glthread/lock.c.
21469         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21470         functions.
21471         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21472         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21473         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21474         macros.
21475         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21476         (gl_DISABLE_THREADS): Remove macro.
21477         * modules/lock (Files): Remove build-aux/config.rpath.
21478         (Depends-on): Remove havelib. Add threadlib.
21479         (configure.ac-early): Remove section.
21480         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21481         * modules/tls (Depends-on): Remove lock. Add threadlib.
21482         (Link): New section, copied from threadlib.
21483         * MODULES.html.sh (Multithreading): Add threadlib.
21484
21485 2008-08-14  Bruno Haible  <bruno@clisp.org>
21486
21487         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21488         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21489         glthread_rwlock_unlock, glthread_rwlock_destroy,
21490         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21491         glthread_recursive_lock_destroy): Define as macros always.
21492         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21493         glthread_lock_lock.
21494         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21495         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21496         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21497         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21498         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21499         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21500         (glthread_recursive_lock_lock_func): Renamed from
21501         glthread_recursive_lock_lock.
21502         (glthread_recursive_lock_unlock_func): Renamed from
21503         glthread_recursive_lock_unlock.
21504         (glthread_recursive_lock_destroy_func): Renamed from
21505         glthread_recursive_lock_destroy.
21506
21507 2008-08-14  Bruno Haible  <bruno@clisp.org>
21508
21509         * lib/glthread/lock.h: Renamed from lib/lock.h.
21510         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21511         * lib/glthread/tls.h: Renamed from lib/tls.h.
21512         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21513         * lib/fstrcmp.c: Update includes.
21514         * lib/strsignal.c: Update includes.
21515         * modules/lock (Files, Makefile.am): Update.
21516         (Include): Change to "glthread/lock.h".
21517         * modules/tls (Files, Makefile.am): Update.
21518         (Include): Change to "glthread/tls.h".
21519         * tests/test-lock.c: Update includes.
21520         * tests/test-tls.c: Update includes.
21521         * NEWS: Mention the renamed header files.
21522
21523 2008-08-11  Jim Meyering  <meyering@redhat.com>
21524
21525         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21526
21527 2008-08-11  Eric Blake  <ebb9@byu.net>
21528
21529         test-c-stack: avoid C99-ism
21530         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21531         before statement.
21532         Reported by Alain Guibert.
21533
21534 2008-08-10  Jim Meyering  <meyering@redhat.com>
21535
21536         ensure that return value of uinttostr et al are not ignored
21537         * lib/inttostr.h (__GNUC_PREREQ): Define.
21538         (__attribute_warn_unused_result__): Define.
21539         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21540
21541 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21542
21543         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21544         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21545
21546 2008-08-07  Jim Meyering  <meyering@redhat.com>
21547
21548         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21549
21550         * modules/mkstemp (License): Relicense under LGPLv2+.
21551         * modules/tempname (License): Likewise.
21552
21553 2008-08-06  Bruno Haible  <bruno@clisp.org>
21554
21555         * lib/poll.c (poll): Further micro-optimization.
21556
21557 2008-08-06  Jim Meyering  <meyering@redhat.com>
21558
21559         inet_pton.c: use locale-independent tolower
21560         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21561         (inet_pton6): Use c_tolower rather than tolower.
21562         * modules/inet_pton (Depends-on): Add c-ctype.
21563
21564 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21565
21566         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21567         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21568
21569 2008-08-06  Jim Meyering  <meyering@redhat.com>
21570
21571         * modules/inet_pton (License): Relicense under LGPLv2+.
21572
21573 2008-08-03  Bruno Haible  <bruno@clisp.org>
21574
21575         Additional non-aborting API for lock and tls.
21576         * lib/lock.h: Include <errno.h>.
21577         (glthread_lock_init): New macro/function.
21578         (gl_lock_init): Define as wrapper around glthread_lock_init.
21579         (glthread_lock_lock): New macro/function.
21580         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21581         (glthread_lock_unlock): New macro/function.
21582         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21583         (glthread_lock_destroy): New macro/function.
21584         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21585         (glthread_rwlock_init): New macro/function.
21586         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21587         (glthread_rwlock_rdlock): New macro/function.
21588         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21589         (glthread_rwlock_wrlock): New macro/function.
21590         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21591         (glthread_rwlock_unlock): New macro/function.
21592         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21593         (glthread_rwlock_destroy): New macro/function.
21594         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21595         (glthread_recursive_lock_init): New macro/function.
21596         (gl_recursive_lock_init): Define as wrapper around
21597         glthread_recursive_lock_init.
21598         (glthread_recursive_lock_lock): New macro/function.
21599         (gl_recursive_lock_lock): Define as wrapper around
21600         glthread_recursive_lock_lock.
21601         (glthread_recursive_lock_unlock): New macro/function.
21602         (gl_recursive_lock_unlock): Define as wrapper around
21603         glthread_recursive_lock_unlock.
21604         (glthread_recursive_lock_destroy): New macro/function.
21605         (gl_recursive_lock_destroy): Define as wrapper around
21606         glthread_recursive_lock_destroy.
21607         (glthread_once): New macro/function.
21608         (gl_once): Define as wrapper around glthread_once.
21609         Update function declarations.
21610         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21611         glthread_rwlock_init. Return error code.
21612         (glthread_rwlock_rdlock_multithreaded): Renamed from
21613         glthread_rwlock_rdlock. Return error code.
21614         (glthread_rwlock_wrlock_multithreaded): Renamed from
21615         glthread_rwlock_wrlock. Return error code.
21616         (glthread_rwlock_unlock_multithreaded): Renamed from
21617         glthread_rwlock_unlock. Return error code.
21618         (glthread_rwlock_destroy_multithreaded): Renamed from
21619         glthread_rwlock_destroy. Return error code.
21620         (glthread_recursive_lock_init_multithreaded): Renamed from
21621         glthread_recursive_lock_init. Return error code.
21622         (glthread_recursive_lock_lock_multithreaded): Renamed from
21623         glthread_recursive_lock_lock. Return error code.
21624         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21625         glthread_recursive_lock_unlock. Return error code.
21626         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21627         glthread_recursive_lock_destroy. Return error code.
21628         (glthread_once_call): Make static.
21629         (glthread_once_multithreaded): Renamed from glthread_once.
21630         * lib/tls.h: Include <errno.h>.
21631         (glthread_tls_key_init): New macro/function.
21632         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21633         (glthread_tls_set): New macro/function.
21634         (gl_tls_set): Define as wrapper around glthread_tls_set.
21635         (glthread_tls_key_destroy): New macro/function.
21636         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21637         Update function declarations.
21638         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21639         glthread_tls_get.
21640         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21641
21642 2008-08-04  Eric Blake  <ebb9@byu.net>
21643
21644         gnumakefile: use space, not TAB, outside of targets
21645         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21646
21647 2008-08-02  Jim Meyering  <meyering@redhat.com>
21648
21649         getdate.y: avoid locale-dependent date parsing failure
21650         In Turkish locales, getdate would fail to recognize keywords
21651         containing a lowercase "i".  The solution is not to rely on
21652         locale-sensitive case-conversion.
21653         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21654         (lookup_word): Use c_toupper in place of toupper.
21655         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21656         Reported by Vefa Bicakci <bicave@superonline.com> in
21657         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21658         * modules/getdate (Depends-on): Add c-ctype.
21659
21660 2008-08-02  Bruno Haible  <bruno@clisp.org>
21661
21662         * gnulib-tool (func_import): When updating or creating a .gitignore
21663         file, prepend each added line with a slash, and ignore leading slashes
21664         from the existing lines.
21665         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21666
21667 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21668
21669         Portability fix for GNU make 3.79.1.
21670         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21671         versions do not understand.
21672
21673 2008-08-01  Bruno Haible  <bruno@clisp.org>
21674
21675         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21676         * tests/test-isnanf.h (zero): New variable.
21677         (main): Avoid literal -0.0f.
21678         * tests/test-isnand.h (zero): New variable.
21679         (main): Avoid literal -0.0.
21680         * tests/test-isnanl.h (zero): New variable.
21681         (main): Avoid literal -0.0L.
21682         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21683         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21684         -0.0, -0.0L.
21685         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21686         (test_signbitd): Avoid literal -0.0.
21687         (test_signbitl): Avoid literal -0.0L.
21688         * tests/test-ceilf1.c (zero): New variable.
21689         (main): Avoid literal -0.0f.
21690         * tests/test-ceill.c (zero): New variable.
21691         (main): Avoid literal -0.0L.
21692         * tests/test-floorf1.c (zero): New variable.
21693         (main): Avoid literal -0.0f.
21694         * tests/test-floorl.c (zero): New variable.
21695         (main): Avoid literal -0.0L.
21696         * tests/test-roundf1.c (zero): New variable.
21697         (main): Avoid literal -0.0f.
21698         * tests/test-round1.c (zero): New variable.
21699         (main): Avoid literal -0.0.
21700         * tests/test-roundl.c (zero): New variable.
21701         (main): Avoid literal -0.0L.
21702         * tests/test-truncf1.c (zero): New variable.
21703         (main): Avoid literal -0.0f.
21704         * tests/test-trunc1.c (zero): New variable.
21705         (main): Avoid literal -0.0.
21706         * tests/test-truncl.c (zero): New variable.
21707         (main): Avoid literal -0.0L.
21708         * tests/test-frexp.c (zero): New variable.
21709         (main): Avoid literal -0.0.
21710         * tests/test-frexpl.c (zero): New variable.
21711         (main): Avoid literal -0.0L.
21712         * tests/test-ldexpl.c (zero): New variable.
21713         (main): Avoid literal -0.0L.
21714         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21715         (zerod, zerol): New variables.
21716         (test_function): Avoid literals -0.0, -0.0L.
21717         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21718         (zerod, zerol): New variables.
21719         (test_function): Avoid literals -0.0, -0.0L.
21720         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21721         (zerod, zerol): New variables.
21722         (test_function): Avoid literals -0.0, -0.0L.
21723         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21724         (zerod, zerol): New variables.
21725         (test_function): Avoid literals -0.0, -0.0L.
21726         * tests/test-strtod.c (zero): New variable.
21727         (main): Avoid literal -0.0.
21728         Reported by Jonathan C. Patschke <jp@centtech.com>.
21729
21730 2008-07-31  Jim Meyering  <meyering@redhat.com>
21731
21732         sha256.h: correct definition of SHA224_DIGEST_SIZE
21733         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21734         Reported by Paulie Pena IV <paulie4@gmail.com>.
21735         Define as 224 / 8, rather than as a literal.
21736         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21737         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21738         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21739
21740 2008-07-31  Bruno Haible  <bruno@clisp.org>
21741
21742         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21743         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21744         Reported by Jonathan Patschke <jp@centtech.com>.
21745
21746 2008-07-31  Bruno Haible  <bruno@clisp.org>
21747
21748         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21749         Reported by Paolo Bonzini <bonzini@gnu.org>.
21750
21751 2008-07-30  Eric Blake  <ebb9@byu.net>
21752
21753         test-strtod: allow compilation without -lm
21754         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21755         Reported by Dennis Clarke <blastwave@gmail.com>.
21756
21757 2008-07-28  Jim Meyering  <meyering@redhat.com>
21758
21759         bootstrap: work also when there are no .po files in po/
21760         * build-aux/bootstrap (update_po_files): Complete the change
21761         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21762
21763 2008-07-27  Jim Meyering  <meyering@redhat.com>
21764
21765         * users.txt: Add zile.
21766
21767 2008-07-26  Ben Pfaff  <blp@gnu.org>
21768
21769         Add missing dependencies on new m4/exponent[fdl].m4 files.
21770         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21771         * modules/isnand-nolibm: Add m4/exponentd.m4.
21772         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21773         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21774         m4/isnan[fdl].m4, because the macros actually used moved.
21775         Reported by Jim Meyering.
21776
21777 2008-07-14  Ben Pfaff  <blp@gnu.org>
21778
21779         Add isinf module.
21780         * lib/isinf.c: New file.
21781         * lib/math.in.h: Define isinf macro if we have decided to replace
21782         it.
21783         * m4/isinf.m4: New file.
21784         * m4/math_h.m4: Initialize and substitute variables for isinf
21785         module.
21786         * modules/isinf: New file.
21787         * modules/isinf-tests: New file.
21788         * modules/math: Add substitutions for new module.
21789         * tests/test-isinf.c: New file.
21790         * doc/posix-functions/isinf.texi: Mention new module.
21791         * MODULES.html.sh: Mention new module.
21792
21793 2008-07-14  Ben Pfaff  <blp@gnu.org>
21794
21795         Factor out some macros for use by additional modules.
21796         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21797         exponentf.m4.
21798         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21799         exponentd.m4.
21800         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21801         file exponentl.m4.
21802         * m4/exponentf.m4: New file.
21803         * m4/exponentd.m4: New file.
21804         * m4/exponentl.m4: New file.
21805         * modules/isnanf: Use new file m4/exponentf.m4.
21806         * modules/isnand: Use new file m4/exponentd.m4.
21807         * modules/isnanl: Use new file m4/exponentl.m4.
21808
21809 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21810
21811         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21812         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21813         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21814         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21815
21816         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21817         readlink on platforms without PATH_MAX.
21818
21819 2008-07-21  Eric Blake  <ebb9@byu.net>
21820
21821         Warn, not fail, on stale version.
21822         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21823
21824         Don't allow installation with stale devel version number.
21825         * top/GNUmakefile (_is-install-target): New macro.
21826         (_curr-ver): Forbid installation with stale version number.
21827
21828 2008-07-20  Bruno Haible  <bruno@clisp.org>
21829
21830         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21831         TESTS_ENVIRONMENT.
21832         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21833
21834 2008-07-20  Bruno Haible  <bruno@clisp.org>
21835
21836         * lib/c-stack.h (c_stack_action): Add documentation.
21837         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21838
21839 2008-07-20  Bruno Haible  <bruno@clisp.org>
21840
21841         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21842         * modules/readlink (License): Likewise.
21843
21844 2008-07-17  Eric Blake  <ebb9@byu.net>
21845
21846         * modules/c-stack (Link): Fix typo.
21847
21848         Make c-stack use libsigsegv, when available.
21849         * modules/c-stack (Depends-on): Add libsigsegv.
21850         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21851         needed.
21852         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21853         (segv_handler, overflow_handler, c_stack_action)
21854         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21855         implementation when libsigsegv is available, but only when using
21856         the library is necessary.
21857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21858         comment, explaining why XSI check fails on Linux.
21859         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21860         * tests/test-c-stack2.sh: Tweak skip message.
21861         * NEWS: Document new link-time requirements.
21862
21863 2008-07-16  Eric Blake  <ebb9@byu.net>
21864
21865         c-stack: Expose false positives when not using libsigsegv.
21866         * modules/c-stack-tests (Files): Expand test.
21867         * tests/test-c-stack.c (main): Add means to conditionally trigger
21868         non-overflow SIGSEGV.
21869         * tests/test-c-stack2.sh: New file.
21870
21871 2008-07-14  Bruno Haible  <bruno@clisp.org>
21872
21873         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21874         Reported by Eric Blake.
21875
21876 2008-07-14  Sam Steingold  <sds@gnu.org>
21877             Bruno Haible  <bruno@clisp.org>
21878
21879         New module libsigsegv.
21880         * modules/libsigsegv: New file.
21881         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21882         modifications.
21883         * MODULES.html.sh (Signal handling): New section.
21884
21885 2008-07-14  Bruno Haible  <bruno@clisp.org>
21886
21887         * modules/unictype/ctype-* (Description): Add the word "function".
21888         Improves the resulting doc in MODULES.html.
21889
21890 2008-07-12  Ben Pfaff  <blp@gnu.org>
21891
21892         Add longlong module.
21893         * modules/longlong: New file.
21894
21895 2008-07-12  Bruno Haible  <bruno@clisp.org>
21896
21897         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21898         to empty.
21899
21900 2008-07-10  Ben Pfaff  <blp@gnu.org>
21901
21902         Add isnan module.
21903         * doc/posix-functions/isnan.texi: Mention new module.
21904         * lib/math.in.h: Define isnan macro if we have decided to replace
21905         it.
21906         * m4/isnan.m4: New file.
21907         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21908         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21909         also.
21910         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21911         redundancy.
21912         * m4/math_h.m4: Initialize and substitute variables for isnan
21913         module.
21914         * modules/isnan: New file.
21915         * modules/isnan-tests: New file.
21916         * modules/math: Add substitutions for new module.
21917         * tests/test-isnan.c: New file.
21918         * MODULES.html.sh: Mention new module.
21919
21920 2008-07-10  Ben Pfaff  <blp@gnu.org>
21921
21922         Add isnanf module.
21923         * lib/isnanf.m4: New file.
21924         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21925         (gl_HAVE_ISNANF_IN_LIBM): New macro.
21926         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21927         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21928         * modules/isnanf: New file.
21929         * modules/isnanf-tests: New file.
21930         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21931         files.
21932         * tests/test-isnanf-nolibm.c: factored most of its contents into
21933         new file tests/test-isnanf.h.
21934         * tests/test-isnanf.h: New file.
21935         * tests/test-isnanf.c: New file.
21936         * MODULES.html.sh: Mention new module.
21937         * doc/glibc-functions/isnanf.texi: Mention new module.
21938
21939 2008-07-10  Ben Pfaff  <blp@gnu.org>
21940
21941         Add isnand module.
21942         * lib/isnand.h: New file.
21943         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21944         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21945         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21946         functionality also.
21947         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21948         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21949         (gl_HAVE_ISNAND_IN_LIBM): New macro.
21950         * modules/isnand: New file.
21951         * modules/isnand-tests: New file.
21952         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21953         files.
21954         * tests/test-isnand-nolibm.c: factored most of its contents into
21955         new file tests/test-isnand.h.
21956         * tests/test-isnand.h: New file.
21957         * tests/test-isnand.c: New file.
21958         * MODULES.html.sh: Mention new module.
21959
21960 2008-07-10  Ben Pfaff  <blp@gnu.org>
21961
21962         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21963         * lib/isnand.h: Rename lib/isnand-nolibm.h.
21964         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21965         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21966         * modules/isnanf-nolibm: Update references to renamed files.
21967         * modules/isnand-nolibm: Likewise.
21968         * modules/isnanf-nolibm-tests: Likewise.
21969         * modules/isnand-nolibm-tests: Likewise.
21970         * lib/frexp.c: Likewise.
21971         * lib/isfinite.c: Likewise.
21972         * lib/signbitd.c: Likewise.
21973         * lib/signbitf.c: Likewise.
21974         * lib/vasnprintf.c: Likewise.
21975         * tests/test-ceilf1.c: Likewise.
21976         * tests/test-ceilf2.c: Likewise.
21977         * tests/test-floorf1.c: Likewise.
21978         * tests/test-floorf2.c: Likewise.
21979         * tests/test-frexp.c: Likewise.
21980         * tests/test-round1.c: Likewise.
21981         * tests/test-round2.c: Likewise.
21982         * tests/test-roundf1.c: Likewise.
21983         * tests/test-strtod.c: Likewise.
21984         * tests/test-trunc1.c: Likewise.
21985         * tests/test-trunc2.c: Likewise.
21986         * tests/test-truncf1.c: Likewise.
21987         * tests/test-truncf2.c: Likewise.
21988         * NEWS: Mention the renamed header files.
21989
21990 2008-07-11  Jim Meyering  <meyering@redhat.com>
21991
21992         vc-list-files: make the last-resort awk code more portable
21993         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21994         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21995         does not support it.
21996
21997 2008-07-10  Eric Blake  <ebb9@byu.net>
21998
21999         Work with tar's bootstrap.
22000         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22001         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22002         an m4 comment.
22003
22004 2008-07-09  Jim Meyering  <meyering@redhat.com>
22005
22006         posix-shell.m4: fix typo that made this test malfunction
22007         * m4/posix-shell.m4: Remove capitalization in variable name.
22008
22009 2008-07-08  Bruno Haible  <bruno@clisp.org>
22010
22011         * m4/onceonly.m4: Update comments.
22012         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22013
22014 2008-07-04  Jim Meyering  <meyering@redhat.com>
22015
22016         * users.txt: Add vc-dwim.
22017         (bison, coreutils): Use the gitweb URL.
22018
22019 2008-07-03  Jim Meyering  <meyering@redhat.com>
22020
22021         * users.txt: Add libffcall.  From Sam Steingold.
22022
22023 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
22024
22025         getdate.y: do not ignore TZ with relative day, month or year offset
22026         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22027         relative-date-handling, since otherwise, the latter would clobber the
22028         sole output (an updated Start value) of the tz-handling block.
22029         * tests/test-getdate.c: Tests for the fix
22030
22031 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22032
22033         Recognize 'foo_LIBRARIES += libgnu.a'.
22034         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22035         makefile snippet has already specified an installation location,
22036         also using '+='.
22037
22038 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
22039
22040         getdate.y: factor out common actions
22041         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22042         Use them in place of open-coded actions.
22043
22044 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22045
22046         Add self-test for getdate module.
22047         * modules/getdate-tests: New file.
22048         * tests/test-getdate.c: New file.
22049
22050 2008-06-29  Bruno Haible  <bruno@clisp.org>
22051
22052         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22053         .gitignore.
22054         Reported by Sylvain Beucler <beuc@beuc.net>.
22055
22056 2008-06-29  Bruno Haible  <bruno@clisp.org>
22057
22058         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22059         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22060
22061 2008-06-29  Bruno Haible  <bruno@clisp.org>
22062
22063         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22064         EXTRA_DIST.
22065         Reported by Sylvain Beucler <beuc@beuc.net>.
22066
22067 2008-06-26  Jim Meyering  <meyering@redhat.com>
22068
22069         make several modules depend on the "open" module
22070         This provides slightly increased consistency when opening-for-write
22071         the name of a non-directory spelled with a trailing slash.
22072         * modules/chdir-safer: Likewise.
22073         * modules/chown: Likewise.
22074         * modules/clean-temp: Likewise.
22075         * modules/copy-file: Likewise.
22076         * modules/fchdir: Likewise.
22077         * modules/fcntl-safer: Likewise.
22078         * modules/pipe: Likewise.
22079         * modules/utime: Likewise.
22080         Prompted by Eric Blake and Bruno Haible.
22081
22082 2008-06-24  Andreas Schwab  <schwab@suse.de>
22083
22084         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22085         literals can be used as initializers for global variables.
22086
22087 2008-06-23  Eric Blake  <ebb9@byu.net>
22088
22089         Make gnulib-cache.m4 easier to diff.
22090         * gnulib-tool (func_import): Allow newlines when reading cached
22091         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22092
22093 2008-06-23  Bruno Haible  <bruno@clisp.org>
22094
22095         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22096         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22097         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22098         m4/signalblocking.m4.
22099         (gl_PREREQ_SIGACTION): Don't invoke it.
22100         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22101         gl_PREREQ_SIG_HANDLER_H.
22102         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22103         Don't check for sigaction here.
22104
22105 2008-06-23  Bruno Haible  <bruno@clisp.org>
22106
22107         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22108         (install_handlers): Don't set the SA_RESETHAND flag.
22109
22110 2008-06-23  Bruno Haible  <bruno@clisp.org>
22111
22112         * m4/sigaction.m4: Comment fixes.
22113         * lib/signal.in.h: Likewise.
22114
22115 2008-06-23  Eric Blake  <ebb9@byu.net>
22116
22117         Fix typo.
22118         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22119
22120         Avoid SA_ namespace.
22121         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22122         Reported by Ralf Wildenhues.
22123
22124         Avoid test failure due to SA_RESTORER.
22125         * tests/test-sigaction.c (SA_MASK): New macro.
22126         (main): Avoid failing due to extension flags being set.
22127         Reported by Jim Meyering.
22128
22129         Revert use of sig-handler.h in sigprocmask.c.
22130         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22131         it requires the existence of struct sigaction.
22132         * lib/sigprocmask.c (handler_t): Restore typedef.
22133         (rpl_signal, old_handlers): Use local type.
22134
22135 2008-06-22  Bruno Haible  <bruno@clisp.org>
22136
22137         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22138         conditionally.
22139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22140
22141 2008-06-22  Bruno Haible  <bruno@clisp.org>
22142
22143         * doc/posix-functions/siginterrupt.texi: Move note.
22144
22145         * lib/signal.in.h (SA_RESTART): New macro.
22146         * lib/sigaction.c: Update comment.
22147
22148         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22149
22150         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22151         (gl_PREREQ_SIGPROCMASK): Invoke it.
22152         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22153
22154         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22155
22156         * lib/sigprocmask.c: Update a comment.
22157
22158 2008-06-21  Eric Blake  <ebb9@byu.net>
22159
22160         Use sigaction module rather than signal().
22161         * modules/c-stack (Depends-on): Add sigaction.
22162         * modules/fatal-signal (Depends-on): Likewise.
22163         * modules/nanosleep (Depends-on): Likewise.
22164         * modules/sigprocmask (Files): Add sig-handler.h.
22165         * modules/sigaction (Files): Likewise.
22166         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22167         Eggert.
22168         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22169         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22170         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22171         (init_fatal_signals): Likewise.
22172         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22173         (siginterrupt): Delete fallback.
22174         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22175         instead.
22176         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22177         siginterrupt.
22178
22179         New module sigaction, for mingw.
22180         * modules/sigaction: New module...
22181         * modules/sigaction-tests: ...and its test.
22182         * m4/sigaction.m4: New file.
22183         * lib/sigaction.c: Likewise.
22184         * tests/test-sigaction.c: Likewise.
22185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22186         * modules/signal (Makefile.am): Likewise.
22187         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22188         needed.
22189         * doc/posix-headers/signal.texi (signal.h): Mention provided
22190         types.
22191         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22192         that sigaction is preferable.
22193         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22194         module.
22195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22196         sigaction.
22197
22198         Improve robustness of sigprocmask by overriding signal.
22199         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22200         is in use.
22201         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22202         (SIGKILL, SIGSTOP): Provide fallbacks.
22203         (rpl_signal): Implement.
22204         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22205         signal can be called inside handlers.
22206
22207         Fix nanosleep module on mingw.
22208         * modules/nanosleep (Depends-on): Add sys_select.
22209         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22210
22211         Fix licensing of sigprocmask.
22212         * modules/raise (License): Relicense as LGPL.
22213
22214 2008-06-21  Bruno Haible  <bruno@clisp.org>
22215
22216         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22217         result if it contains question marks.
22218         Reported by Michael Geng <linux@michaelgeng.de>.
22219
22220 2008-06-19  Bruno Haible  <bruno@clisp.org>
22221
22222         Fix CVS-ism.
22223         * doc/gnulib.texi: Include updated-stamp.texi.
22224         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22225         (updated-stamp.texi): New rule.
22226         (gnulib.info): Depend on it.
22227         * doc/.gitignore: Add updated-stamp.texi.
22228         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22229
22230 2008-06-19  Bruno Haible  <bruno@clisp.org>
22231
22232         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22233         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22234
22235 2008-06-19  Eric Blake  <ebb9@byu.net>
22236
22237         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22238         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22239         Reported by Stepan Kasal.
22240
22241 2008-06-18  Bruno Haible  <bruno@clisp.org>
22242
22243         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22244         Reported by Eric Blake.
22245
22246 2008-06-18  Eric Blake  <ebb9@byu.net>
22247
22248         Work around cygwin 1.5.25 strsignal bug.
22249         * tests/test-strsignal.c: Allow for const char *.
22250         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22251
22252 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22253
22254         * users.txt: Update URL to article and add author/date
22255         information.
22256
22257 2008-06-17  Bruno Haible  <bruno@clisp.org>
22258
22259         New macro gl_DISABLE_THREADS.
22260         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22261         if the user did not pass --enable-threads or --disable-threads option.
22262         (gl_DISABLE_THREADS): New macro.
22263         Reported by Eric Blake <ebb9@byu.net>.
22264
22265 2008-06-17  Bruno Haible  <bruno@clisp.org>
22266
22267         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22268         when the macro ignores it.
22269         Based on a patch by Eric Blake <ebb9@byu.net>.
22270
22271 2008-06-17  Bruno Haible  <bruno@clisp.org>
22272
22273         * modules/tls (License): Change to LGPLv2+.
22274         Reported by Eric Blake.
22275
22276 2008-06-17  Eric Blake  <ebb9@byu.net>
22277
22278         Simplify c-stack prerequisites.
22279         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22280         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22281         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22282         check.
22283         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22284         <sys/resource.h>.
22285
22286         Move c-stack test into testsuite.
22287         * modules/c-stack-tests: New file.
22288         * lib/c-stack.c [DEBUG]: Move test program...
22289         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22290         fail test if sigaltstack is lacking.
22291         * tests/test-c-stack.sh: New driver file.
22292
22293 2008-06-16  Eric Blake  <ebb9@byu.net>
22294
22295         Use raise module consistently.
22296         * modules/fatal-signal (Depends-on): Add raise.
22297         * modules/sigprocmask (Depends-on): Likewise.
22298         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22299         * lib/sigprocmask.c (sigprocmask): Likewise.
22300         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22301         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22302
22303         Fix compliance bug in sigpending.
22304         * lib/sigprocmask.c (sigpending): Return pending array via
22305         parameter, not return value.
22306
22307 2008-06-14  Eric Blake  <ebb9@byu.net>
22308
22309         Improve obstack-printf test code.
22310         * tests/test-obstack-printf.c (test_function): Fix comment, and
22311         simplify usage of obstack_* in macros.  Add a test for coverage.
22312         Reported by Bruno Haible.
22313
22314 2008-06-14  Bruno Haible  <bruno@clisp.org>
22315
22316         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22317         array size as a constant, not as a const variable.
22318         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22319         AC_USE_SYSTEM_EXTENSIONS.
22320         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22321         Test whether the obstack_printf function actually exists.
22322         * modules/obstack-printf (Depends-on): Add extensions.
22323         (Include): Remove obstack.h.
22324         * modules/obstack-printf-posix (Depends-on): Add extensions.
22325         (Include): Remove obstack.h.
22326
22327 2008-06-13  Eric Blake  <ebb9@byu.net>
22328
22329         Add obstack-printf and obstack-printf-posix modules.
22330         * modules/obstack-printf: New file.
22331         * modules/obstack-printf-posix: Likewise.
22332         * MODULES.html.sh (Misc): Mention them.
22333         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22334         Likewise.
22335         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22336         Likewise.
22337         * modules/stdio (Makefile.am): Accomodate new modules.
22338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22339         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22340         Declare.
22341         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22342         functions.
22343         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22344         (gl_REPLACE_OBSTACK_PRINTF): New macros
22345         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22346         * tests/test-obstack-printf.c: New file.
22347         * modules/obstack-printf-tests: Likewise.
22348         * modules/obstack-printf-posix-tests: Likewise.
22349
22350 2008-06-11  Bruno Haible  <bruno@clisp.org>
22351
22352         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22353         * lib/open.c: Include errno.h.
22354         (open): Fail when attempting to write to a file that has a trailing
22355         slash.
22356         * tests/test-open.c (main): Test against trailing slash bug.
22357         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22358
22359 2008-06-10  Bruno Haible  <bruno@clisp.org>
22360
22361         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22362         for $? to work inside the trap command, with various /bin/sh-s.
22363         * tests/test-vc-list-files-cvs.sh: Likewise.
22364
22365 2008-06-10  Bruno Haible  <bruno@clisp.org>
22366
22367         * lib/acl-internal.h: Don't include gettext.h here.
22368         * lib/set-mode-acl.c: Include gettext.h here.
22369         * lib/copy-acl.c: Likewise.
22370
22371 2008-06-10  Bruno Haible  <bruno@clisp.org>
22372
22373         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22374         * lib/wait-process.c (wait_subprocess): Likewise.
22375         * lib/execute.h (execute): Add termsigp argument.
22376         * lib/execute.c (execute): Likewise.
22377         * lib/csharpcomp.c (compile_csharp_using_pnet,
22378         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22379         * lib/csharpexec.c (execute_csharp_using_pnet,
22380         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22381         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22382         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22383         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22384         is_jikes_present): Update.
22385         * lib/javaexec.c (execute_java_class): Update.
22386         * lib/javaversion.c (execute_and_read_line): Update.
22387         * NEWS: Document the changes.
22388         Reported by Eric Blake.
22389
22390 2008-06-10  Eric Blake  <ebb9@byu.net>
22391
22392         Add missing include.
22393         * tests/test-strstr.c (includes): Add <signal.h>.
22394         * tests/test-strcasestr.c (includes): Likewise.
22395         * tests/test-memmem.c (includes): Likewise.
22396
22397 2008-06-10  Bruno Haible  <bruno@clisp.org>
22398
22399         * lib/wait-process.c (wait_subprocess): Add an assertion.
22400
22401 2008-06-10  Bruno Haible  <bruno@clisp.org>
22402
22403         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22404
22405 2008-06-10  Bruno Haible  <bruno@clisp.org>
22406
22407         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22408         using alarm().
22409         * tests/test-strcasestr.c (main): Likewise.
22410         * tests/test-strstr.c (main): Likewise.
22411
22412 2008-06-09  Bruno Haible  <bruno@clisp.org>
22413
22414         Work around the Solaris 10 ACE ACLs ABI change.
22415         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22416         declare if ACL_NO_TRIVIAL is present.
22417         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22418         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22419         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22420         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22421         define if ACL_NO_TRIVIAL is present.
22422         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22423         and use the current ABI.
22424         (file_has_acl): Use same #if condition as elsewhere.
22425         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22426         in use, and use the current ABI.
22427         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22428         Reported by Jim Meyering.
22429
22430 2008-06-09  Eric Blake  <ebb9@byu.net>
22431
22432         Work around environments that (stupidly) ignore SIGALRM.
22433         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22434         before using alarm().
22435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22436         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22437         Reported by Ian Beckwith <ianb@erislabs.net>.
22438
22439         Produce autobuild blurb earlier in log.
22440         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22441
22442 2008-06-09  Jim Meyering  <meyering@redhat.com>
22443         and OndÅ™ej Vašík  <ovasik@redhat.com>
22444
22445         utimens.c: correct kernel bug work-around
22446         OndÅ™ej Vašík found that the invalid return value of 280 indicates
22447         failure, not success, and the kernel bug we're trying to work
22448         around affects not just the utimensat call, but also the fallback
22449         futimens call.
22450         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22451         not success.
22452         [HAVE_FUTIMENS]: Use the same work-around, here.
22453
22454 2008-06-09  Jim Meyering  <meyering@redhat.com>
22455
22456         add more guards around definition of ACE_-related code
22457         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22458         ALLOW and ACE_OWNER are also defined.
22459
22460 2008-06-08  Bruno Haible  <bruno@clisp.org>
22461
22462         * lib/acl-internal.h: Add me as co-author.
22463         * lib/file-has-acl.c: Likewise.
22464         * lib/set-mode-acl.c: Likewise.
22465         * lib/copy-acl.c: Likewise.
22466
22467 2008-06-08  Bruno Haible  <bruno@clisp.org>
22468
22469         Add support for AIX ACLs.
22470         * lib/acl-internal.h (acl_nontrivial): New declaration.
22471         * lib/file-has-acl.c (acl_nontrivial): New function.
22472         (file_has_acl): Add implementation using AIX 4 ACL API.
22473         * lib/set-mode-acl.c (qset_acl): Likewise.
22474         * lib/copy-acl.c (qcopy_acl): Likewise.
22475
22476 2008-06-08  Bruno Haible  <bruno@clisp.org>
22477
22478         Add support for HP-UX ACLs.
22479         * lib/acl-internal.h (acl_nontrivial): New declaration.
22480         * lib/file-has-acl.c (acl_nontrivial): New function.
22481         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22482         * lib/set-mode-acl.c (qset_acl): Likewise.
22483         * lib/copy-acl.c (qcopy_acl): Likewise.
22484
22485 2008-06-08  Bruno Haible  <bruno@clisp.org>
22486
22487         Add support for Cygwin ACLs.
22488         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22489         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22490         the chmod_or_fchmod call.
22491         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22492
22493 2008-06-08  Bruno Haible  <bruno@clisp.org>
22494
22495         Fix bug with setuid modes in Solaris 10+ code.
22496         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22497         succeeded, when the mode contains some special bits.
22498
22499 2008-06-08  Bruno Haible  <bruno@clisp.org>
22500
22501         Add support for Solaris 7..10 ACLs.
22502         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22503         declarations.
22504         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22505         functions.
22506         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22507         * lib/set-mode-acl.c (qset_acl): Likewise.
22508         * lib/copy-acl.c (qcopy_acl): Likewise.
22509
22510 2008-06-08  Bruno Haible  <bruno@clisp.org>
22511
22512         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22513         declaration.
22514         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22515         (acl_access_nontrivial): Remove MacOS X case.
22516         (file_has_acl): Use acl_extended_nontrivial.
22517         * lib/copy-acl.c (qcopy_acl): Likewise.
22518
22519 2008-06-08  Bruno Haible  <bruno@clisp.org>
22520
22521         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22522
22523 2008-06-08  Jim Meyering  <meyering@redhat.com>
22524
22525         * modules/acl (Maintainer): Add Bruno Haible.
22526
22527 2008-06-07  Bruno Haible  <bruno@clisp.org>
22528
22529         Improve support for Tru64 ACLs.
22530         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22531         ACL on OSF/1.
22532
22533 2008-06-07  Bruno Haible  <bruno@clisp.org>
22534
22535         Add support for MacOS X ACLs.
22536         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22537         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22538         * lib/set-mode-acl.c (qset_acl): Likewise.
22539         * lib/copy-acl.c (qcopy_acl): Likewise.
22540
22541 2008-06-07  Bruno Haible  <bruno@clisp.org>
22542
22543         Fix memory leak introduced on 2008-05-22.
22544         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22545         use.
22546
22547 2008-06-07  Bruno Haible  <bruno@clisp.org>
22548
22549         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22550         to construct an empty ACL.
22551
22552 2008-06-07  Bruno Haible  <bruno@clisp.org>
22553
22554         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22555         precisely.
22556         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22557
22558 2008-06-07  Bruno Haible  <bruno@clisp.org>
22559
22560         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22561         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22562
22563 2008-06-07  Bruno Haible  <bruno@clisp.org>
22564
22565         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22566         regardless of POSIX.
22567         * doc/posix-functions/_longjmp.texi: Likewise.
22568         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22569         SystemV platform in this case.
22570
22571 2008-06-06  Eric Blake  <ebb9@byu.net>
22572
22573         Document abort() bugs.
22574         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22575
22576         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22577         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22578         sigsetjmp.
22579         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22580         siglongjmp, but only as a macro.
22581         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22582         is obsolete.
22583         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22584
22585         Tweak documentation to cover cygwin argz bugs.
22586         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22587         argz bug fix; no code change needed since no cygwin releases
22588         occurred between the last fix and the bug being tested.
22589         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22590         module and recently fixed cygwin bugs.
22591         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22592         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22593         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22594         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22595         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22596         Likewise.
22597         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22598         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22599         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22600         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22601         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22602         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22603         Likewise.
22604
22605         Avoid gcc warning on cygwin.
22606         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22607         !ACL_NO_TRIVIAL]: Avoid unused variable.
22608
22609 2008-06-05  Eric Blake  <ebb9@byu.net>
22610
22611         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22612         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22613         git-version-gen fails to come up with a version.
22614         Reported by Simon Josefsson.
22615
22616 2008-06-05  Jim Meyering  <meyering@redhat.com>
22617             Paul Eggert  <eggert@cs.ucla.edu>
22618
22619         utimens.c: work around a probable Linux kernel bug
22620         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22621         appears to be a kernel bug that causes utimensat to return 280
22622         instead of 0, indicating success.
22623
22624 2008-06-04  Bruno Haible  <bruno@clisp.org>
22625
22626         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22627         2008-06-01 commit.
22628
22629 2008-06-04  Bruno Haible  <bruno@clisp.org>
22630
22631         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22632         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22633         (file_has_acl): Use it. Save errno afterwards.
22634         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22635
22636 2008-06-03  Bruno Haible  <bruno@clisp.org>
22637
22638         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22639         draft code. Simplify #ifs.
22640         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22641         Put Solaris code after POSIX-draft code. Fix comments regarding
22642         Solaris 10, HP-UX. Mention Cygwin.
22643         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22644
22645 2008-06-03  Eric Blake  <ebb9@byu.net>
22646
22647         Provide fallback for older kernels.
22648         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22649         Provide runtime fallback if kernel lacks support.
22650         Reported by Mike Frysinger.
22651
22652 2008-06-02  Bruno Haible  <bruno@clisp.org>
22653
22654         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22655         it exists.
22656
22657 2008-06-02  Bruno Haible  <bruno@clisp.org>
22658
22659         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22660         * lib/copy-acl.c (qcopy_acl): Update comment.
22661
22662 2008-06-02  Bruno Haible  <bruno@clisp.org>
22663
22664         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22665         like ACL APIs.
22666
22667 2008-06-02  Bruno Haible  <bruno@clisp.org>
22668
22669         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22670         * tests/test-set-mode-acl.sh: Likewise.
22671         * tests/test-copy-acl.sh: Likewise.
22672         * tests/test-copy-file.sh: Likewise.
22673
22674 2008-06-02  Bruno Haible  <bruno@clisp.org>
22675
22676         * tests/test-file-has-acl.sh: Remove unused code.
22677
22678 2008-06-01  Bruno Haible  <bruno@clisp.org>
22679
22680         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22681         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22682         messages.
22683         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22684
22685 2008-06-01  Bruno Haible  <bruno@clisp.org>
22686
22687         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22688         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22689         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22690         APIs.
22691         * modules/acl-tests (configure.ac): Remove tests now contained in
22692         m4/acl.m4.
22693
22694 2008-06-02  Jim Meyering  <meyering@redhat.com>
22695
22696         announce-gen: use a better key-server host name
22697         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22698         it may be more consistently reliable.  Suggested by Werner Koch
22699         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22700
22701 2008-06-01  Bruno Haible  <bruno@clisp.org>
22702
22703         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22704         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22705
22706 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22707
22708         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22709
22710 2008-06-01  Bruno Haible  <bruno@clisp.org>
22711
22712         New ACL tests.
22713         * tests/test-file-has-acl.sh: New file.
22714         * tests/test-file-has-acl.c: New file.
22715         * tests/test-set-mode-acl.sh: New file.
22716         * tests/test-set-mode-acl.c: New file.
22717         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22718         * tests/test-copy-acl.c: New file.
22719         * modules/acl-tests: New file, based on modules/copy-file-tests.
22720         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22721         (Depends-on): Add acl-tests.
22722         (configure.ac): Remove checks.
22723         (Makefile.am): Don't create test-sameacls program here any more.
22724
22725 2008-06-01  Bruno Haible  <bruno@clisp.org>
22726
22727         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22728         * tests/test-sameacls.c: Include progname.h.
22729         (main): Invoke set_program_name. Portability fixes for MacOS X,
22730         Solaris, HP-UX.
22731
22732 2008-06-01  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22735         function.
22736         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22737
22738 2008-06-01  Bruno Haible  <bruno@clisp.org>
22739
22740         * modules/rpmatch (Depends-on): Add strdup.
22741
22742 2008-06-01  Bruno Haible  <bruno@clisp.org>
22743
22744         * lib/pipe.c: Include unistd-safer.h.
22745         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22746         * modules/pipe (Depends-on): Add unistd-safer.
22747
22748 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22749
22750         * modules/autobuild (configure.ac): Call AB_INIT.
22751
22752 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22753
22754         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22755         Suggested by Bruno Haible <bruno@clisp.org>.
22756
22757 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22758
22759         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22760         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22761         <bruno@clisp.org>.
22762
22763 2008-05-29  Eric Blake  <ebb9@byu.net>
22764
22765         Prefer new POSIX 200x interfaces over futimesat.
22766         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22767         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22768         when available.
22769         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22770
22771 2008-05-28  Bruno Haible  <bruno@clisp.org>
22772
22773         * modules/stpcpy (License): Change to LGPLv2+.
22774         Requested by David Lutterkort <dlutter@redhat.com>.
22775
22776 2008-05-27  Bruno Haible  <bruno@clisp.org>
22777
22778         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22779         current mingw.
22780         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22781
22782 2008-05-27  Bruno Haible  <bruno@clisp.org>
22783
22784         * modules/iconv_open (Link): New section, from module 'iconv'.
22785         * modules/striconv (Link): Likewise.
22786         * modules/striconveh (Link): Likewise.
22787         * modules/xstriconv (Link): Likewise.
22788         * modules/unicodeio (Link): Likewise.
22789         * modules/propername (Link): Likewise.
22790         Reported by Jim Meyering.
22791
22792 2008-05-26  Jim Meyering  <meyering@redhat.com>
22793
22794         sha256: do not artificially restrict buffer length to be < 2^32
22795         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22796         uint32_t to size_t.
22797         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22798         to match.
22799
22800         avoid unaligned access errors, e.g., on sparc
22801         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22802         direct access through a possibly-unaligned uint64* pointer.
22803         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22804         direct access through a possibly-unaligned uint32* pointer.
22805         Prompted by this patch from Tom "spot" Callaway:
22806         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22807
22808         sha512.c: fix typo in comment
22809         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22810
22811 2008-05-25  Bruno Haible  <bruno@clisp.org>
22812
22813         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22814         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22815         (Makefile.am): Update lib_SOURCES.
22816
22817 2008-05-25  Bruno Haible  <bruno@clisp.org>
22818
22819         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22820
22821 2008-05-25  Jim Meyering  <meyering@redhat.com>
22822
22823         useless-if-before-free: freed expr may have white-space differences
22824         * build-aux/useless-if-before-free: Recognize cases in which the
22825         freed expression differs from the tested one in embedded white
22826         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22827         $1 was used, so we can't make any regexp shy.  Improved tests now
22828         detect this.
22829
22830         useless-if-before-free: accept white space in the expression.
22831         * build-aux/useless-if-before-free: For now, any white space
22832         in the expression must be identical in the free argument.
22833
22834         useless-if-before-free: efficiency tweak
22835         * build-aux/useless-if-before-free: Make the expression-matching
22836         regexp "shy".
22837         Make the *outer* regexp shy, not the expr-matching one.
22838
22839         update code-in-comment to accept cast of free arg
22840         * build-aux/useless-if-before-free: Update regexp.
22841
22842 2008-05-25  Bruno Haible  <bruno@clisp.org>
22843
22844         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22845         * modules/copy-file-tests (Files, Makefile.am): Update.
22846         * tests/test-copy-file.c (func_test_copy): Update.
22847
22848 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22849
22850         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22851
22852 2008-05-23  Bruno Haible  <bruno@clisp.org>
22853
22854         Improve support for ACLs on OSF/1.
22855         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22856         Remove fallback for unknown flavors of ACLs.
22857
22858 2008-05-22  Bruno Haible  <bruno@clisp.org>
22859
22860         Add support for ACLs on OSF/1.
22861         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22862         replacements.
22863         (acl_free_text): New macro fallback.
22864         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22865         acl_free.
22866         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22867         acl_free_text function. Require AC_C_INLINE.
22868
22869 2008-05-22  Bruno Haible  <bruno@clisp.org>
22870
22871         Make copy_acl work on MacOS X 10.5.
22872         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22873         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22874         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22875         If MODE_INSIDE_ACL, don't assume that every system has the same text
22876         representation for ACLs as FreeBSD.
22877         * lib/copy-acl.c (copy_acl): Add support for platforms with
22878         !MODE_INSIDE_ACL.
22879         * lib/file-has-acl.c (file_has_acl): Likewise.
22880         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22881         FreeBSD, MacOS X, or IRIX, respectively.
22882
22883 2008-05-22  Bruno Haible  <bruno@clisp.org>
22884
22885         * lib/acl.h: Don't include <sys/acl.h>.
22886         (GETACLCNT): Move fallback to lib/acl-internal.h.
22887         * lib/acl-internal.h: Include <sys/acl.h> here.
22888         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22889
22890 2008-05-22  Bruno Haible  <bruno@clisp.org>
22891
22892         Split off copy_acl function to separate file.
22893         * lib/copy-acl.c: New file, extracted from lib/acl.c.
22894         * lib/acl.c (copy_acl): Moved function to separate file.
22895         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22896         * modules/acl (Files): Add lib/copy-acl.c.
22897         (Makefiles.am): Augment lib_SOURCES.
22898
22899 2008-05-22  Bruno Haible  <bruno@clisp.org>
22900
22901         * modules/copy-file-tests: New file.
22902         * tests/test-copy-file.sh: New file.
22903         * tests/test-copy-file.c: New file.
22904         * tests/test-copy-file-sameacls.c: New file.
22905
22906 2008-05-22  Eric Blake  <ebb9@byu.net>
22907
22908         Avoid gcc warning.
22909         * tests/test-memcmp.c (main): Pass NULL indirectly.
22910
22911 2008-05-21  Bruno Haible  <bruno@clisp.org>
22912
22913         Add reference doc about ACLs.
22914         * doc/acl-resources.txt: New file.
22915         * doc/acl-cygwin.txt: New file.
22916
22917 2008-05-21  Bruno Haible  <bruno@clisp.org>
22918
22919         Avoid one more warning from gcc.
22920         * lib/vasnprintf.c (IF_LINT): Update comments.
22921         (VASNPRINTF): Use it also for the 'prefix' array initializer.
22922
22923 2008-05-21  Jim Meyering  <meyering@redhat.com>
22924
22925         avoid a warning from gcc
22926         * lib/vasnprintf.c (IF_LINT): Define.
22927         (scale10_round_decimal_long_double):
22928         Use it to avoid a "may be used uninitialized" warning.
22929         (scale10_round_decimal_double): Likewise.
22930
22931 2008-05-21  Simon Josefsson  <simon@josefsson.org>
22932
22933         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22934         declared.
22935
22936 2008-05-20  Bruno Haible  <bruno@clisp.org>
22937
22938         * tests/test-memcmp.c (main): Test also the sign of the result. Test
22939         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22940
22941 2008-05-20  Simon Josefsson  <simon@josefsson.org>
22942
22943         * modules/memcmp-tests: New file.
22944         * tests/test-memcmp.c: New file.
22945
22946 2008-05-19  Bruno Haible  <bruno@clisp.org>
22947
22948         * modules/propername (Notice, configure.ac): Put quoted "..." into
22949         --keyword option.
22950         * lib/propername.h: Update comments accordingly.
22951         Reported by Eric Blake.
22952
22953 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
22954
22955         * modules/getpass-gnu (Depends-on): Add fseeko.
22956
22957 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22958
22959         * modules/base64-tests: New file.
22960
22961 2008-05-19  Bo Borgerson <gigabo@gmail.com>
22962
22963         * lib/base64.c (base64_decode_ctx): If a decode context structure
22964         was passed in use it to ignore newlines.  If a context structure
22965         was _not_ passed in, continue to treat newlines as garbage (this
22966         is the historical behavior).  Formerly base64_decode.
22967         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22968         takes a decode context structure.
22969         * lib/base64.h (base64_decode): Macro for four-argument calls.
22970         (base64_decode_alloc): Likewise.
22971         * lib/base64.c (base64_decode_ctx): If a decode context structure
22972         was passed in use it to ignore newlines.  If a context structure
22973         was _not_ passed in, continue to treat newlines as garbage (this
22974         is the historical behavior).  Formerly base64_decode.
22975         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
22976         takes a decode context structure.
22977         * lib/base64.h (base64_decode): Macro for four-argument calls.
22978         (base64_decode_alloc): Likewise.
22979
22980 2008-05-19  Jim Meyering  <meyering@redhat.com>
22981
22982         avoid a warning from gcc
22983         * lib/trim.c (IF_LINT): Define.
22984         (trim2): Use it to avoid a "may be used uninitialized" warning.
22985
22986         Fix doc typo.
22987         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22988
22989 2008-05-19  Bruno Haible  <bruno@clisp.org>
22990
22991         * doc/glibc-functions/getpass.texi: Document limits of other
22992         implementations.
22993
22994 2008-05-19  Simon Josefsson  <simon@josefsson.org>
22995             Bruno Haible <bruno@clisp.org>
22996
22997         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22998
22999 2008-05-18  Bruno Haible  <bruno@clisp.org>
23000
23001         * modules/propername: New file, from GNU gettext.
23002         * lib/propername.h: New file, from GNU gettext.
23003         * lib/propername.c: New file, from GNU gettext.
23004         * MODULES.html.sh (Internationalization functions): Add propername.
23005
23006 2008-05-16  Jim Meyering  <meyering@redhat.com>
23007             Bruno Haible  <bruno@clisp.org>
23008
23009         Avoid some warnings from "gcc -Wshadow".
23010         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23011
23012 2008-05-15  Eric Blake  <ebb9@byu.net>
23013
23014         Extend previous patch to cygwin 1.7.0.
23015         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23016         fast implementation in cygwin >= 1.7.0.
23017         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23018         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23019
23020 2008-05-15  Bruno Haible  <bruno@clisp.org>
23021
23022         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23023         implementation in glibc >= 2.9.
23024         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23026
23027 2008-05-15  Bruno Haible  <bruno@clisp.org>
23028
23029         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23030         (Unicode string functions): Add unilbrk/*.
23031         Reported by Karl Berry.
23032
23033 2008-05-15  Eric Blake  <ebb9@byu.net>
23034
23035         Fix violation of <stdbool.h> replacement in regex.
23036         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23037         * lib/regexec.c (re_search_internal): Likewise.
23038         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23039
23040 2008-05-15  Jim Meyering  <meyering@redhat.com>
23041
23042         avoid distracting test output when git or cvs is not found
23043         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23044         * tests/test-vc-list-files-git.sh: Likewise.
23045
23046 2008-05-15  Eric Blake  <ebb9@byu.net>
23047
23048         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23049         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23050         glibc version.
23051         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23052         * doc/posix-functions/strstr.texi (strstr): Likewise.
23053         * lib/str-two-way.h (MAX): Sychronize with glibc.
23054
23055 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23056
23057         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23058         opr.ctx_type.
23059         (calc_first): Initialize constraint field.
23060         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23061         Fix grammar.
23062         (duplicate_node): Merge constraint field for all node types.
23063         (calc_eclosure_iter): Look at constraint field for all node types.
23064         * lib/regex_internal.c (create_cd_newstate): Don't look at
23065         opr.ctx_type.
23066
23067 2008-05-14  Bruno Haible  <bruno@clisp.org>
23068
23069         Help GCC to do better code generation.
23070         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23071         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23072         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23073         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23074         Declare with attribute 'malloc' if supported.
23075
23076 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23077
23078         use "echo STR|wc -c" rather than unportable "expr length STR"
23079         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23080         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23081
23082 2008-05-14  Jim Meyering  <meyering@redhat.com>
23083
23084         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23085         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23086         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23087         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23088         via Collin Lasse.
23089
23090 2008-05-14  Eric Blake  <ebb9@byu.net>
23091
23092         Avoid quadratic growth in gl_LIBSOURCES.
23093         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23094         Suggested by Bruno Haible.
23095
23096         Test xmemdup0.
23097         * modules/xmemdup0-tests: New file.
23098         * tests/test-xmemdup0.c: Likewise.
23099
23100 2008-05-13  Eric Blake  <ebb9@byu.net>
23101
23102         Split xmemdup0 into its own module.
23103         * modules/xmemdup0: New file.
23104         * lib/xmemdup0.h: Likewise.
23105         * lib/xmemdup0.c: Likewise.
23106         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23107         * lib/xalloc.h (xmemdup0): Remove.
23108         * lib/xmalloc.c (xmemdup0): Likewise.
23109
23110 2008-05-13  Eric Blake  <ebb9@byu.net>
23111             Bruno Haible  <bruno@clisp.org>
23112
23113         Reduce number of forks required during autoconf.
23114         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23115         and gl_LIBSOURCES_DIR.
23116         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23117         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23118         m4_syscmd per file.
23119         <m4_foreach_w>: Move...
23120         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23121
23122 2008-05-13  Eric Blake  <ebb9@byu.net>
23123
23124         * gnulib-tool: Fix various comment typos.
23125
23126 2008-05-12  Bruno Haible  <bruno@clisp.org>
23127
23128         Tailor the linebreaking algorithm.
23129         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23130
23131 2008-05-12  Bruno Haible  <bruno@clisp.org>
23132
23133         Update to Unicode 5.0.0.
23134         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23135         LBP_JV, LBP_JT. Redistribute values.
23136         (unilbrk_table): Change size.
23137         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23138         Unicode TR#14 rev. 22.
23139         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23140         LBP_JV, LBP_JT. Redistribute values.
23141         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23142         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23143         Update.
23144         * lib/unilbrk/lbrkprop1.h: Regenerated.
23145         * lib/unilbrk/lbrkprop2.h: Regenerated.
23146         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23147         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23148         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23149         Likewise.
23150         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23151         Likewise.
23152         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23153         result.
23154         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23155         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23156         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23157         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23158         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23159         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23160
23161 2008-05-11  Bruno Haible  <bruno@clisp.org>
23162
23163         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23164
23165 2008-05-11  Bruno Haible  <bruno@clisp.org>
23166
23167         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23168         * modules/unilbrk/gen-lbrk: New file.
23169
23170 2008-05-11  Bruno Haible  <bruno@clisp.org>
23171
23172         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23173         * m4/sha512.m4 (gl_SHA512): Likewise.
23174
23175 2008-05-11  Jim Meyering  <meyering@redhat.com>
23176
23177         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23178         * modules/crypto/sha256: New file.
23179         * modules/crypto/sha512: Likewise.
23180         * lib/sha256.c: Likewise.
23181         * lib/sha256.h: Likewise.
23182         * lib/sha512.c: Likewise.
23183         * lib/sha512.h: Likewise.
23184         * lib/u64.h: Likewise.
23185         * m4/sha256.m4: Likewise.
23186         * m4/sha512.m4: Likewise.
23187         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23188
23189 2008-05-10  Bruno Haible  <bruno@clisp.org>
23190
23191         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23192         (Input/Output <stdio.h>): Add xprintf.
23193         (Signal handling <signal.h>): Add strsignal.
23194         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23195         (Core language properties): Add func.
23196         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23197         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23198         strings.
23199         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23200         (Input/output): New section.
23201         (File system functions): Add openat-die, stat-macros.
23202         (Networking functions): Add sockets.
23203         (Unicode string functions): Add unictype/*.
23204         (Support for building libraries and executables): Add gperf.
23205         (Support for building documentation): Add agpl-3.0.
23206         (Misc): Add nocrash.
23207
23208 2008-05-10  Bruno Haible  <bruno@clisp.org>
23209
23210         * modules/unictype/gen-ctype: New file.
23211
23212 2008-05-10  Jim Meyering  <meyering@redhat.com>
23213
23214         Make chdir-safer.c more efficient on a system with no symlinks.
23215         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23216         also if ELOOP is zero.  Suggested by Bruno Haible.
23217
23218         Make chdir-safer.c slightly safer.
23219         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23220         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23221
23222         Avoid compile failure on systems without ELOOP (like mingw).
23223         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23224         Reported by Bruno Haible.
23225
23226 2008-05-10  Bruno Haible  <bruno@clisp.org>
23227
23228         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23229         (is_utf8_encoding): Use a case-insensitive comparison.
23230         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23231         streq.
23232
23233 2008-05-10  Bruno Haible  <bruno@clisp.org>
23234
23235         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23236         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23237         * lib/unilbrk/ulc-common.h (iconv_string_length,
23238         iconv_string_keeping_offsets): Remove declarations.
23239         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23240         Don't include <iconv.h>, streq.h, xsize.h.
23241         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23242         conversion.
23243         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23244         <iconv.h>, streq.h, xsize.h.
23245         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23246         conversion.
23247         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23248         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23249         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23250         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23251
23252 2008-05-10  Bruno Haible  <bruno@clisp.org>
23253
23254         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23255         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23256
23257         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23258         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23259
23260         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23261         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23262
23263         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23264         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23265
23266         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23267         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23268
23269         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23270         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23271
23272         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23273         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23274
23275         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23276         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23277
23278 2008-05-10  Bruno Haible  <bruno@clisp.org>
23279
23280         Split up 'linebreak' module.
23281         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23282         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23283         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23284         modifications.
23285         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23286         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23287         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23288         lib/linebreak.c.
23289         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23290         lib/linebreak.c.
23291         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23292         lib/linebreak.c.
23293         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23294         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23295         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23296         lib/linebreak.c.
23297         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23298         lib/linebreak.c.
23299         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23300         lib/linebreak.c.
23301         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23302         lib/linebreak.c.
23303         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23304         lib/linebreak.c.
23305         * modules/unilbrk/base: New file.
23306         * modules/unilbrk/tables: New file.
23307         * modules/unilbrk/u8-possible-linebreaks: New file.
23308         * modules/unilbrk/u16-possible-linebreaks: New file.
23309         * modules/unilbrk/u32-possible-linebreaks: New file.
23310         * modules/unilbrk/ulc-common: New file.
23311         * modules/unilbrk/ulc-possible-linebreaks: New file.
23312         * modules/unilbrk/u8-width-linebreaks: New file.
23313         * modules/unilbrk/u16-width-linebreaks: New file.
23314         * modules/unilbrk/u32-width-linebreaks: New file.
23315         * modules/unilbrk/ulc-width-linebreaks: New file.
23316         * lib/linebreak.h: Remove file.
23317         * lib/linebreak.c: Remove file.
23318         * m4/linebreak.m4: Remove file.
23319         * modules/linebreak: Remove file.
23320         * NEWS: Mention the changes.
23321
23322 2008-05-09  Eric Blake  <ebb9@byu.net>
23323
23324         Add xmemdup0.
23325         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23326         implementation.
23327         * lib/xmalloc.c (xmemdup0): New C implementation.
23328
23329 2008-05-08  Bruno Haible  <bruno@clisp.org>
23330
23331         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23332
23333 2008-05-07  Eric Blake  <ebb9@byu.net>
23334
23335         Support cross-compilation of <wctype.h>.
23336         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23337         AC_CACHE_CHECK.
23338
23339 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23340
23341         * build-aux/vc-list-files: Add support for bzr.
23342
23343 2008-05-03  Jim Meyering  <meyering@redhat.com>
23344
23345         avoid failed assertion with tight malloc
23346         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23347
23348 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23349
23350         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23351         are needed from arpa/inet.h.
23352         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23353         Reported by Bruno Haible.
23354
23355 2008-05-02  Jim Meyering  <meyering@redhat.com>
23356
23357         avoid compilation error on FreeBSD 6
23358         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23359
23360 2008-05-01  Jim Meyering  <meyering@redhat.com>
23361
23362         useless-if-before-free: correct --help's exit status description
23363         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23364         for one or more matches, etc.  Reported by Bruno Haible.
23365
23366         vc-list-files: make the stand-alone gnulib test work
23367         * modules/vc-list-files-tests (configure.ac):
23368         Define and AC_SUBST abs_aux_dir.
23369         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23370         $(abs_top_srcdir) to each script and having each of them
23371         duplicate the work of setting PATH, set PATH here, using
23372         the new variable, abs_aux_dir instead.
23373         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23374         * tests/test-vc-list-files-git.sh: Likewise.
23375         Reported by Bruno Haible.
23376
23377 2008-05-01  Bruno Haible  <bruno@clisp.org>
23378
23379         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23380         reallocation. Rename 'done' to 'found_delimiter'.
23381
23382 2008-05-01  Jim Meyering  <meyering@redhat.com>
23383
23384         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23385         * build-aux/vc-list-files: Use `...`, not $(...).
23386
23387 2008-04-30  Jim Meyering  <meyering@redhat.com>
23388
23389         add tests for vc-list-files
23390         * modules/vc-list-files-tests: New module.
23391         * tests/test-vc-list-files-cvs.sh: New file.
23392         * tests/test-vc-list-files-git.sh: New file.
23393
23394         avoid a warning from gcc
23395         * lib/getndelim2.c (IF_LINT): Define.
23396         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23397
23398         vc-list-files: work properly with build-aux/cvsu, too
23399         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23400         to all cvs-based clauses.
23401
23402         vc-list-files: work properly in the CVS+awk case, too
23403         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23404
23405         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23406         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23407         take more than one file argument, so .  Add quotes, just in case $dir
23408         ever contains a shell meta-character.  Prompted by Soren Hansen in
23409         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23410
23411 2008-04-29  Eric Blake  <ebb9@byu.net>
23412
23413         Optimize getndelim2 to use block operations when possible.
23414         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23415         freadseek, and memchr2.
23416         * lib/getndelim2.c (getndelim2): Use them for block reads.
23417
23418 2008-04-29  Bruno Haible  <bruno@clisp.org>
23419
23420         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23421         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23422         * modules/inet_ntop (Depends-on): Add extensions.
23423         * modules/inet_pton (Depends-on): Likewise.
23424         Reported by Simon Josefsson.
23425
23426 2008-04-29  Jim Meyering  <meyering@redhat.com>
23427
23428         When the is more than one match in a block, match all of them.
23429         * build-aux/useless-if-before-free: Iterate through each block
23430         until there are no more matches.
23431
23432         Fix broken useless-if-before-free script.
23433         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23434         the expression to match cast of argument to free-like function.
23435
23436 2008-04-29  Eric Blake  <ebb9@byu.net>
23437
23438         Use new header.
23439         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23440
23441 2008-04-29  Jim Meyering  <meyering@redhat.com>
23442
23443         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23444         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23445         by gnulib to exist and to declare e.g., inet_ntop.
23446         Don't include "inet_ntop.h", now removed.
23447
23448         * m4/arpa_inet_h.m4: Remove trailing blanks.
23449
23450 2008-04-29  Eric Blake  <ebb9@byu.net>
23451
23452         Silence valgrind on safe reads beyond potential array bounds.
23453         * lib/rawmemchr.valgrind: New file.
23454         * lib/strchrnul.valgrind: Likewise.
23455         * modules/rawmemchr (Files): Distribute new file.
23456         * modules/strchrnul (Files): Likewise.
23457         Suggested by Bruno Haible.
23458
23459 2008-04-29  Bruno Haible  <bruno@clisp.org>
23460
23461         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23462         (inet_ntop, inet_pton): Change portability warning's wording.
23463         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23464         Invoke gl_CHECK_NEXT_HEADERS.
23465         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23466         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23467         set ARPA_INET_H.
23468         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23469         * modules/arpa_inet (Description): No longer only for systems that
23470         lack it.
23471         (Depends-on): Add include_next.
23472         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23473         HAVE_ARPA_INET_H.
23474
23475 2008-04-29  Jim Meyering  <meyering@redhat.com>
23476
23477         * modules/mkdir (License): Re-license as LGPLv2+.
23478
23479 2008-04-29  Bruno Haible  <bruno@clisp.org>
23480
23481         * modules/rawmemchr (Maintainer): Set to Eric.
23482         * modules/strchrnul (Maintainer): Likewise.
23483
23484 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23485
23486         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23487         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23488
23489         * modules/arpa_inet (arpa/inet.h): Use them.
23490
23491 2008-04-28  Eric Blake  <ebb9@byu.net>
23492
23493         Test getndelim2.
23494         * modules/getndelim2-tests: New file.
23495         * tests/test-getndelim2.c: Likewise.
23496         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23497         stream.
23498         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23499
23500         * MODULES.html.sh: Document new module.
23501
23502 2008-04-20  Bruno Haible  <bruno@clisp.org>
23503
23504         * lib/c-stack.c (die): Use raise.
23505         * modules/c-stack (Depends-on): Add raise.
23506
23507 2008-04-28  Bruno Haible  <bruno@clisp.org>
23508
23509         Expect rpmatch to be declared.
23510         * lib/yesno.c (rpmatch): Remove declaration.
23511
23512         Declare rpmatch.
23513         * lib/stdlib.in.h (rpmatch): New declaration.
23514         * lib/rpmatch.c: Include <stdlib.h> first.
23515         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23516         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23518         HAVE_RPMATCH.
23519         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23520         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23521         (Include): Set to <stdlib.h>.
23522         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23523         HAVE_RPMATCH.
23524         * NEWS: Document the change.
23525
23526 2008-04-28  Bruno Haible  <bruno@clisp.org>
23527
23528         Change rpmatch to use nl_langinfo when appropriate.
23529         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23530         (N_): New macro.
23531         (localized_pattern): New function/macro.
23532         (try): Remove match, nomatch arguments. Copy the pattern into safe
23533         memory before caching it.
23534         (rpmatch): Use localized_pattern. Add translator comments.
23535         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23536         Suggested by Eric Blake.
23537         * modules/rpmatch (Depends-on): Add stdbool.
23538
23539 2008-04-28  Eric Blake  <ebb9@byu.net>
23540
23541         Add rawmemchr module, matching glibc.
23542         * modules/string (Makefile.am): New indicator.
23543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23544         * lib/string.in.h (rawmemchr): Declare when appropriate.
23545         * modules/rawmemchr: New file.
23546         * m4/rawmemchr.m4: Likewise.
23547         * lib/rawmemchr.c: Likewise.
23548         * modules/rawmemchr-tests: Likewise.
23549         * tests/test-rawmemchr.c: Likewise.
23550         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23551         module.
23552         * modules/strchrnul (Depends-on): Add rawmemchr.
23553         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23554
23555         Whitespace cleanup.
23556         * tests/test-strchrnul.c: Reindent.
23557         * lib/strchrnul.c: Likewise.
23558
23559         Optimize and test strchrnul.
23560         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23561         * modules/strchrnul-tests: New file.
23562         * tests/test-strchrnul.c: Likewise.
23563
23564         Remove intprops dependency.
23565         * modules/memchr (Depends-on): Remove intprops.
23566         * modules/memrchr (Depends-on): Likewise.
23567         * modules/memchr2 (Depends-on): Likewise.
23568         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23569         * lib/memrchr.c (__memrchr): Likewise.
23570         * lib/memrchr2.c (memchr2): Likewise.
23571         Reported by Simon Josefsson.
23572
23573 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23574
23575         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23576         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23577
23578 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23579
23580         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23581
23582         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23583
23584         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23585
23586         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23587         declarations.
23588         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23589
23590         * m4/inet_pton.m4: Don't check for header files.
23591
23592         * m4/inet_ntop.m4: Don't check for header files.
23593
23594 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23595
23596         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23597         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23598         trigger for cygwin).
23599         Reported by Bruno Haible  <bruno@clisp.org>.
23600
23601 2008-04-28  Bruno Haible  <bruno@clisp.org>
23602
23603         * doc/posix-functions/strdup.texi: Mention mingw problem.
23604
23605 2008-04-27  Bruno Haible  <bruno@clisp.org>
23606
23607         * modules/stat-time-tests (Depends-on): Add sleep.
23608         * tests/test-stat-time.c (force_unlink): New function.
23609         (cleanup): Use it.
23610         (test_mtime): Remove the ctime related tests.
23611         (test_ctime): New function, containing the ctime related tests.
23612         (main): Call test_ctime, except on native Windows platforms.
23613
23614 2008-04-27  Bruno Haible  <bruno@clisp.org>
23615
23616         * lib/rpmatch.c (rpmatch): Add some comments.
23617         Reported by James Youngman <jay@gnu.org>.
23618
23619 2008-04-27  Bruno Haible  <bruno@clisp.org>
23620
23621         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23622         quiet NaNs.
23623
23624 2008-04-27  Bruno Haible  <bruno@clisp.org>
23625
23626         Make test-yesno.sh work on mingw.
23627         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23628         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23629         (main): Set stdin to binary mode.
23630         * modules/yesno-tests (Depends-on): Add binary-io.
23631
23632 2008-04-27  Bruno Haible  <bruno@clisp.org>
23633
23634         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23635         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23636         argument that lie outside the IEEE 854 domain.
23637         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23638         (gl_ISFINITE): Use it.
23639         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23640
23641 2008-04-27  Bruno Haible  <bruno@clisp.org>
23642
23643         Allow local renaming in config.h.
23644         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23645
23646 2008-04-27  Bruno Haible  <bruno@clisp.org>
23647
23648         * lib/memchr.c (__memchr): Change type of 'i'.
23649         * lib/memchr2.c (memchr2): Likewise.
23650
23651 2008-04-26  Eric Blake  <ebb9@byu.net>
23652         and Bruno Haible  <bruno@clisp.org>
23653
23654         Optimize and test memrchr.
23655         * modules/memrchr (Depends-on): Add intprops.
23656         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23657         * modules/memrchr-tests: New file.
23658         * tests/test-memrchr.c: New file.
23659
23660 2008-04-26  Bruno Haible  <bruno@clisp.org>
23661
23662         Add tentative support for DragonFly BSD.
23663         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23664         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23665         fp.
23666         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23667         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23668         * lib/fpurge.c (fpurge): Likewise.
23669         * lib/freadable.c (freaadable): Likewise.
23670         * lib/freadahead.c (freadahead): Likewise.
23671         * lib/freading.c (freading): Likewise.
23672         * lib/freadptr.c (freadptr): Likewise.
23673         * lib/freadseek.c (freadptrinc): Likewise.
23674         * lib/fseeko.c (fseeko): Likewise.
23675         * lib/fseterr.c (fseterr): Likewise.
23676         * lib/fwritable.c (fwritable): Likewise.
23677         * lib/fwriting.c (fwriting): Likewise.
23678
23679 2008-04-26  Bruno Haible  <bruno@clisp.org>
23680
23681         * lib/stdio-impl.h: New file.
23682         * lib/fbufmode.c: Include stdio-impl.h.
23683         (fbufmode): Use fp_, remove redundant #defines.
23684         * lib/fflush.c: Include stdio-impl.h.
23685         (clear_ungetc_buffer): Remove redundant #defines.
23686         * lib/fpurge.c: Include stdio-impl.h.
23687         (fpurge): Remove redundant #defines.
23688         * lib/freadable.c: Include stdio-impl.h.
23689         (freadable): Remove redundant #defines.
23690         * lib/freadahead.c: Include stdio-impl.h.
23691         (freadahead): Remove redundant #defines.
23692         * lib/freading.c: Include stdio-impl.h.
23693         (freading): Remove redundant #defines.
23694         * lib/freadptr.c: Include stdio-impl.h.
23695         (freadptr): Remove redundant #defines.
23696         * lib/freadseek.c: Include stdio-impl.h.
23697         (freadptrinc): Remove redundant #defines.
23698         * lib/fseeko.c: Include stdio-impl.h.
23699         (rpl_fseeko): Remove redundant #defines.
23700         * lib/fseterr.c: Include stdio-impl.h.
23701         (fseterr): Remove redundant #defines.
23702         * lib/fwritable.c: Include stdio-impl.h.
23703         (fwritable: Remove redundant #defines.
23704         * lib/fwriting.c: Include stdio-impl.h.
23705         (fwriting): Remove redundant #defines.
23706         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23707         * modules/fflush (Files): Likewise.
23708         * modules/fpurge (Files): Likewise.
23709         * modules/freadable (Files): Likewise.
23710         * modules/freadahead (Files): Likewise.
23711         * modules/freading (Files): Likewise.
23712         * modules/freadptr (Files): Likewise.
23713         * modules/freadseek (Files): Likewise.
23714         * modules/fseeko (Files): Likewise.
23715         * modules/fseterr (Files): Likewise.
23716         * modules/fwritable (Files): Likewise.
23717         * modules/fwriting (Files): Likewise.
23718
23719 2008-04-26  Bruno Haible  <bruno@clisp.org>
23720
23721         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23722         restore_seek_optimization, update_fpos_cache): New functions, extracted
23723         from rpl_fflush.
23724         (rpl_fflush): Use them.
23725         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23726         (gl_REPLACE_FFLUSH): Use it.
23727
23728 2008-04-26  Bruno Haible  <bruno@clisp.org>
23729
23730         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23731         on Solaris.
23732         * tests/test-xstrtoimax.sh: Likewise.
23733         * tests/test-xstrtoumax.sh: Likewise.
23734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23735
23736 2008-04-26  Bruno Haible  <bruno@clisp.org>
23737
23738         * modules/memchr-tests: New file.
23739         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23740
23741 2008-04-26  Eric Blake  <ebb9@byu.net>
23742             Bruno Haible  <bruno@clisp.org>
23743
23744         * lib/memchr.c: Include intprops.h.
23745         (__memchr): Optimize parallel detection of matching bytes. Rename local
23746         variables. Add explanatory comments.
23747
23748 2008-04-26  Bruno Haible  <bruno@clisp.org>
23749
23750         Fix module 'memchr', broken since 2000-10-28.
23751         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23752
23753 2008-04-26  Bruno Haible  <bruno@clisp.org>
23754
23755         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23756         comments.
23757
23758 2008-04-25  Eric Blake  <ebb9@byu.net>
23759
23760         Use native fstatat on cygwin 1.7.0.
23761         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23762         first.
23763
23764 2008-04-23  Eric Blake  <ebb9@byu.net>
23765
23766         Improve memchr2 performance.
23767         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23768         NUL bytes.
23769         * modules/memchr2 (Depends-on): Use intprops.h.
23770
23771 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23772
23773         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23774         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23775         <blp@cs.stanford.edu>.
23776
23777 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23778
23779         * lib/arpa_inet.in.h: New file.
23780
23781         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23782         (Makefile.am): Sed in substitute header file.
23783
23784         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23785         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23786
23787         * modules/inet_ntop (configure.ac): Use
23788         gl_ARPA_INET_MODULE_INDICATOR.
23789
23790         * modules/inet_pton (configure.ac): Use
23791         gl_ARPA_INET_MODULE_INDICATOR.
23792
23793 2008-04-22  Jim Meyering  <meyering@redhat.com>
23794
23795         * modules/verify (License): Re-license as LGPLv2+.
23796
23797 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23798
23799         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23800         parameter to void* as per POSIX standard (MinGW uses char*).
23801
23802 2008-04-21  Bruno Haible  <bruno@clisp.org>
23803
23804         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23805         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23806         Define to replacements if REPLACE_ISWCNTRL is 1.
23807         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23808         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23809         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23810         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23811         what it fixes.
23812         * doc/posix-functions/iswalpha.texi: Likewise.
23813         * doc/posix-functions/iswblank.texi: Likewise.
23814         * doc/posix-functions/iswcntrl.texi: Likewise.
23815         * doc/posix-functions/iswdigit.texi: Likewise.
23816         * doc/posix-functions/iswgraph.texi: Likewise.
23817         * doc/posix-functions/iswlower.texi: Likewise.
23818         * doc/posix-functions/iswprint.texi: Likewise.
23819         * doc/posix-functions/iswpunct.texi: Likewise.
23820         * doc/posix-functions/iswspace.texi: Likewise.
23821         * doc/posix-functions/iswupper.texi: Likewise.
23822         * doc/posix-functions/iswxdigit.texi: Likewise.
23823         Reported by Alain Guibert.
23824
23825 2008-04-21  Bruno Haible  <bruno@clisp.org>
23826
23827         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23828         Patch by Alain Guibert.
23829
23830 2008-04-21  Bruno Haible  <bruno@clisp.org>
23831
23832         Fix test failures on mingw.
23833         * tests/test-xstrtol.c (print_no_progname): New function.
23834         (main): Install it in error_print_progname hook.
23835         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23836         * tests/test-xstrtoimax.sh: Likewise.
23837         * tests/test-xstrtoumax.sh: Likewise.
23838
23839 2008-04-21  Bruno Haible  <bruno@clisp.org>
23840
23841         Fix test failure on mingw.
23842         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23843
23844 2008-04-21  Bruno Haible  <bruno@clisp.org>
23845
23846         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23847         Actually assign a value.
23848
23849 2008-04-20  Bruno Haible  <bruno@clisp.org>
23850
23851         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23852         take 2.
23853         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23854         'canonicalize-lgpl' module is also used.
23855         * lib/canonicalize-lgpl.c: Undo last change.
23856         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23857
23858 2008-04-20  Bruno Haible  <bruno@clisp.org>
23859
23860         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23861         config.h. Provide _mkdir based fallback for mingw.
23862         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23863         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23864         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23865         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23866         rather than defining mkdir in config.h.
23867         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23868         (gl_SYS_STAT_H_DEFAULTS): New macro.
23869         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23870         HAVE_IO_H any more.
23871         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23872         HAVE_DECL_MKDIR and HAVE_IO_H.
23873
23874 2008-04-20  Bruno Haible  <bruno@clisp.org>
23875
23876         * lib/isapipe.c: Port to native Windows platforms.
23877
23878 2008-04-20  Bruno Haible  <bruno@clisp.org>
23879
23880         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23881
23882 2008-04-21  Eric Blake  <ebb9@byu.net>
23883
23884         Work around preprocessors that don't handle UINTMAX_MAX.
23885         * lib/memchr2.c (memchr2): Avoid embedded #if.
23886         Reported by Alain Guibert, fix suggested by Bruno Haible.
23887
23888 2008-04-21  Simon Josefsson  <simon@josefsson.org>
23889
23890         * doc/posix-functions/strftime.texi (strftime): Explain better
23891         Windows incompatibility.  Suggested by Micah Cowan
23892         <micah@cowan.name>.
23893
23894 2008-04-20  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23897         unistr/u8-mblen.
23898
23899 2008-04-20  Bruno Haible  <bruno@clisp.org>
23900
23901         Fix test failure on platforms with non-GNU iconv.
23902         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23903         (U_TO_U8): Use it, rather than u16_to_u8.
23904         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23905         units at the end of the input string.
23906         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23907
23908 2008-04-20  Bruno Haible  <bruno@clisp.org>
23909
23910         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23911         when the resulting length is 0.
23912         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23913
23914 2008-04-20  Bruno Haible  <bruno@clisp.org>
23915
23916         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23917         works.
23918         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23919
23920 2008-04-20  Bruno Haible  <bruno@clisp.org>
23921
23922         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23923         * modules/tsearch-tests (configure.ac): Test for initstate function.
23924
23925 2008-04-20  Bruno Haible  <bruno@clisp.org>
23926
23927         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23928         for nlink_t if missing.
23929         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23930
23931 2008-04-19  Bruno Haible  <bruno@clisp.org>
23932
23933         Work around snprintf bug on Linux libc5.
23934         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23936         gl_SNPRINTF_SIZE1.
23937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23938         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23939         that test failed.
23940         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23941         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23942         * modules/snprintf (Files): Add m4/printf.m4.
23943         * modules/vsnprintf (Files): Likewise.
23944         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23945         * doc/posix-functions/vsnprintf.texi: Likewise.
23946
23947 2008-04-19  Bruno Haible  <bruno@clisp.org>
23948
23949         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23950         from 0.0058 to less than 10^-7.
23951
23952 2008-04-19  Bruno Haible  <bruno@clisp.org>
23953
23954         Fix rounding when a precision is given.
23955         * lib/vasnprintf.c (is_borderline): New function.
23956         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23957         9...9x.
23958         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23959         %e, %g.
23960         * tests/test-vasprintf-posix.c (test_function): Likewise.
23961         * tests/test-snprintf-posix.h (test_function): Likewise.
23962         * tests/test-sprintf-posix.h (test_function): Likewise.
23963         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23964         * tests/test-printf-posix.h (test_function): Likewise.
23965         * tests/test-printf-posix.output: Update.
23966         Reported by John Darrington <john@darrington.wattle.id.au> via
23967         Ben Pfaff <blp@cs.stanford.edu>.
23968
23969 2008-04-18  Simon Josefsson  <simon@josefsson.org>
23970
23971         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23972         Suggested by Bruno Haible <bruno@clisp.org>.
23973
23974 2008-04-17  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23977         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23978         implementation.
23979         Patch by Bruce Merry <bmerry@gmail.com>.
23980
23981 2008-04-17  Simon Josefsson  <simon@josefsson.org>
23982
23983         * doc/posix-functions/strftime.texi (strftime): Mention that %e
23984         doesn't work under Windows.
23985
23986 2008-04-16  Bruno Haible  <bruno@clisp.org>
23987
23988         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23989         New macros.
23990         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23991         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23992         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23993         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23994         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23995         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23996         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23997         macros.
23998         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23999         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24000         Northern Sotho, Uighur.
24001
24002 2008-04-16  Bruno Haible  <bruno@clisp.org>
24003
24004         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24005         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24006         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24007         Reported by Daniel Bergström <daniel@octocode.com>.
24008
24009 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24010             Bruno Haible  <bruno@clisp.org>
24011
24012         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24013         function.
24014         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24015         New functions, mostly extracted from gl_locale_name_default.
24016         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24017
24018 2008-04-16  Eric Blake  <ebb9@byu.net>
24019
24020         Adjust strtod detection to catch glibc 2.7 bug.
24021         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24022         Reported by John Gatewood Ham.
24023
24024 2008-04-16  Bruno Haible  <bruno@clisp.org>
24025
24026         Add tentative support for Linux libc5.
24027         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24028         * lib/fpurge.c (fpurge): Likewise.
24029         * lib/freadable.c (freadable): Likewise.
24030         * lib/freadahead.c (freadahead): Likewise.
24031         * lib/freading.c (freading): Likewise.
24032         * lib/freadptr.c (freadptr): Likewise.
24033         * lib/freadseek.c (freadptrinc): Likewise.
24034         * lib/fseeko.c (rpl_fseeko): Likewise.
24035         * lib/fseterr.c (fseterr): Likewise.
24036         * lib/fwritable.c (fwritable): Likewise.
24037         * lib/fwriting.c (fwriting): Likewise.
24038         Reported by Alain Guibert <alguibert+bts@free.fr>.
24039
24040 2008-04-15  Bruno Haible  <bruno@clisp.org>
24041
24042         * modules/mathl (configure.ac): Define module indicator.
24043
24044 2008-04-15  Bruno Haible  <bruno@clisp.org>
24045
24046         * lib/logl.c (logl): Remove unused variables.
24047
24048 2008-04-15  Bruno Haible  <bruno@clisp.org>
24049
24050         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24051         fails.
24052
24053 2008-04-15  Bruno Haible  <bruno@clisp.org>
24054
24055         * lib/trim.c (trim2): Fix argument of isspace() macro.
24056
24057 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24058
24059         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24060         to 0.
24061         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24062
24063 2008-04-14  Bruno Haible  <bruno@clisp.org>
24064
24065         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24066         AC_LANG_PROGRAM argument.
24067         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24068         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24069         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24070         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24071         * m4/math_h.m4 (gl_MATH_H): Likewise.
24072         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24074         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24075         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24076         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24077         * m4/regex.m4 (gl_REGEX): Likewise.
24078         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24079         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24081         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24083         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24084         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24086
24087 2008-04-14  Jim Meyering  <meyering@redhat.com>
24088
24089         test-strtod: fix typos: s/abs/fabs/
24090         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24091
24092 2008-04-13  Bruno Haible  <bruno@clisp.org>
24093
24094         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24095         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24096         module is also used and while not building the reloc-wrapper.
24097
24098 2008-04-13  Bruno Haible  <bruno@clisp.org>
24099
24100         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24101
24102 2008-04-13  Bruno Haible  <bruno@clisp.org>
24103
24104         Fix AIX compilation failure introduced on 2008-04-02.
24105         * tests/test-frexp.c (exp): Undefine before redefining.
24106         * tests/test-frexpl.c (exp): Likewise.
24107
24108 2008-04-13  Bruno Haible  <bruno@clisp.org>
24109
24110         Work around a HP-UX stdio bug.
24111         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24112         * tests/test-ftello.c (main): Likewise.
24113         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24114         * doc/posix-functions/ftello.texi: Likewise.
24115
24116 2008-04-13  Bruno Haible  <bruno@clisp.org>
24117
24118         Make test-signbit pass on HP-UX/hppa.
24119         * tests/test-signbit.c (minus_zerol): New variable.
24120         (test_signbitl): Use it.
24121
24122 2008-04-13  Bruno Haible  <bruno@clisp.org>
24123
24124         Make truncl work on OSF/1 4.0.
24125         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24126         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24127         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24129         HAVE_DECL_TRUNCL.
24130         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24131         HAVE_DECL_TRUNCL.
24132         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24133
24134 2008-04-13  Bruno Haible  <bruno@clisp.org>
24135
24136         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24137
24138 2008-04-13  Bruno Haible  <bruno@clisp.org>
24139
24140         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24141         expression, so as to avoid HP-UX 11 cc compiler bug.
24142
24143 2008-04-13  Bruno Haible  <bruno@clisp.org>
24144
24145         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24146
24147 2008-04-13  Bruno Haible  <bruno@clisp.org>
24148
24149         * lib/git-merge-changelog.c: Remove empty declaration outside of
24150         functions.
24151
24152 2008-04-13  Bruno Haible  <bruno@clisp.org>
24153
24154         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24155
24156 2008-04-13  Bruno Haible  <bruno@clisp.org>
24157
24158         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24159         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24161         also if it exists but lacks definitions of the SHUT_* macros.
24162         * modules/sys_socket (Description): Update.
24163         Reported by Elbert Pol <e.pol@chello.nl>.
24164
24165 2008-04-13  Bruno Haible  <bruno@clisp.org>
24166
24167         * lib/localcharset.c (OS2): Don't redefine if already defined.
24168         Reported by Elbert Pol <e.pol@chello.nl>.
24169
24170 2008-04-13  Bruno Haible  <bruno@clisp.org>
24171
24172         * lib/binary-io.h [__EMX__]: Include <io.h>.
24173         Reported by Elbert Pol <e.pol@chello.nl>.
24174
24175 2008-04-12  Bruno Haible  <bruno@clisp.org>
24176
24177         * lib/fpucw.h: Enable the definitions also for x86_64.
24178         Needed for NetBSD/x86_64.
24179         Reported by Thomas Klausner <tk@giga.or.at>.
24180
24181 2008-04-12  Bruno Haible  <bruno@clisp.org>
24182
24183         * tests/test-strtod.c: Include isnand.h.
24184         (main): Use isnand instead of isnan.
24185         Reported by Jim Meyering.
24186
24187 2008-04-12  Bruno Haible  <bruno@clisp.org>
24188
24189         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24190         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24191
24192 2008-04-12  Jim Meyering  <meyering@redhat.com>
24193
24194         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24195
24196 2008-04-12  Bruno Haible  <bruno@clisp.org>
24197
24198         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24199         Reported by Elbert Pol <e.pol@chello.nl>.
24200
24201 2008-04-12  Eric Blake  <ebb9@byu.net>
24202
24203         Work around Solaris 10 math.h bug.
24204         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24205         (gl_MATH_H_DEFAULTS): Set up default.
24206         * modules/math (Makefile.am): Replace new indicators.
24207         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24208         * tests/test-math.c (main): Test this.
24209         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24210         * doc/posix-headers/math.texi (math.h): Mention bug.
24211         Reported by Nelson H. F. Beebe and Jim Meyering.
24212
24213 2008-04-11  Bruno Haible  <bruno@clisp.org>
24214
24215         Adapt to future versions of Apple GCC.
24216         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24217         Reported by Peter O'Gorman <peter@pogma.com>.
24218
24219 2008-04-11  Bruno Haible  <bruno@clisp.org>
24220
24221         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24222
24223 2008-04-11  Bruno Haible  <bruno@clisp.org>
24224
24225         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24226
24227         * modules/getaddrinfo-tests (Makefile.am): Define
24228         test_getaddrinfo_LDADD.
24229
24230 2008-04-11  Bruno Haible  <bruno@clisp.org>
24231
24232         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24233         (init): Fix syntax error.
24234         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24235         is declared.
24236
24237 2008-04-11  Bruno Haible  <bruno@clisp.org>
24238
24239         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24240         * modules/glob (Depends-on): Add stdbool.
24241
24242 2008-04-11  Bruno Haible  <bruno@clisp.org>
24243
24244         * lib/trim.c: Include <string.h>.
24245
24246 2008-04-11  Eric Blake  <ebb9@byu.net>
24247
24248         Avoid compile failure on OS/2.
24249         * lib/regex_internal.h (internal_function): Disable optimization
24250         on OS/2 (__EMX__), where it caused compiler error.
24251         Reported by Elbert Pol.
24252
24253 2008-04-11  Bruno Haible  <bruno@clisp.org>
24254
24255         Flush the standard error stream before aborting. Needed on mingw.
24256         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24257         * tests/test-array_list.c (ASSERT): Likewise.
24258         * tests/test-array_oset.c (ASSERT): Likewise.
24259         * tests/test-avltree_list.c (ASSERT): Likewise.
24260         * tests/test-avltree_oset.c (ASSERT): Likewise.
24261         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24262         * tests/test-binary-io.c (ASSERT): Likewise.
24263         * tests/test-byteswap.c (ASSERT): Likewise.
24264         * tests/test-c-ctype.c (ASSERT): Likewise.
24265         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24266         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24267         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24268         * tests/test-c-strstr.c (ASSERT): Likewise.
24269         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24270         * tests/test-canonicalize.c (ASSERT): Likewise.
24271         * tests/test-carray_list.c (ASSERT): Likewise.
24272         * tests/test-ceilf1.c (ASSERT): Likewise.
24273         * tests/test-ceilf2.c (ASSERT): Likewise.
24274         * tests/test-ceill.c (ASSERT): Likewise.
24275         * tests/test-count-one-bits.c (ASSERT): Likewise.
24276         * tests/test-fbufmode.c (ASSERT): Likewise.
24277         * tests/test-fflush2.c (ASSERT): Likewise.
24278         * tests/test-floorf1.c (ASSERT): Likewise.
24279         * tests/test-floorf2.c (ASSERT): Likewise.
24280         * tests/test-floorl.c (ASSERT): Likewise.
24281         * tests/test-fopen.c (ASSERT): Likewise.
24282         * tests/test-fpending.c (ASSERT): Likewise.
24283         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24284         * tests/test-fpurge.c (ASSERT): Likewise.
24285         * tests/test-freadable.c (ASSERT): Likewise.
24286         * tests/test-freadahead.c (ASSERT): Likewise.
24287         * tests/test-freading.c (ASSERT): Likewise.
24288         * tests/test-freadptr.c (ASSERT): Likewise.
24289         * tests/test-freadptr2.c (ASSERT): Likewise.
24290         * tests/test-freadseek.c (ASSERT): Likewise.
24291         * tests/test-freopen.c (ASSERT): Likewise.
24292         * tests/test-frexp.c (ASSERT): Likewise.
24293         * tests/test-frexpl.c (ASSERT): Likewise.
24294         * tests/test-fseek.c (ASSERT): Likewise.
24295         * tests/test-fseeko.c (ASSERT): Likewise.
24296         * tests/test-fstrcmp.c (ASSERT): Likewise.
24297         * tests/test-ftell.c (ASSERT): Likewise.
24298         * tests/test-ftello.c (ASSERT): Likewise.
24299         * tests/test-func.c (ASSERT): Likewise.
24300         * tests/test-fwritable.c (ASSERT): Likewise.
24301         * tests/test-fwriting.c (ASSERT): Likewise.
24302         * tests/test-getdelim.c (ASSERT): Likewise.
24303         * tests/test-getline.c (ASSERT): Likewise.
24304         * tests/test-i-ring.c (ASSERT): Likewise.
24305         * tests/test-iconv-utf.c (ASSERT): Likewise.
24306         * tests/test-iconv.c (ASSERT): Likewise.
24307         * tests/test-isfinite.c (ASSERT): Likewise.
24308         * tests/test-isnand.c (ASSERT): Likewise.
24309         * tests/test-isnanf.c (ASSERT): Likewise.
24310         * tests/test-isnanl.h (ASSERT): Likewise.
24311         * tests/test-ldexpl.c (ASSERT): Likewise.
24312         * tests/test-linked_list.c (ASSERT): Likewise.
24313         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24314         * tests/test-localename.c (ASSERT): Likewise.
24315         * tests/test-lseek.c (ASSERT): Likewise.
24316         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24317         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24318         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24319         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24320         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24321         * tests/test-mbschr.c (ASSERT): Likewise.
24322         * tests/test-mbscspn.c (ASSERT): Likewise.
24323         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24324         * tests/test-mbspbrk.c (ASSERT): Likewise.
24325         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24326         * tests/test-mbsrchr.c (ASSERT): Likewise.
24327         * tests/test-mbsspn.c (ASSERT): Likewise.
24328         * tests/test-mbsstr1.c (ASSERT): Likewise.
24329         * tests/test-mbsstr2.c (ASSERT): Likewise.
24330         * tests/test-mbsstr3.c (ASSERT): Likewise.
24331         * tests/test-memchr2.c (ASSERT): Likewise.
24332         * tests/test-memmem.c (ASSERT): Likewise.
24333         * tests/test-open.c (ASSERT): Likewise.
24334         * tests/test-printf-frexp.c (ASSERT): Likewise.
24335         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24336         * tests/test-printf-posix.c (ASSERT): Likewise.
24337         * tests/test-quotearg.c (ASSERT): Likewise.
24338         * tests/test-rbtree_list.c (ASSERT): Likewise.
24339         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24340         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24341         * tests/test-round1.c (ASSERT): Likewise.
24342         * tests/test-roundf1.c (ASSERT): Likewise.
24343         * tests/test-roundl.c (ASSERT): Likewise.
24344         * tests/test-signbit.c (ASSERT): Likewise.
24345         * tests/test-sleep.c (ASSERT): Likewise.
24346         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24347         * tests/test-snprintf.c (ASSERT): Likewise.
24348         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24349         * tests/test-stat-time.c (ASSERT): Likewise.
24350         * tests/test-strcasestr.c (ASSERT): Likewise.
24351         * tests/test-strerror.c (ASSERT): Likewise.
24352         * tests/test-striconv.c (ASSERT): Likewise.
24353         * tests/test-striconveh.c (ASSERT): Likewise.
24354         * tests/test-striconveha.c (ASSERT): Likewise.
24355         * tests/test-strsignal.c (ASSERT): Likewise.
24356         * tests/test-strstr.c (ASSERT): Likewise.
24357         * tests/test-strtod.c (ASSERT): Likewise.
24358         * tests/test-trunc1.c (ASSERT): Likewise.
24359         * tests/test-trunc2.c (ASSERT): Likewise.
24360         * tests/test-truncf1.c (ASSERT): Likewise.
24361         * tests/test-truncf2.c (ASSERT): Likewise.
24362         * tests/test-truncl.c (ASSERT): Likewise.
24363         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24364         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24365         * tests/test-vasnprintf.c (ASSERT): Likewise.
24366         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24367         * tests/test-vasprintf.c (ASSERT): Likewise.
24368         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24369         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24370         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24371         * tests/test-vsnprintf.c (ASSERT): Likewise.
24372         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24373         * tests/test-wcwidth.c (ASSERT): Likewise.
24374         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24375         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24376         * tests/test-xvasprintf.c (ASSERT): Likewise.
24377         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24378         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24379         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24380         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24381         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24382         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24383         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24384         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24385         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24386         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24387         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24388         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24389         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24390         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24391         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24392         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24393         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24394         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24395         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24396         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24397         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24398         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24399         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24400         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24401         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24402         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24403         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24404         * tests/unictype/test-combining.c (ASSERT): Likewise.
24405         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24406         * tests/unictype/test-digit.c (ASSERT): Likewise.
24407         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24408         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24409         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24410         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24411         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24412         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24413         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24414         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24415         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24416         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24417         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24418         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24419         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24420         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24421         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24422         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24423         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24424         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24425         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24426         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24427         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24428         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24429         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24430         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24431         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24432         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24433         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24434         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24435         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24436         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24437         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24438         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24439         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24440         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24441         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24442         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24443         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24444         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24445         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24446         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24447         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24448         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24449         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24450         Reported by Eric Blake.
24451
24452 2008-04-11  Bruno Haible  <bruno@clisp.org>
24453
24454         * lib/wchar.in.h: Tweak comment.
24455
24456 2008-04-11  Bruno Haible  <bruno@clisp.org>
24457
24458         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24459         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24460         gl_COMMON.
24461         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24462
24463 2008-04-11  Bruno Haible  <bruno@clisp.org>
24464
24465         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24466
24467 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24468
24469         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24470         of attempting to use non-existing /dev/*random.  Based on patch
24471         from Adam Strzelecki <ono@java.pl> in
24472         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24473
24474 2008-04-08  Bruno Haible  <bruno@clisp.org>
24475
24476         Add tentative support for emx+gcc.
24477         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24478         * lib/fpurge.c (fpurge): Likewise.
24479         * lib/freadable.c (freadable): Likewise.
24480         * lib/freadahead.c (freadahead): Likewise.
24481         * lib/freading.c (freading): Likewise.
24482         * lib/freadptr.c (freadptr): Likewise.
24483         * lib/freadseek.c (freadptrinc): Likewise.
24484         * lib/fseeko.c (rpl_fseeko): Likewise.
24485         * lib/fseterr.c (fseterr): Likewise.
24486         * lib/fwritable.c (fwritable): Likewise.
24487         * lib/fwriting.c (fwriting): Likewise.
24488         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24489
24490 2008-04-09  Eric Blake  <ebb9@byu.net>
24491
24492         Avoid some autoconf warnings.
24493         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24494         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24495         * m4/afs.m4 (gl_AFS): Likewise.
24496         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24497         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24499         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24500         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24501         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24502         (AC_CHECK_DECLS_ONCE): Likewise.
24503         Rename file...
24504         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24505         gnulib-tool requires autoconf 2.59 or better.
24506         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24507
24508 2008-04-08  Eric Blake  <ebb9@byu.net>
24509
24510         Use 'git describe --match' if present (added in git 1.5.5).
24511         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24512         if possible.
24513
24514 2008-04-08  Bruno Haible  <bruno@clisp.org>
24515
24516         Add tentative support for OpenServer.
24517         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24518         _ptr, _cnt.
24519         * lib/fpurge.c (fpurge): Likewise.
24520         * lib/freadable.c (freadable): Likewise.
24521         * lib/freadahead.c (freadahead): Likewise.
24522         * lib/freading.c (freading): Likewise.
24523         * lib/freadptr.c (freadptr): Likewise.
24524         * lib/freadseek.c (freadptrinc): Likewise.
24525         * lib/fseeko.c (rpl_fseeko): Likewise.
24526         * lib/fseterr.c (fseterr): Likewise.
24527         * lib/fwritable.c (fwritable): Likewise.
24528         * lib/fwriting.c (fwriting): Likewise.
24529         Reported by Roger Cornelius <rac@tenzing.org> and
24530         Brian K. White <brian@aljex.com>.
24531
24532 2008-04-06  Jim Meyering  <meyering@redhat.com>
24533
24534         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24535
24536 2008-04-06  Bruno Haible  <bruno@clisp.org>
24537
24538         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24539         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24540         * tests/test-printf-posix.sh: Likewise.
24541         * tests/test-vfprintf-posix.sh: Likewise.
24542         * tests/test-vprintf-posix.sh: Likewise.
24543         * tests/test-xprintf-posix.sh: Likewise.
24544
24545 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24546
24547         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24548         hide error from 'ls', needed on OS/2.
24549         Report by Elbert Pol <elbert.pol@gmail.com>.
24550
24551 2008-04-04  Eric Blake  <ebb9@byu.net>
24552
24553         Make test-fseeko.c failures meaningful.
24554         * tests/test-fseeko.c: Print line number on failure.
24555         * tests/test-fseek.c: Likewise.
24556         Reported by Nelson H. F. Beebe.
24557
24558         Improve strtod bug detection check.
24559         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24560         required for Solaris 10.
24561         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24562
24563 2008-04-04  Bruno Haible  <bruno@clisp.org>
24564
24565         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24566         by m4/setenv.m4.
24567
24568 2008-04-03  Eric Blake  <ebb9@byu.net>
24569
24570         Ensure sane .version contents.
24571         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24572         version string.
24573         * build-aux/git-version-gen: Improve documentation.
24574
24575         Make GNU make output nicer.
24576         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24577         MAKECMDGOALS to enforce message for all command line targets.  Set
24578         srcdir for use in maint.mk.
24579
24580         Another maintainer tweak.
24581         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24582         a target that regenerates version.
24583
24584 2008-04-03  Jim Meyering  <meyering@redhat.com>
24585
24586         vc-list-files: don't cause coreutils "make po-check" failure
24587         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24588
24589 2008-04-03  Eric Blake  <ebb9@byu.net>
24590
24591         Allow VPATH usage of vc-list-files.
24592         * build-aux/vc-list-files (scriptversion): Add timestamp.
24593         (options): Add --help, --version, -C.
24594         (CVS): Support installed cvsu.
24595
24596 2008-04-02  Bruno Haible  <bruno@clisp.org>
24597
24598         Avoid some "statement with no effect" warnings from gcc.
24599         * tests/test-wctype.c (main): Explicitly ignore unused values.
24600         Reported by Jim Meyering.
24601
24602 2008-04-02  Jim Meyering  <meyering@redhat.com>
24603
24604         Avoid some warnings from "gcc -Wshadow".
24605         * tests/test-frexp.c (exp): Define to a different identifier.
24606         * tests/test-frexpl.c (exp): Likewise.
24607
24608 2008-04-03  Jim Meyering  <meyering@redhat.com>
24609
24610         bootstrap: remove dangling *.[ch] symlinks from lib
24611         * build-aux/bootstrap [dangling symlink removal]: Move find's
24612         -depth option to precede all others, to avoid a warning.
24613         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24614
24615 2008-04-02  Bruno Haible  <bruno@clisp.org>
24616
24617         Avoid some warnings from "gcc -Wshadow".
24618         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24619         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24620         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24621         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24622         Reported by Jim Meyering.
24623
24624 2008-04-01  Bruno Haible  <bruno@clisp.org>
24625
24626         Fix test to work on IRIX 6.5 with cc.
24627         * tests/test-math.c (numeric_equal): New function.
24628         (main): Use it.
24629
24630 2008-04-01  Bruno Haible  <bruno@clisp.org>
24631
24632         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24633
24634 2008-04-01  Bruno Haible  <bruno@clisp.org>
24635
24636         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24637         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24638         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24639         (Depends-on): Remove math.
24640
24641         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24642         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24643         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24644         (Depends-on): Remove math.
24645
24646         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24647         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24648         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24649         (Depends-on): Remove math.
24650         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24651         (Depends-on): Remove math.
24652
24653         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24654         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24655         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24656         (Depends-on): Remove math.
24657         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24658         (Depends-on): Remove math.
24659
24660         * tests/test-round1.c: Include nan.h.
24661         (main): Use NaNd instead of NAN.
24662         * modules/round-tests (Files): Add tests/nan.h.
24663
24664         * tests/test-trunc1.c: Include nan.h.
24665         (main): Use NaNd instead of NAN.
24666         * modules/trunc-tests (Files): Add tests/nan.h.
24667
24668         * tests/test-roundf1.c: Include nan.h.
24669         (main): Use NaNf instead of NAN.
24670         * modules/roundf-tests (Files): Add tests/nan.h.
24671
24672         * tests/test-truncf1.c: Include nan.h.
24673         (main): Use NaNf instead of NAN.
24674         * modules/truncf-tests (Files): Add tests/nan.h.
24675
24676         * tests/test-ceilf1.c: Include nan.h.
24677         (main): Use NaNf instead of NAN.
24678         * modules/ceilf-tests (Files): Add tests/nan.h.
24679
24680         * tests/test-floorf1.c: Include nan.h.
24681         (main): Use NaNf instead of NAN.
24682         * modules/floorf-tests (Files): Add tests/nan.h.
24683
24684         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24685         (main): Use NaNf instead of NAN.
24686         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24687
24688         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24689         (main): Use NaNd instead of NAN.
24690         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24691
24692         * tests/test-frexp.c: Include nan.h.
24693         (main): Use NaNd instead of NAN.
24694         * modules/frexp-tests (Files): Add tests/nan.h.
24695
24696         * lib/isnan.c: Don't include <math.h>.
24697         (FUNC): Don't use NAN macro.
24698         * modules/isnand-nolibm (Depends-on): Remove math.
24699         * modules/isnanf-nolibm (Depends-on): Remove math.
24700         * modules/isnanl (Depends-on): Remove math.
24701         * modules/isnanl-nolibm (Depends-on): Remove math.
24702
24703         * tests/nan.h: New file.
24704
24705 2008-04-01  Eric Blake  <ebb9@byu.net>
24706
24707         Fix typos.
24708         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24709         values to be the right type.
24710
24711         For now, cater to gnulib strtod inaccuracies.
24712         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24713         fractional results.  While not as nice from a QoI perspective, it
24714         is a quicker patch than correctly implementing decimal to binary
24715         rounding.
24716
24717 2008-03-31  Eric Blake  <ebb9@byu.net>
24718
24719         Guarantee a definition of NAN.
24720         * lib/math.in.h (NAN): Define if missing.
24721         * tests/test-math.c (main): Test it.
24722         * doc/posix-headers/math.texi (math.h): Document this.
24723         * lib/isnan.c (rpl_isnand): Use it.
24724         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24725         * tests/test-floorf1.c (NaN): Likewise.
24726         * tests/test-frexp.c (NaN): Likewise.
24727         * tests/test-isnand.c (NaN): Likewise.
24728         * tests/test-isnanf.c (NaN): Likewise.
24729         * tests/test-round1.c (NaN): Likewise.
24730         * tests/test-roundf1.c (NaN): Likewise.
24731         * tests/test-snprintf-posix.h (NaN): Likewise.
24732         * tests/test-sprintf-posix.h (NaN): Likewise.
24733         * tests/test-trunc1.c (NaN): Likewise.
24734         * tests/test-truncf1.c (NaN): Likewise.
24735         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24736         * tests/test-vasprintf-posix.c (NaN): Likewise.
24737         * modules/isnand-nolibm (Depends-on): Add math.
24738         * modules/isnanf-nolibm (Depends-on): Likewise.
24739         * modules/isnanl (Depends-on): Likewise.
24740         * modules/isnanl-nolibm (Depends-on): Likewise.
24741         * modules/snprintf-posix-tests (Depends-on): Likewise.
24742         * modules/sprintf-posix-tests (Depends-on): Likewise.
24743         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24744         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24745         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24746         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24747
24748 2008-03-31  Bruno Haible  <bruno@clisp.org>
24749
24750         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24751         * doc/posix-functions/strtod.texi: Likewise.
24752
24753 2008-03-31  Bruno Haible  <bruno@clisp.org>
24754
24755         * tests/test-strtod.c (main): Don't use C99 syntax.
24756
24757 2008-03-31  Bruno Haible  <bruno@clisp.org>
24758
24759         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24760         Reported by Eric Blake.
24761
24762 2008-03-31  Jim Meyering  <meyering@redhat.com>
24763
24764         Don't compare actual signbit return values.
24765         * tests/test-strtod.c (main): Rather, compare only their
24766         zero/non-zero nature.
24767
24768 2008-03-31  Eric Blake  <ebb9@byu.net>
24769
24770         More strtod documentation.
24771         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24772         failures as distinct bugs.
24773
24774 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24775
24776         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24777         Problem reported by Erik Benada in
24778         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24779
24780 2008-03-30  Bruno Haible  <bruno@clisp.org>
24781
24782         * tests/test-strtod.c: Add comments about which assertion fails on which
24783         platform.
24784         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24785
24786 2008-03-30  Eric Blake  <ebb9@byu.net>
24787
24788         Test signbit behavior on zeros.
24789         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24790         (test_signbitd, test_signbitl): Likewise.
24791
24792         More strtod touchups.
24793         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24794         sign of negative underflow, for now.  Use .5, not .1.
24795         * doc/posix-functions/strtod.texi (strtod): Mention these
24796         limitations.
24797         Reported by Jim Meyering.
24798
24799 2008-03-30  Bruno Haible  <bruno@clisp.org>
24800
24801         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24802         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24803
24804 2008-03-30  Bruno Haible  <bruno@clisp.org>
24805
24806         Avoid failure when attempting to return empty iconv results on some
24807         platforms.
24808         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24809         allocation, don't report ENOMEM when the resulting string is empty.
24810
24811 2008-03-30  Bruno Haible  <bruno@clisp.org>
24812
24813         Fix buffer overrun.
24814         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24815         Don't consider the width for tmp_length. Check count against tmp_length
24816         before doing the padding. Ensure enough allocation during padding.
24817
24818 2008-03-30  Eric Blake  <ebb9@byu.net>
24819
24820         strtod touchups.
24821         * lib/strtod.c (strtod): Avoid compiler warnings.
24822         Reported by Jim Meyering.
24823
24824 2008-03-30  Bruno Haible  <bruno@clisp.org>
24825
24826         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24827         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24828         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24829         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24830         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24831         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24832         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24833         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24834
24835         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24836         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24837         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24838         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24839         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24840         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24841         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24842         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24843
24844         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24845         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24846         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24847         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24848         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24849         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24850         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24851         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24852
24853         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24854         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24855
24856         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24857         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24858
24859         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24860         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24861
24862         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24863         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24864         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24865
24866         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24868         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24869
24870         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24871         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24872         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24873
24874         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24875         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24876         * modules/vasprintf (Depends-on): Add EOVERFLOW.
24877
24878         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24879         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24880         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24881         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24882         (Depends-on): Add EOVERFLOW.
24883         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24884         (Depends-on): Add EOVERFLOW.
24885         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24886         (Depends-on): Add EOVERFLOW.
24887         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24888         (Depends-on): Add EOVERFLOW.
24889         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24890         (Depends-on): Add EOVERFLOW.
24891         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24892         (Depends-on): Add EOVERFLOW.
24893         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24894         (Depends-on): Add EOVERFLOW.
24895         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24896         (Depends-on): Add EOVERFLOW.
24897
24898         * lib/sprintf.c (EOVERFLOW): Remove fallback.
24899         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24900         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24901
24902         * lib/snprintf.c (EOVERFLOW): Remove fallback.
24903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24904         * modules/snprintf (Depends-on): Add EOVERFLOW.
24905
24906         * lib/poll.c (EOVERFLOW): Remove fallback.
24907         * modules/poll (Depends-on): Add EOVERFLOW.
24908
24909         * lib/getugroups.c (EOVERFLOW): Remove fallback.
24910         * modules/getugroups (Depends-on): Add EOVERFLOW.
24911
24912         * lib/getdelim.c (EOVERFLOW): Remove fallback.
24913         * modules/getdelim (Depends-on): Add EOVERFLOW.
24914
24915         * lib/ftell.c (EOVERFLOW): Remove fallback.
24916         * modules/ftell (Depends-on): Add EOVERFLOW.
24917
24918         * lib/fprintf.c (EOVERFLOW): Remove fallback.
24919         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24920         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24921
24922         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24923
24924         * modules/EOVERFLOW-tests: New file.
24925         * tests/test-EOVERFLOW.c: New file.
24926
24927         * modules/EOVERFLOW: New file.
24928         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24929
24930 2008-03-30  Bruno Haible  <bruno@clisp.org>
24931
24932         Fix bug introduced on 2007-06-10.
24933         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24934         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24935
24936 2008-03-30  Bruno Haible  <bruno@clisp.org>
24937
24938         Improve freadseek's efficiency after ungetc.
24939         * lib/freadseek.c: Include freadahead.h.
24940         (freadptrinc): New function, extracted from freadseek.
24941         (freadseek): Use it in a loop. Use freadahead to determine the number
24942         of loop iterations.
24943         * modules/freadseek (Depends-on): Add freadahead.
24944         (configure.ac): Require AC_C_INLINE.
24945
24946 2008-03-30  Bruno Haible  <bruno@clisp.org>
24947
24948         * lib/freadseek.c (freadseek): Don't ignore the return value of
24949         freadptr.
24950
24951 2008-03-29  Eric Blake  <ebb9@byu.net>
24952
24953         Add hex float support.
24954         * modules/strtod (Depends-on): Add c-ctype.
24955         (Link): Mention POW_LIB.
24956         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
24957         whitespace between 'e' and exponent.
24958         * tests/test-strtod.c (main): Enable hex float tests.
24959         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24960         now provides.
24961
24962         Document various strtod bugs, with some fixes.
24963         * doc/posix-functions/strtod.texi (strtod): Document bugs with
24964         "-0x", "inf", "nan", and hex constants.
24965         * doc/posix-functions/atof.texi (atof): Likewise.
24966         * modules/stdlib (Makefile.am): Support strtod.
24967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24968         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24969         detect additional strtod bugs.
24970         * lib/stdlib.in.h (rpl_strtod): Add declarations.
24971         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
24972         bool where appropriate.  Parse 'inf' and 'nan'.
24973         * tests/test-strtod.c: New file.
24974         * modules/strtod (Depends-on): Add stdbool, stdlib.
24975         (configure.ac): Turn on module indicator.
24976         * modules/strtod-tests: New module.
24977
24978 2008-03-29  Eric Blake  <ebb9@byu.net>
24979
24980         Fix ftell on mingw.
24981         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24982         * modules/ftell-tests (Depends-on): Add binary-io.
24983         * modules/ftello-tests (Depends-on): Likewise.
24984         * tests/test-ftell.c (main): Enhance test to cover behavior after
24985         ungetc.  Enforce binary mode.
24986         * tests/test-ftello.c (main): Likewise.
24987
24988         Pass test-freadseek on cygwin.
24989         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24990         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24991         ungetc buffer.
24992
24993         * tests/test-fflush2.c (main): Fix typo.
24994
24995 2008-03-29  Bruno Haible  <bruno@clisp.org>
24996
24997         * tests/test-fflush2.c (main): Temporarily disable the contents of
24998         this test.
24999         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25000         Reported by Eric Blake.
25001
25002 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25003
25004         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25005         (GC_SHA224_DIGEST_SIZE): Add.
25006
25007         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25008         (gc_hash_digest_length): Likewise.
25009         (gc_hash_buffer): Likewise.
25010
25011 2008-03-25  Bruno Haible  <bruno@clisp.org>
25012
25013         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25014         detail which gettext release to use.
25015         Reported by Simon Josefsson.
25016
25017 2008-03-26  Jim Meyering  <meyering@redhat.com>
25018
25019         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25020         * modules/gnumakefile (clean-GNUmakefile): Also, use
25021         test ... && ... || : syntax rather than if-then ... fi.
25022
25023         gnumakefile: Don't double-quote-expand $(VPATH) value.
25024         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25025
25026 2008-03-24  Eric Blake  <ebb9@byu.net>
25027
25028         Alter GNUmakefile to install into top directory.
25029         * modules/maintainer-makefile: Split, and add dependency...
25030         * modules/gnumakefile: to this new module.
25031         * build-aux/GNUmakefile: Move...
25032         * top/GNUmakefile: ...here.
25033         * build-aux/maint.mk: Move...
25034         * top/maint.mk: ...here.
25035         * MODULES.html.sh (Support for maintaining...): Document new
25036         module.
25037
25038 2008-03-23  Bruno Haible  <bruno@clisp.org>
25039
25040         * gnulib-tool: New options --vc-files, --no-vc-files.
25041         (func_usage): Document them.
25042         (vc_files): New variable.
25043         (func_import): Consider vc_files.
25044         (func_create_testdir): Set vc_files to empty.
25045         Suggested by Jim Meyering and Karl Berry.
25046
25047 2008-03-23  Bruno Haible  <bruno@clisp.org>
25048
25049         Fix regex compilation error on HP-UX 11.
25050         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25051         * modules/regex (Files): Add m4/mbstate_t.m4.
25052         Reported by Ton Voon <ton.voon@altinity.com>.
25053
25054 2008-03-23  Bruno Haible  <bruno@clisp.org>
25055
25056         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25057
25058 2008-03-23  Eric Blake  <ebb9@byu.net>
25059             Bruno Haible  <bruno@clisp.org>
25060
25061         Install files from top/ in the destination directory.
25062         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25063         augmentation also for the files from top/.
25064         (func_import, func_create_testdir): Rewrite file names:
25065         top/filename -> filename.
25066
25067 2008-03-23  Bruno Haible  <bruno@clisp.org>
25068
25069         Tweak "gnulib --version" output.
25070         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25071
25072 2008-03-23  Bruno Haible  <bruno@clisp.org>
25073
25074         Tweak "gnulib --version" output.
25075         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25076         rather than contents of ChangeLog, when possible.
25077
25078 2008-03-21  Eric Blake  <ebb9@byu.net>
25079
25080         More --version tweaks.
25081         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25082         date of last ChangeLog entry.
25083
25084 2008-03-21  Jim Meyering  <meyering@redhat.com>
25085
25086         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25087
25088 2008-03-20  Eric Blake  <ebb9@byu.net>
25089
25090         VPATH fix.
25091         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25092
25093 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25094
25095         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25096         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25097
25098 2008-03-20  Eric Blake  <ebb9@byu.net>
25099
25100         Sync GNUmakefile with coreutils.
25101         * build-aux/GNUmakefile (have-Makefile): Rename...
25102         (_have-Makefile): ...to this, for namespace consideration.
25103         (GNUmakefile.cfg): Include, if present.
25104         (_autoreconf): Define a default.
25105         (_is-dist-target): New rule for rebuilds to pick up intra-release
25106         version.
25107         (maint-cfg.mk): Rename...
25108         (cfg.mk): ...to this.
25109
25110 2008-03-18  Jim Meyering  <meyering@redhat.com>
25111
25112         New script and module: mktempd
25113         * MODULES.html.sh (maint+release support): Add mktempd.
25114         * build-aux/mktempd: New file.
25115         * modules/mktempd: New file.
25116
25117 2008-03-15  Jim Meyering  <meyering@redhat.com>
25118
25119         Undo last change.
25120         * lib/sha1.c, lib/md5.c: 63 != ~63.
25121         Reported by Andreas Schwab.
25122
25123         sha1.c, md5.c: Hoist a redundant expression.
25124         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25125         "ctx->buflen" only once, before calling *_process_block.
25126         * lib/md5.c (md5_process_bytes): Likewise.
25127
25128 2008-03-14  Eric Blake  <ebb9@byu.net>
25129
25130         Bump copyright year in files generated by gnulib-tool.
25131         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25132         gnulib-tool, rather than hard-coding it.
25133
25134         Fix 'gnulib-tool --version' output to work with git.
25135         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25136         (startup): ...here.
25137         (func_version): Use it to invoke git-version-gen, rather than
25138         relying on CVS keyword expansion.  Modernize wording.
25139         (cvsdatestamp, last_checkin_date, version): Kill unused
25140         variables.
25141
25142 2008-03-12  Jim Meyering  <meyering@redhat.com>
25143
25144         Recognize optional cast of the argument to free.
25145         * build-aux/useless-if-before-free: Update regexps.
25146
25147         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25148
25149 2008-03-11  Bruno Haible  <bruno@clisp.org>
25150
25151         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25152         by a single package.
25153         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25154         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25155         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25156         Reported by Sam Steingold <sds@gnu.org>.
25157
25158 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25159
25160         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25161         repositories.
25162
25163 2008-03-11  Bruno Haible  <bruno@clisp.org>
25164
25165         Avoid conflicts between local macro definitions.
25166         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25167         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25168
25169 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25170             Bruno Haible  <bruno@clisp.org>
25171
25172         Make va_copy work with some version of xlc on AIX 5.1.
25173         * lib/stdarg.in.h: New file.
25174         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25175         On AIX, use a <stdarg.h> file substitute.
25176         * modules/stdarg (Files): Add lib/stdarg.in.h.
25177         (Depends-on): Add include_next.
25178         (Makefile.am): Build a stdarg.h substitute if requested.
25179         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25180
25181 2008-03-10  Bruno Haible  <bruno@clisp.org>
25182
25183         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25185         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25186
25187 2008-03-10  Bruno Haible  <bruno@clisp.org>
25188
25189         * modules/stdlib (Depends-on): Add include_next, remove
25190         absolute-header.
25191
25192 2008-03-09  Bruno Haible  <bruno@clisp.org>
25193
25194         * lib/freadahead.h (freadahead): Document more precisely.
25195         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25196         the sum of both buffer sizes.
25197         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25198         * NEWS: Document the change.
25199
25200 2008-03-09  Bruno Haible  <bruno@clisp.org>
25201
25202         Extend freadptr to return also the buffer size.
25203         * lib/freadptr.h (freadptr): Add sizep argument.
25204         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25205         (freadptr): Add sizep argument. Determine buffer size like freadahead
25206         does.
25207         * tests/test-freadptr.c: Don't include freadahead.h.
25208         (main): Adapt for new calling convention of freadptr.
25209         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25210         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25211         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25212         tests/test-freadptr2.sh.
25213         (Depends): Remove freadahead.
25214         (TESTS): Add test-freadptr2.sh.
25215         (check_PROGRAMS): Add test-freadptr2.
25216
25217 2008-03-09  Bruno Haible  <bruno@clisp.org>
25218
25219         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25220         Report and solution by Simon Josefsson.
25221
25222 2008-03-06  Bruno Haible  <bruno@clisp.org>
25223
25224         Make fflush after ungetc work on BSD platforms.
25225         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25226         * tests/test-fflush2.c: New file.
25227         * tests/test-fflush2.sh: New file.
25228         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25229         tests/test-fflush2.c.
25230         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25231         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25232
25233 2008-03-06  Eric Blake  <ebb9@byu.net>
25234
25235         Likewise for ftello.
25236         * modules/ftello (Dependencies): Add extensions.
25237         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25238
25239 2008-03-06  Bruno Haible  <bruno@clisp.org>
25240
25241         * modules/fseeko (Dependencies): Add extensions.
25242         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25243         Needed on glibc systems.
25244
25245 2008-03-06  Bruno Haible  <bruno@clisp.org>
25246
25247         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25248         email address.
25249         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25250
25251 2008-03-06  Bruno Haible  <bruno@clisp.org>
25252
25253         * users.txt: Add libgnupdf.
25254
25255 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25256
25257         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25258         (Header File Substitutes, Function Substitutes,
25259         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25260         (Build robot for gnulib): Fix typo.
25261
25262 2008-03-06  Bruno Haible  <bruno@clisp.org>
25263
25264         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25265         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25266
25267 2008-03-06  Bruno Haible  <bruno@clisp.org>
25268
25269         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25270         * doc/gnulib.texi: Include it.
25271
25272 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25273
25274         * modules/func (License): Change license to unlimited; there was
25275         no LGPL parts in the module anyway.
25276
25277 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25278
25279         * modules/__func__: Renamed to modules/func.
25280         * modules/__func__-tests: Renamed to modules/func-tests.
25281         * tests/test-__func__.c: Renamed to tests/test-func.c.
25282         * m4/__func__.m4: Renamed to m4/func.m4.
25283         * doc/gnulib.texi (__func__): Section renamed to func.
25284         Suggested by Eric Blake <ebb9@byu.net>.
25285
25286 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25287
25288         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25289         about __func__.  Make example self-contained.  Suggested by Eric
25290         Blake <ebb9@byu.net>.
25291
25292         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25293         Suggested by Eric Blake <ebb9@byu.net>.
25294
25295 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25296
25297         * modules/__func__: New file.
25298         * modules/__func__-tests: New file.
25299         * tests/test-__func__.c: New file.
25300         * m4/__func__.m4: New file.
25301         * doc/gnulib.texi (__func__): Document __func__ module.
25302
25303 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25304
25305         * modules/byteswap (License): Re-license as LGPLv2+.
25306
25307 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25308
25309         * doc/Makefile: Add pdf target.
25310
25311 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25312
25313         * modules/inline (License): Use 'unlimited', since there are only
25314         *.m4 files in this module.
25315
25316 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25317             Bruno Haible  <bruno@clisp.org>
25318
25319         Add support for HP C 7.1 on OpenVMS 8.3.
25320         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25321
25322 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25323
25324         Update VMS specifics.
25325         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25326
25327 2008-03-02  Jim Meyering  <meyering@redhat.com>
25328
25329         Remove the last dependency on the "free" module.
25330         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25331         Reported by Bob Proulx.
25332
25333         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25334
25335         Remove useless "if" tests before free.  Deprecate "free" module.
25336         * doc/posix-functions/free.texi: Mention that this
25337         module is no longer useful.
25338         * modules/free (Notice): Say this module is obsolete.
25339         * modules/readutmp (Depends-on): Remove free.
25340         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25341         * lib/putenv.c (putenv): Likewise.
25342         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25343         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25344         * tests/test-c-strcasestr.c (main): Likewise.
25345         * tests/test-c-strstr.c (main): Likewise.
25346         * tests/test-mbscasestr1.c (main): Likewise.
25347         * tests/test-mbscasestr2.c (main): Likewise.
25348         * tests/test-mbsstr1.c (main): Likewise.
25349         * tests/test-mbsstr2.c (main): Likewise.
25350         * tests/test-memmem.c (main): Likewise.
25351         * tests/test-strcasestr.c (main): Likewise.
25352         * tests/test-striconv.c (main): Likewise.
25353         * tests/test-striconveh.c (main): Likewise.
25354         * tests/test-striconveha.c (main): Likewise.
25355         * tests/test-strstr.c (main): Likewise.
25356
25357         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25358
25359         bootstrap: sync from coreutils again
25360         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25361
25362 2008-03-01  Jim Meyering  <meyering@redhat.com>
25363
25364         bootstrap: sync from coreutils
25365         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25366         also when the target doesn't exist.
25367
25368 2008-03-01  Eric Blake  <ebb9@byu.net>
25369
25370         Fix bugs in last patch.
25371         * lib/memchr2.c (memchr2): Fix typo.
25372         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25373         extension.
25374         Reported by Bruce Korb.
25375
25376         New module 'memchr2'.
25377         * modules/memchr2: New file.
25378         * modules/memchr2-tests: Likewise.
25379         * lib/memchr2.h: Likewise.
25380         * lib/memchr2.c: Likewise, based on memchr.c.
25381         * tests/test-memchr2.c: New test.
25382         * MODULES.html.sh (String handling): Add memchr2.
25383
25384 2008-02-29  Bruno Haible  <bruno@clisp.org>
25385
25386         * modules/freadseek-tests: New file.
25387         * tests/test-freadseek.sh: New file.
25388         * tests/test-freadseek.c: New file.
25389
25390         New module 'freadseek'.
25391         * modules/freadseek: New file.
25392         * lib/freadseek.h: New file.
25393         * lib/freadseek.c: New file.
25394         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25395
25396 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25397
25398         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25399         wydawca.
25400
25401         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25402         program_invocation_name and program_invocation_short_name are
25403         present.
25404
25405 2008-02-28  Bruno Haible  <bruno@clisp.org>
25406
25407         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25408         * tests/test-freadptr.sh: Also test non-seekable stdin.
25409
25410 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25411
25412         * build-aux/bootstrap (source_base, m4_base)
25413         (doc_base, tests_base): New variables.
25414         (gnulib_tool_options): Do not hardcode base directories, use
25415         the above variables instead.
25416
25417 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25418
25419         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25420
25421 2008-02-28  Bruno Haible  <bruno@clisp.org>
25422
25423         * modules/freadptr-tests: New file.
25424         * tests/test-freadptr.sh: New file.
25425         * tests/test-freadptr.c: New file.
25426
25427         New module 'freadptr'.
25428         * modules/freadptr: New file.
25429         * lib/freadptr.h: New file.
25430         * lib/freadptr.c: New file.
25431         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25432
25433 2008-02-26  Karl Berry  <karl@freefriends.org>
25434
25435         Sync from Libtool:
25436         * libltdl/argz.c (argz_add, argz_count): New functions.
25437         * libltdl/argz.in.h: Declare them.
25438         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25439
25440 2008-02-22  Bruno Haible  <bruno@clisp.org>
25441
25442         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25443         is a pointer type.  Needed for HP-UX 10.
25444         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25445         * doc/posix-functions/gmtime_r.texi: Likewise.
25446         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25447
25448 2008-02-24  Bruno Haible  <bruno@clisp.org>
25449
25450         * modules/environ-tests: New file.
25451         * tests/test-environ.c: New file.
25452
25453         New module 'environ'.
25454         * modules/environ: New file.
25455         * lib/unistd.in.h (environ): New declaration.
25456         * m4/environ.m4: New file.
25457         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25458         after use.
25459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25460         HAVE_DECL_ENVIRON.
25461         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25462         HAVE_DECL_ENVIRON.
25463         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25464         wrong claim that 'environ' is missing on some systems.
25465         * modules/execute (Depends-on): Add environ.
25466         * lib/execute.c (environ): Remove fallback declaration.
25467         * modules/pipe (Depends-on): Add environ.
25468         * lib/pipe.c (environ): Remove fallback declaration.
25469         * modules/setenv (Depends-on): Add environ.
25470         * lib/setenv.c (environ): Remove fallback declaration.
25471         * modules/unsetenv (Depends-on): Add environ.
25472         * lib/unsetenv.c (environ): Remove fallback declaration.
25473         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25474         m4/environ.m4.
25475         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25476         (gl_PREREQ_UNSETENV): Likewise.
25477
25478 2008-02-24  Bruno Haible  <bruno@clisp.org>
25479
25480         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25481
25482 2008-02-20  Bob Proulx  <bob@proulx.com>
25483
25484         Enable use of older two part flavor 'git describe'.
25485         * build-aux/git-version-gen: If using the older two part flavor of
25486         git version then recreate the third part now present in the
25487         newer three part flavor of git describe.
25488
25489 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25490
25491         * lib/fts.c (fts_build): Typo correction to comment.
25492
25493 2008-02-17  Bruno Haible  <bruno@clisp.org>
25494
25495         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25496         generating no-op conflicts.
25497
25498 2008-02-17  Bruno Haible  <bruno@clisp.org>
25499
25500         Speed up by 10%.
25501         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25502         result_entries, rather than an index-based loop.
25503
25504 2008-02-17  Bruno Haible  <bruno@clisp.org>
25505
25506         Speed up by 25%.
25507         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25508         'hashcode_cached'.
25509         (entry_create): New function.
25510         (entry_hashcode): Use the cached hashcode if possible.
25511         (read_changelog_file, try_split_merged_entry): Use entry_create.
25512
25513 2008-02-17  Bruno Haible  <bruno@clisp.org>
25514
25515         Speed up from O(n^2) to O(n) for long ChangeLog files.
25516         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25517         (read_changelog_file): Change implementation of entries_reversed list
25518         to rbtreehash.
25519         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25520
25521 2008-02-17  Bruno Haible  <bruno@clisp.org>
25522
25523         New option --split-merged-entry.
25524         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25525         (find_paragraph_end, try_split_merged_entry): New functions.
25526         (long_options): Add option --split-merged-entry.
25527         (usage): Document option --split-merged-entry.
25528         (main): Implement option --split-merged-entry.
25529         Reported by Eric Blake.
25530
25531 2008-02-17  Bruno Haible  <bruno@clisp.org>
25532
25533         * lib/git-merge-changelog.c: Include c-strstr.h.
25534         (main): Support the "git pull --rebase" situation.
25535         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25536         Reported by Eric Blake.
25537
25538 2008-02-16  Eric Blake  <ebb9@byu.net>
25539
25540         Avoid doubling \ in common case of "c-maybe" quoting style.
25541         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25542         eliding outer quotes.
25543         * lib/quotearg.h: Document this.
25544         * tests/test-quotearg.c (result_strings, inputs, results_g)
25545         (flag_results, locale_results): Test it by adding a new string to
25546         each test group.
25547         (compare_strings): Test new string.
25548
25549 2008-02-13  Eric Blake  <ebb9@byu.net>
25550
25551         Avoid trigraph quoting in default output.
25552         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25553         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25554         unless explicitly requested.
25555         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25556
25557 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25558
25559         Don't rely on signed integer overflowing to negative value.
25560         * lib/getugroups.c (getugroups): Include <limits.h>.
25561         Instead, compare against INT_MAX, and increment only if the test passes.
25562
25563 2008-02-13  Jim Meyering  <meyering@redhat.com>
25564         and Eric Blake  <ebb9@byu.net>
25565
25566         Avoid shadowing warning and compile errors on Linux.
25567         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25568         forwarding macros on Linux.
25569         (dcgettext): Define a stub, for Linux.
25570         (results_g, main): Avoid warnings.
25571
25572 2008-02-12  Eric Blake  <ebb9@byu.net>
25573
25574         Silence warning in last patch.
25575         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25576
25577         Quotearg part 4: add tests, fix c-maybe colon quoting.
25578         * lib/quotearg.h: Improve documentation.
25579         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25580         escapes when adding outer quotes.  When quoting trigraphs, use
25581         valid C notation.  When quoting NUL, omit extra characters if next
25582         character is not digit.  Alter prototype.
25583         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25584         callers.
25585         * modules/quotearg-tests: New module.
25586         * tests/test-quotearg.c: New test.
25587
25588 2008-02-07  Eric Blake  <ebb9@byu.net>
25589
25590         Quotearg part 3: add flag to control outer quote elision.
25591         * lib/quotearg.h (c_maybe_quoting_style): New style.
25592         (enum quoting_flags): Better documentation of flags.
25593         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25594         c-maybe style.
25595         (quotearg_buffer_restyled): Handle new flag to elide outer
25596         quotes.
25597
25598         Quotearg part 2: add flag that can control NUL elision.
25599         * lib/quotearg.h (set_quoting_flags): New prototype.
25600         * lib/quotearg.c (struct quoting_options): Add flag field.
25601         (set_quoting_flags): New function.
25602         (quotearg_buffer_restyled): Add flags parameter.
25603         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25604         (quotearg_n_options): Set the flag, since length cannot be
25605         returned.
25606         (quoting_options_from_style): Default flags correctly.
25607
25608         Quotearg part 1: more wrappers, restore quotearg_char state.
25609         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25610         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25611         (quotearg_colon_mem): New wrappers.
25612         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25613         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25614         functions.
25615         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25616         (quotearg_colon_mem): New functions.
25617
25618 2008-02-11  Bruno Haible  <bruno@clisp.org>
25619
25620         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25621         library in the current directory: it does not work with parallel make.
25622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25623
25624 2008-02-11  Bruno Haible  <bruno@clisp.org>
25625
25626         * .gitattributes: New file.
25627
25628 2008-02-11  Jim Meyering  <meyering@redhat.com>
25629
25630         useless-if-before-free: Fix reversed exit values.
25631         * build-aux/useless-if-before-free: Use correct values
25632         for EXIT_MATCH and EXIT_NO_MATCH.
25633
25634         * build-aux/useless-if-before-free: Close stdout carefully.
25635
25636 2008-02-10  Bruno Haible  <bruno@clisp.org>
25637
25638         New module 'git-merge-changelog'.
25639         * modules/git-merge-changelog: New file.
25640         * lib/git-merge-changelog.c: New file.
25641
25642 2008-02-10  Jim Meyering  <meyering@redhat.com>
25643
25644         useless-if-before-free: New option: --list (-l).
25645
25646         useless-if-before-free: Don't exit immediately upon open failure.
25647         * build-aux/useless-if-before-free: Exit 2 for errors.
25648         Upon failure to open a file, don't exit immediately.
25649         Rather, just warn and continue with any remaining files.
25650
25651 2008-02-10  Bruno Haible  <bruno@clisp.org>
25652
25653         New abstract list operation 'node_set_value'.
25654         * lib/gl_list.h (gl_list_node_set_value): New function.
25655         (struct gl_list_implementation): New field node_set_value.
25656         * lib/gl_list.c (gl_list_node_set_value): New function.
25657         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25658         (gl_array_list_implementation): Update.
25659         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25660         (gl_carray_list_implementation): Update.
25661         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25662         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25663         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25664         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25665         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25666         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25667         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25668         Update.
25669         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25670         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25671         (gl_sublist_list_implementation): Update.
25672
25673 2008-02-10  Bruno Haible  <bruno@clisp.org>
25674
25675         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25676         Needed when ELEMENT is #defined to 'some_type *'.
25677
25678 2008-02-10  Jim Meyering  <meyering@redhat.com>
25679
25680         New script and module: useless-if-before-free
25681         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25682         * build-aux/useless-if-before-free: New file.
25683         * modules/useless-if-before-free: New file.
25684
25685         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25686
25687         xstrtol_error: Fix typo.
25688         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25689         s/exit_failure/exit_status/.
25690
25691 2008-02-09  Jim Meyering  <meyering@redhat.com>
25692
25693         New script and module: gitlog-to-changelog
25694         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25695         * modules/gitlog-to-changelog: New file.
25696         * build-aux/gitlog-to-changelog: New file.
25697
25698 2008-02-08  Jim Meyering  <meyering@redhat.com>
25699
25700         Avoid two "parameter unused" warnings.
25701         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25702         Mark "st" as used.
25703
25704         Use "git COMMAND", not "git-COMMAND".
25705         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25706         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25707         * build-aux/git-version-gen: Use "git status", not "git-status".
25708
25709 2008-02-07  Bruno Haible  <bruno@clisp.org>
25710
25711         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25712         Avoids a crash on Windows Vista.
25713         Reported by Adam Strzelecki <ono@java.pl> via
25714         Simon Josefsson <simon@josefsson.org>.
25715
25716 2008-02-06  Bruno Haible  <bruno@clisp.org>
25717
25718         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25719         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25720         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25722         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25723         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25724         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25725         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25726         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25727         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25733         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25734         left-adjust flag.
25735         * tests/test-snprintf-posix.h (test_function): Likewise.
25736         * tests/test-sprintf-posix.h (test_function): Likewise.
25737         * tests/test-vasprintf-posix.c (test_function): Likewise.
25738         * doc/posix-functions/fprintf.texi: Update.
25739         * doc/posix-functions/printf.texi: Update.
25740         * doc/posix-functions/snprintf.texi: Update.
25741         * doc/posix-functions/sprintf.texi: Update.
25742         * doc/posix-functions/vfprintf.texi: Update.
25743         * doc/posix-functions/vprintf.texi: Update.
25744         * doc/posix-functions/vsnprintf.texi: Update.
25745         * doc/posix-functions/vsprintf.texi: Update.
25746         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25747
25748 2008-02-06  Bruno Haible  <bruno@clisp.org>
25749
25750         Fix bug introduced on 2008-01-26.
25751         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25752
25753 2008-02-06  Bruno Haible  <bruno@clisp.org>
25754
25755         Fix bug introduced on 2007-06-10.
25756         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25757         !NEED_PRINTF_FLAG_ZERO.
25758
25759 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25760
25761         getloadavg: use libperfstat on AIX5
25762         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25763
25764 2008-02-03  Bruno Haible  <bruno@clisp.org>
25765
25766         * lib/diffseq.h: Add comments about required #includes.
25767         Reported by Michael Biggs <gnulib@doubleplum.net>.
25768
25769 2008-02-01  Bruno Haible  <bruno@clisp.org>
25770
25771         * users.txt: Add gnuit.
25772
25773 2008-01-31  Bruno Haible  <bruno@clisp.org>
25774
25775         * lib/md4.c (set_uint32): Mark as inline.
25776         * lib/md5.c (set_uint32): Likewise.
25777         * lib/sha1.c (set_uint32): Likewise.
25778         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25779         * m4/md5.m4 (gl_MD5): Likewise.
25780         * m4/sha1.m4 (gl_SHA1): Likewise.
25781
25782 2008-01-31  Jim Meyering  <meyering@redhat.com>
25783
25784         Use "sizeof VAR", rather than a literal "4".
25785         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25786         * lib/md4.c (md4_read_ctx): Likewise.
25787         * lib/sha1.c (sha1_read_ctx): Likewise.
25788
25789 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25790
25791         * tests/test-sha1.c: New file, based on test-md5.c.
25792
25793         * modules/crypto/sha1-tests: New file.
25794
25795 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25796
25797         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25798
25799 2008-01-31  Jim Meyering  <meyering@redhat.com>
25800
25801         Prefer "sizeof v" over the equivalent "4".
25802         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25803         * lib/md5.c (set_uint32): Likewise.
25804         * lib/sha1.c (set_uint32): Likewise.
25805
25806 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25807
25808         * lib/sha1.c (set_uint32): Mark function as static.
25809
25810 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25811
25812         md2: clarify comments to say that alignment is not required.
25813         * lib/md2.h: Remove warning about alignment in comment.
25814         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25815         never been required.
25816
25817 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25818
25819         md4: adapt alignment constraint fix from sha1.
25820         * lib/md4.c (set_uint32): New function, from sha1.c
25821         (md4_read_ctx): Use it.
25822         (md4_finish_ctx): Doc fix.
25823         * lib/md4.h: Doc fix.
25824
25825 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25826
25827         md5: adapt alignment constraint fix from sha1.
25828         * lib/md5.c (set_uint32): New function, from sha1.c
25829         (md5_read_ctx): Use it.
25830         (md5_finish_ctx): Doc fix.
25831         * lib/md5.h: Doc fix.
25832
25833 2008-01-30  Peter Palfrader  <weasel@debian.org>
25834
25835         sha1: remove the result buffer alignment constraint
25836         * lib/sha1.c (set_uint32): New function.
25837         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25838         constraint.
25839         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25840         * lib/sha1.h: Likewise.
25841
25842 2008-01-30  Andreas Schwab  <schwab@suse.de>
25843             Bruno Haible  <bruno@clisp.org>
25844
25845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25846         correct definition of LDBL_MIN_EXP.
25847
25848 2008-01-30  Karl Berry  <karl@gnu.org>
25849
25850         * config/srclist-update: try to preserve x bit on updates.
25851         * config/srclistvars.sh: update for karl.
25852
25853 2008-01-29  Jim Meyering  <meyering@redhat.com>
25854
25855         vasnprintf.c: Avoid warning about unused label
25856         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25857         "overflow" label definition and associated code with the
25858         same cpp condition that guards the sole use of that label.
25859
25860 2008-01-26  Bruno Haible  <bruno@clisp.org>
25861
25862         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25863         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25864         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25865         * lib/isnanl-nolibm.h (isnanl): Likewise.
25866         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25867
25868 2008-01-26  Bruno Haible  <bruno@clisp.org>
25869
25870         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25871         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25872
25873 2008-01-26  Bruno Haible  <bruno@clisp.org>
25874
25875         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25876         GCC >= 4.0 built-in.
25877         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25878
25879 2008-01-26  Bruno Haible  <bruno@clisp.org>
25880
25881         Rename isnan, applicable to 'double' only, to isnand.
25882         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25883         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25884         (configure.ac): Update.
25885         (Include): Replace "isnan.h" with "isnand.h".
25886         * m4/isnand.m4: Renamed from m4/isnan.m4.
25887         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25888         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25889         instead of isnan.c.
25890         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25891         instead of HAVE_ISNAN_IN_LIBC.
25892         (isnand): Renamed from isnan.
25893         * lib/isnand.c: New file.
25894         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25895         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25896         (Makefile.am): Update.
25897         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25898         Include isnand.h instead of isnan.h.
25899         (main): Test isnand instead of isnan.
25900         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25901         isnan-nolibm.
25902         * modules/frexp (Depends-on): Likewise.
25903         * modules/frexp-tests (Depends-on): Likewise.
25904         * modules/frexp-nolibm (Depends-on): Likewise.
25905         * modules/frexp-nolibm-tests (Depends-on): Likewise.
25906         * modules/isfinite (Depends-on): Likewise.
25907         * modules/round-tests (Depends-on): Likewise.
25908         * modules/signbit (Depends-on): Likewise.
25909         * modules/signbit-tests (Depends-on): Likewise.
25910         * modules/snprintf-posix (Depends-on): Likewise.
25911         * modules/sprintf-posix (Depends-on): Likewise.
25912         * modules/trunc-tests (Depends-on): Likewise.
25913         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25914         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25915         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25916         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25917         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25918         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25919         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25920         * modules/vasnprintf-posix (Depends-on): Likewise.
25921         * modules/vasprintf-posix (Depends-on): Likewise.
25922         * modules/vfprintf-posix (Depends-on): Likewise.
25923         * modules/vsnprintf-posix (Depends-on): Likewise.
25924         * modules/vsprintf-posix (Depends-on): Likewise.
25925         * lib/frexp.c: Include isnand.h instead of isnan.h.
25926         (ISNAN): Set to isnand instead of isnan.
25927         * lib/isfinite.c: Include isnand.h instead of isnan.h.
25928         (gl_isfinited): Use isnand instead of isnan.
25929         * lib/signbitd.c: Include isnand.h instead of isnan.h.
25930         (gl_signbitd): Use isnand instead of isnan.
25931         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25932         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25933         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25934         (main): Use isnand instead of isnan.
25935         * tests/test-round1.c: Include isnand.h.
25936         (main): Use isnand instead of isnan.
25937         * tests/test-round2.c: Include isnand.h instead of isnan.h.
25938         (ISNAN): Set to isnand instead of isnan.
25939         * tests/test-trunc1.c: Include isnand.h.
25940         (main): Use isnand instead of isnan.
25941         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25942         (equal): Use isnand instead of isnan.
25943         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25944         isnand-nolibm.
25945         * NEWS: Mention the change.
25946
25947 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25948             Bruno Haible  <bruno@clisp.org>
25949
25950         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25951         the GCC builtins for signbits are present and set
25952         REPLACE_SIGNBIT_USING_GCC if so.
25953         * lib/math.in.h (signbit): Define using GCC builtins if
25954         REPLACE_SIGNBIT_USING_GCC is set.
25955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25956         REPLACE_SIGNBIT_USING_GCC.
25957         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25958
25959 2008-01-25  Jim Meyering  <meyering@redhat.com>
25960
25961         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
25962         * lib/poll.c: Include <config.h>, not "config.h".
25963         * tests/test-getaddrinfo.c: Likewise.
25964
25965 2008-01-25  Simon Josefsson  <simon@josefsson.org>
25966
25967         * modules/sockets-tests: New file.
25968
25969 2008-01-24  Simon Josefsson  <simon@josefsson.org>
25970
25971         * modules/sockets: New module, can be used to call WSA_Startup and
25972         WSA_Cleanup when needed.
25973
25974         * lib/sockets.h, lib/sockets.c: New files.
25975
25976         * m4/sockets.m4: New file.
25977
25978         * tests/test-sockets.c: New file.
25979
25980 2008-01-19  Bruno Haible  <bruno@clisp.org>
25981
25982         * doc/posix-headers: Renamed from doc/headers.
25983         * doc/posix-functions: Renamed from doc/functions.
25984         * doc/gnulib.texi: Update.
25985
25986 2008-01-19  Bruno Haible  <bruno@clisp.org>
25987
25988         * doc/glibc-functions/strcasestr.texi: Include contents of
25989         doc/functions/strcasestr.texi, fixing the list of platforms.
25990         * doc/functions/strcasestr.texi: Remove file.
25991
25992 2008-01-19  Bruno Haible  <bruno@clisp.org>
25993
25994         * doc/glibc-functions/memmem.texi: Include contents of
25995         doc/functions/memmem.texi.
25996         * doc/functions/memmem.texi: Remove file.
25997
25998 2008-01-18  Bruno Haible  <bruno@clisp.org>
25999
26000         * doc/glibc-functions/*.texi: New files.
26001         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26002         to use the new files.
26003
26004 2008-01-17  Bruno Haible  <bruno@clisp.org>
26005
26006         * tests/test-gethostname.c (main): Fix printf statement.
26007
26008 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26009
26010         * modules/gethostname-tests: New file.
26011
26012         * tests/test-gethostname.c: New file.
26013
26014 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26015
26016         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26017         used by the UNAME case.  Reported by Bruno Haible
26018         <bruno@clisp.org>.
26019
26020 2008-01-17  Eric Blake  <ebb9@byu.net>
26021
26022         Convert c-strcasestr to be more efficient.
26023         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26024         (Depends-on): Add c-strcase, remove malloca, strnlen.
26025         * tests/test-c-strcasestr.c (main): Enhance test.
26026         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26027
26028 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26029
26030         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26031         Use it in creating po/Makevars.
26032
26033 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26034
26035         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26036         Applications that requires it should initialize libgcrypt
26037         manually.
26038
26039 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26040
26041         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26042
26043 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26044
26045         Fix problem with getdate on mingw32 reported by Simon Josefsson
26046         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26047         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26048         tzname", when deciding whether to declare tzname.
26049         * lib/strftime.c (tzname): Likewise.
26050
26051 2008-01-15  Bruno Haible  <bruno@clisp.org>
26052
26053         Work around a MacOS X 10.5 bug in frexpl().
26054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26055         * doc/functions/frexpl.texi: Document the bug.
26056         Reported by Elias Pipping <pipping@gentoo.org>.
26057
26058 2008-01-14  Eric Blake  <ebb9@byu.net>
26059
26060         Touch up previous patch.
26061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26062         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26063
26064         Convert strcasestr module to use Two-Way algorithm.
26065         * modules/strcasestr-simple: New module, based on the old
26066         strcasestr, but with Two-Way rather than KMP.
26067         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26068         * lib/string.in.h (rpl_strcasestr): Declare.
26069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26070         performance.
26071         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26072         * modules/string (Makefile.am): Support strcasestr.
26073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26074         * modules/strcasestr-tests (Depends-on): Check for alarm.
26075         * tests/test-strcasestr.c: Augment test.
26076         * lib/str-two-way.h: Clean up stray macro.
26077         * NEWS: Document new module.
26078         * MODULES.html.sh (string handling): Likewise.
26079         * doc/functions/strcasestr.texi: New file.
26080         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26081         here, since it is not a POSIX function.
26082
26083 2008-01-14  Colin Watson  <cjwatson@debian.org>
26084             Bruno Haible  <bruno@clisp.org>
26085
26086         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26087         works fine; if not, set REPLACE_STRSIGNAL.
26088         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26089         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26090         REPLACE_STRSIGNAL.
26091         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26092         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26093         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26094
26095 2008-01-14  Bruno Haible  <bruno@clisp.org>
26096
26097         * modules/strsignal (Include): Change to <string.h>.
26098
26099 2008-01-14  Colin Watson  <cjwatson@debian.org>
26100
26101         * modules/argp (Notice): Add a notice recommending to change
26102         XGETTEXT_OPTIONS.
26103         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26104
26105 2008-01-13  Colin Watson  <cjwatson@debian.org>
26106
26107         * modules/strsignal-tests: New file.
26108         * tests/test-strsignal.c: New file.
26109
26110         * lib/strsignal.c: New file, from glibc with modifications.
26111         * lib/siglist.h: New file, from glibc with modifications.
26112         * lib/string.in.h (strsignal): New declaration.
26113         * m4/strsignal.m4: New file.
26114         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26115         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26116         * modules/strsignal: New file.
26117         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26118         HAVE_DECL_STRSIGNAL.
26119
26120 2008-01-13  Bruno Haible  <bruno@clisp.org>
26121
26122         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26123         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26124         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26125         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26126
26127 2008-01-13  Bruno Haible  <bruno@clisp.org>
26128
26129         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26130         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26131         * lib/argp.h (__attribute__): Likewise.
26132         * lib/c-stack.c (__attribute__): Likewise.
26133         * lib/error.h (__attribute__): Likewise.
26134         * lib/fts.c (__attribute__): Likewise.
26135         * lib/openat.h (__attribute__): Likewise.
26136         * lib/stdio.in.h (__attribute__): Likewise.
26137         * lib/string.in.h (__attribute__): Likewise.
26138         * lib/utimens.c (__attribute__): Likewise.
26139         * lib/vasnprintf.h (__attribute__): Likewise.
26140         * lib/xalloc.h (__attribute__): Likewise.
26141         * lib/xprintf.h (__attribute__): Likewise.
26142         * lib/xstrtol.h (__attribute__): Likewise.
26143         * lib/xvasprintf.h (__attribute__): Likewise.
26144
26145 2008-01-12  Bruno Haible  <bruno@clisp.org>
26146
26147         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26148         * doc/glibc-headers/a.out.texi: New file.
26149         * doc/glibc-headers/aliases.texi: New file.
26150         * doc/glibc-headers/alloca.texi: New file.
26151         * doc/glibc-headers/ar.texi: New file.
26152         * doc/glibc-headers/argp.texi: New file.
26153         * doc/glibc-headers/argz.texi: New file.
26154         * doc/glibc-headers/byteswap.texi: New file.
26155         * doc/glibc-headers/crypt.texi: New file.
26156         * doc/glibc-headers/endian.texi: New file.
26157         * doc/glibc-headers/envz.texi: New file.
26158         * doc/glibc-headers/err.texi: New file.
26159         * doc/glibc-headers/error.texi: New file.
26160         * doc/glibc-headers/execinfo.texi: New file.
26161         * doc/glibc-headers/fpu_control.texi: New file.
26162         * doc/glibc-headers/fstab.texi: New file.
26163         * doc/glibc-headers/fts.texi: New file.
26164         * doc/glibc-headers/getopt.texi: New file.
26165         * doc/glibc-headers/ieee754.texi: New file.
26166         * doc/glibc-headers/ifaddrs.texi: New file.
26167         * doc/glibc-headers/libintl.texi: New file.
26168         * doc/glibc-headers/mcheck.texi: New file.
26169         * doc/glibc-headers/mntent.texi: New file.
26170         * doc/glibc-headers/obstack.texi: New file.
26171         * doc/glibc-headers/paths.texi: New file.
26172         * doc/glibc-headers/printf.texi: New file.
26173         * doc/glibc-headers/pty.texi: New file.
26174         * doc/glibc-headers/resolv.texi: New file.
26175         * doc/glibc-headers/shadow.texi: New file.
26176         * doc/glibc-headers/sysexits.texi: New file.
26177         * doc/glibc-headers/ttyent.texi: New file.
26178
26179 2008-01-12  Jim Meyering  <meyering@redhat.com>
26180
26181         announce-gen: emit Gnulib's git-based version string.
26182         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26183         New option --gnulib-version=V, where V is expected to be
26184         the output of running git describe in the gnulib directory.
26185         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26186         not useful, and plan to stop publishing an xdelta file with each
26187         coreutils release.
26188
26189         * build-aux/announce-gen: Also check for lzma-compressed files.
26190
26191 2008-01-11  Bruno Haible  <bruno@clisp.org>
26192
26193         * tests/test-memmem.c (main): Increase maximum allowed time.
26194         * tests/test-strstr.c (main): Likewise.
26195
26196 2008-01-11  Bruno Haible  <bruno@clisp.org>
26197
26198         * doc/functions/memmem.texi: Add more precisions about platforms.
26199         * doc/functions/strstr.texi: Likewise.
26200
26201 2008-01-10  Eric Blake  <ebb9@byu.net>
26202
26203         * m4/strstr.m4: Delete cruft from copy-n-paste.
26204         Reported by Bruno Haible.
26205
26206 2008-01-10  Bruno Haible  <bruno@clisp.org>
26207
26208         Make c-strstr rely on strstr.
26209         * lib/c-strstr.c: Don't include str-kmp.h.
26210         (c_strstr): Define in terms of strstr.
26211         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26212         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26213
26214 2008-01-10  Bruno Haible  <bruno@clisp.org>
26215
26216         * doc/gnulib.texi (String Functions in C Locale): New section.
26217         * doc/c-ctype.texi: New file.
26218         * doc/c-strcase.texi: New file.
26219         * doc/c-strcaseeq.texi: New file.
26220         * doc/c-strcasestr.texi: New file.
26221         * doc/c-strstr.texi: New file.
26222         * doc/c-strtod.texi: New file.
26223         * doc/c-strtold.texi: New file.
26224
26225 2008-01-10  Eric Blake  <ebb9@byu.net>
26226
26227         * lib/relocatable.h: Fix a comment.
26228
26229 2008-01-10  Eric Blake  <ebb9@byu.net>
26230
26231         Share two-way algorithm.
26232         * lib/str-two-way.h: New file, merged from...
26233         * lib/memmem.c: ...here...
26234         * lib/strstr.c: ...and here.
26235         * modules/memmem (Files): Use it.
26236         * modules/strstr (Files): Likewise.
26237
26238         Avoid quadratic strstr implementations.
26239         * lib/strstr.c: New file.
26240         * m4/strstr.m4: Likewise.
26241         * modules/strstr: Likewise.
26242         * modules/strstr-tests: Likewise.
26243         * tests/test-strstr.c: Likewise.
26244         * lib/string.in.h (rpl_strstr): Declare.
26245         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26247         * modules/string (Makefile.am): Likewise.
26248         * MODULES.html.sh (string handling): Mention new module.
26249         * doc/functions/strstr.texi (strstr): Document the bug.
26250
26251 2008-01-10  Bruno Haible  <bruno@clisp.org>
26252
26253         * lib/relocatable.h (relocate): State whether result is freshly
26254         allocated or not.
26255         * lib/relocatable.c (relocate): Return a freshly allocated string
26256         instead of a pointer to a privately held string.
26257         Reported by Sylvain Beucler <beuc@gnu.org>.
26258
26259 2008-01-10  Colin Watson  <cjwatson@debian.org>
26260
26261         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26262         s/S_ISNLK/S_ISLNK/.
26263
26264 2008-01-09  Bruno Haible  <bruno@clisp.org>
26265
26266         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26267         and other files.
26268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26269         if it's only a guess.
26270         * modules/memmem: Simplify by depending on memmem-simple.
26271
26272 2008-01-09  Bruno Haible  <bruno@clisp.org>
26273
26274         Work around OpenBSD 4.0 tdelete() bug.
26275         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26276         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26277         macros and don't redefine the enum values.
26278         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26279         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26280         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26281
26282 2008-01-09  Bruno Haible  <bruno@clisp.org>
26283
26284         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26285         (main): Don't perform the tests if setlocale did not install a UTF-8
26286         locale. Needed on OpenBSD 4.0.
26287         * modules/wcwidth-tests (Depends-on): Add localcharset.
26288
26289 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26290
26291         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26292         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26293         * NEWS: announce this.
26294         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26295
26296 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26297         and Eric Blake  <ebb9@byu.net>
26298
26299         Add memmem-simple module.
26300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26301         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26302         * modules/memmem-simple: New file.
26303         * modules/memmem (Description): Tweak.
26304         * MODULES.html.sh (string handling): Mention new module.
26305         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26306         addressed by memmem-simple.
26307         * NEWS: Document the difference.
26308
26309 2008-01-09  Eric Blake  <ebb9@byu.net>
26310
26311         Give gcc some memmem optimization hints.
26312         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26313         (strcasestr): Declare as pure.
26314         * modules/memmem (Maintainer): Claim my implementation.
26315
26316 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26317
26318         Support AIX 6.1 and higher.
26319         * build-aux/config.libpath: Likewise.
26320         * build-aux/config.rpath: Likewise.
26321
26322 2008-01-08  Jim Meyering  <meyering@redhat.com>
26323             Bruno Haible  <bruno@clisp.org>
26324
26325         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26326         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26327         Reported by Peter Fales in
26328         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26329
26330 2008-01-08  Bruno Haible  <bruno@clisp.org>
26331
26332         * modules/unictype/category-of (Depends-on): Add
26333         unictype/category-none.
26334         * modules/unictype/category-and-tests (Depends-on): Add
26335         unictype/category-{L,N,Lu,Nd}.
26336         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26337         * modules/unictype/category-or-tests (Depends-on): Add
26338         unictype/category-{L,N}.
26339         * modules/unictype/category-name-tests (Depends-on): Add
26340         unictype/category-{Z,Nl}.
26341         Reported by Simon Josefsson.
26342
26343 2008-01-08  Bruno Haible  <bruno@clisp.org>
26344
26345         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26346         convention better.
26347         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26348         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26349         Reported by Peter Miller <millerp@canb.auug.org.au>.
26350
26351 2008-01-08  Eric Blake  <ebb9@byu.net>
26352
26353         Rewrite memmem to guarantee linear complexity without malloc.
26354         * lib/memmem.c (memmem): Use Two-Way rather than
26355         Knuth-Morris-Pratt, to allow O(1) space usage.
26356         (critical_factorization, two_way_short_needle)
26357         (two_way_long_needle): New functions.
26358         (knuth_morris_pratt): Delete.
26359         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26360         Add stdint.
26361         * tests/test-memmem.c (main): Add tests for periodic needle and
26362         sublinear performance.
26363         * doc/functions/memmem.texi (memmem): Document other deficiencies
26364         in cygwin and older glibc.
26365
26366 2008-01-08  Bruno Haible  <bruno@clisp.org>
26367
26368         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26369         augmentation.
26370
26371 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26372
26373         Add a configure time option: --disable-acl.
26374         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26375         AC_ARG_ENABLE(acl).
26376
26377 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26378
26379         * tests/test-localename.c: Don't include obsolete "setenv.h".
26380
26381         * modules/localename-tests (Depends-on): Need unsetenv.
26382
26383 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26384
26385         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26386
26387 2008-01-06  Colin Watson  <cjwatson@debian.org>
26388
26389         * users.txt: Add man-db.
26390
26391 2008-01-07  Bruno Haible  <bruno@clisp.org>
26392
26393         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26394         previous section name.
26395
26396 2008-01-07  Bruno Haible  <bruno@clisp.org>
26397
26398         * lib/progname.c (set_program_name): Don't strip off a leading
26399         "lt-" prefix outside a .libs directory.
26400         Suggested by Paul Eggert.
26401
26402 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26403             Bruno Haible  <bruno@clisp.org>
26404
26405         Improve memory cleanup in 'relocatable' module.
26406         * lib/relocatable.h (compute_curr_prefix): Change return type to
26407         'char *'.
26408         * lib/relocatable.c (compute_curr_prefix): Change return type to
26409         'char *'. Free curr_installdir after use.
26410         (relocate): Free curr_prefix_better after use.
26411         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26412
26413 2008-01-01  Bruno Haible  <bruno@clisp.org>
26414
26415         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26416         failure on older glibc systems.
26417         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26418
26419 2008-01-05  Eric Blake  <ebb9@byu.net>
26420
26421         Avoid quadratic system memmem.
26422         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26423         Reported by Ralf Wildenhues.
26424
26425         Fix memmem test for mingw.
26426         * modules/memmem-tests (configure.ac): Check for alarm.
26427         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26428         it.
26429         * doc/functions/memmem.texi: New file.
26430         * doc/gnulib.texi (Function Substitutes): Add memmem.
26431         Reported by Bruno Haible.
26432
26433 2008-01-04  Bruno Haible  <bruno@clisp.org>
26434
26435         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26436         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26437         gl_HEADER_STRING_H_DEFAULTS.
26438
26439 2008-01-04  Eric Blake  <ebb9@byu.net>
26440
26441         Shorten duration of memmem test.
26442         * tests/test-memmem.c (main): Use alarm to declare failure if test
26443         is taking too long.
26444         Reported by Ralf Wildenhues.
26445
26446 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26447
26448         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26449         string, needed by strerror.
26450
26451 2008-01-03  Colin Watson  <cjwatson@debian.org>
26452             Bruno Haible  <bruno@clisp.org>
26453
26454         * doc/gnulib-tool.texi (Localization): New section.
26455
26456 2008-01-02  Bruno Haible  <bruno@clisp.org>
26457
26458         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26459         variables to 'unsigned char *' type.
26460         Reported by Paul Eggert.
26461
26462 2008-01-02  Jim Meyering  <jim@meyering.net>
26463
26464         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26465
26466 2007-12-31  Jim Meyering  <jim@meyering.net>
26467
26468         Avoid use of private FTS type name.
26469         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26470
26471 2007-12-30  Karl Berry  <karl@gnu.org>
26472
26473         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26474         work around defect in Texinfo and/or the standalone Info browser.
26475
26476 2007-12-30  Bruno Haible  <bruno@clisp.org>
26477
26478         Unify 5 copies of the KMP code.
26479         * lib/str-kmp.h: New file.
26480         * lib/c-strcasestr.c: Include str-kmp.h.
26481         (knuth_morris_pratt): Remove function.
26482         (c_strcasestr): Update.
26483         * lib/c-strstr.c: Include str-kmp.h.
26484         (knuth_morris_pratt): Remove function.
26485         (c_strcasestr): Update.
26486         * lib/mbscasestr.c: Include str-kmp.h.
26487         (knuth_morris_pratt_unibyte): Remove function.
26488         * lib/mbsstr.c: Include str-kmp.h.
26489         (knuth_morris_pratt_unibyte): Remove function.
26490         * lib/strcasestr.c: Include str-kmp.h.
26491         (knuth_morris_pratt): Remove function.
26492         (strcasestr): Update.
26493         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26494         * modules/c-strstr (Files): Likewise.
26495         * modules/mbscasestr (Files): Likewise.
26496         * modules/mbsstr (Files): Likewise.
26497         * modules/strcasestr (Files): Likewise.
26498         Suggested by Paul Eggert.
26499
26500 2007-12-30  Bruno Haible  <bruno@clisp.org>
26501
26502         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26503         defined.
26504
26505 2007-12-30  Bruno Haible  <bruno@clisp.org>
26506
26507         * lib/xmalloca.h: Include xalloc.h.
26508         (xnmalloca): New macro.
26509
26510 2007-12-30  Bruno Haible  <bruno@clisp.org>
26511
26512         * lib/malloca.h (nmalloca): New macro.
26513         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26514         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26515         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26516         knuth_morris_pratt_multibyte): Likewise.
26517         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26518         knuth_morris_pratt_multibyte): Likewise.
26519         * lib/memmem.c (knuth_morris_pratt): Likewise.
26520         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26521
26522 2007-12-25  Bruno Haible  <bruno@clisp.org>
26523
26524         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26525         * lib/glob.c: Don't include openat.h.
26526         (link_exists2_p): Add back the code that deals with the
26527         !GLOB_ALTDIRFUNC case.
26528         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26529         let it do the filename concatenation.
26530         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26531         * modules/glob (Depends-on): Remove openat.
26532
26533 2007-12-31  Bruno Haible  <bruno@clisp.org>
26534
26535         * modules/dirfd (License): Change to LGPLv2+.
26536         Approved by Jim Meyering.
26537
26538 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26539
26540         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26541         when multiplying M by sizeof (size_t).
26542
26543 2007-12-10  Martin Lambers  <marlam@marlam.de>
26544
26545         Override getpagesize on mingw.
26546         * lib/getpagesize.c: New file.
26547         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26548         * modules/getpagesize (Files): Add lib/getpagesize.c.
26549         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26551         REPLACE_GETPAGESIZE.
26552         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26553
26554 2007-12-25  Bruno Haible  <bruno@clisp.org>
26555
26556         * modules/localcharset (Notice): New field.
26557         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26558         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26559
26560 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26561             Bruno Haible  <bruno@clisp.org>
26562
26563         Avoid using the syntax symbol() in formatted documentation.
26564         * MODULES.html.sh (func_module): When replacing symbol() with a
26565         hyperlink, remove the parentheses. Show an error if some remain.
26566         Recognize and render the '...' syntax.
26567         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26568         Rework. Add paragraph about GCC's inlining.
26569         * doc/alloca.texi: Likewise.
26570         * doc/error.texi: Remove parentheses from symbol reference.
26571         * doc/gnulib-intro.texi: Likewise.
26572         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26573         * modules/fnmatch (Description): Reword to say "the ... function".
26574         * modules/full-read (Description): Likewise.
26575         * modules/full-write (Description): Likewise.
26576         * modules/safe-read (Description): Likewise.
26577         * modules/safe-write (Description): Likewise.
26578         * modules/strchrnul (Description): Likewise.
26579         * modules/trim (Description): Likewise.
26580         * modules/error (Description): Remove parentheses from symbol
26581         references.
26582         * modules/verror (Description): Likewise.
26583         Reported by Karl Berry.
26584
26585 2007-12-25  Bruno Haible  <bruno@clisp.org>
26586
26587         Fixup after 2007-10-16 commit.
26588         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26589
26590 2007-12-24  Bruno Haible  <bruno@clisp.org>
26591
26592         Make --enable-relocatable work with DESTDIR.
26593         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26594         to compute installdir from destprog.
26595         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26596         also set the RELOC_DESTDIR variable.
26597         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26598
26599 2007-12-24  Bruno Haible  <bruno@clisp.org>
26600
26601         Fix link error due to xalloc_die().
26602         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26603         of xreadlink.
26604         * lib/relocwrapper.c: Update comments.
26605         * build-aux/install-reloc: Remove xreadlink.c from file list.
26606         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26607         xreadlink.c.
26608         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26609
26610 2007-12-24  Bruno Haible  <bruno@clisp.org>
26611
26612         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26613         * lib/setenv.h: Remove file.
26614         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26615         lib/setenv.h.
26616         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26617         (Depends-on): Add stdlib.
26618         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26619         gl_FUNC_UNSETENV.
26620         (Include): Replace setenv.h with <stdlib.h>.
26621         * modules/unsetenv: New file.
26622         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26623         * lib/unsetenv.c: Include <stdlib.h> first.
26624         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26625         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26626         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26627         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26628         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26629         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26631         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26632         * doc/functions/unsetenv.texi: Update.
26633         * modules/xsetenv (Depends-on): Add unsetenv.
26634         * modules/getdate (Depends-on): Likewise.
26635         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26636         * lib/xsetenv.c: Don't include setenv.h.
26637         * lib/getdate.y: Likewise.
26638         * lib/relocwrapper.c: Likewise.
26639         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26640         (Depends-on): Add stdlib.
26641         * NEWS: Mention the changes.
26642         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
26643
26644 2007-12-23  Bruno Haible  <bruno@clisp.org>
26645
26646         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26647         indentation.
26648
26649 2007-12-23  Bruno Haible  <bruno@clisp.org>
26650
26651         * lib/c-strcasestr.c: Add more comments.
26652         * lib/c-strstr.c: Likewise.
26653         * lib/mbscasestr.c: Likewise.
26654         * lib/mbsstr.c: Likewise.
26655         * lib/strcasestr.c: Likewise.
26656         * lib/memmem.c: Likewise.
26657
26658 2007-12-23  Bruno Haible  <bruno@clisp.org>
26659
26660         * tests/test-memmem.c: Include <string.h> first.
26661
26662 2007-12-22  Bruno Haible  <bruno@clisp.org>
26663
26664         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26665         the contents of $testsbase.
26666         Reported by Ralf Wildenhues.
26667
26668 2007-12-22  Bruno Haible  <bruno@clisp.org>
26669
26670         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26671         two variables local_ldadd_before, local_ldadd_last.
26672
26673 2007-12-20  Eric Blake  <ebb9@byu.net>
26674
26675         Work around circular library issue when cross-compiling.
26676         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26677         that progname.o does not need to pull in rpl_memcmp.
26678
26679 2007-12-19  Eric Blake  <ebb9@byu.net>
26680
26681         Fix memmem to avoid O(n^2) worst-case complexity.
26682         * lib/memmem.c (knuth_morris_pratt): New function.
26683         (memmem): Use it if first few naive iterations fail.
26684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26685         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26686         * modules/memchr (License): Likewise.
26687         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26688         malloca.
26689         * tests/test-memmem.c: Rewrite, borrowing ideas from
26690         test-mbsstr1.c; the old version wouldn't even compile!
26691         * modules/memmem-tests: New file.
26692         * lib/string.in.h (rpl_memmem): Add declaration.
26693         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26695         REPLACE_MEMMEM.
26696
26697 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26700         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26701         before any system include files, and undef after them all.  This
26702         should fix a problem on VMS reported by John E. Malmberg in
26703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26704
26705 2007-12-17  Eric Blake  <ebb9@byu.net>
26706
26707         Revert addition of verify, for BSD/OS.
26708         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26709         can't handle large files, for the sake of obsolete platforms.
26710         * modules/fseeko (Depends-on): Remove verify.
26711         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26712         * doc/functions/ftello.texi (ftello): Likewise.
26713         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26714         Reported by Larry Jones.
26715
26716 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26717
26718         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26719         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26720
26721 2007-12-17  Jim Meyering  <meyering@redhat.com>
26722
26723         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26724         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26725         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26726         * modules/getcwd (Depends-on): Add openat.
26727         Reported by Petr Salinger.
26728
26729 2007-12-17  Bruno Haible  <bruno@clisp.org>
26730
26731         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26732         avoid a segmentation fault of the configure test on x86_64 systems.
26733
26734 2007-12-15  Jim Meyering  <meyering@redhat.com>
26735
26736         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26737
26738 2007-12-13  Eric Blake  <ebb9@byu.net>
26739
26740         Another fseek test.
26741         * tests/test-fseek.c (main): Also test ungetc handling.
26742         * tests/test-fseeko.c (main): Likewise.
26743         * modules/fseeko (Depends-on): Add verify.
26744         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26745         large.
26746         Reported by Larry Jones.
26747
26748         Fix fseeko on mingw.
26749         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26750         seek.
26751
26752         Beef up fseek tests.
26753         * tests/test-fseek.c (main): Also test eof handling.
26754         * tests/test-fseeko.c (main): Likewise.
26755         Reported by Larry Jones.
26756
26757 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26758
26759         Fix fseeko on BSD-based platforms.
26760         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26761         successful seek.
26762
26763 2007-12-12  Eric Blake  <ebb9@byu.net>
26764
26765         Allow circular dependency of separate libtests.a
26766         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26767         when use_libtests.
26768
26769 2007-12-11  Eric Blake  <ebb9@byu.net>
26770
26771         Fix bug with -0.0L in previous patch.
26772         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26773         * tests/test-isnan.c (main): Also test on zeroes.
26774         * tests/test-isnanf.c (main): Likewise.
26775         * tests/test-isnanl.h (main): Likewise.
26776
26777         Detect pseudo-denormals on x86 even when cross-compiling.
26778         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26779         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26780         invalid bit patterns that happen to satisfy ==.
26781
26782         Avoid link failures with separate libtests.a.
26783         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26784         last, to satisfy circular dependencies.
26785
26786 2007-12-11  Eric Blake  <ebb9@byu.net>
26787         and Bruno Haible  <bruno@clisp.org>
26788
26789         Fix OpenBSD 4.0 <float.h> handling of long double.
26790         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26791         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26792         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26793
26794 2007-12-11  Jim Meyering  <meyering@redhat.com>
26795
26796         * users.txt: Add libvirt.
26797
26798         Support versions of autoconf prior to 2.59c.
26799         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26800         if it is not already defined.
26801
26802 2007-12-09  Bruno Haible  <bruno@clisp.org>
26803
26804         Let 'gnulib-tool --import' collect sources needed for the tests in
26805         tests/ rather than in lib/.
26806         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26807         argument. If true, add rules to generate libtests.a, and put libtests.a
26808         into $(LDADD). Consider source files in subdirectories and set
26809         uses_subdirs.
26810         (func_emit_initmacro_start, func_emit_initmacro_end,
26811         func_emit_initmacro_done): Pass all arguments explicitly.
26812         (func_import): Determine two module lists main_modules,
26813         testsrelated_modules. Determine use_libtests. Determine two variables
26814         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26815         instead of just sed_transform_lib_file. Determine two variables
26816         main_files and testsrelated_files. Compute 'files' as the union of
26817         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26818         func_add_or_update. In the generated gnulib-comp.m4, collect the
26819         object files for tests/ in different variables than those for lib/.
26820         Substitute LIBTESTS_LIBDEPS.
26821         (func_create_testdir): Combine the uses_subdirs results from
26822         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26823
26824 2007-12-09  Bruno Haible  <bruno@clisp.org>
26825
26826         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26827         the build-aux directory.
26828
26829 2007-12-09  Bruno Haible  <bruno@clisp.org>
26830
26831         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26832         introduced on 2006-09-09.
26833
26834 2007-12-07  Jim Meyering  <meyering@redhat.com>
26835
26836         Let these macros work also with autoconf-2.59.
26837         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26838         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26840
26841 2007-12-06  Jim Meyering  <meyering@redhat.com>
26842
26843         Avoid a configure-time syntax error in gl_FUNC_ACL.
26844         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26845         function in each branch, before testing the cache variable.
26846
26847 2007-12-04  Eric Blake  <ebb9@byu.net>
26848
26849         Make scripts executable.
26850         * build-aux/config.guess: Add execute permissions.
26851         * build-aux/config.sub: Likewise.
26852         * build-aux/gendocs.sh: Likewise.
26853
26854         Fix frexp on mingw.
26855         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26856         cross-compiling.
26857         * doc/functions/frexp.texi (frexp): Document the bug.
26858
26859         Make cygwin fseeko check more reliable.
26860         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26861         version numbers, rather than unrelated feature check.
26862         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26863         * doc/functions/ftello.texi (ftello): Likewise.
26864         Reported by Bruno Haible.
26865
26866         * m4/strerror.m4: Bump version number.
26867
26868 2007-12-03  Bruno Haible  <bruno@clisp.org>
26869
26870         * doc/functions/mprotect.texi: Mention the mingw problem.
26871
26872 2007-12-03  Eric Blake  <ebb9@byu.net>
26873
26874         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26875         REPLACE_STRERROR is initialized before this macro.
26876
26877 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
26880         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26881         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
26882         put -lsec in even for programs other than 'ls'.  This fixes a problem
26883         for gettext reported by Bruno Haible in
26884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26885         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26886         Add support for Solaris 10.  This isn't efficient, but should get the
26887         job done for now.
26888
26889 2007-12-03  James Youngman  <jay@gnu.org>
26890
26891         * doc/regexprops-generic.texi: change "an close-group" to "a
26892         close-group" and "illegal" to "not allowed".
26893
26894 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26895
26896         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26897         pr_byname.h. Needed for the rare case when the maintainer has done
26898         "make maintainer-clean" in the source directory and then attempts a
26899         build outside the source directory.
26900         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26901         scripts_byname.h.
26902
26903 2007-12-02  Martin Lambers <marlam@marlam.de>
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         * lib/getpagesize.h: Remove file.
26907         * lib/unistd.in.h: Include declaration of getpagesize here.
26908         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26909         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26910         HAVE_SYS_PARAM_H.
26911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26912         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26913         * modules/getpagesize (Files): Remove lib/getpagesize.h.
26914         (Depends-on): Add unistd.
26915         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26916         (Include): Use <unistd.h> instead of getpagesize.h.
26917         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26918         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26919         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26920         gl_GETPAGESIZE invocation, already handled by module dependency.
26921         * lib/pagealign_alloc.c: Don't include getpagesize.h.
26922
26923 2007-12-02  Bruno Haible  <bruno@clisp.org>
26924
26925         * modules/strings-tests: New file.
26926         * tests/test-strings.c: New file.
26927
26928         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26929         * lib/strings.in.h: New file.
26930         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26931         * m4/strings_h.m4: New file.
26932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26933         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26934         * modules/strings: New file.
26935         * modules/string (Makefile.am): Update.
26936         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26937         Reported by Karl Berry.
26938
26939 2007-12-01  Eric Blake  <ebb9@byu.net>
26940
26941         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26942         accomodate fix in cygwin 1.5.25.
26943
26944 2007-12-01  Jim Meyering  <meyering@redhat.com>
26945
26946         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26947         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26948         that would inhibit utf8-optimization of a regexp containing line-
26949         or buffer-anchors, e.g., `^', `$'.
26950
26951 2007-11-30  Bruno Haible  <bruno@clisp.org>
26952
26953         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26954         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26955         glthread_recursive_lock_init.
26956         * lib/lock.c (glthread_recursive_lock_init)
26957         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26958         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26959
26960 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
26961
26962         New function qset_acl, like set_acl but with syscall semantics.
26963         * lib/acl.h (qset_acl): New decl.
26964         * lib/acl.c (qset_acl): New function.
26965         (set_acl): Use new function.  Use more-consistent diagnostics.
26966
26967 2007-11-28  Jim Meyering  <meyering@redhat.com>
26968
26969         * modules/physmem (License): Change from GPL to LGPLv2+.
26970
26971 2007-11-26  Bruno Haible  <bruno@clisp.org>
26972
26973         * lib/vasnprintf.c (decode_long_double): Don't abort if the
26974         'long double' type has excess precision.
26975         Reported by Jim Meyering in
26976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26977
26978 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26979
26980         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26981         Sync from <http://gnu.org/licenses>.
26982         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26983         with license text from same location.
26984         * doc/maintain.texi, doc/standards.texi:  Sync from
26985         <http://savannah.gnu.org/projects/gnustandards>.
26986
26987 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
26988         and Jim Meyering  <meyering@redhat.com>
26989
26990         Adjust getdate' grammar to accept a slightly more regular language.
26991         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26992         Before, the former was rejected.
26993         * lib/getdate.y (digits_to_date_time): New function, factored
26994         out of ...
26995         (number): ...here.  Just call digits_to_date_time.
26996         (hybrid): New non-terminal to handle an <unsigned number,
26997         signed relative offset> sequence consistently.
26998
26999 2007-11-18  Jim Meyering  <meyering@redhat.com>
27000
27001         Pull my changes from coreutils:
27002         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27003         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27004         use of $gnulib_tool_option_extras, so that it's separated from the
27005         preceding argument.
27006
27007         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27008         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27009         parent destination directories before copying a file into place.
27010
27011 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27012
27013         bootstrap: work also with 4-argument variant of AC_INIT
27014         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27015
27016 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         Port test-getaddrinfo to Solaris.
27019         Problem reported by Bruno Haible in
27020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27021         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27022         explanation of setting 'hints'.
27023         Don't reject an implementation merely because it returns EAI_SERVICE.
27024         (EAI_SERVICE): Define to 0 if not defined.
27025
27026 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         The license of gnu-make and posix-shell is now "GPLed build tool".
27029         * modules/gnu-make (License): Likewise.
27030         * modules/posix-shell (License): Likewise.
27031
27032         New module posix-shell, for determining a POSIX shell
27033         or perhaps something that is close enough to a POSIX shell.
27034         * m4/posix-shell.m4: New file.
27035         * modules/posix-shell: New file.
27036
27037         * MODULES.html.sh: Mention new module.
27038
27039         New module gnu-make, for determining whether we're using GNU Make.
27040         * m4/gnu-make.m4: New file.
27041         * modules/gnu-make: New file.
27042         * MODULES.html.sh: Mention new module.
27043
27044 2007-11-14  Jim Meyering  <meyering@redhat.com>
27045
27046         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27047         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27048         use this macro to create a function _definition_.
27049         Remove useless "#undef ARGMATCH_DIE".
27050
27051 2007-11-14  Bruno Haible  <bruno@clisp.org>
27052
27053         * lib/config.charset: Update for OpenBSD 4.1.
27054         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27055
27056 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27057
27058         Document 64-bit #if problems in stdint.texi.
27059         * doc/headers/stdint.texi (stdint.h): Mention problems with
27060         64-bit-#if, and how to work around them.
27061
27062         Don't insist on 'long long int' support in the preprocessor.  It
27063         breaks too many things.  For example, PRIdMAX still uses a 'long
27064         long int' format with the latest Sun compiler, even though
27065         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27066         preprocessor problem.  This causes the latest coreutils to dump
27067         core on Solaris 10 sparc with the Sun C compiler.
27068         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27069         the troublesome expressions at configure-time, not at #if-time.
27070         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27071         preprocessor.
27072         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27073         compile-time C checks, done at 'configure'-time.
27074         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27075         * modules/inttypes (Makefile): Substitute the new symbols that
27076         gl_INTTYPES_H now generates.
27077         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27078
27079 2007-11-12  Bruno Haible  <bruno@clisp.org>
27080
27081         Tests for Unicode character classification functions.
27082
27083         * modules/unictype/bidicategory-byname-tests: New file.
27084         * modules/unictype/bidicategory-name-tests: New file.
27085         * modules/unictype/bidicategory-of-tests: New file.
27086         * modules/unictype/bidicategory-test-tests: New file.
27087         * modules/unictype/block-list-tests: New file.
27088         * modules/unictype/block-of-tests: New file.
27089         * modules/unictype/block-test-tests: New file.
27090         * modules/unictype/category-C-tests: New file.
27091         * modules/unictype/category-Cc-tests: New file.
27092         * modules/unictype/category-Cf-tests: New file.
27093         * modules/unictype/category-Cn-tests: New file.
27094         * modules/unictype/category-Co-tests: New file.
27095         * modules/unictype/category-Cs-tests: New file.
27096         * modules/unictype/category-L-tests: New file.
27097         * modules/unictype/category-Ll-tests: New file.
27098         * modules/unictype/category-Lm-tests: New file.
27099         * modules/unictype/category-Lo-tests: New file.
27100         * modules/unictype/category-Lt-tests: New file.
27101         * modules/unictype/category-Lu-tests: New file.
27102         * modules/unictype/category-M-tests: New file.
27103         * modules/unictype/category-Mc-tests: New file.
27104         * modules/unictype/category-Me-tests: New file.
27105         * modules/unictype/category-Mn-tests: New file.
27106         * modules/unictype/category-N-tests: New file.
27107         * modules/unictype/category-Nd-tests: New file.
27108         * modules/unictype/category-Nl-tests: New file.
27109         * modules/unictype/category-No-tests: New file.
27110         * modules/unictype/category-P-tests: New file.
27111         * modules/unictype/category-Pc-tests: New file.
27112         * modules/unictype/category-Pd-tests: New file.
27113         * modules/unictype/category-Pe-tests: New file.
27114         * modules/unictype/category-Pf-tests: New file.
27115         * modules/unictype/category-Pi-tests: New file.
27116         * modules/unictype/category-Po-tests: New file.
27117         * modules/unictype/category-Ps-tests: New file.
27118         * modules/unictype/category-S-tests: New file.
27119         * modules/unictype/category-Sc-tests: New file.
27120         * modules/unictype/category-Sk-tests: New file.
27121         * modules/unictype/category-Sm-tests: New file.
27122         * modules/unictype/category-So-tests: New file.
27123         * modules/unictype/category-Z-tests: New file.
27124         * modules/unictype/category-Zl-tests: New file.
27125         * modules/unictype/category-Zp-tests: New file.
27126         * modules/unictype/category-Zs-tests: New file.
27127         * modules/unictype/category-and-not-tests: New file.
27128         * modules/unictype/category-and-tests: New file.
27129         * modules/unictype/category-byname-tests: New file.
27130         * modules/unictype/category-name-tests: New file.
27131         * modules/unictype/category-none-tests: New file.
27132         * modules/unictype/category-of-tests: New file.
27133         * modules/unictype/category-or-tests: New file.
27134         * modules/unictype/category-test-withtable-tests: New file.
27135         * modules/unictype/combining-class-tests: New file.
27136         * modules/unictype/ctype-alnum-tests: New file.
27137         * modules/unictype/ctype-alpha-tests: New file.
27138         * modules/unictype/ctype-blank-tests: New file.
27139         * modules/unictype/ctype-cntrl-tests: New file.
27140         * modules/unictype/ctype-digit-tests: New file.
27141         * modules/unictype/ctype-graph-tests: New file.
27142         * modules/unictype/ctype-lower-tests: New file.
27143         * modules/unictype/ctype-print-tests: New file.
27144         * modules/unictype/ctype-punct-tests: New file.
27145         * modules/unictype/ctype-space-tests: New file.
27146         * modules/unictype/ctype-upper-tests: New file.
27147         * modules/unictype/ctype-xdigit-tests: New file.
27148         * modules/unictype/decimal-digit-tests: New file.
27149         * modules/unictype/digit-tests: New file.
27150         * modules/unictype/mirror-tests: New file.
27151         * modules/unictype/numeric-tests: New file.
27152         * modules/unictype/property-alphabetic-tests: New file.
27153         * modules/unictype/property-ascii-hex-digit-tests: New file.
27154         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27155         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27156         * modules/unictype/property-bidi-block-separator-tests: New file.
27157         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27158         * modules/unictype/property-bidi-common-separator-tests: New file.
27159         * modules/unictype/property-bidi-control-tests: New file.
27160         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27161         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27162         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27163         * modules/unictype/property-bidi-european-digit-tests: New file.
27164         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27165         * modules/unictype/property-bidi-left-to-right-tests: New file.
27166         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27167         * modules/unictype/property-bidi-other-neutral-tests: New file.
27168         * modules/unictype/property-bidi-pdf-tests: New file.
27169         * modules/unictype/property-bidi-segment-separator-tests: New file.
27170         * modules/unictype/property-bidi-whitespace-tests: New file.
27171         * modules/unictype/property-byname-tests: New file.
27172         * modules/unictype/property-combining-tests: New file.
27173         * modules/unictype/property-composite-tests: New file.
27174         * modules/unictype/property-currency-symbol-tests: New file.
27175         * modules/unictype/property-dash-tests: New file.
27176         * modules/unictype/property-decimal-digit-tests: New file.
27177         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27178         * modules/unictype/property-deprecated-tests: New file.
27179         * modules/unictype/property-diacritic-tests: New file.
27180         * modules/unictype/property-extender-tests: New file.
27181         * modules/unictype/property-format-control-tests: New file.
27182         * modules/unictype/property-grapheme-base-tests: New file.
27183         * modules/unictype/property-grapheme-extend-tests: New file.
27184         * modules/unictype/property-grapheme-link-tests: New file.
27185         * modules/unictype/property-hex-digit-tests: New file.
27186         * modules/unictype/property-hyphen-tests: New file.
27187         * modules/unictype/property-id-continue-tests: New file.
27188         * modules/unictype/property-id-start-tests: New file.
27189         * modules/unictype/property-ideographic-tests: New file.
27190         * modules/unictype/property-ids-binary-operator-tests: New file.
27191         * modules/unictype/property-ids-trinary-operator-tests: New file.
27192         * modules/unictype/property-ignorable-control-tests: New file.
27193         * modules/unictype/property-iso-control-tests: New file.
27194         * modules/unictype/property-join-control-tests: New file.
27195         * modules/unictype/property-left-of-pair-tests: New file.
27196         * modules/unictype/property-line-separator-tests: New file.
27197         * modules/unictype/property-logical-order-exception-tests: New file.
27198         * modules/unictype/property-lowercase-tests: New file.
27199         * modules/unictype/property-math-tests: New file.
27200         * modules/unictype/property-non-break-tests: New file.
27201         * modules/unictype/property-not-a-character-tests: New file.
27202         * modules/unictype/property-numeric-tests: New file.
27203         * modules/unictype/property-other-alphabetic-tests: New file.
27204         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27205         * modules/unictype/property-other-grapheme-extend-tests: New file.
27206         * modules/unictype/property-other-id-continue-tests: New file.
27207         * modules/unictype/property-other-id-start-tests: New file.
27208         * modules/unictype/property-other-lowercase-tests: New file.
27209         * modules/unictype/property-other-math-tests: New file.
27210         * modules/unictype/property-other-uppercase-tests: New file.
27211         * modules/unictype/property-paired-punctuation-tests: New file.
27212         * modules/unictype/property-paragraph-separator-tests: New file.
27213         * modules/unictype/property-pattern-syntax-tests: New file.
27214         * modules/unictype/property-pattern-white-space-tests: New file.
27215         * modules/unictype/property-private-use-tests: New file.
27216         * modules/unictype/property-punctuation-tests: New file.
27217         * modules/unictype/property-quotation-mark-tests: New file.
27218         * modules/unictype/property-radical-tests: New file.
27219         * modules/unictype/property-sentence-terminal-tests: New file.
27220         * modules/unictype/property-soft-dotted-tests: New file.
27221         * modules/unictype/property-space-tests: New file.
27222         * modules/unictype/property-terminal-punctuation-tests: New file.
27223         * modules/unictype/property-test-tests: New file.
27224         * modules/unictype/property-titlecase-tests: New file.
27225         * modules/unictype/property-unassigned-code-value-tests: New file.
27226         * modules/unictype/property-unified-ideograph-tests: New file.
27227         * modules/unictype/property-uppercase-tests: New file.
27228         * modules/unictype/property-variation-selector-tests: New file.
27229         * modules/unictype/property-white-space-tests: New file.
27230         * modules/unictype/property-xid-continue-tests: New file.
27231         * modules/unictype/property-xid-start-tests: New file.
27232         * modules/unictype/property-zero-width-tests: New file.
27233         * modules/unictype/scripts-tests: New file.
27234         * modules/unictype/syntax-c-ident-tests: New file.
27235         * modules/unictype/syntax-c-whitespace-tests: New file.
27236         * modules/unictype/syntax-java-ident-tests: New file.
27237         * modules/unictype/syntax-java-whitespace-tests: New file.
27238         * tests/unictype/test-bidi_byname.c: New file.
27239         * tests/unictype/test-bidi_name.c: New file.
27240         * tests/unictype/test-bidi_of.c: New file.
27241         * tests/unictype/test-bidi_test.c: New file.
27242         * tests/unictype/test-block_list.c: New file.
27243         * tests/unictype/test-block_of.c: New file.
27244         * tests/unictype/test-block_test.c: New file.
27245         * tests/unictype/test-categ_and.c: New file.
27246         * tests/unictype/test-categ_and_not.c: New file.
27247         * tests/unictype/test-categ_byname.c: New file.
27248         * tests/unictype/test-categ_name.c: New file.
27249         * tests/unictype/test-categ_none.c: New file.
27250         * tests/unictype/test-categ_of.c: New file.
27251         * tests/unictype/test-categ_or.c: New file.
27252         * tests/unictype/test-categ_test_withtable.c: New file.
27253         * tests/unictype/test-combining.c: New file.
27254         * tests/unictype/test-decdigit.c: New file.
27255         * tests/unictype/test-digit.c: New file.
27256         * tests/unictype/test-mirror.c: New file.
27257         * tests/unictype/test-numeric.c: New file.
27258         * tests/unictype/test-pr_byname.c: New file.
27259         * tests/unictype/test-pr_test.c: New file.
27260         * tests/unictype/test-predicate-part1.h: New file.
27261         * tests/unictype/test-predicate-part2.h: New file.
27262         * tests/unictype/test-scripts.c: New file.
27263         * tests/unictype/test-sy_c_ident.c: New file.
27264         * tests/unictype/test-sy_java_ident.c: New file.
27265
27266         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27267         for Unicode 5.0.0.
27268         * tests/unictype/test-categ_Cc.c: Likewise.
27269         * tests/unictype/test-categ_Cf.c: Likewise.
27270         * tests/unictype/test-categ_Cn.c: Likewise.
27271         * tests/unictype/test-categ_Co.c: Likewise.
27272         * tests/unictype/test-categ_Cs.c: Likewise.
27273         * tests/unictype/test-categ_L.c: Likewise.
27274         * tests/unictype/test-categ_Ll.c: Likewise.
27275         * tests/unictype/test-categ_Lm.c: Likewise.
27276         * tests/unictype/test-categ_Lo.c: Likewise.
27277         * tests/unictype/test-categ_Lt.c: Likewise.
27278         * tests/unictype/test-categ_Lu.c: Likewise.
27279         * tests/unictype/test-categ_M.c: Likewise.
27280         * tests/unictype/test-categ_Mc.c: Likewise.
27281         * tests/unictype/test-categ_Me.c: Likewise.
27282         * tests/unictype/test-categ_Mn.c: Likewise.
27283         * tests/unictype/test-categ_N.c: Likewise.
27284         * tests/unictype/test-categ_Nd.c: Likewise.
27285         * tests/unictype/test-categ_Nl.c: Likewise.
27286         * tests/unictype/test-categ_No.c: Likewise.
27287         * tests/unictype/test-categ_P.c: Likewise.
27288         * tests/unictype/test-categ_Pc.c: Likewise.
27289         * tests/unictype/test-categ_Pd.c: Likewise.
27290         * tests/unictype/test-categ_Pe.c: Likewise.
27291         * tests/unictype/test-categ_Pf.c: Likewise.
27292         * tests/unictype/test-categ_Pi.c: Likewise.
27293         * tests/unictype/test-categ_Po.c: Likewise.
27294         * tests/unictype/test-categ_Ps.c: Likewise.
27295         * tests/unictype/test-categ_S.c: Likewise.
27296         * tests/unictype/test-categ_Sc.c: Likewise.
27297         * tests/unictype/test-categ_Sk.c: Likewise.
27298         * tests/unictype/test-categ_Sm.c: Likewise.
27299         * tests/unictype/test-categ_So.c: Likewise.
27300         * tests/unictype/test-categ_Z.c: Likewise.
27301         * tests/unictype/test-categ_Zl.c: Likewise.
27302         * tests/unictype/test-categ_Zp.c: Likewise.
27303         * tests/unictype/test-categ_Zs.c: Likewise.
27304         * tests/unictype/test-ctype_alnum.c: Likewise.
27305         * tests/unictype/test-ctype_alpha.c: Likewise.
27306         * tests/unictype/test-ctype_blank.c: Likewise.
27307         * tests/unictype/test-ctype_cntrl.c: Likewise.
27308         * tests/unictype/test-ctype_digit.c: Likewise.
27309         * tests/unictype/test-ctype_graph.c: Likewise.
27310         * tests/unictype/test-ctype_lower.c: Likewise.
27311         * tests/unictype/test-ctype_print.c: Likewise.
27312         * tests/unictype/test-ctype_punct.c: Likewise.
27313         * tests/unictype/test-ctype_space.c: Likewise.
27314         * tests/unictype/test-ctype_upper.c: Likewise.
27315         * tests/unictype/test-ctype_xdigit.c: Likewise.
27316         * tests/unictype/test-decdigit.h: Likewise.
27317         * tests/unictype/test-digit.h: Likewise.
27318         * tests/unictype/test-numeric.h: Likewise.
27319         * tests/unictype/test-pr_alphabetic.c: Likewise.
27320         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27321         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27322         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27323         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27324         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27325         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27326         * tests/unictype/test-pr_bidi_control.c: Likewise.
27327         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27328         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27329         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27330         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27331         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27332         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27333         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27334         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27335         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27336         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27337         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27338         * tests/unictype/test-pr_combining.c: Likewise.
27339         * tests/unictype/test-pr_composite.c: Likewise.
27340         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27341         * tests/unictype/test-pr_dash.c: Likewise.
27342         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27343         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27344         * tests/unictype/test-pr_deprecated.c: Likewise.
27345         * tests/unictype/test-pr_diacritic.c: Likewise.
27346         * tests/unictype/test-pr_extender.c: Likewise.
27347         * tests/unictype/test-pr_format_control.c: Likewise.
27348         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27349         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27350         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27351         * tests/unictype/test-pr_hex_digit.c: Likewise.
27352         * tests/unictype/test-pr_hyphen.c: Likewise.
27353         * tests/unictype/test-pr_id_continue.c: Likewise.
27354         * tests/unictype/test-pr_id_start.c: Likewise.
27355         * tests/unictype/test-pr_ideographic.c: Likewise.
27356         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27357         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27358         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27359         * tests/unictype/test-pr_iso_control.c: Likewise.
27360         * tests/unictype/test-pr_join_control.c: Likewise.
27361         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27362         * tests/unictype/test-pr_line_separator.c: Likewise.
27363         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27364         * tests/unictype/test-pr_lowercase.c: Likewise.
27365         * tests/unictype/test-pr_math.c: Likewise.
27366         * tests/unictype/test-pr_non_break.c: Likewise.
27367         * tests/unictype/test-pr_not_a_character.c: Likewise.
27368         * tests/unictype/test-pr_numeric.c: Likewise.
27369         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27370         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27371         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27372         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27373         * tests/unictype/test-pr_other_id_start.c: Likewise.
27374         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27375         * tests/unictype/test-pr_other_math.c: Likewise.
27376         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27377         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27378         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27379         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27380         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27381         * tests/unictype/test-pr_private_use.c: Likewise.
27382         * tests/unictype/test-pr_punctuation.c: Likewise.
27383         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27384         * tests/unictype/test-pr_radical.c: Likewise.
27385         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27386         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27387         * tests/unictype/test-pr_space.c: Likewise.
27388         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27389         * tests/unictype/test-pr_titlecase.c: Likewise.
27390         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27391         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27392         * tests/unictype/test-pr_uppercase.c: Likewise.
27393         * tests/unictype/test-pr_variation_selector.c: Likewise.
27394         * tests/unictype/test-pr_white_space.c: Likewise.
27395         * tests/unictype/test-pr_xid_continue.c: Likewise.
27396         * tests/unictype/test-pr_xid_start.c: Likewise.
27397         * tests/unictype/test-pr_zero_width.c: Likewise.
27398         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27399         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27400
27401 2007-11-12  Bruno Haible  <bruno@clisp.org>
27402
27403         Unicode character classification functions.
27404         * lib/unictype.h: New file.
27405         * modules/unictype/base: New file.
27406         * modules/unictype/category-L: New file.
27407         * modules/unictype/category-Lu: New file.
27408         * modules/unictype/category-Ll: New file.
27409         * modules/unictype/category-Lt: New file.
27410         * modules/unictype/category-Lm: New file.
27411         * modules/unictype/category-Lo: New file.
27412         * modules/unictype/category-M: New file.
27413         * modules/unictype/category-Mn: New file.
27414         * modules/unictype/category-Mc: New file.
27415         * modules/unictype/category-Me: New file.
27416         * modules/unictype/category-N: New file.
27417         * modules/unictype/category-Nd: New file.
27418         * modules/unictype/category-Nl: New file.
27419         * modules/unictype/category-No: New file.
27420         * modules/unictype/category-P: New file.
27421         * modules/unictype/category-Pc: New file.
27422         * modules/unictype/category-Pd: New file.
27423         * modules/unictype/category-Ps: New file.
27424         * modules/unictype/category-Pe: New file.
27425         * modules/unictype/category-Pi: New file.
27426         * modules/unictype/category-Pf: New file.
27427         * modules/unictype/category-Po: New file.
27428         * modules/unictype/category-S: New file.
27429         * modules/unictype/category-Sm: New file.
27430         * modules/unictype/category-Sc: New file.
27431         * modules/unictype/category-Sk: New file.
27432         * modules/unictype/category-So: New file.
27433         * modules/unictype/category-Z: New file.
27434         * modules/unictype/category-Zs: New file.
27435         * modules/unictype/category-Zl: New file.
27436         * modules/unictype/category-Zp: New file.
27437         * modules/unictype/category-C: New file.
27438         * modules/unictype/category-Cc: New file.
27439         * modules/unictype/category-Cf: New file.
27440         * modules/unictype/category-Cs: New file.
27441         * modules/unictype/category-Co: New file.
27442         * modules/unictype/category-Cn: New file.
27443         * modules/unictype/category-or: New file.
27444         * modules/unictype/category-of: New file.
27445         * modules/unictype/category-test: New file.
27446         * modules/unictype/category-test-withtable: New file.
27447         * modules/unictype/category-byname: New file.
27448         * modules/unictype/category-none: New file.
27449         * modules/unictype/category-and: New file.
27450         * modules/unictype/category-and-not: New file.
27451         * modules/unictype/category-name: New file.
27452         * modules/unictype/combining-class: New file.
27453         * modules/unictype/category-all: New file.
27454         * modules/unictype/bidicategory-all: New file.
27455         * modules/unictype/bidicategory-byname: New file.
27456         * modules/unictype/bidicategory-name: New file.
27457         * modules/unictype/bidicategory-of: New file.
27458         * modules/unictype/bidicategory-test: New file.
27459         * modules/unictype/decimal-digit: New file.
27460         * modules/unictype/digit: New file.
27461         * modules/unictype/numeric: New file.
27462         * modules/unictype/mirror: New file.
27463         * modules/unictype/property-white-space: New file.
27464         * modules/unictype/property-alphabetic: New file.
27465         * modules/unictype/property-other-alphabetic: New file.
27466         * modules/unictype/property-not-a-character: New file.
27467         * modules/unictype/property-default-ignorable-code-point: New file.
27468         * modules/unictype/property-other-default-ignorable-code-point: New
27469         file.
27470         * modules/unictype/property-deprecated: New file.
27471         * modules/unictype/property-logical-order-exception: New file.
27472         * modules/unictype/property-variation-selector: New file.
27473         * modules/unictype/property-private-use: New file.
27474         * modules/unictype/property-unassigned-code-value: New file.
27475         * modules/unictype/property-uppercase: New file.
27476         * modules/unictype/property-other-uppercase: New file.
27477         * modules/unictype/property-lowercase: New file.
27478         * modules/unictype/property-other-lowercase: New file.
27479         * modules/unictype/property-titlecase: New file.
27480         * modules/unictype/property-soft-dotted: New file.
27481         * modules/unictype/property-id-start: New file.
27482         * modules/unictype/property-other-id-start: New file.
27483         * modules/unictype/property-id-continue: New file.
27484         * modules/unictype/property-other-id-continue: New file.
27485         * modules/unictype/property-xid-start: New file.
27486         * modules/unictype/property-xid-continue: New file.
27487         * modules/unictype/property-pattern-white-space: New file.
27488         * modules/unictype/property-pattern-syntax: New file.
27489         * modules/unictype/property-join-control: New file.
27490         * modules/unictype/property-grapheme-base: New file.
27491         * modules/unictype/property-grapheme-extend: New file.
27492         * modules/unictype/property-other-grapheme-extend: New file.
27493         * modules/unictype/property-grapheme-link: New file.
27494         * modules/unictype/property-bidi-control: New file.
27495         * modules/unictype/property-bidi-left-to-right: New file.
27496         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27497         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27498         * modules/unictype/property-bidi-european-digit: New file.
27499         * modules/unictype/property-bidi-eur-num-separator: New file.
27500         * modules/unictype/property-bidi-eur-num-terminator: New file.
27501         * modules/unictype/property-bidi-arabic-digit: New file.
27502         * modules/unictype/property-bidi-common-separator: New file.
27503         * modules/unictype/property-bidi-block-separator: New file.
27504         * modules/unictype/property-bidi-segment-separator: New file.
27505         * modules/unictype/property-bidi-whitespace: New file.
27506         * modules/unictype/property-bidi-non-spacing-mark: New file.
27507         * modules/unictype/property-bidi-boundary-neutral: New file.
27508         * modules/unictype/property-bidi-pdf: New file.
27509         * modules/unictype/property-bidi-embedding-or-override: New file.
27510         * modules/unictype/property-bidi-other-neutral: New file.
27511         * modules/unictype/property-hex-digit: New file.
27512         * modules/unictype/property-ascii-hex-digit: New file.
27513         * modules/unictype/property-ideographic: New file.
27514         * modules/unictype/property-unified-ideograph: New file.
27515         * modules/unictype/property-radical: New file.
27516         * modules/unictype/property-ids-binary-operator: New file.
27517         * modules/unictype/property-ids-trinary-operator: New file.
27518         * modules/unictype/property-zero-width: New file.
27519         * modules/unictype/property-space: New file.
27520         * modules/unictype/property-non-break: New file.
27521         * modules/unictype/property-iso-control: New file.
27522         * modules/unictype/property-format-control: New file.
27523         * modules/unictype/property-dash: New file.
27524         * modules/unictype/property-hyphen: New file.
27525         * modules/unictype/property-punctuation: New file.
27526         * modules/unictype/property-line-separator: New file.
27527         * modules/unictype/property-paragraph-separator: New file.
27528         * modules/unictype/property-quotation-mark: New file.
27529         * modules/unictype/property-sentence-terminal: New file.
27530         * modules/unictype/property-terminal-punctuation: New file.
27531         * modules/unictype/property-currency-symbol: New file.
27532         * modules/unictype/property-math: New file.
27533         * modules/unictype/property-other-math: New file.
27534         * modules/unictype/property-paired-punctuation: New file.
27535         * modules/unictype/property-left-of-pair: New file.
27536         * modules/unictype/property-combining: New file.
27537         * modules/unictype/property-composite: New file.
27538         * modules/unictype/property-decimal-digit: New file.
27539         * modules/unictype/property-numeric: New file.
27540         * modules/unictype/property-diacritic: New file.
27541         * modules/unictype/property-extender: New file.
27542         * modules/unictype/property-ignorable-control: New file.
27543         * modules/unictype/property-test: New file.
27544         * modules/unictype/property-byname: New file.
27545         * modules/unictype/property-all: New file.
27546         * modules/unictype/scripts: New file.
27547         * modules/unictype/scripts-all: New file.
27548         * modules/unictype/block-of: New file.
27549         * modules/unictype/block-test: New file.
27550         * modules/unictype/block-list: New file.
27551         * modules/unictype/block-all: New file.
27552         * modules/unictype/syntax-c-whitespace: New file.
27553         * modules/unictype/syntax-java-whitespace: New file.
27554         * modules/unictype/syntax-c-ident: New file.
27555         * modules/unictype/syntax-java-ident: New file.
27556         * modules/unictype/ctype-alnum: New file.
27557         * modules/unictype/ctype-alpha: New file.
27558         * modules/unictype/ctype-cntrl: New file.
27559         * modules/unictype/ctype-digit: New file.
27560         * modules/unictype/ctype-graph: New file.
27561         * modules/unictype/ctype-lower: New file.
27562         * modules/unictype/ctype-print: New file.
27563         * modules/unictype/ctype-punct: New file.
27564         * modules/unictype/ctype-space: New file.
27565         * modules/unictype/ctype-upper: New file.
27566         * modules/unictype/ctype-xdigit: New file.
27567         * modules/unictype/ctype-blank: New file.
27568         * lib/unictype/bidi_byname.c: New file.
27569         * lib/unictype/bidi_name.c: New file.
27570         * lib/unictype/bidi_of.c: New file.
27571         * lib/unictype/bidi_test.c: New file.
27572         * lib/unictype/bitmap.h: New file.
27573         * lib/unictype/block_test.c: New file.
27574         * lib/unictype/blocks.c: New file.
27575         * lib/unictype/categ_C.c: New file.
27576         * lib/unictype/categ_Cc.c: New file.
27577         * lib/unictype/categ_Cf.c: New file.
27578         * lib/unictype/categ_Cn.c: New file.
27579         * lib/unictype/categ_Co.c: New file.
27580         * lib/unictype/categ_Cs.c: New file.
27581         * lib/unictype/categ_L.c: New file.
27582         * lib/unictype/categ_Ll.c: New file.
27583         * lib/unictype/categ_Lm.c: New file.
27584         * lib/unictype/categ_Lo.c: New file.
27585         * lib/unictype/categ_Lt.c: New file.
27586         * lib/unictype/categ_Lu.c: New file.
27587         * lib/unictype/categ_M.c: New file.
27588         * lib/unictype/categ_Mc.c: New file.
27589         * lib/unictype/categ_Me.c: New file.
27590         * lib/unictype/categ_Mn.c: New file.
27591         * lib/unictype/categ_N.c: New file.
27592         * lib/unictype/categ_Nd.c: New file.
27593         * lib/unictype/categ_Nl.c: New file.
27594         * lib/unictype/categ_No.c: New file.
27595         * lib/unictype/categ_P.c: New file.
27596         * lib/unictype/categ_Pc.c: New file.
27597         * lib/unictype/categ_Pd.c: New file.
27598         * lib/unictype/categ_Pe.c: New file.
27599         * lib/unictype/categ_Pf.c: New file.
27600         * lib/unictype/categ_Pi.c: New file.
27601         * lib/unictype/categ_Po.c: New file.
27602         * lib/unictype/categ_Ps.c: New file.
27603         * lib/unictype/categ_S.c: New file.
27604         * lib/unictype/categ_Sc.c: New file.
27605         * lib/unictype/categ_Sk.c: New file.
27606         * lib/unictype/categ_Sm.c: New file.
27607         * lib/unictype/categ_So.c: New file.
27608         * lib/unictype/categ_Z.c: New file.
27609         * lib/unictype/categ_Zl.c: New file.
27610         * lib/unictype/categ_Zp.c: New file.
27611         * lib/unictype/categ_Zs.c: New file.
27612         * lib/unictype/categ_and.c: New file.
27613         * lib/unictype/categ_and_not.c: New file.
27614         * lib/unictype/categ_byname.c: New file.
27615         * lib/unictype/categ_name.c: New file.
27616         * lib/unictype/categ_none.c: New file.
27617         * lib/unictype/categ_of.c: New file.
27618         * lib/unictype/categ_or.c: New file.
27619         * lib/unictype/categ_test.c: New file.
27620         * lib/unictype/combining.c: New file.
27621         * lib/unictype/ctype_alnum.c: New file.
27622         * lib/unictype/ctype_alpha.c: New file.
27623         * lib/unictype/ctype_blank.c: New file.
27624         * lib/unictype/ctype_cntrl.c: New file.
27625         * lib/unictype/ctype_digit.c: New file.
27626         * lib/unictype/ctype_graph.c: New file.
27627         * lib/unictype/ctype_lower.c: New file.
27628         * lib/unictype/ctype_print.c: New file.
27629         * lib/unictype/ctype_punct.c: New file.
27630         * lib/unictype/ctype_space.c: New file.
27631         * lib/unictype/ctype_upper.c: New file.
27632         * lib/unictype/ctype_xdigit.c: New file.
27633         * lib/unictype/decdigit.c: New file.
27634         * lib/unictype/digit.c: New file.
27635         * lib/unictype/identsyntaxmap.h: New file.
27636         * lib/unictype/mirror.c: New file.
27637         * lib/unictype/numeric.c: New file.
27638         * lib/unictype/pr_alphabetic.c: New file.
27639         * lib/unictype/pr_ascii_hex_digit.c: New file.
27640         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27641         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27642         * lib/unictype/pr_bidi_block_separator.c: New file.
27643         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27644         * lib/unictype/pr_bidi_common_separator.c: New file.
27645         * lib/unictype/pr_bidi_control.c: New file.
27646         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27647         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27648         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27649         * lib/unictype/pr_bidi_european_digit.c: New file.
27650         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27651         * lib/unictype/pr_bidi_left_to_right.c: New file.
27652         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27653         * lib/unictype/pr_bidi_other_neutral.c: New file.
27654         * lib/unictype/pr_bidi_pdf.c: New file.
27655         * lib/unictype/pr_bidi_segment_separator.c: New file.
27656         * lib/unictype/pr_bidi_whitespace.c: New file.
27657         * lib/unictype/pr_byname.c: New file.
27658         * lib/unictype/pr_byname.gperf: New file.
27659         * lib/unictype/pr_combining.c: New file.
27660         * lib/unictype/pr_composite.c: New file.
27661         * lib/unictype/pr_currency_symbol.c: New file.
27662         * lib/unictype/pr_dash.c: New file.
27663         * lib/unictype/pr_decimal_digit.c: New file.
27664         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27665         * lib/unictype/pr_deprecated.c: New file.
27666         * lib/unictype/pr_diacritic.c: New file.
27667         * lib/unictype/pr_extender.c: New file.
27668         * lib/unictype/pr_format_control.c: New file.
27669         * lib/unictype/pr_grapheme_base.c: New file.
27670         * lib/unictype/pr_grapheme_extend.c: New file.
27671         * lib/unictype/pr_grapheme_link.c: New file.
27672         * lib/unictype/pr_hex_digit.c: New file.
27673         * lib/unictype/pr_hyphen.c: New file.
27674         * lib/unictype/pr_id_continue.c: New file.
27675         * lib/unictype/pr_id_start.c: New file.
27676         * lib/unictype/pr_ideographic.c: New file.
27677         * lib/unictype/pr_ids_binary_operator.c: New file.
27678         * lib/unictype/pr_ids_trinary_operator.c: New file.
27679         * lib/unictype/pr_ignorable_control.c: New file.
27680         * lib/unictype/pr_iso_control.c: New file.
27681         * lib/unictype/pr_join_control.c: New file.
27682         * lib/unictype/pr_left_of_pair.c: New file.
27683         * lib/unictype/pr_line_separator.c: New file.
27684         * lib/unictype/pr_logical_order_exception.c: New file.
27685         * lib/unictype/pr_lowercase.c: New file.
27686         * lib/unictype/pr_math.c: New file.
27687         * lib/unictype/pr_non_break.c: New file.
27688         * lib/unictype/pr_not_a_character.c: New file.
27689         * lib/unictype/pr_numeric.c: New file.
27690         * lib/unictype/pr_other_alphabetic.c: New file.
27691         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27692         * lib/unictype/pr_other_grapheme_extend.c: New file.
27693         * lib/unictype/pr_other_id_continue.c: New file.
27694         * lib/unictype/pr_other_id_start.c: New file.
27695         * lib/unictype/pr_other_lowercase.c: New file.
27696         * lib/unictype/pr_other_math.c: New file.
27697         * lib/unictype/pr_other_uppercase.c: New file.
27698         * lib/unictype/pr_paired_punctuation.c: New file.
27699         * lib/unictype/pr_paragraph_separator.c: New file.
27700         * lib/unictype/pr_pattern_syntax.c: New file.
27701         * lib/unictype/pr_pattern_white_space.c: New file.
27702         * lib/unictype/pr_private_use.c: New file.
27703         * lib/unictype/pr_punctuation.c: New file.
27704         * lib/unictype/pr_quotation_mark.c: New file.
27705         * lib/unictype/pr_radical.c: New file.
27706         * lib/unictype/pr_sentence_terminal.c: New file.
27707         * lib/unictype/pr_soft_dotted.c: New file.
27708         * lib/unictype/pr_space.c: New file.
27709         * lib/unictype/pr_terminal_punctuation.c: New file.
27710         * lib/unictype/pr_test.c: New file.
27711         * lib/unictype/pr_titlecase.c: New file.
27712         * lib/unictype/pr_unassigned_code_value.c: New file.
27713         * lib/unictype/pr_unified_ideograph.c: New file.
27714         * lib/unictype/pr_uppercase.c: New file.
27715         * lib/unictype/pr_variation_selector.c: New file.
27716         * lib/unictype/pr_white_space.c: New file.
27717         * lib/unictype/pr_xid_continue.c: New file.
27718         * lib/unictype/pr_xid_start.c: New file.
27719         * lib/unictype/pr_zero_width.c: New file.
27720         * lib/unictype/scripts.c: New file.
27721         * lib/unictype/sy_c_ident.c: New file.
27722         * lib/unictype/sy_c_whitespace.c: New file.
27723         * lib/unictype/sy_java_ident.c: New file.
27724         * lib/unictype/sy_java_whitespace.c: New file.
27725
27726         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27727         Unicode 5.0.0.
27728         * lib/unictype/blocks.h: Likewise.
27729         * lib/unictype/categ_C.h: Likewise.
27730         * lib/unictype/categ_Cc.h: Likewise.
27731         * lib/unictype/categ_Cf.h: Likewise.
27732         * lib/unictype/categ_Cn.h: Likewise.
27733         * lib/unictype/categ_Co.h: Likewise.
27734         * lib/unictype/categ_Cs.h: Likewise.
27735         * lib/unictype/categ_L.h: Likewise.
27736         * lib/unictype/categ_Ll.h: Likewise.
27737         * lib/unictype/categ_Lm.h: Likewise.
27738         * lib/unictype/categ_Lo.h: Likewise.
27739         * lib/unictype/categ_Lt.h: Likewise.
27740         * lib/unictype/categ_Lu.h: Likewise.
27741         * lib/unictype/categ_M.h: Likewise.
27742         * lib/unictype/categ_Mc.h: Likewise.
27743         * lib/unictype/categ_Me.h: Likewise.
27744         * lib/unictype/categ_Mn.h: Likewise.
27745         * lib/unictype/categ_N.h: Likewise.
27746         * lib/unictype/categ_Nd.h: Likewise.
27747         * lib/unictype/categ_Nl.h: Likewise.
27748         * lib/unictype/categ_No.h: Likewise.
27749         * lib/unictype/categ_P.h: Likewise.
27750         * lib/unictype/categ_Pc.h: Likewise.
27751         * lib/unictype/categ_Pd.h: Likewise.
27752         * lib/unictype/categ_Pe.h: Likewise.
27753         * lib/unictype/categ_Pf.h: Likewise.
27754         * lib/unictype/categ_Pi.h: Likewise.
27755         * lib/unictype/categ_Po.h: Likewise.
27756         * lib/unictype/categ_Ps.h: Likewise.
27757         * lib/unictype/categ_S.h: Likewise.
27758         * lib/unictype/categ_Sc.h: Likewise.
27759         * lib/unictype/categ_Sk.h: Likewise.
27760         * lib/unictype/categ_Sm.h: Likewise.
27761         * lib/unictype/categ_So.h: Likewise.
27762         * lib/unictype/categ_Z.h: Likewise.
27763         * lib/unictype/categ_Zl.h: Likewise.
27764         * lib/unictype/categ_Zp.h: Likewise.
27765         * lib/unictype/categ_Zs.h: Likewise.
27766         * lib/unictype/categ_of.h: Likewise.
27767         * lib/unictype/combining.h: Likewise.
27768         * lib/unictype/ctype_alnum.h: Likewise.
27769         * lib/unictype/ctype_alpha.h: Likewise.
27770         * lib/unictype/ctype_blank.h: Likewise.
27771         * lib/unictype/ctype_cntrl.h: Likewise.
27772         * lib/unictype/ctype_digit.h: Likewise.
27773         * lib/unictype/ctype_graph.h: Likewise.
27774         * lib/unictype/ctype_lower.h: Likewise.
27775         * lib/unictype/ctype_print.h: Likewise.
27776         * lib/unictype/ctype_punct.h: Likewise.
27777         * lib/unictype/ctype_space.h: Likewise.
27778         * lib/unictype/ctype_upper.h: Likewise.
27779         * lib/unictype/ctype_xdigit.h: Likewise.
27780         * lib/unictype/decdigit.h: Likewise.
27781         * lib/unictype/digit.h: Likewise.
27782         * lib/unictype/mirror.h: Likewise.
27783         * lib/unictype/numeric.h: Likewise.
27784         * lib/unictype/pr_alphabetic.h: Likewise.
27785         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27786         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27787         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27788         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27789         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27790         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27791         * lib/unictype/pr_bidi_control.h: Likewise.
27792         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27793         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27794         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27795         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27796         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27797         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27798         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27799         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27800         * lib/unictype/pr_bidi_pdf.h: Likewise.
27801         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27802         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27803         * lib/unictype/pr_combining.h: Likewise.
27804         * lib/unictype/pr_composite.h: Likewise.
27805         * lib/unictype/pr_currency_symbol.h: Likewise.
27806         * lib/unictype/pr_dash.h: Likewise.
27807         * lib/unictype/pr_decimal_digit.h: Likewise.
27808         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27809         * lib/unictype/pr_deprecated.h: Likewise.
27810         * lib/unictype/pr_diacritic.h: Likewise.
27811         * lib/unictype/pr_extender.h: Likewise.
27812         * lib/unictype/pr_format_control.h: Likewise.
27813         * lib/unictype/pr_grapheme_base.h: Likewise.
27814         * lib/unictype/pr_grapheme_extend.h: Likewise.
27815         * lib/unictype/pr_grapheme_link.h: Likewise.
27816         * lib/unictype/pr_hex_digit.h: Likewise.
27817         * lib/unictype/pr_hyphen.h: Likewise.
27818         * lib/unictype/pr_id_continue.h: Likewise.
27819         * lib/unictype/pr_id_start.h: Likewise.
27820         * lib/unictype/pr_ideographic.h: Likewise.
27821         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27822         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27823         * lib/unictype/pr_ignorable_control.h: Likewise.
27824         * lib/unictype/pr_iso_control.h: Likewise.
27825         * lib/unictype/pr_join_control.h: Likewise.
27826         * lib/unictype/pr_left_of_pair.h: Likewise.
27827         * lib/unictype/pr_line_separator.h: Likewise.
27828         * lib/unictype/pr_logical_order_exception.h: Likewise.
27829         * lib/unictype/pr_lowercase.h: Likewise.
27830         * lib/unictype/pr_math.h: Likewise.
27831         * lib/unictype/pr_non_break.h: Likewise.
27832         * lib/unictype/pr_not_a_character.h: Likewise.
27833         * lib/unictype/pr_numeric.h: Likewise.
27834         * lib/unictype/pr_other_alphabetic.h: Likewise.
27835         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27836         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27837         * lib/unictype/pr_other_id_continue.h: Likewise.
27838         * lib/unictype/pr_other_id_start.h: Likewise.
27839         * lib/unictype/pr_other_lowercase.h: Likewise.
27840         * lib/unictype/pr_other_math.h: Likewise.
27841         * lib/unictype/pr_other_uppercase.h: Likewise.
27842         * lib/unictype/pr_paired_punctuation.h: Likewise.
27843         * lib/unictype/pr_paragraph_separator.h: Likewise.
27844         * lib/unictype/pr_pattern_syntax.h: Likewise.
27845         * lib/unictype/pr_pattern_white_space.h: Likewise.
27846         * lib/unictype/pr_private_use.h: Likewise.
27847         * lib/unictype/pr_punctuation.h: Likewise.
27848         * lib/unictype/pr_quotation_mark.h: Likewise.
27849         * lib/unictype/pr_radical.h: Likewise.
27850         * lib/unictype/pr_sentence_terminal.h: Likewise.
27851         * lib/unictype/pr_soft_dotted.h: Likewise.
27852         * lib/unictype/pr_space.h: Likewise.
27853         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27854         * lib/unictype/pr_titlecase.h: Likewise.
27855         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27856         * lib/unictype/pr_unified_ideograph.h: Likewise.
27857         * lib/unictype/pr_uppercase.h: Likewise.
27858         * lib/unictype/pr_variation_selector.h: Likewise.
27859         * lib/unictype/pr_white_space.h: Likewise.
27860         * lib/unictype/pr_xid_continue.h: Likewise.
27861         * lib/unictype/pr_xid_start.h: Likewise.
27862         * lib/unictype/pr_zero_width.h: Likewise.
27863         * lib/unictype/scripts.h: Likewise.
27864         * lib/unictype/scripts_byname.gperf: Likewise.
27865         * lib/unictype/sy_c_ident.h: Likewise.
27866         * lib/unictype/sy_c_whitespace.h: Likewise.
27867         * lib/unictype/sy_java_ident.h: Likewise.
27868         * lib/unictype/sy_java_whitespace.h: Likewise.
27869
27870         * lib/unictype/Makefile: New file.
27871         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27872         glibc.
27873         * lib/unictype/3level.h: New file, copied from glibc.
27874         * lib/unictype/3levelbit.h: New file.
27875
27876 2007-11-11  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/gperf: New file.
27879         * modules/iconv_open (Depends-on): Add it.
27880         (Makefile.am): Remove the GPERF definition.
27881
27882 2007-11-11  Bruno Haible  <bruno@clisp.org>
27883
27884         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27885         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27886
27887 2007-11-11  Bruno Haible  <bruno@clisp.org>
27888
27889         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27890         (usage): Remove function.
27891
27892 2007-11-11  Bruno Haible  <bruno@clisp.org>
27893
27894         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27895         gl_FUNC_CEILF_LIBS.
27896         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27897         gl_FUNC_CEIL_LIBS.
27898         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27899         gl_FUNC_CEILL_LIBS.
27900         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27901         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27902         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27903
27904 2007-11-11  Bruno Haible  <bruno@clisp.org>
27905
27906         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27907         roundf were declared but do not exist on functions.
27908         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27909         roundl were declared but do not exist on functions.
27910         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27911         HAVE_FLOORL_AND_CEILL, respectively.
27912         Needed for Sun C on Solaris 10.
27913
27914 2007-11-11  Bruno Haible  <bruno@clisp.org>
27915
27916         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27917         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27918         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27919         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27920         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27921         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27922         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27923         HAVE_DECL_ROUNDF.
27924         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27925         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27927         of HAVE_DECL_ROUND*.
27928         * modules/math (Makefile.am): Update.
27929
27930 2007-11-10  Bruno Haible  <bruno@clisp.org>
27931
27932         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27933         ptrdiff_t as m4/intl.m4.
27934
27935 2007-11-10  Jim Meyering  <meyering@redhat.com>
27936
27937         Avoid link failure for the argmatch test.
27938         * tests/test-argmatch.c (usage): Define function to avoid a link
27939         failure: argmatch_die requires a usage function.
27940
27941 2007-11-09  Bruno Haible  <bruno@clisp.org>
27942
27943         * doc/functions/snprintf.texi: Mention BeOS deficiency.
27944         * doc/functions/vsnprintf.texi: Likewise.
27945         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27946         with a size argument < 2.
27947
27948 2007-11-09  Bruno Haible  <bruno@clisp.org>
27949
27950         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27951         buffer. Fixes an inefficiency introduced on 2007-11-03.
27952
27953 2007-11-09  Bruno Haible  <bruno@clisp.org>
27954
27955         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27956         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27957
27958 2007-11-08  Jim Meyering  <meyering@redhat.com>
27959
27960         Change cache variable name prefix "jm_" to "gl_" everywhere.
27961         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27962         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27963         * m4/uptime.m4: s/gl_/jm_/
27964
27965 2007-11-07  Bruno Haible  <bruno@clisp.org>
27966
27967         Update to GNU gettext 0.17.
27968         * m4/intl.m4: Update to GNU gettext 0.17.
27969         * m4/po.m4: Likewise.
27970         * modules/gettext (Files): Remove m4/ulonglong.m4.
27971         (configure.ac): Require gettext infrastructure from version 0.17.
27972
27973 2007-11-06  Bruno Haible  <bruno@clisp.org>
27974
27975         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27976         symbolic values are not defined in a public header.
27977         * lib/freadable.c (freadable) [QNX]: Likewise.
27978         * lib/freadahead.c (freadahead) [QNX]: Likewise.
27979         * lib/freading.c (freading) [QNX]: Likewise.
27980         * lib/fseterr.c (fseterr) [QNX]: Likewise.
27981         * lib/fwritable.c (fwritable) [QNX]: Likewise.
27982         * lib/fwriting.c (fwriting) [QNX]: Likewise.
27983         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27984         Reported by Alain Magloire.
27985
27986         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27987
27988 2007-11-05  Bruno Haible  <bruno@clisp.org>
27989
27990         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27991         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27992         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27993         Reported by Eric Blake.
27994
27995 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27996             Bruno Haible  <bruno@clisp.org>
27997
27998         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27999         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28000         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28001         (malloc): Undefine also before including <stdlib.h>.
28002         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28003         Needed on OSF/1 4.0.
28004
28005 2007-11-05  Jim Meyering  <meyering@redhat.com>
28006
28007         git-version-gen: sync from coreutils.
28008         * build-aux/git-version-gen: Add comments.
28009         Change the first '-' to '.' in the snapshot version string,
28010         e.g., 6.9-377-08144 -> 6.9.377-08144
28011         Remove first parameter.
28012         Don't declare a version "-dirty" merely because a time
28013         stamp has changed.
28014
28015 2007-11-04  Bruno Haible  <bruno@clisp.org>
28016
28017         * lib/lock.h: Protect all macro definitions containing an 'if'
28018         statement through a "do { ... } while (0)".
28019         * lib/tls.h: Likewise.
28020
28021 2007-11-04  Bruno Haible  <bruno@clisp.org>
28022
28023         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28024
28025 2007-11-04  Bruno Haible  <bruno@clisp.org>
28026
28027         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28028         * modules/fprintf-posix (Depends-on): Add nocrash.
28029         * modules/snprintf-posix (Depends-on): Likewise.
28030         * modules/sprintf-posix (Depends-on): Likewise.
28031         * modules/vasnprintf-posix (Depends-on): Likewise.
28032         * modules/vasprintf-posix (Depends-on): Likewise.
28033         * modules/vfprintf-posix (Depends-on): Likewise.
28034         * modules/vsnprintf-posix (Depends-on): Likewise.
28035         * modules/vsprintf-posix (Depends-on): Likewise.
28036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28037         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28038         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28039         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28040         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28041         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28043
28044 2007-11-04  Bruno Haible  <bruno@clisp.org>
28045
28046         * modules/nocrash: New file.
28047         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28048         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28049
28050 2007-11-04  Bruno Haible  <bruno@clisp.org>
28051
28052         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28053         precision handling.
28054         * tests/test-vasprintf-posix.c (test_function): Likewise.
28055         * tests/test-snprintf-posix.h (test_function): Likewise.
28056         * tests/test-sprintf-posix.h (test_function): Likewise.
28057
28058         Fix *printf behaviour for large precisions on mingw and BeOS.
28059         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28060         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28062         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28063         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28064         gl_PRINTF_PRECISION and test its result. Invoke
28065         gl_PREREQ_VASNPRINTF_PRECISION.
28066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28073         * doc/functions/fprintf.texi: Update.
28074         * doc/functions/printf.texi: Update.
28075         * doc/functions/snprintf.texi: Update.
28076         * doc/functions/sprintf.texi: Update.
28077         * doc/functions/vfprintf.texi: Update.
28078         * doc/functions/vprintf.texi: Update.
28079         * doc/functions/vsnprintf.texi: Update.
28080         * doc/functions/vsprintf.texi: Update.
28081
28082 2007-11-04  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28085
28086 2007-11-04  Bruno Haible  <bruno@clisp.org>
28087
28088         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28089         Reported by Sylvain Beucler <beuc@gnu.org>.
28090
28091 2007-11-03  Bruno Haible  <bruno@clisp.org>
28092
28093         * tests/test-fprintf-posix2.sh: New file.
28094         * tests/test-fprintf-posix2.c: New file.
28095         * modules/fprintf-posix-tests (Files): Add them.
28096         (TESTS): Add test-fprintf-posix2.sh.
28097         (configure.ac): Check for getrlimit and setrlimit.
28098         (check_PROGRAMS): Add test-fprintf-posix2.
28099
28100         * tests/test-printf-posix2.sh: New file.
28101         * tests/test-printf-posix2.c: New file.
28102         * modules/printf-posix-tests (Files): Add them.
28103         (TESTS): Add test-printf-posix2.sh.
28104         (configure.ac): Check for getrlimit and setrlimit.
28105         (check_PROGRAMS): Add test-printf-posix2.
28106
28107         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28108         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28109         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28110         (decode_double): New function, copied from decode_long_double.
28111         (scale10_round_decimal_decoded): New function, extracted from
28112         scale10_round_decimal_long_double.
28113         (scale10_round_decimal_long_double): Use it.
28114         (scale10_round_decimal_double): New function.
28115         (floorlog10): New function.
28116         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28118         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28120         gl_PRINTF_ENOMEM and test its result. Invoke
28121         gl_PREREQ_VASNPRINTF_ENOMEM.
28122         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28123         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28124         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28125         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28126         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28128         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28129         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28130         * modules/snprintf-posix (Depends-on): Likewise.
28131         * modules/sprintf-posix (Depends-on): Likewise.
28132         * modules/vasnprintf-posix (Depends-on): Likewise.
28133         * modules/vasprintf-posix (Depends-on): Likewise.
28134         * modules/vfprintf-posix (Depends-on): Likewise.
28135         * modules/vsnprintf-posix (Depends-on): Likewise.
28136         * modules/vsprintf-posix (Depends-on): Likewise.
28137         * doc/functions/fprintf.texi: Update.
28138         * doc/functions/printf.texi: Update.
28139         * doc/functions/snprintf.texi: Update.
28140         * doc/functions/sprintf.texi: Update.
28141         * doc/functions/vfprintf.texi: Update.
28142         * doc/functions/vprintf.texi: Update.
28143         * doc/functions/vsnprintf.texi: Update.
28144         * doc/functions/vsprintf.texi: Update.
28145
28146 2007-11-03  Bruno Haible  <bruno@clisp.org>
28147
28148         * modules/frexp-nolibm-tests: New file.
28149
28150         * modules/frexp-nolibm: New file.
28151         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28152
28153 2007-11-03  Bruno Haible  <bruno@clisp.org>
28154
28155         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28156         value is C99 compliant.
28157         Needed for OSF/1 5.1.
28158
28159 2007-11-03  Bruno Haible  <bruno@clisp.org>
28160
28161         Fix out-of-memory handling of vasnprintf.
28162         * lib/printf-parse.c: Include <errno.h>.
28163         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28164         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28165         is already set.
28166
28167 2007-11-02  Eric Blake  <ebb9@byu.net>
28168
28169         Fix tests on cygwin.
28170         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28171
28172 2007-11-01  Bruno Haible  <bruno@clisp.org>
28173
28174         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28175         warning.
28176         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28177         needed for POSIX compatibility.
28178
28179 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28182         for compatibility with GNU.
28183
28184 2007-11-01  Bruno Haible  <bruno@clisp.org>
28185
28186         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28187         (putenv): Renamed from rpl_putenv. Change argument type from
28188         'const char *' to 'char *'.
28189         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28190         of defining putenv in config.h, just set REPLACE_PUTENV.
28191         * modules/putenv (Depends-on): Add stdlib.
28192         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28193         (Include): Use <stdlib.h>.
28194         * lib/stdlib.in.h (putenv): New declaration.
28195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28196         REPLACE_PUTENV.
28197         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28198         REPLACE_PUTENV.
28199         Needed for MacOS X 10.5.0.
28200         Reported by Peter O'Gorman <peter@pogma.com>.
28201
28202 2007-11-01  Jim Meyering  <meyering@redhat.com>
28203
28204         Treat an empty date string exactly like "0".
28205         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28206         if the remaining date string (to be parsed) is empty, use "0".
28207         Reported by Mischa Molhoek and discussed in this thread:
28208         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28209
28210 2007-10-31  Bruno Haible  <bruno@clisp.org>
28211
28212         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28213         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28214         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28215         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28216         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28217         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28218
28219 2007-10-31  Bruno Haible  <bruno@clisp.org>
28220
28221         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28222         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28223         (AC_TYPE_LONG_LONG_INT): Use it.
28224         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28225         it as well.
28226         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28227         to m4/longlong.m4.
28228         * modules/stdint (Files): Remove m4/ulonglong.m4.
28229         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28230         m4/ulonglong.m4.
28231         * modules/strtoumax (Files): Likewise.
28232
28233 2007-10-30  Bruno Haible  <bruno@clisp.org>
28234
28235         * modules/xvasprintf-posix: New file.
28236         Suggested by Eric Blake.
28237
28238 2007-10-30  Bruno Haible  <bruno@clisp.org>
28239
28240         * modules/xprintf-posix-tests: New file.
28241         * tests/test-xprintf-posix.sh: New file.
28242         * tests/test-xprintf-posix.c: New file.
28243         * tests/test-xfprintf-posix.c: New file.
28244
28245         * modules/xprintf-posix: New file.
28246
28247 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28248
28249         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28250         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28251         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28252
28253 2007-10-29  Bruno Haible  <bruno@clisp.org>
28254
28255         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28256         contain the special marker '_cv_'.
28257         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28258         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28259         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28260         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28261         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28262         Reported by Ralf Wildenhues.
28263
28264 2007-10-29  Bruno Haible  <bruno@clisp.org>
28265
28266         * gnulib-tool (func_import): When --lgpl is not specified, set
28267         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28268         GPLv3.
28269         Reported by Simon Josefsson.
28270
28271 2007-10-28  Bruno Haible  <bruno@clisp.org>
28272
28273         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28274         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28275         HAVE_DECL_ISFINITE.
28276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28277         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28278         HAVE_DECL_ISFINITE.
28279
28280 2007-10-28  Bruno Haible  <bruno@clisp.org>
28281
28282         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28283         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28284
28285 2007-10-28  Bruno Haible  <bruno@clisp.org>
28286
28287         Fix link errors with Sun C 5.0 on Solaris 10.
28288         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28289         function is declared but not present in the compiler's libm.
28290         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28291         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28292         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28293         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28294         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28295         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28296         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28298         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28299         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28300         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28301         HAVE_DECL_FLOORL.
28302
28303 2007-10-28  Bruno Haible  <bruno@clisp.org>
28304
28305         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28306         gl_FUNC_FLOORL. Cache the result.
28307         (gl_FUNC_FLOORL): Use it.
28308         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28309         gl_FUNC_CEILL. Cache the result.
28310         (gl_FUNC_CEILL): Use it.
28311
28312         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28313         gl_FUNC_FLOOR. Cache the result.
28314         (gl_FUNC_FLOOR): Use it.
28315         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28316         gl_FUNC_CEIL. Cache the result.
28317         (gl_FUNC_CEIL): Use it.
28318
28319         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28320         gl_FUNC_FLOORF. Cache the result.
28321         (gl_FUNC_FLOORF): Use it.
28322         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28323         gl_FUNC_CEILF. Cache the result.
28324         (gl_FUNC_CEILF): Use it.
28325
28326 2007-10-28  Bruno Haible  <bruno@clisp.org>
28327
28328         * gnulib-tool: Allow specifying the LGPL version number through
28329         --lgpl=2 or --lgpl=3.
28330         (func_usage): Document --lgpl with argument.
28331         Handle --lgpl=... arguments.
28332         (func_import): Recognize also gl_LGPL calls with an argument. When
28333         --lgpl=2 is used and the module's license is just LGPL, report an
28334         error. Set sed_transform_lib_file according to the lgpl variable. In
28335         the generated files, use --lgpl or gl_LGPL invocations with argument,
28336         if necessary.
28337         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28338         an LGPv2+ license.
28339         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28340         gl_LGPL macro.
28341
28342 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28343             Bruno Haible  <bruno@clisp.org>
28344
28345         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28346         (u16_uctomb_aux): Likewise.
28347         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28348         !HAVE_INLINE.
28349         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28350
28351 2007-10-28  Bruno Haible  <bruno@clisp.org>
28352
28353         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28354         Invoke AM_GETTEXT_OPTION if it exists.
28355         * modules/vasprintf: Likewise.
28356         * modules/verror: Likewise.
28357         * modules/xprintf: Likewise.
28358         * modules/xvasprintf: Likewise.
28359
28360 2007-10-27  Ben Pfaff  <blp@gnu.org>
28361
28362         * lib/math.in.h: Define isfinite macro and prototypes for
28363         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28364         implementations.
28365         * m4/math_h.m4: New substitutions for isfinite module.
28366         * lib/isfinite.c: New file.
28367         * m4/isfinite.m4: New file.
28368         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28369         * modules/isfinite: New file.
28370         * modules/isfinite-tests: New file.
28371         * tests/tests-isfinite.c: New file.
28372         * doc/functions/isfinite.texi: Mention isfinite module.
28373         * MODULES.html.sh: Mention new module.
28374
28375 2007-10-27  Ben Pfaff  <blp@gnu.org>
28376
28377         Ralf Wildenhues reported that Tru64 4.0D declares the round
28378         functions but does not have definitions.
28379         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28380         cannot be found in any library, set the output variable to
28381         "missing" instead of "".
28382         * m4/round.m4: Also use our substitute if we cannot find round in
28383         any library, even if it is declared.
28384         * m4/roundf.m4: Likewise for roundf.
28385         * m4/roundl.m4: Likewise for roundl.
28386         * lib/math.in.h: Undefine roundf, round, roundl before defining
28387         their replacements, to allow for hypothetical systems where these
28388         may be defined as macros but not available in libraries.
28389
28390 2007-10-27  Bruno Haible  <bruno@clisp.org>
28391
28392         * doc/gnulib.texi: Invoke @firstparagraphindent.
28393         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28394         changes in gnulib.
28395         (Source changes): New section.
28396
28397 2007-10-26  Bruno Haible  <bruno@clisp.org>
28398
28399         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28400         borrowed from autoconf.
28401
28402 2007-10-26  Bruno Haible  <bruno@clisp.org>
28403
28404         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28405         strerror returned the empty string. Needed on HP-UX 11.00.
28406
28407 2007-10-24  Micah Cowan  <micah@cowan.name>
28408
28409         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28410         * build-aux/bootstrap: Remove support for now-unnecessary option,
28411         --cvs-user, and envvars CVS_USER, CVS_RSH.
28412
28413 2007-10-24  Jim Meyering  <meyering@redhat.com>
28414
28415         Avoid diagnostics from sha1sum when there is no cached checksum.
28416         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28417         if the po.s1 file hasn't been created yet.
28418
28419         * build-aux/bootstrap: Sync from coreutils:
28420         2007-10-24  Jim Meyering  <meyering@redhat.com>
28421         Get gnulib from the git repository, not from an obsolete cvs one.
28422         * build-aux/bootstrap: Suggestion from Micah Cowan.
28423         2007-10-04  Jim Meyering  <jim@meyering.net>
28424         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28425         (update_po_files): Work also when there are no .po files in po/.
28426
28427 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28428
28429         * README: Append ".git" to git and cg examples.
28430         Problem reported by Benoit Sigoure.
28431
28432 2007-10-23  Micah Cowan  <micah@cowan.name>
28433
28434         * users.txt: Add wget.
28435
28436 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28437
28438         Fix linking of some unistdio tests on FreeBSD.
28439         * modules/unistdio/u16-vsnprintf-tests
28440         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28441         * modules/unistdio/u16-vsprintf-tests
28442         (test_u16_vsnprintf1_LDADD): Likewise.
28443         * modules/unistdio/u32-vsnprintf-tests
28444         (test_u32_vsnprintf1_LDADD): Likewise.
28445         * modules/unistdio/u32-vsprintf-tests
28446         (test_u32_vsprintf1_LDADD): Likewise.
28447         * modules/unistdio/u8-vsnprintf-tests
28448         (test_u8_vsnprintf1_LDADD): Likewise.
28449         * modules/unistdio/u8-vsprintf-tests
28450         (test_u8_vsprintf1_LDADD): Likewise.
28451         * modules/unistdio/ulc-vsnprintf-tests
28452         (test_ulc_vsnprintf1_LDADD): Likewise.
28453         * modules/unistdio/ulc-vsprintf-tests
28454         (test_ulc_vsprintf1_LDADD): Likewise.
28455
28456         Fix linking of some uniconv tests on FreeBSD.
28457         * modules/uniconv/u16-conv-from-enc-tests
28458         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28459         * modules/uniconv/u16-conv-to-enc-tests
28460         (test_u16_conv_to_enc_LDADD): Likewise.
28461         * modules/uniconv/u16-strconv-from-enc-tests
28462         (test_u16_strconv_from_enc_LDADD): Likewise.
28463         * modules/uniconv/u16-strconv-to-enc-tests
28464         (test_u16_strconv_to_enc_LDADD): Likewise.
28465         * modules/uniconv/u32-conv-from-enc-tests
28466         (test_u32_conv_from_enc_LDADD): Likewise.
28467         * modules/uniconv/u32-conv-to-enc-tests
28468         (test_u32_conv_to_enc_LDADD): Likewise.
28469         * modules/uniconv/u32-strconv-from-enc-tests
28470         (test_u32_strconv_from_enc_LDADD): Likewise.
28471         * modules/uniconv/u32-strconv-to-enc-tests
28472         (test_u32_strconv_to_enc_LDADD): Likewise.
28473         * modules/uniconv/u8-conv-from-enc-tests
28474         (test_u8_conv_from_enc_LDADD): Likewise.
28475         * modules/uniconv/u8-conv-to-enc-tests
28476         (test_u8_conv_to_enc_LDADD): Likewise.
28477         * modules/uniconv/u8-strconv-from-enc-tests
28478         (test_u8_strconv_from_enc_LDADD): Likewise.
28479         * modules/uniconv/u8-strconv-to-enc-tests
28480         (test_u8_strconv_to_enc_LDADD): Likewise.
28481
28482 2007-10-22  Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28485         size.
28486
28487 2007-10-22  Eric Blake  <ebb9@byu.net>
28488
28489         Tweak x*printf documentation.
28490         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28491         variable name and comments.
28492         Suggested by Bruno Haible.
28493
28494 2007-10-22  Bruno Haible  <bruno@clisp.org>
28495
28496         * lib/acl.c (copy_acl): Fix file name in comment.
28497
28498 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28499
28500         Fix Tru64 problem with stdbool.h.
28501         * lib/stdbool.in.h (false, true):
28502         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28503         Don't declare as an enum in this situation; it runs afoul of Tru64.
28504         Problem reported by Steven M. Schweda in
28505         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28506
28507 2007-10-22  Eric Blake  <ebb9@byu.net>
28508
28509         Also wrap vf?printf.
28510         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28511         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28512         (xvprintf, xvfprintf): New functions.
28513
28514 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28515
28516         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28517         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28518
28519         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28520         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28521
28522 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28523
28524         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28525         by Bruno Haible.
28526
28527 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28528
28529         * lib/getloadavg.c
28530         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28531         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28532
28533         * tests/test-i-ring.c: Work for C89.
28534
28535 2007-10-22  Bruno Haible  <bruno@clisp.org>
28536
28537         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28538         -1u, in preprocessor expression, so that we don't test for the bug
28539         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28540         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28541
28542 2007-10-22  Eric Blake  <ebb9@byu.net>
28543
28544         * tests/test-yesno.sh: Silence stderr during test.
28545
28546 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28547
28548         * modules/crypto/gc-camellia: New file.
28549
28550         * m4/gc-camellia.m4: New file.
28551
28552         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28553
28554         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28555
28556 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28557
28558         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28559         --help to stdout.  Reported by sms@antinode.org (Steven
28560         M. Schweda).
28561
28562 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28563
28564         * users.txt: Fix link to libksba.
28565
28566 2007-10-21  Ben Pfaff  <blp@gnu.org>
28567
28568         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28569         round.c roundf implementation that depends on floorf and ceilf to
28570         be tested unconditionally.
28571
28572 2007-10-21  Ben Pfaff  <blp@gnu.org>
28573
28574         * m4/check-libm-func.m4: Removed.
28575         * m4/check-math-lib.m4: New file.
28576         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28577         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28578         definition and lack of AC_LIBOBJ([roundf]).
28579         * m4/roundl.m4: Ditto, and similarly for roundl.
28580         * modules/round: Reference new m4 file.
28581         * modules/roundf: Ditto.
28582         * modules/roundl: Ditto.
28583         * tests/test-round2.c (main): Use ROUND instead of round.
28584         Bug report from Bruno Haible.
28585
28586 2007-10-21  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28589         context.
28590
28591 2007-10-21  Bruno Haible  <bruno@clisp.org>
28592
28593         * tests/test-wcwidth.c (main): Allow negative result for some control
28594         characters.
28595
28596         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28597         Needed on OSF/1 5.1.
28598
28599 2007-10-21  Bruno Haible  <bruno@clisp.org>
28600
28601         * tests/test-floorf1.c: Include isnanf.h.
28602         (main): Use isnanf() instead of isnan().
28603         * tests/test-ceilf1.c: Include isnanf.h.
28604         (main): Use isnanf() instead of isnan().
28605         * tests/test-truncf1.c: Include isnanf.h.
28606         (main): Use isnanf() instead of isnan().
28607         * tests/test-roundf1.c: Include isnanf.h.
28608         (main): Use isnanf() instead of isnan().
28609
28610 2007-10-21  Eric Blake  <ebb9@byu.net>
28611
28612         * users.txt: Update URL for m4.
28613
28614 2007-10-21  Bruno Haible  <bruno@clisp.org>
28615
28616         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28617
28618 2007-10-21  Bruno Haible  <bruno@clisp.org>
28619
28620         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28621         Git's management files if the CVS files are not present.
28622
28623 2007-10-20  Bruno Haible  <bruno@clisp.org>
28624
28625         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28626         gcc-3.4.x.
28627
28628 2007-10-20  Ben Pfaff  <blp@gnu.org>
28629
28630         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28631         implementations.
28632         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28633         * lib/round.c: New file.
28634         * lib/roundf.c: New file.
28635         * lib/roundl.c: New file.
28636         * m4/round.m4: New file.
28637         * m4/roundf.m4: New file.
28638         * m4/roundl.m4: New file.
28639         * m4/check-libm-func-m4: New file.
28640         * modules/math: Replace round, roundf, roundl related @VARS@ in
28641         math.in.h.
28642         * modules/round: New file.
28643         * modules/round-tests: New file.
28644         * modules/roundf: New file.
28645         * modules/roundf-tests: New file.
28646         * modules/roundl: New file.
28647         * modules/roundl-tests: New file.
28648         * tests/test-round1.c: New file.
28649         * tests/test-round2.c: New file.
28650         * tests/test-roundf1.c: New file.
28651         * tests/test-roundf2.c: New file.
28652         * tests/test-roundl.c: New file.
28653         * doc/functions/round.texi: Mention round module.
28654         * doc/functions/roundf.texi: Mention roundf module.
28655         * doc/functions/roundl.texi: Mention roundl module.
28656         * MODULES.html.sh: Mention new modules.
28657         Thanks to Bruno Haible for suggestions.
28658
28659 2007-10-20  Jim Meyering  <meyering@redhat.com>
28660
28661         * lib/xprintf.c: Include <config.h> unconditionally.
28662
28663         Change xprintf's license to GPL.
28664         * modules/xprintf (License): s/LGPL/GPL/, since this module
28665         depends on modules (exit and exitfail) which are GPL.
28666         Suggestion from Bruno Haible.
28667
28668         xprintf fixes.
28669         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28670         Use a clearer diagnostic.
28671         Patch from Bruno Haible.
28672
28673 2007-10-20  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28676         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28677         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28678
28679 2007-10-20  Bruno Haible  <bruno@clisp.org>
28680
28681         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28682         precision in the comparison result > x - 1 or similar.
28683         * tests/test-ceilf2.c (correct_result_p): Likewise.
28684         * tests/test-truncf2.c (correct_result_p): Likewise.
28685         * tests/test-trunc2.c (correct_result_p): Likewise.
28686         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28687
28688 2007-10-20  Bruno Haible  <bruno@clisp.org>
28689
28690         * modules/ceil: New file.
28691         * m4/ceil.m4: New file.
28692         * doc/functions/ceil.texi: Mention the 'ceil' module.
28693
28694 2007-10-20  Bruno Haible  <bruno@clisp.org>
28695
28696         * modules/floor: New file.
28697         * m4/floor.m4: New file.
28698         * doc/functions/floor.texi: Mention the 'floor' module.
28699
28700 2007-10-20  Bruno Haible  <bruno@clisp.org>
28701
28702         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28703         of %a.
28704         * modules/floorf-tests (Depends-on): Likewise.
28705         * modules/truncf-tests (Depends-on): Likewise.
28706         * modules/trunc-tests (Depends-on): Likewise.
28707         Reported by Ben Pfaff.
28708
28709 2007-10-19  Jim Meyering  <meyering@redhat.com>
28710
28711         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28712         Don't bother testing specific errno values.  Just test ferror.
28713
28714         New module: xprintf
28715         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28716
28717 2007-10-19  Bruno Haible  <bruno@clisp.org>
28718
28719         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28720         syntax.
28721         * modules/javaexec (Makefile.am): Likewise.
28722         * modules/relocatable-prog (Makefile.am): Likewise.
28723         Suggested by Jim Meyering.
28724
28725 2007-10-18  Bruno Haible  <bruno@clisp.org>
28726
28727         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28728         Reported by Jim Meyering.
28729
28730 2007-10-18  Eric Blake  <ebb9@byu.net>
28731
28732         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28733
28734 2007-10-18  Bruno Haible  <bruno@clisp.org>
28735
28736         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28737         the format string into writable memory. Needed in Fortify conditions.
28738
28739 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28740             Bruno Haible  <bruno@clisp.org>
28741
28742         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28743         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28744         * modules/trim (Depends-on): Add mbchar.
28745         (configure.ac): Add gl_FUNC_MBRTOWC.
28746         (Makefile.am): Augment lib_SOURCES.
28747
28748 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28749
28750         Modify glob.c to use fstatat and dirfd, to simplify it.
28751         Suggested by Eric Blake.
28752         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28753         Don't include <stdbool.h>; not used.
28754         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28755         (link_exists_p): Simplify implementation, since we can now assume
28756         dirfd and fstatat.
28757         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28758
28759 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28760
28761         * gnulib-tool (func_get_dependencies): Fix sed script to
28762         match only tests.
28763
28764 2007-10-17  Bruno Haible  <bruno@clisp.org>
28765
28766         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28767         allow locale names without encoding suffix.
28768         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28770
28771 2007-10-16  Bruno Haible  <bruno@clisp.org>
28772
28773         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28774         * lib/getgroups.c (getgroups): Likewise.
28775         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28776
28777 2007-10-16  Bruno Haible  <bruno@clisp.org>
28778
28779         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28780         * modules/malloc-posix (License): Likewise.
28781         * modules/realloc-posix (License): Likewise.
28782         * modules/calloc-posix (License): Likewise.
28783         * modules/intprops (License): Change from GPL to LGPL, with
28784         Paul Eggert's approval.
28785
28786 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28787
28788         Merge glibc changes into lib/glob.c.
28789
28790         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28791         2007-10-15 04:59:03 UTC.  Here are the changes:
28792
28793         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28794
28795         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28796
28797         * lib/glob.c: Add some branch prediction throughout.
28798
28799         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28800
28801         [BZ #5103]
28802         * lib/glob.c (glob): Recognize patterns starting \/.
28803
28804         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28805
28806         [BZ #3996]
28807         * lib/glob.c (attribute_hidden): Define if not defined.
28808         (glob): Unescape dirname, filename or username when needed and not
28809         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28810         is NULL.  Handle unescaped [ in pattern without closing ].
28811         Don't pass GLOB_CHECK down to recursive glob for directories.
28812         (__glob_pattern_type): New function.
28813         (__glob_pattern_p): Implement using __glob_pattern_type.
28814         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28815         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28816         Remove unreachable code.
28817
28818         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28819
28820         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28821         explain why there are no leaks.
28822
28823         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28824
28825         [BZ #3253]
28826         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28827         time, rather allocate increasingly bigger arrays of pointers, if
28828         possible with alloca, if too large with malloc.
28829
28830 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28831
28832         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28833         Problem reported by H.Merijn Brand in
28834         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28835         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28836         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28837
28838 2007-10-15  Bruno Haible  <bruno@clisp.org>
28839
28840         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28841         with explicit rpl_ prefix.
28842         * lib/fopen.c (fopen): Likewise.
28843         * lib/freopen.c (freopen): Likewise.
28844         * lib/iconv.c (iconv): Likewise.
28845         * lib/iconv_close.c (iconv_close): Likewise.
28846
28847 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28848
28849         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28850
28851 2007-10-15  Bruno Haible  <bruno@clisp.org>
28852
28853         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28854         <stddef.h> instead of <stdlib.h> since we only need NULL.
28855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28856
28857 2007-10-15  Bruno Haible  <bruno@clisp.org>
28858
28859         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28860         Replace paragraph talking about LIBOBJS.
28861         Reported by Colin Watson <cjwatson@debian.org>.
28862
28863 2007-10-15  Bruno Haible  <bruno@clisp.org>
28864
28865         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28866         <stdlib.h> before using NULL.
28867
28868 2007-10-15  Simon Josefsson  <simon@josefsson.org>
28869
28870         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28871         Reported by Albert Chin <china@thewrittenword.com>.
28872
28873 2007-10-14  Bruno Haible  <bruno@clisp.org>
28874
28875         * modules/iconv_open-utf-tests: New file.
28876         * tests/test-iconv-utf.c: New file.
28877
28878         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28879         * modules/iconv_open-utf: New file.
28880         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28881         (iconv, iconv_close): New declarations.
28882         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28883         be defined.
28884         (iconv_open): Add special handling of conversion between UTF-8 and
28885         UTF-{16,32}{BE,LE}.
28886         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28887         * lib/iconv_close.c: New file.
28888         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28889         gl_FUNC_ICONV_OPEN.
28890         (gl_FUNC_ICONV_OPEN): Use it.
28891         (gl_FUNC_ICONV_OPEN_UTF): New macro.
28892         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28893         and REPLACE_ICONV_UTF.
28894         * modules/iconv_open (Depends-on): Add c-strcase.
28895         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28896         ICONV_CONST.
28897         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28898
28899 2007-10-13  Albert Chin  <china@thewrittenword.com>
28900             Bruno Haible  <bruno@clisp.org>
28901
28902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28903         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28904
28905 2007-10-13  Bruno Haible  <bruno@clisp.org>
28906
28907         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28908         defined, use the ISO C99 inline semantics.
28909         * lib/argp.h (ARGP_EI): Likewise.
28910
28911 2007-10-13  Bruno Haible  <bruno@clisp.org>
28912
28913         Handle 'inline' change in gcc 4.3.0.
28914         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28915         argp_fmtstream_write, argp_fmtstream_set_lmargin,
28916         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28917         argp_fmtstream_point): Disable 'extern' declaration if the function
28918         definition is going to be provided inline.
28919         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28920         semantics, not the ISO C99 inline semantics.
28921         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28922         'extern' declaration if the function definition is going to be provided
28923         inline.
28924         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28925         the GNU C inline semantics, not the ISO C99 inline semantics. With
28926         GCC 4.2, avoid a warning.
28927
28928 2007-10-13  Bruno Haible  <bruno@clisp.org>
28929
28930         * lib/freading.h (freading): Enable the use of __freading for
28931         glibc >= 2.7.
28932         * lib/freading.c (freading): Likewise.
28933
28934 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28935
28936         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28937         "warning: C99 inline functions are not supported; using GNU89".
28938
28939 2007-10-12  Bruno Haible  <bruno@clisp.org>
28940
28941         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28942         of 2.
28943         * tests/test-ceilf2.c: New file.
28944         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28945
28946         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28947         * modules/ceilf-tests: Update.
28948
28949 2007-10-12  Bruno Haible  <bruno@clisp.org>
28950
28951         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28952         of 2.
28953         * tests/test-floorf2.c: New file.
28954         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28955
28956         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28957         * modules/floorf-tests: Update.
28958
28959 2007-10-12  Bruno Haible  <bruno@clisp.org>
28960
28961         * tests/test-trunc2.c: New file.
28962         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28963
28964         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28965         * modules/trunc-tests: Update.
28966
28967 2007-10-12  Bruno Haible  <bruno@clisp.org>
28968
28969         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28970         of 2.
28971         * tests/test-truncf2.c: New file.
28972         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28973
28974         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28975         * modules/truncf-tests: Update.
28976
28977 2007-10-11  Eric Blake  <ebb9@byu.net>
28978
28979         Don't claim strerror is broken on Interix.
28980         * doc/functions/strerror.texi (strerror): Known broken systems are
28981         now Solaris 8, and not Interix.
28982         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28983         Interix on cross-compile.
28984         Reported by Martin Koeppe in
28985         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28986
28987 2007-10-11  Bruno Haible  <bruno@clisp.org>
28988
28989         * modules/i-ring-tests: New file.
28990         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28991         instead of assert.
28992
28993 2007-10-11  Bruno Haible  <bruno@clisp.org>
28994
28995         * modules/filenamecat-tests: New file.
28996         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28997         * lib/filenamecat.c: Remove test code.
28998
28999 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29000
29001         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29002
29003         * lib/strerror.c: Include <string.h> always, to test interface,
29004         and to remove the need for the dummy.
29005         Include intprops.h to compute width instead of doing it ourselves
29006         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29007         (strerror): Define it to return NULL if there's no system strerror.
29008         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29009         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29010         ancient pre-strerror Unix systems well any more.  Saying "unknown
29011         system error" is enough.
29012         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29013         simpler strerror.c implementation.
29014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29015         Simplify the tests to reflect the simpler strerror implementation.
29016         * modules/strerror (Depends-on): Add intprops.
29017
29018 2007-10-09  Eric Blake  <ebb9@byu.net>
29019
29020         Silence test-fpending.
29021         * modules/fpending-tests (Files): Add wrapper script.
29022         * tests/test-fpending.sh: New file.
29023
29024 2007-10-09  Bruno Haible  <bruno@clisp.org>
29025
29026         * MODULES.html.sh (func_module): Don't create a hyperlink for
29027         function names like 'printf_frexp'.
29028         (Misc): Add crc, memxor.
29029         (Characteristics of floating types): New section.
29030         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29031         isnanf-nolibm, signbit, trunc, truncf, truncl.
29032         (Enhancements for ISO C 99 functions): New subsection Input/output.
29033         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29034         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29035         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29036         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29037         (Enhancements for POSIX:2001 functions): Add chdir-long.
29038         (File system functions): Add areadlink, chdir-safer, read-file.
29039         Remove cycle-check.
29040         (File system as inode set): New section.
29041         (Date and time): Add gethrxtime.
29042         (Multithreading): Add openmp.
29043         (Internationalization functions): Add localename.
29044         (Unicode string functions): Add unistr/u*-mbsnlen.
29045         (Support for maintaining and releasing projects): Add git-version-gen.
29046         (Lone files): Remove directories.
29047
29048 2007-10-08  Ben Pfaff  <blp@gnu.org>
29049
29050         * lib/xmalloca.h: Fix typo in comment.
29051
29052 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29053
29054         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29055         when avoiding problems with integer overflow.  Use a portable test
29056         instead.
29057
29058 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29059
29060         * modules/dummy (License): Change to LGPLv2+.
29061         * modules/float (License): Likewise
29062         * modules/realloc (License): Likewise
29063         * modules/stdlib (License): Likewise
29064
29065 2007-10-07  Bruno Haible  <bruno@clisp.org>
29066
29067         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29068         * floor.c (TWO_MANT_DIG): Likewise.
29069         * ceil.c (TWO_MANT_DIG): Likewise.
29070         Reported by Ben Pfaff.
29071
29072 2007-10-07  Bruno Haible  <bruno@clisp.org>
29073
29074         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29075         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29076         * lib/frexp.c (FUNC): Likewise.
29077         * lib/printf-frexp.h (printf_frexp): Likewise.
29078         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29079         * lib/printf-frexp.c (FUNC): Likewise.
29080         Suggested by Jim Meyering.
29081
29082 2007-10-07  Jim Meyering  <meyering@redhat.com>
29083
29084         Make xnanosleep's integer overflow test more robust.
29085         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29086         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29087
29088 2007-10-07  Bruno Haible  <bruno@clisp.org>
29089
29090         * NEWS: Mention the license change.
29091
29092         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29093         abbreviations in the modules files.
29094
29095         Change copyright notice from GPLv2+ to GPLv3+.
29096         * README: Change copyright notice.
29097         * MODULES.html.sh: Likewise.
29098         * build-aux/bootstrap.conf: Likewise.
29099         * build-aux/config.libpath: Likewise.
29100         * build-aux/csharpcomp.sh.in: Likewise.
29101         * build-aux/csharpexec.sh.in: Likewise.
29102         * build-aux/install-reloc: Likewise.
29103         * build-aux/javacomp.sh.in: Likewise.
29104         * build-aux/javaexec.sh.in: Likewise.
29105         * build-aux/ldd.sh.in: Likewise.
29106         * build-aux/reloc-ldflags: Likewise.
29107         * build-aux/relocatable.sh.in: Likewise.
29108         * build-aux/x-to-1.in: Likewise.
29109         * check-module: Likewise.
29110         * config/srclistvars.sh: Likewise.
29111         * gnulib-tool: Likewise.
29112         * lib/acl-internal.h: Likewise.
29113         * lib/acl.c: Likewise.
29114         * lib/acl.h: Likewise.
29115         * lib/acl_entries.c: Likewise.
29116         * lib/areadlink-with-size.c: Likewise.
29117         * lib/areadlink.c: Likewise.
29118         * lib/areadlink.h: Likewise.
29119         * lib/argmatch.c: Likewise.
29120         * lib/argmatch.h: Likewise.
29121         * lib/argp-ba.c: Likewise.
29122         * lib/argp-eexst.c: Likewise.
29123         * lib/argp-fmtstream.c: Likewise.
29124         * lib/argp-fmtstream.h: Likewise.
29125         * lib/argp-fs-xinl.c: Likewise.
29126         * lib/argp-help.c: Likewise.
29127         * lib/argp-namefrob.h: Likewise.
29128         * lib/argp-parse.c: Likewise.
29129         * lib/argp-pin.c: Likewise.
29130         * lib/argp-pv.c: Likewise.
29131         * lib/argp-pvh.c: Likewise.
29132         * lib/argp-xinl.c: Likewise.
29133         * lib/argp.h: Likewise.
29134         * lib/at-func.c: Likewise.
29135         * lib/atanl.c: Likewise.
29136         * lib/backupfile.c: Likewise.
29137         * lib/backupfile.h: Likewise.
29138         * lib/basename.c: Likewise.
29139         * lib/binary-io.h: Likewise.
29140         * lib/byteswap.in.h: Likewise.
29141         * lib/c-stack.c: Likewise.
29142         * lib/c-stack.h: Likewise.
29143         * lib/c-strcasestr.c: Likewise.
29144         * lib/c-strcasestr.h: Likewise.
29145         * lib/c-strstr.c: Likewise.
29146         * lib/c-strstr.h: Likewise.
29147         * lib/c-strtod.c: Likewise.
29148         * lib/calloc.c: Likewise.
29149         * lib/canon-host.c: Likewise.
29150         * lib/canon-host.h: Likewise.
29151         * lib/canonicalize-lgpl.c: Likewise.
29152         * lib/canonicalize.c: Likewise.
29153         * lib/canonicalize.h: Likewise.
29154         * lib/ceil.c: Likewise.
29155         * lib/ceilf.c: Likewise.
29156         * lib/ceill.c: Likewise.
29157         * lib/chdir-long.c: Likewise.
29158         * lib/chdir-long.h: Likewise.
29159         * lib/chdir-safer.c: Likewise.
29160         * lib/chdir-safer.h: Likewise.
29161         * lib/chown.c: Likewise.
29162         * lib/classpath.c: Likewise.
29163         * lib/classpath.h: Likewise.
29164         * lib/clean-temp.c: Likewise.
29165         * lib/clean-temp.h: Likewise.
29166         * lib/cloexec.c: Likewise.
29167         * lib/close-stream.c: Likewise.
29168         * lib/closein.c: Likewise.
29169         * lib/closein.h: Likewise.
29170         * lib/closeout.c: Likewise.
29171         * lib/closeout.h: Likewise.
29172         * lib/concat-filename.c: Likewise.
29173         * lib/copy-file.c: Likewise.
29174         * lib/copy-file.h: Likewise.
29175         * lib/count-one-bits.h: Likewise.
29176         * lib/crc.c: Likewise.
29177         * lib/crc.h: Likewise.
29178         * lib/creat-safer.c: Likewise.
29179         * lib/csharpcomp.c: Likewise.
29180         * lib/csharpcomp.h: Likewise.
29181         * lib/csharpexec.c: Likewise.
29182         * lib/csharpexec.h: Likewise.
29183         * lib/cycle-check.c: Likewise.
29184         * lib/cycle-check.h: Likewise.
29185         * lib/diacrit.c: Likewise.
29186         * lib/diacrit.h: Likewise.
29187         * lib/diffseq.h: Likewise.
29188         * lib/dirchownmod.c: Likewise.
29189         * lib/dirent.in.h: Likewise.
29190         * lib/dirfd.c: Likewise.
29191         * lib/dirfd.h: Likewise.
29192         * lib/dirname.c: Likewise.
29193         * lib/dirname.h: Likewise.
29194         * lib/dummy.c: Likewise.
29195         * lib/dup-safer.c: Likewise.
29196         * lib/dup2.c: Likewise.
29197         * lib/eealloc.h: Likewise.
29198         * lib/error.c: Likewise.
29199         * lib/error.h: Likewise.
29200         * lib/euidaccess.c: Likewise.
29201         * lib/exclude.c: Likewise.
29202         * lib/exclude.h: Likewise.
29203         * lib/execute.c: Likewise.
29204         * lib/execute.h: Likewise.
29205         * lib/exitfail.c: Likewise.
29206         * lib/exitfail.h: Likewise.
29207         * lib/expl.c: Likewise.
29208         * lib/fatal-signal.c: Likewise.
29209         * lib/fatal-signal.h: Likewise.
29210         * lib/fbufmode.c: Likewise.
29211         * lib/fbufmode.h: Likewise.
29212         * lib/fchdir.c: Likewise.
29213         * lib/fchmodat.c: Likewise.
29214         * lib/fchownat.c: Likewise.
29215         * lib/fcntl--.h: Likewise.
29216         * lib/fcntl-safer.h: Likewise.
29217         * lib/fcntl.in.h: Likewise.
29218         * lib/fd-safer.c: Likewise.
29219         * lib/fflush.c: Likewise.
29220         * lib/file-has-acl.c: Likewise.
29221         * lib/file-set.c: Likewise.
29222         * lib/file-type.c: Likewise.
29223         * lib/file-type.h: Likewise.
29224         * lib/fileblocks.c: Likewise.
29225         * lib/filemode.c: Likewise.
29226         * lib/filemode.h: Likewise.
29227         * lib/filename.h: Likewise.
29228         * lib/filenamecat.c: Likewise.
29229         * lib/filenamecat.h: Likewise.
29230         * lib/findprog.c: Likewise.
29231         * lib/findprog.h: Likewise.
29232         * lib/float.in.h: Likewise.
29233         * lib/floor.c: Likewise.
29234         * lib/floorf.c: Likewise.
29235         * lib/floorl.c: Likewise.
29236         * lib/fopen-safer.c: Likewise.
29237         * lib/fopen.c: Likewise.
29238         * lib/fpending.c: Likewise.
29239         * lib/fpending.h: Likewise.
29240         * lib/fprintf.c: Likewise.
29241         * lib/fprintftime.h: Likewise.
29242         * lib/fpucw.h: Likewise.
29243         * lib/fpurge.c: Likewise.
29244         * lib/fpurge.h: Likewise.
29245         * lib/freadable.c: Likewise.
29246         * lib/freadable.h: Likewise.
29247         * lib/freadahead.c: Likewise.
29248         * lib/freadahead.h: Likewise.
29249         * lib/freading.c: Likewise.
29250         * lib/freading.h: Likewise.
29251         * lib/free.c: Likewise.
29252         * lib/freopen.c: Likewise.
29253         * lib/frexp.c: Likewise.
29254         * lib/frexpl.c: Likewise.
29255         * lib/fseek.c: Likewise.
29256         * lib/fseterr.c: Likewise.
29257         * lib/fseterr.h: Likewise.
29258         * lib/fstatat.c: Likewise.
29259         * lib/fstrcmp.c: Likewise.
29260         * lib/fstrcmp.h: Likewise.
29261         * lib/fsusage.c: Likewise.
29262         * lib/fsusage.h: Likewise.
29263         * lib/ftell.c: Likewise.
29264         * lib/ftello.c: Likewise.
29265         * lib/fts-cycle.c: Likewise.
29266         * lib/fts.c: Likewise.
29267         * lib/fts_.h: Likewise.
29268         * lib/full-read.c: Likewise.
29269         * lib/full-read.h: Likewise.
29270         * lib/full-write.c: Likewise.
29271         * lib/full-write.h: Likewise.
29272         * lib/fwritable.c: Likewise.
29273         * lib/fwritable.h: Likewise.
29274         * lib/fwriteerror.c: Likewise.
29275         * lib/fwriteerror.h: Likewise.
29276         * lib/fwriting.c: Likewise.
29277         * lib/fwriting.h: Likewise.
29278         * lib/gcd.c: Likewise.
29279         * lib/gcd.h: Likewise.
29280         * lib/getcwd.c: Likewise.
29281         * lib/getdate.h: Likewise.
29282         * lib/getdate.y: Likewise.
29283         * lib/getdomainname.c: Likewise.
29284         * lib/getdomainname.h: Likewise.
29285         * lib/getgroups.c: Likewise.
29286         * lib/gethostname.c: Likewise.
29287         * lib/gethrxtime.c: Likewise.
29288         * lib/gethrxtime.h: Likewise.
29289         * lib/getloadavg.c: Likewise.
29290         * lib/getndelim2.c: Likewise.
29291         * lib/getndelim2.h: Likewise.
29292         * lib/getnline.c: Likewise.
29293         * lib/getnline.h: Likewise.
29294         * lib/getopt.c: Likewise.
29295         * lib/getopt.in.h: Likewise.
29296         * lib/getopt1.c: Likewise.
29297         * lib/getopt_int.h: Likewise.
29298         * lib/getpagesize.h: Likewise.
29299         * lib/getsubopt.c: Likewise.
29300         * lib/gettime.c: Likewise.
29301         * lib/getugroups.c: Likewise.
29302         * lib/getugroups.h: Likewise.
29303         * lib/getusershell.c: Likewise.
29304         * lib/gl_anyavltree_list1.h: Likewise.
29305         * lib/gl_anyavltree_list2.h: Likewise.
29306         * lib/gl_anyhash_list1.h: Likewise.
29307         * lib/gl_anyhash_list2.h: Likewise.
29308         * lib/gl_anylinked_list1.h: Likewise.
29309         * lib/gl_anylinked_list2.h: Likewise.
29310         * lib/gl_anyrbtree_list1.h: Likewise.
29311         * lib/gl_anyrbtree_list2.h: Likewise.
29312         * lib/gl_anytree_list1.h: Likewise.
29313         * lib/gl_anytree_list2.h: Likewise.
29314         * lib/gl_anytree_oset.h: Likewise.
29315         * lib/gl_anytreehash_list1.h: Likewise.
29316         * lib/gl_anytreehash_list2.h: Likewise.
29317         * lib/gl_array_list.c: Likewise.
29318         * lib/gl_array_list.h: Likewise.
29319         * lib/gl_array_oset.c: Likewise.
29320         * lib/gl_array_oset.h: Likewise.
29321         * lib/gl_avltree_list.c: Likewise.
29322         * lib/gl_avltree_list.h: Likewise.
29323         * lib/gl_avltree_oset.c: Likewise.
29324         * lib/gl_avltree_oset.h: Likewise.
29325         * lib/gl_avltreehash_list.c: Likewise.
29326         * lib/gl_avltreehash_list.h: Likewise.
29327         * lib/gl_carray_list.c: Likewise.
29328         * lib/gl_carray_list.h: Likewise.
29329         * lib/gl_linked_list.c: Likewise.
29330         * lib/gl_linked_list.h: Likewise.
29331         * lib/gl_linkedhash_list.c: Likewise.
29332         * lib/gl_linkedhash_list.h: Likewise.
29333         * lib/gl_list.c: Likewise.
29334         * lib/gl_list.h: Likewise.
29335         * lib/gl_oset.c: Likewise.
29336         * lib/gl_oset.h: Likewise.
29337         * lib/gl_rbtree_list.c: Likewise.
29338         * lib/gl_rbtree_list.h: Likewise.
29339         * lib/gl_rbtree_oset.c: Likewise.
29340         * lib/gl_rbtree_oset.h: Likewise.
29341         * lib/gl_rbtreehash_list.c: Likewise.
29342         * lib/gl_rbtreehash_list.h: Likewise.
29343         * lib/gl_sublist.c: Likewise.
29344         * lib/gl_sublist.h: Likewise.
29345         * lib/group-member.c: Likewise.
29346         * lib/group-member.h: Likewise.
29347         * lib/hard-locale.c: Likewise.
29348         * lib/hard-locale.h: Likewise.
29349         * lib/hash-pjw.c: Likewise.
29350         * lib/hash-pjw.h: Likewise.
29351         * lib/hash-triple.c: Likewise.
29352         * lib/hash.c: Likewise.
29353         * lib/hash.h: Likewise.
29354         * lib/human.c: Likewise.
29355         * lib/human.h: Likewise.
29356         * lib/i-ring.c: Likewise.
29357         * lib/i-ring.h: Likewise.
29358         * lib/idcache.c: Likewise.
29359         * lib/imaxabs.c: Likewise.
29360         * lib/imaxdiv.c: Likewise.
29361         * lib/inet_pton.c: Likewise.
29362         * lib/inet_pton.h: Likewise.
29363         * lib/intprops.h: Likewise.
29364         * lib/inttostr.c: Likewise.
29365         * lib/inttostr.h: Likewise.
29366         * lib/inttypes.in.h: Likewise.
29367         * lib/isapipe.c: Likewise.
29368         * lib/isdir.c: Likewise.
29369         * lib/isnan.c: Likewise.
29370         * lib/isnan.h: Likewise.
29371         * lib/isnanf.c: Likewise.
29372         * lib/isnanf.h: Likewise.
29373         * lib/isnanl-nolibm.h: Likewise.
29374         * lib/isnanl.c: Likewise.
29375         * lib/isnanl.h: Likewise.
29376         * lib/javacomp.c: Likewise.
29377         * lib/javacomp.h: Likewise.
29378         * lib/javaexec.c: Likewise.
29379         * lib/javaexec.h: Likewise.
29380         * lib/javaversion.c: Likewise.
29381         * lib/javaversion.h: Likewise.
29382         * lib/javaversion.java: Likewise.
29383         * lib/lbrkprop.h: Likewise.
29384         * lib/lchmod.h: Likewise.
29385         * lib/lchown.c: Likewise.
29386         * lib/ldexpl.c: Likewise.
29387         * lib/linebreak.c: Likewise.
29388         * lib/linebreak.h: Likewise.
29389         * lib/linebuffer.c: Likewise.
29390         * lib/linebuffer.h: Likewise.
29391         * lib/locale.in.h: Likewise.
29392         * lib/logl.c: Likewise.
29393         * lib/long-options.c: Likewise.
29394         * lib/long-options.h: Likewise.
29395         * lib/lstat.c: Likewise.
29396         * lib/lstat.h: Likewise.
29397         * lib/math.in.h: Likewise.
29398         * lib/mbchar.c: Likewise.
29399         * lib/mbchar.h: Likewise.
29400         * lib/mbfile.h: Likewise.
29401         * lib/mbiter.h: Likewise.
29402         * lib/mbscasecmp.c: Likewise.
29403         * lib/mbscasestr.c: Likewise.
29404         * lib/mbschr.c: Likewise.
29405         * lib/mbscspn.c: Likewise.
29406         * lib/mbslen.c: Likewise.
29407         * lib/mbsncasecmp.c: Likewise.
29408         * lib/mbsnlen.c: Likewise.
29409         * lib/mbspbrk.c: Likewise.
29410         * lib/mbspcasecmp.c: Likewise.
29411         * lib/mbsrchr.c: Likewise.
29412         * lib/mbssep.c: Likewise.
29413         * lib/mbsspn.c: Likewise.
29414         * lib/mbsstr.c: Likewise.
29415         * lib/mbstok_r.c: Likewise.
29416         * lib/mbswidth.c: Likewise.
29417         * lib/mbswidth.h: Likewise.
29418         * lib/mbuiter.h: Likewise.
29419         * lib/memcasecmp.c: Likewise.
29420         * lib/memcasecmp.h: Likewise.
29421         * lib/memchr.c: Likewise.
29422         * lib/memcmp.c: Likewise.
29423         * lib/memcoll.c: Likewise.
29424         * lib/memcoll.h: Likewise.
29425         * lib/memcpy.c: Likewise.
29426         * lib/memrchr.c: Likewise.
29427         * lib/mkancesdirs.c: Likewise.
29428         * lib/mkdir-p.c: Likewise.
29429         * lib/mkdir-p.h: Likewise.
29430         * lib/mkdir.c: Likewise.
29431         * lib/mkdirat.c: Likewise.
29432         * lib/mkdtemp.c: Likewise.
29433         * lib/mkstemp-safer.c: Likewise.
29434         * lib/mkstemp.c: Likewise.
29435         * lib/modechange.c: Likewise.
29436         * lib/modechange.h: Likewise.
29437         * lib/mountlist.c: Likewise.
29438         * lib/mountlist.h: Likewise.
29439         * lib/mpsort.c: Likewise.
29440         * lib/nanosleep.c: Likewise.
29441         * lib/obstack.c: Likewise.
29442         * lib/obstack.h: Likewise.
29443         * lib/open-safer.c: Likewise.
29444         * lib/open.c: Likewise.
29445         * lib/openat-die.c: Likewise.
29446         * lib/openat-priv.h: Likewise.
29447         * lib/openat-proc.c: Likewise.
29448         * lib/openat.c: Likewise.
29449         * lib/openat.h: Likewise.
29450         * lib/pagealign_alloc.c: Likewise.
29451         * lib/pagealign_alloc.h: Likewise.
29452         * lib/physmem.c: Likewise.
29453         * lib/physmem.h: Likewise.
29454         * lib/pipe-safer.c: Likewise.
29455         * lib/pipe.c: Likewise.
29456         * lib/pipe.h: Likewise.
29457         * lib/posixtm.c: Likewise.
29458         * lib/posixtm.h: Likewise.
29459         * lib/posixver.c: Likewise.
29460         * lib/printf-frexp.c: Likewise.
29461         * lib/printf-frexp.h: Likewise.
29462         * lib/printf-frexpl.c: Likewise.
29463         * lib/printf-frexpl.h: Likewise.
29464         * lib/printf.c: Likewise.
29465         * lib/progname.c: Likewise.
29466         * lib/progname.h: Likewise.
29467         * lib/progreloc.c: Likewise.
29468         * lib/putenv.c: Likewise.
29469         * lib/quote.c: Likewise.
29470         * lib/quote.h: Likewise.
29471         * lib/quotearg.c: Likewise.
29472         * lib/quotearg.h: Likewise.
29473         * lib/raise.c: Likewise.
29474         * lib/readline.c: Likewise.
29475         * lib/readline.h: Likewise.
29476         * lib/readlink.c: Likewise.
29477         * lib/readtokens.c: Likewise.
29478         * lib/readtokens.h: Likewise.
29479         * lib/readtokens0.c: Likewise.
29480         * lib/readtokens0.h: Likewise.
29481         * lib/readutmp.c: Likewise.
29482         * lib/readutmp.h: Likewise.
29483         * lib/realloc.c: Likewise.
29484         * lib/relocwrapper.c: Likewise.
29485         * lib/rename-dest-slash.c: Likewise.
29486         * lib/rename.c: Likewise.
29487         * lib/rmdir.c: Likewise.
29488         * lib/rpmatch.c: Likewise.
29489         * lib/safe-read.c: Likewise.
29490         * lib/safe-read.h: Likewise.
29491         * lib/safe-write.c: Likewise.
29492         * lib/safe-write.h: Likewise.
29493         * lib/same-inode.h: Likewise.
29494         * lib/same.c: Likewise.
29495         * lib/same.h: Likewise.
29496         * lib/save-cwd.c: Likewise.
29497         * lib/save-cwd.h: Likewise.
29498         * lib/savedir.c: Likewise.
29499         * lib/savedir.h: Likewise.
29500         * lib/savewd.c: Likewise.
29501         * lib/savewd.h: Likewise.
29502         * lib/search.in.h: Likewise.
29503         * lib/setenv.c: Likewise.
29504         * lib/setenv.h: Likewise.
29505         * lib/settime.c: Likewise.
29506         * lib/sh-quote.c: Likewise.
29507         * lib/sh-quote.h: Likewise.
29508         * lib/sig2str.c: Likewise.
29509         * lib/sig2str.h: Likewise.
29510         * lib/signal.in.h: Likewise.
29511         * lib/signbitd.c: Likewise.
29512         * lib/signbitf.c: Likewise.
29513         * lib/signbitl.c: Likewise.
29514         * lib/sigprocmask.c: Likewise.
29515         * lib/sincosl.c: Likewise.
29516         * lib/sleep.c: Likewise.
29517         * lib/sprintf.c: Likewise.
29518         * lib/sqrtl.c: Likewise.
29519         * lib/stat-time.h: Likewise.
29520         * lib/stdio--.h: Likewise.
29521         * lib/stdio-safer.h: Likewise.
29522         * lib/stdlib--.h: Likewise.
29523         * lib/stdlib-safer.h: Likewise.
29524         * lib/stdlib.in.h: Likewise.
29525         * lib/stpcpy.c: Likewise.
29526         * lib/stpncpy.c: Likewise.
29527         * lib/strchrnul.c: Likewise.
29528         * lib/strcspn.c: Likewise.
29529         * lib/strerror.c: Likewise.
29530         * lib/strftime.c: Likewise.
29531         * lib/strftime.h: Likewise.
29532         * lib/striconveh.c: Likewise.
29533         * lib/striconveh.h: Likewise.
29534         * lib/striconveha.c: Likewise.
29535         * lib/striconveha.h: Likewise.
29536         * lib/stripslash.c: Likewise.
29537         * lib/strnlen1.c: Likewise.
29538         * lib/strnlen1.h: Likewise.
29539         * lib/strtod.c: Likewise.
29540         * lib/strtoimax.c: Likewise.
29541         * lib/strtok_r.c: Likewise.
29542         * lib/strtol.c: Likewise.
29543         * lib/strtoll.c: Likewise.
29544         * lib/strtoul.c: Likewise.
29545         * lib/strtoull.c: Likewise.
29546         * lib/sysexits.in.h: Likewise.
29547         * lib/tempname.c: Likewise.
29548         * lib/tempname.h: Likewise.
29549         * lib/timespec.h: Likewise.
29550         * lib/tls.c: Likewise.
29551         * lib/tls.h: Likewise.
29552         * lib/tmpdir.c: Likewise.
29553         * lib/tmpdir.h: Likewise.
29554         * lib/tmpfile-safer.c: Likewise.
29555         * lib/tmpfile.c: Likewise.
29556         * lib/trigl.c: Likewise.
29557         * lib/trigl.h: Likewise.
29558         * lib/trim.c: Likewise.
29559         * lib/trim.h: Likewise.
29560         * lib/trunc.c: Likewise.
29561         * lib/truncf.c: Likewise.
29562         * lib/truncl.c: Likewise.
29563         * lib/tsearch.c: Likewise.
29564         * lib/unicodeio.c: Likewise.
29565         * lib/unicodeio.h: Likewise.
29566         * lib/unistd--.h: Likewise.
29567         * lib/unistd-safer.h: Likewise.
29568         * lib/unistdio/ulc-fprintf.c: Likewise.
29569         * lib/unistdio/ulc-vfprintf.c: Likewise.
29570         * lib/unlinkdir.c: Likewise.
29571         * lib/unlinkdir.h: Likewise.
29572         * lib/unlocked-io.h: Likewise.
29573         * lib/unsetenv.c: Likewise.
29574         * lib/userspec.c: Likewise.
29575         * lib/utime.c: Likewise.
29576         * lib/utimecmp.c: Likewise.
29577         * lib/utimecmp.h: Likewise.
29578         * lib/utimens.c: Likewise.
29579         * lib/verify.h: Likewise.
29580         * lib/verror.c: Likewise.
29581         * lib/verror.h: Likewise.
29582         * lib/version-etc-fsf.c: Likewise.
29583         * lib/version-etc.c: Likewise.
29584         * lib/version-etc.h: Likewise.
29585         * lib/vfprintf.c: Likewise.
29586         * lib/vprintf.c: Likewise.
29587         * lib/vsprintf.c: Likewise.
29588         * lib/w32spawn.h: Likewise.
29589         * lib/wait-process.c: Likewise.
29590         * lib/wait-process.h: Likewise.
29591         * lib/wcwidth.c: Likewise.
29592         * lib/write-any-file.c: Likewise.
29593         * lib/xalloc-die.c: Likewise.
29594         * lib/xalloc.h: Likewise.
29595         * lib/xasprintf.c: Likewise.
29596         * lib/xgetcwd.c: Likewise.
29597         * lib/xgetcwd.h: Likewise.
29598         * lib/xgetdomainname.c: Likewise.
29599         * lib/xgetdomainname.h: Likewise.
29600         * lib/xgethostname.c: Likewise.
29601         * lib/xmalloc.c: Likewise.
29602         * lib/xmalloca.c: Likewise.
29603         * lib/xmalloca.h: Likewise.
29604         * lib/xmemcoll.c: Likewise.
29605         * lib/xnanosleep.c: Likewise.
29606         * lib/xreadlink.c: Likewise.
29607         * lib/xreadlink.h: Likewise.
29608         * lib/xsetenv.c: Likewise.
29609         * lib/xsetenv.h: Likewise.
29610         * lib/xstriconv.c: Likewise.
29611         * lib/xstriconv.h: Likewise.
29612         * lib/xstrndup.c: Likewise.
29613         * lib/xstrndup.h: Likewise.
29614         * lib/xstrtod.c: Likewise.
29615         * lib/xstrtod.h: Likewise.
29616         * lib/xstrtol-error.c: Likewise.
29617         * lib/xstrtol.c: Likewise.
29618         * lib/xstrtol.h: Likewise.
29619         * lib/xtime.h: Likewise.
29620         * lib/xvasprintf.c: Likewise.
29621         * lib/xvasprintf.h: Likewise.
29622         * lib/yesno.c: Likewise.
29623         * lib/yesno.h: Likewise.
29624         * posix-modules: Likewise.
29625         * tests/test-alloca-opt.c: Likewise.
29626         * tests/test-arcfour.c: Likewise.
29627         * tests/test-arctwo.c: Likewise.
29628         * tests/test-argmatch.c: Likewise.
29629         * tests/test-argp-2.sh: Likewise.
29630         * tests/test-argp.c: Likewise.
29631         * tests/test-arpa_inet.c: Likewise.
29632         * tests/test-array_list.c: Likewise.
29633         * tests/test-array_oset.c: Likewise.
29634         * tests/test-atexit.c: Likewise.
29635         * tests/test-avltree_list.c: Likewise.
29636         * tests/test-avltree_oset.c: Likewise.
29637         * tests/test-avltreehash_list.c: Likewise.
29638         * tests/test-base64.c: Likewise.
29639         * tests/test-binary-io.c: Likewise.
29640         * tests/test-byteswap.c: Likewise.
29641         * tests/test-c-ctype.c: Likewise.
29642         * tests/test-c-strcasecmp.c: Likewise.
29643         * tests/test-c-strcasestr.c: Likewise.
29644         * tests/test-c-strncasecmp.c: Likewise.
29645         * tests/test-c-strstr.c: Likewise.
29646         * tests/test-canonicalize-lgpl.c: Likewise.
29647         * tests/test-canonicalize.c: Likewise.
29648         * tests/test-carray_list.c: Likewise.
29649         * tests/test-ceilf.c: Likewise.
29650         * tests/test-ceill.c: Likewise.
29651         * tests/test-count-one-bits.c: Likewise.
29652         * tests/test-crc.c: Likewise.
29653         * tests/test-dirname.c: Likewise.
29654         * tests/test-fbufmode.c: Likewise.
29655         * tests/test-fcntl.c: Likewise.
29656         * tests/test-fflush.c: Likewise.
29657         * tests/test-floorf.c: Likewise.
29658         * tests/test-floorl.c: Likewise.
29659         * tests/test-fopen.c: Likewise.
29660         * tests/test-fprintf-posix.c: Likewise.
29661         * tests/test-fprintf-posix.h: Likewise.
29662         * tests/test-fpurge.c: Likewise.
29663         * tests/test-freadable.c: Likewise.
29664         * tests/test-freadahead.c: Likewise.
29665         * tests/test-freading.c: Likewise.
29666         * tests/test-freopen.c: Likewise.
29667         * tests/test-frexp.c: Likewise.
29668         * tests/test-frexpl.c: Likewise.
29669         * tests/test-fseek.c: Likewise.
29670         * tests/test-fseeko.c: Likewise.
29671         * tests/test-fseterr.c: Likewise.
29672         * tests/test-fstrcmp.c: Likewise.
29673         * tests/test-ftell.c: Likewise.
29674         * tests/test-ftello.c: Likewise.
29675         * tests/test-fwritable.c: Likewise.
29676         * tests/test-fwriting.c: Likewise.
29677         * tests/test-getaddrinfo.c: Likewise.
29678         * tests/test-getpass.c: Likewise.
29679         * tests/test-gettimeofday.c: Likewise.
29680         * tests/test-hmac-md5.c: Likewise.
29681         * tests/test-hmac-sha1.c: Likewise.
29682         * tests/test-iconv.c: Likewise.
29683         * tests/test-iconvme.c: Likewise.
29684         * tests/test-inttypes.c: Likewise.
29685         * tests/test-isnan.c: Likewise.
29686         * tests/test-isnanf.c: Likewise.
29687         * tests/test-isnanl-nolibm.c: Likewise.
29688         * tests/test-isnanl.c: Likewise.
29689         * tests/test-isnanl.h: Likewise.
29690         * tests/test-ldexpl.c: Likewise.
29691         * tests/test-linked_list.c: Likewise.
29692         * tests/test-linkedhash_list.c: Likewise.
29693         * tests/test-locale.c: Likewise.
29694         * tests/test-localename.c: Likewise.
29695         * tests/test-lock.c: Likewise.
29696         * tests/test-lseek.c: Likewise.
29697         * tests/test-malloca.c: Likewise.
29698         * tests/test-math.c: Likewise.
29699         * tests/test-mbscasecmp.c: Likewise.
29700         * tests/test-mbscasestr1.c: Likewise.
29701         * tests/test-mbscasestr2.c: Likewise.
29702         * tests/test-mbscasestr3.c: Likewise.
29703         * tests/test-mbscasestr4.c: Likewise.
29704         * tests/test-mbschr.c: Likewise.
29705         * tests/test-mbscspn.c: Likewise.
29706         * tests/test-mbsncasecmp.c: Likewise.
29707         * tests/test-mbspbrk.c: Likewise.
29708         * tests/test-mbspcasecmp.c: Likewise.
29709         * tests/test-mbsrchr.c: Likewise.
29710         * tests/test-mbsspn.c: Likewise.
29711         * tests/test-mbsstr1.c: Likewise.
29712         * tests/test-mbsstr2.c: Likewise.
29713         * tests/test-mbsstr3.c: Likewise.
29714         * tests/test-md5.c: Likewise.
29715         * tests/test-memmem.c: Likewise.
29716         * tests/test-netinet_in.c: Likewise.
29717         * tests/test-open.c: Likewise.
29718         * tests/test-printf-frexp.c: Likewise.
29719         * tests/test-printf-frexpl.c: Likewise.
29720         * tests/test-printf-posix.c: Likewise.
29721         * tests/test-printf-posix.h: Likewise.
29722         * tests/test-rbtree_list.c: Likewise.
29723         * tests/test-rbtree_oset.c: Likewise.
29724         * tests/test-rbtreehash_list.c: Likewise.
29725         * tests/test-read-file.c: Likewise.
29726         * tests/test-rijndael.c: Likewise.
29727         * tests/test-search.c: Likewise.
29728         * tests/test-signbit.c: Likewise.
29729         * tests/test-sleep.c: Likewise.
29730         * tests/test-snprintf-posix.c: Likewise.
29731         * tests/test-snprintf-posix.h: Likewise.
29732         * tests/test-snprintf.c: Likewise.
29733         * tests/test-sprintf-posix.c: Likewise.
29734         * tests/test-sprintf-posix.h: Likewise.
29735         * tests/test-stat-time.c: Likewise.
29736         * tests/test-stdbool.c: Likewise.
29737         * tests/test-stdint.c: Likewise.
29738         * tests/test-stdio.c: Likewise.
29739         * tests/test-stdlib.c: Likewise.
29740         * tests/test-stpncpy.c: Likewise.
29741         * tests/test-strcasestr.c: Likewise.
29742         * tests/test-striconv.c: Likewise.
29743         * tests/test-striconveh.c: Likewise.
29744         * tests/test-striconveha.c: Likewise.
29745         * tests/test-string.c: Likewise.
29746         * tests/test-sys_select.c: Likewise.
29747         * tests/test-sys_socket.c: Likewise.
29748         * tests/test-sys_stat.c: Likewise.
29749         * tests/test-sys_time.c: Likewise.
29750         * tests/test-sysexits.c: Likewise.
29751         * tests/test-time.c: Likewise.
29752         * tests/test-tls.c: Likewise.
29753         * tests/test-trunc.c: Likewise.
29754         * tests/test-truncf.c: Likewise.
29755         * tests/test-truncl.c: Likewise.
29756         * tests/test-unistd.c: Likewise.
29757         * tests/test-vasnprintf-posix.c: Likewise.
29758         * tests/test-vasnprintf-posix2.c: Likewise.
29759         * tests/test-vasnprintf.c: Likewise.
29760         * tests/test-vasprintf-posix.c: Likewise.
29761         * tests/test-vasprintf.c: Likewise.
29762         * tests/test-verify.c: Likewise.
29763         * tests/test-vfprintf-posix.c: Likewise.
29764         * tests/test-vprintf-posix.c: Likewise.
29765         * tests/test-vsnprintf-posix.c: Likewise.
29766         * tests/test-vsnprintf.c: Likewise.
29767         * tests/test-vsprintf-posix.c: Likewise.
29768         * tests/test-wchar.c: Likewise.
29769         * tests/test-wctype.c: Likewise.
29770         * tests/test-wcwidth.c: Likewise.
29771         * tests/test-xstrtol.c: Likewise.
29772         * tests/test-xvasprintf.c: Likewise.
29773         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29774         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29775         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29776         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29777         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29778         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29779         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29780         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29781         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29782         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29783         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29784         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29785         * tests/uniname/test-uninames.c: Likewise.
29786         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29787         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29788         * tests/unistdio/test-u16-printf1.h: Likewise.
29789         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29790         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29791         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29792         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29793         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29794         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29795         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29796         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29797         * tests/unistdio/test-u32-printf1.h: Likewise.
29798         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29799         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29800         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29801         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29802         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29803         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29804         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29805         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29806         * tests/unistdio/test-u8-printf1.h: Likewise.
29807         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29808         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29809         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29810         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29811         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29812         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29813         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29814         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29815         * tests/unistdio/test-ulc-printf1.h: Likewise.
29816         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29817         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29818         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29819         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29820         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29821         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29822         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29823         * tests/uniwidth/test-u16-width.c: Likewise.
29824         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29825         * tests/uniwidth/test-u32-width.c: Likewise.
29826         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29827         * tests/uniwidth/test-u8-width.c: Likewise.
29828         * tests/uniwidth/test-uc_width.c: Likewise.
29829         * config/srclist-update: Likewise.
29830         (fixlicense): Update to GPLv3+.
29831
29832         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29833         * tests/test-tsearch.c: Change copyright notice.
29834
29835         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29836         * lib/c-strcaseeq.h: Change copyright notice.
29837         * lib/streq.h: Likewise.
29838         * lib/uniconv.h: Likewise.
29839         * lib/uniconv/u-conv-from-enc.h: Likewise.
29840         * lib/uniconv/u-conv-to-enc.h: Likewise.
29841         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29842         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29843         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29844         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29845         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29846         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29847         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29848         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29849         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29850         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29851         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29852         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29853         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29854         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29855         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29856         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29857         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29858         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29859         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29860         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29861         * lib/uniname.h: Likewise.
29862         * lib/uniname/uniname.c: Likewise.
29863         * lib/unistdio.h: Likewise.
29864         * lib/unistdio/u-asnprintf.h: Likewise.
29865         * lib/unistdio/u-asprintf.h: Likewise.
29866         * lib/unistdio/u-printf-args.c: Likewise.
29867         * lib/unistdio/u-printf-args.h: Likewise.
29868         * lib/unistdio/u-printf-parse.h: Likewise.
29869         * lib/unistdio/u-snprintf.h: Likewise.
29870         * lib/unistdio/u-sprintf.h: Likewise.
29871         * lib/unistdio/u-vasprintf.h: Likewise.
29872         * lib/unistdio/u-vsnprintf.h: Likewise.
29873         * lib/unistdio/u-vsprintf.h: Likewise.
29874         * lib/unistdio/u16-asnprintf.c: Likewise.
29875         * lib/unistdio/u16-asprintf.c: Likewise.
29876         * lib/unistdio/u16-printf-parse.c: Likewise.
29877         * lib/unistdio/u16-snprintf.c: Likewise.
29878         * lib/unistdio/u16-sprintf.c: Likewise.
29879         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29880         * lib/unistdio/u16-u16-asprintf.c: Likewise.
29881         * lib/unistdio/u16-u16-snprintf.c: Likewise.
29882         * lib/unistdio/u16-u16-sprintf.c: Likewise.
29883         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29884         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29885         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29886         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29887         * lib/unistdio/u16-vasnprintf.c: Likewise.
29888         * lib/unistdio/u16-vasprintf.c: Likewise.
29889         * lib/unistdio/u16-vsnprintf.c: Likewise.
29890         * lib/unistdio/u16-vsprintf.c: Likewise.
29891         * lib/unistdio/u32-asnprintf.c: Likewise.
29892         * lib/unistdio/u32-asprintf.c: Likewise.
29893         * lib/unistdio/u32-printf-parse.c: Likewise.
29894         * lib/unistdio/u32-snprintf.c: Likewise.
29895         * lib/unistdio/u32-sprintf.c: Likewise.
29896         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29897         * lib/unistdio/u32-u32-asprintf.c: Likewise.
29898         * lib/unistdio/u32-u32-snprintf.c: Likewise.
29899         * lib/unistdio/u32-u32-sprintf.c: Likewise.
29900         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29901         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29902         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29903         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29904         * lib/unistdio/u32-vasnprintf.c: Likewise.
29905         * lib/unistdio/u32-vasprintf.c: Likewise.
29906         * lib/unistdio/u32-vsnprintf.c: Likewise.
29907         * lib/unistdio/u32-vsprintf.c: Likewise.
29908         * lib/unistdio/u8-asnprintf.c: Likewise.
29909         * lib/unistdio/u8-asprintf.c: Likewise.
29910         * lib/unistdio/u8-printf-parse.c: Likewise.
29911         * lib/unistdio/u8-snprintf.c: Likewise.
29912         * lib/unistdio/u8-sprintf.c: Likewise.
29913         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29914         * lib/unistdio/u8-u8-asprintf.c: Likewise.
29915         * lib/unistdio/u8-u8-snprintf.c: Likewise.
29916         * lib/unistdio/u8-u8-sprintf.c: Likewise.
29917         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29918         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29919         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29920         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29921         * lib/unistdio/u8-vasnprintf.c: Likewise.
29922         * lib/unistdio/u8-vasprintf.c: Likewise.
29923         * lib/unistdio/u8-vsnprintf.c: Likewise.
29924         * lib/unistdio/u8-vsprintf.c: Likewise.
29925         * lib/unistdio/ulc-asnprintf.c: Likewise.
29926         * lib/unistdio/ulc-asprintf.c: Likewise.
29927         * lib/unistdio/ulc-printf-parse.c: Likewise.
29928         * lib/unistdio/ulc-snprintf.c: Likewise.
29929         * lib/unistdio/ulc-sprintf.c: Likewise.
29930         * lib/unistdio/ulc-vasnprintf.c: Likewise.
29931         * lib/unistdio/ulc-vasprintf.c: Likewise.
29932         * lib/unistdio/ulc-vsnprintf.c: Likewise.
29933         * lib/unistdio/ulc-vsprintf.c: Likewise.
29934         * lib/unistr.h: Likewise.
29935         * lib/unistr/u-cpy-alloc.h: Likewise.
29936         * lib/unistr/u-cpy.h: Likewise.
29937         * lib/unistr/u-endswith.h: Likewise.
29938         * lib/unistr/u-move.h: Likewise.
29939         * lib/unistr/u-set.h: Likewise.
29940         * lib/unistr/u-startswith.h: Likewise.
29941         * lib/unistr/u-stpcpy.h: Likewise.
29942         * lib/unistr/u-stpncpy.h: Likewise.
29943         * lib/unistr/u-strcat.h: Likewise.
29944         * lib/unistr/u-strcpy.h: Likewise.
29945         * lib/unistr/u-strcspn.h: Likewise.
29946         * lib/unistr/u-strdup.h: Likewise.
29947         * lib/unistr/u-strlen.h: Likewise.
29948         * lib/unistr/u-strncat.h: Likewise.
29949         * lib/unistr/u-strncpy.h: Likewise.
29950         * lib/unistr/u-strnlen.h: Likewise.
29951         * lib/unistr/u-strpbrk.h: Likewise.
29952         * lib/unistr/u-strspn.h: Likewise.
29953         * lib/unistr/u-strstr.h: Likewise.
29954         * lib/unistr/u-strtok.h: Likewise.
29955         * lib/unistr/u16-check.c: Likewise.
29956         * lib/unistr/u16-chr.c: Likewise.
29957         * lib/unistr/u16-cmp.c: Likewise.
29958         * lib/unistr/u16-cpy-alloc.c: Likewise.
29959         * lib/unistr/u16-cpy.c: Likewise.
29960         * lib/unistr/u16-endswith.c: Likewise.
29961         * lib/unistr/u16-mblen.c: Likewise.
29962         * lib/unistr/u16-mbsnlen.c: Likewise.
29963         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29964         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29965         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29966         * lib/unistr/u16-mbtouc.c: Likewise.
29967         * lib/unistr/u16-mbtoucr.c: Likewise.
29968         * lib/unistr/u16-move.c: Likewise.
29969         * lib/unistr/u16-next.c: Likewise.
29970         * lib/unistr/u16-prev.c: Likewise.
29971         * lib/unistr/u16-set.c: Likewise.
29972         * lib/unistr/u16-startswith.c: Likewise.
29973         * lib/unistr/u16-stpcpy.c: Likewise.
29974         * lib/unistr/u16-stpncpy.c: Likewise.
29975         * lib/unistr/u16-strcat.c: Likewise.
29976         * lib/unistr/u16-strchr.c: Likewise.
29977         * lib/unistr/u16-strcmp.c: Likewise.
29978         * lib/unistr/u16-strcpy.c: Likewise.
29979         * lib/unistr/u16-strcspn.c: Likewise.
29980         * lib/unistr/u16-strdup.c: Likewise.
29981         * lib/unistr/u16-strlen.c: Likewise.
29982         * lib/unistr/u16-strmblen.c: Likewise.
29983         * lib/unistr/u16-strmbtouc.c: Likewise.
29984         * lib/unistr/u16-strncat.c: Likewise.
29985         * lib/unistr/u16-strncmp.c: Likewise.
29986         * lib/unistr/u16-strncpy.c: Likewise.
29987         * lib/unistr/u16-strnlen.c: Likewise.
29988         * lib/unistr/u16-strpbrk.c: Likewise.
29989         * lib/unistr/u16-strrchr.c: Likewise.
29990         * lib/unistr/u16-strspn.c: Likewise.
29991         * lib/unistr/u16-strstr.c: Likewise.
29992         * lib/unistr/u16-strtok.c: Likewise.
29993         * lib/unistr/u16-to-u32.c: Likewise.
29994         * lib/unistr/u16-to-u8.c: Likewise.
29995         * lib/unistr/u16-uctomb-aux.c: Likewise.
29996         * lib/unistr/u16-uctomb.c: Likewise.
29997         * lib/unistr/u32-check.c: Likewise.
29998         * lib/unistr/u32-chr.c: Likewise.
29999         * lib/unistr/u32-cmp.c: Likewise.
30000         * lib/unistr/u32-cpy-alloc.c: Likewise.
30001         * lib/unistr/u32-cpy.c: Likewise.
30002         * lib/unistr/u32-endswith.c: Likewise.
30003         * lib/unistr/u32-mblen.c: Likewise.
30004         * lib/unistr/u32-mbsnlen.c: Likewise.
30005         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30006         * lib/unistr/u32-mbtouc.c: Likewise.
30007         * lib/unistr/u32-mbtoucr.c: Likewise.
30008         * lib/unistr/u32-move.c: Likewise.
30009         * lib/unistr/u32-next.c: Likewise.
30010         * lib/unistr/u32-prev.c: Likewise.
30011         * lib/unistr/u32-set.c: Likewise.
30012         * lib/unistr/u32-startswith.c: Likewise.
30013         * lib/unistr/u32-stpcpy.c: Likewise.
30014         * lib/unistr/u32-stpncpy.c: Likewise.
30015         * lib/unistr/u32-strcat.c: Likewise.
30016         * lib/unistr/u32-strchr.c: Likewise.
30017         * lib/unistr/u32-strcmp.c: Likewise.
30018         * lib/unistr/u32-strcpy.c: Likewise.
30019         * lib/unistr/u32-strcspn.c: Likewise.
30020         * lib/unistr/u32-strdup.c: Likewise.
30021         * lib/unistr/u32-strlen.c: Likewise.
30022         * lib/unistr/u32-strmblen.c: Likewise.
30023         * lib/unistr/u32-strmbtouc.c: Likewise.
30024         * lib/unistr/u32-strncat.c: Likewise.
30025         * lib/unistr/u32-strncmp.c: Likewise.
30026         * lib/unistr/u32-strncpy.c: Likewise.
30027         * lib/unistr/u32-strnlen.c: Likewise.
30028         * lib/unistr/u32-strpbrk.c: Likewise.
30029         * lib/unistr/u32-strrchr.c: Likewise.
30030         * lib/unistr/u32-strspn.c: Likewise.
30031         * lib/unistr/u32-strstr.c: Likewise.
30032         * lib/unistr/u32-strtok.c: Likewise.
30033         * lib/unistr/u32-to-u16.c: Likewise.
30034         * lib/unistr/u32-to-u8.c: Likewise.
30035         * lib/unistr/u32-uctomb.c: Likewise.
30036         * lib/unistr/u8-check.c: Likewise.
30037         * lib/unistr/u8-chr.c: Likewise.
30038         * lib/unistr/u8-cmp.c: Likewise.
30039         * lib/unistr/u8-cpy-alloc.c: Likewise.
30040         * lib/unistr/u8-cpy.c: Likewise.
30041         * lib/unistr/u8-endswith.c: Likewise.
30042         * lib/unistr/u8-mblen.c: Likewise.
30043         * lib/unistr/u8-mbsnlen.c: Likewise.
30044         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30045         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30046         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30047         * lib/unistr/u8-mbtouc.c: Likewise.
30048         * lib/unistr/u8-mbtoucr.c: Likewise.
30049         * lib/unistr/u8-move.c: Likewise.
30050         * lib/unistr/u8-next.c: Likewise.
30051         * lib/unistr/u8-prev.c: Likewise.
30052         * lib/unistr/u8-set.c: Likewise.
30053         * lib/unistr/u8-startswith.c: Likewise.
30054         * lib/unistr/u8-stpcpy.c: Likewise.
30055         * lib/unistr/u8-stpncpy.c: Likewise.
30056         * lib/unistr/u8-strcat.c: Likewise.
30057         * lib/unistr/u8-strchr.c: Likewise.
30058         * lib/unistr/u8-strcmp.c: Likewise.
30059         * lib/unistr/u8-strcpy.c: Likewise.
30060         * lib/unistr/u8-strcspn.c: Likewise.
30061         * lib/unistr/u8-strdup.c: Likewise.
30062         * lib/unistr/u8-strlen.c: Likewise.
30063         * lib/unistr/u8-strmblen.c: Likewise.
30064         * lib/unistr/u8-strmbtouc.c: Likewise.
30065         * lib/unistr/u8-strncat.c: Likewise.
30066         * lib/unistr/u8-strncmp.c: Likewise.
30067         * lib/unistr/u8-strncpy.c: Likewise.
30068         * lib/unistr/u8-strnlen.c: Likewise.
30069         * lib/unistr/u8-strpbrk.c: Likewise.
30070         * lib/unistr/u8-strrchr.c: Likewise.
30071         * lib/unistr/u8-strspn.c: Likewise.
30072         * lib/unistr/u8-strstr.c: Likewise.
30073         * lib/unistr/u8-strtok.c: Likewise.
30074         * lib/unistr/u8-to-u16.c: Likewise.
30075         * lib/unistr/u8-to-u32.c: Likewise.
30076         * lib/unistr/u8-uctomb-aux.c: Likewise.
30077         * lib/unistr/u8-uctomb.c: Likewise.
30078         * lib/unitypes.h: Likewise.
30079         * lib/uniwidth.h: Likewise.
30080         * lib/uniwidth/cjk.h: Likewise.
30081         * lib/uniwidth/u16-strwidth.c: Likewise.
30082         * lib/uniwidth/u16-width.c: Likewise.
30083         * lib/uniwidth/u32-strwidth.c: Likewise.
30084         * lib/uniwidth/u32-width.c: Likewise.
30085         * lib/uniwidth/u8-strwidth.c: Likewise.
30086         * lib/uniwidth/u8-width.c: Likewise.
30087         * lib/uniwidth/width.c: Likewise.
30088
30089 2007-10-07  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30092         The file is still under LGPL (see modules/inttypes).
30093
30094 2007-10-06  Bruno Haible  <bruno@clisp.org>
30095
30096         * modules/trunc (Dependencies): Add 'extensions'.
30097         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30098         Reported by Ben Pfaff <blp@gnu.org>.
30099
30100 2007-10-06  Bruno Haible  <bruno@clisp.org>
30101
30102         * modules/freopen-tests: New file.
30103         * tests/test-freopen.c: New file.
30104
30105         * modules/fopen-tests: New file.
30106         * tests/test-fopen.c: New file.
30107
30108         * modules/fopen: New file.
30109         * lib/fopen.c: New file.
30110         * m4/fopen.m4: New file.
30111         * modules/freopen: New file.
30112         * lib/freopen.c: New file.
30113         * m4/freopen.m4: New file.
30114         * lib/stdio.in.h (fopen, freopen): New declarations.
30115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30116         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30117         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30118         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30119         * doc/functions/fopen.texi: Mention the 'fopen' module.
30120         * doc/functions/freopen.texi: Mention the 'freopen' module.
30121
30122 2007-10-06  Bruno Haible  <bruno@clisp.org>
30123
30124         * modules/open-tests: New file.
30125         * tests/test-open.c: New file.
30126
30127         * modules/open: New file.
30128         * lib/open.c: New file.
30129         * m4/open.m4: New file.
30130         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30131         lib/open.c does.
30132         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30133         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30134         macros.
30135         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30136         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30137         REPLACE_OPEN.
30138         * doc/functions/open.texi: Mention the 'open' module.
30139
30140 2007-10-04  Bruno Haible  <bruno@clisp.org>
30141
30142         * modules/ceill-tests: New file.
30143         * tests/test-ceill.c: New file.
30144
30145         * modules/ceill: New file.
30146         * lib/ceill.c: Replace entire file.
30147         * m4/ceill.m4: New file.
30148         * lib/math.in.h (ceill): Replace declaration.
30149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30150         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30151         * doc/functions/ceill.texi: Mention the 'ceill' module.
30152         * modules/mathl (Files): Remove lib/ceill.c.
30153         (Depends-on): Add ceill.
30154
30155 2007-10-04  Bruno Haible  <bruno@clisp.org>
30156
30157         * modules/ceilf-tests: New file.
30158         * tests/test-ceilf.c: New file.
30159
30160         * modules/ceilf: New file.
30161         * lib/ceil.c: New file.
30162         * lib/ceilf.c: New file.
30163         * m4/ceilf.m4: New file.
30164         * lib/math.in.h (ceilf): New declaration.
30165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30166         HAVE_DECL_CEILF.
30167         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30168         HAVE_DECL_CEILF.
30169         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30170
30171 2007-10-04  Bruno Haible  <bruno@clisp.org>
30172
30173         * modules/floorl-tests: New file.
30174         * tests/test-floorl.c: New file.
30175
30176         * modules/floorl: New file.
30177         * lib/floorl.c: Replace entire file.
30178         * m4/floorl.m4: New file.
30179         * lib/math.in.h (floorl): Replace declaration.
30180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30181         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30182         * doc/functions/floorl.texi: Mention the 'floorl' module.
30183         * modules/mathl (Files): Remove lib/floorl.c.
30184         (Depends-on): Add floorl.
30185
30186 2007-10-04  Bruno Haible  <bruno@clisp.org>
30187
30188         * modules/floorf-tests: New file.
30189         * tests/test-floorf.c: New file.
30190
30191         * modules/floorf: New file.
30192         * lib/floor.c: New file.
30193         * lib/floorf.c: New file.
30194         * m4/floorf.m4: New file.
30195         * lib/math.in.h (floorf): New declaration.
30196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30197         HAVE_DECL_FLOORF.
30198         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30199         HAVE_DECL_FLOORF.
30200         * doc/functions/floorf.texi: Mention the 'floorf' module.
30201
30202 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30203             Bruno Haible  <bruno@clisp.org>
30204
30205         Advertise for the Git server instead of the CVS server.
30206         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30207         repository instead of the CVS one.
30208         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30209         about all VCS systems generically.
30210         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30211
30212 2007-10-04  Bruno Haible  <bruno@clisp.org>
30213
30214         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30215         means.
30216         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30217
30218 2007-10-04  Bruno Haible  <bruno@clisp.org>
30219
30220         * modules/truncl-tests: New file.
30221         * tests/test-truncl.c: New file.
30222
30223         * modules/truncl: New file.
30224         * lib/truncl.c: New file.
30225         * m4/truncl.m4: New file.
30226         * lib/math.in.h (truncl): New declaration.
30227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30228         HAVE_DECL_TRUNCL.
30229         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30230         HAVE_DECL_TRUNCL.
30231         * doc/functions/truncl.texi: Mention the 'truncl' module.
30232
30233 2007-10-04  Bruno Haible  <bruno@clisp.org>
30234
30235         * modules/truncf-tests: New file.
30236         * tests/test-truncf.c: New file.
30237
30238         * modules/truncf: New file.
30239         * lib/trunc.c: Make paramerizable through USE_* macros.
30240         * lib/truncf.c: New file.
30241         * m4/truncf.m4: New file.
30242         * lib/math.in.h (truncf): New declaration.
30243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30244         HAVE_DECL_TRUNCF.
30245         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30246         HAVE_DECL_TRUNCF.
30247         * doc/functions/truncf.texi: Mention the 'truncf' module.
30248
30249 2007-10-03  Bruno Haible  <bruno@clisp.org>
30250
30251         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30252         augmentation also for tests modules.
30253         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30254         * modules/atexit-tests (Makefile.am): Likewise.
30255         * modules/binary-io-tests (Makefile.am): Likewise.
30256         * modules/c-strcase-tests (Makefile.am): Likewise.
30257         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30258         * modules/canonicalize-tests (Makefile.am): Likewise.
30259         * modules/closein-tests (Makefile.am): Likewise.
30260         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30261         * modules/freadahead-tests (Makefile.am): Likewise.
30262         * modules/fseek-tests (Makefile.am): Likewise.
30263         * modules/fseeko-tests (Makefile.am): Likewise.
30264         * modules/ftell-tests (Makefile.am): Likewise.
30265         * modules/ftello-tests (Makefile.am): Likewise.
30266         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30267         * modules/isnanl-tests (Makefile.am): Likewise.
30268         * modules/lseek-tests (Makefile.am): Likewise.
30269         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30270         * modules/mbscasestr-tests (Makefile.am): Likewise.
30271         * modules/mbschr-tests (Makefile.am): Likewise.
30272         * modules/mbscspn-tests (Makefile.am): Likewise.
30273         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30274         * modules/mbspbrk-tests (Makefile.am): Likewise.
30275         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30276         * modules/mbsrchr-tests (Makefile.am): Likewise.
30277         * modules/mbsspn-tests (Makefile.am): Likewise.
30278         * modules/mbsstr-tests (Makefile.am): Likewise.
30279         * modules/printf-posix-tests (Makefile.am): Likewise.
30280         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30281         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30282         * modules/tsearch-tests (Makefile.am): Likewise.
30283         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30284         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30285         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30286         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30287         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30288         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30289         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30290         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30291         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30292         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30293         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30294         * modules/xstrtol-tests (Makefile.am): Likewise.
30295         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30296         * modules/yesno-tests (Makefile.am): Likewise.
30297
30298 2007-10-03  Bruno Haible  <bruno@clisp.org>
30299
30300         * modules/trunc-tests: New file.
30301         * tests/test-trunc.c: New file.
30302
30303         * modules/trunc: New file.
30304         * lib/trunc.c: New file.
30305         * m4/trunc.m4: New file.
30306         * lib/math.in.h (trunc): New declaration.
30307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30308         HAVE_DECL_TRUNC.
30309         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30310         HAVE_DECL_TRUNC.
30311         * doc/functions/trunc.texi: Mention the 'trunc' module.
30312
30313 2007-10-03  Bruno Haible  <bruno@clisp.org>
30314
30315         * tests/test-fpending.c: New file, mostly copied
30316         from coreutils/lib/t-fpending.c.
30317         * modules/fpending-tests: New file.
30318
30319 2007-10-03  Bruno Haible  <bruno@clisp.org>
30320
30321         Port the stdio extensions to QNX (untested).
30322         * lib/fseterr.c (fseterr): Add support for QNX.
30323         * lib/fbufmode.c (fbufmode): Likewise.
30324         * lib/freadable.c (freadable): Likewise.
30325         * lib/fwritable.c (fwritable): Likewise.
30326         * lib/freading.c (freading): Likewise.
30327         * lib/fwriting.c (fwriting): Likewise.
30328         * lib/freadahead.c (freadahed): Likewise.
30329         * lib/fpurge.c (fpurge): Likewise.
30330         * lib/fseeko.c (rpl_fseeko): Likewise.
30331
30332 2007-10-03  Bruno Haible  <bruno@clisp.org>
30333             Jim Meyering  <jim@meyering.net>
30334             Eric Blake  <ebb9@byu.net>
30335
30336         * doc/relocatable.texi: Use @command instead of @program.
30337
30338 2007-10-02  Jim Meyering  <jim@meyering.net>
30339
30340         Perform one more "_.h" -> ".in.h" substitution.
30341         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30342         instead of unistd_.h here, too.
30343
30344 2007-10-01  Bruno Haible  <bruno@clisp.org>
30345
30346         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30347         Needed for the alloca-opt module.
30348
30349 2007-09-30  Bruno Haible  <bruno@clisp.org>
30350
30351         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30352         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30353         alloca_.h.
30354         * lib/argz.in.h: Renamed from lib/argz_.h.
30355         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30356         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30357         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30358         byteswap_.h.
30359         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30360         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30361         dirent_.h.
30362         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30363         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30364         fcntl_.h.
30365         * lib/float.in.h: Renamed from lib/float_.h.
30366         * modules/float (Files, Makefile.am): Use float.in.h instead of
30367         float_.h.
30368         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30369         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30370         fnmatch_.h.
30371         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30372         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30373         getopt_.h.
30374         * lib/glob.in.h: Renamed from lib/glob_.h.
30375         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30376         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30377         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30378         iconv_.h.
30379         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30380         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30381         inttypes_.h.
30382         * lib/locale.in.h: Renamed from lib/locale_.h.
30383         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30384         locale_.h.
30385         * lib/math.in.h: Renamed from lib/math_.h.
30386         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30387         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30388         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30389         of netinet_in_.h. Add dependency.
30390         * lib/poll.in.h: Renamed from lib/poll_.h.
30391         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30392         * lib/search.in.h: Renamed from lib/search_.h.
30393         * modules/search (Files, Makefile.am): Use search.in.h instead of
30394         search_.h.
30395         * lib/signal.in.h: Renamed from lib/signal_.h.
30396         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30397         _signal.h.
30398         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30399         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30400         stdbool_.h.
30401         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30402         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30403         stdint_.h.
30404         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30405         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30406         stdio_.h.
30407         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30408         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30409         stdlib_.h.
30410         * lib/string.in.h: Renamed from lib/string_.h.
30411         * modules/string (Files, Makefile.am): Use string.in.h instead of
30412         string_.h.
30413         * doc/gnulib-tool.texi (Initial import): Update.
30414         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30415         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30416         of sys_select_.h. Add dependency.
30417         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30418         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30419         of sys_socket_.h.
30420         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30421         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30422         sys_stat_.h.
30423         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30424         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30425         sys_time_.h.
30426         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30427         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30428         sysexits_.h.
30429         * lib/time.in.h: Renamed from lib/time_.h.
30430         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30431         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30432         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30433         unistd_.h.
30434         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30435         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30436         wchar_.h.
30437         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30438         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30439         wctype_.h.
30440         * build-aux/bootstrap (slurp): Update.
30441         * lib/.cppi-disable: Update.
30442
30443 2007-09-30  Bruno Haible  <bruno@clisp.org>
30444
30445         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30446         Needed on BeOS.
30447
30448 2007-09-30  Bruno Haible  <bruno@clisp.org>
30449
30450         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30451
30452 2007-09-29  Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30455
30456 2007-09-29  Bruno Haible  <bruno@clisp.org>
30457
30458         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30459         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30460         * build-aux/install-reloc: Compile also areadlink.c.
30461         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30462
30463 2007-09-29  Bruno Haible  <bruno@clisp.org>
30464
30465         * gnulib-tool (func_emit_initmacro_done): Indentation.
30466
30467 2007-09-29  Bruno Haible  <bruno@clisp.org>
30468
30469         * README: Add CVS checkout update instructions.
30470         Info from Bob Proulx <bob@proulx.com>.
30471
30472 2007-09-28  Eric Blake  <ebb9@byu.net>
30473
30474         Provide move-if-change.
30475         * build-aux/move-if-change: New file, based on best practice
30476         rather than any canonical upstream location.
30477
30478 2007-09-28  Jim Meyering  <jim@meyering.net>
30479
30480         Fix canonicalize loop-detection corner case.
30481         Do not attempt to stat the symlink values stored via seen_triple.
30482         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30483         on linux-2.6.18, (but not 2.6.22).
30484         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30485         triple_compare.  The former compares dev,ino,filename, while the latter
30486         would actually stat dirname(filename) when dev and ino were equal.
30487         * lib/hash-triple.c: Install <string.h>.
30488         (STREQ): Define.
30489         (triple_compare_ino_str): New function.
30490         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30491
30492 2007-09-28  Eric Blake  <ebb9@byu.net>
30493
30494         Enforce that AC_REPLACE_FUNCS files exist.
30495         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30496         override check for typos.
30497
30498         Fix test-closein on Solaris 10.
30499         * tests/test-closein.c (main): Don't assume stdin can be inherited
30500         closed on all systems.
30501         * tests/test-closein.sh: Likewise.
30502         Reported by Piotr Tarnowski.
30503
30504 2007-09-28  Jim Meyering  <jim@meyering.net>
30505
30506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30507
30508 2007-09-27  Jim Meyering  <jim@meyering.net>
30509
30510         canonicalize: Avoid a false-positive cycle failure.
30511         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30512         Sort.  Remove cycle-check.
30513         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30514         not cycle-check.h.
30515         (seen_triple): New function.
30516         (canonicalize_filename_mode): Use it instead of cycle-check.
30517         * tests/test-canonicalize.c: Add a test for this bug.
30518         * tests/test-canonicalize.sh: Set up and run the test.
30519
30520         New module, file-set, from coreutils.
30521         * modules/file-set: Define it.
30522         * lib/file-set.c, lib/file-set.h: Implement.
30523
30524         New module, hash-triple, from coreutils.
30525         * modules/hash-triple: Define it.
30526         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30527
30528 2007-09-25  Eric Blake  <ebb9@byu.net>
30529
30530         Fix strerror on Interix.
30531         * lib/string_.h (strerror): Declare replacement.
30532         * doc/functions/strerror.texi (strerror): Document the Interix
30533         shortcoming.
30534         * modules/string (Makefile.am): Support new hooks.
30535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30536         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30537         gl_FUNC_STRERROR_SEPARATE.
30538         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30539         * lib/strerror.c (rpl_strerror): Provide replacement.
30540         * modules/strerror (Depends-on): Add string.
30541         (configure.ac): Detect use of module.
30542         * tests/test-strerror.c: New file.
30543         * modules/strerror-tests: New test module.
30544         * modules/argp (Depends-on): Add strerror.
30545         * modules/error (Depends-on): Likewise.
30546         Reported by Martin Koeppe.
30547
30548 2007-09-24  Bruno Haible  <bruno@clisp.org>
30549
30550         * README: Update git instructions.
30551
30552 2007-09-24  Eric Blake  <ebb9@byu.net>
30553
30554         Revert fpending breakage from 2007-09-08.
30555         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30556         __fpending.c.
30557
30558 2007-09-24  Jim Meyering  <jim@meyering.net>
30559
30560         filenamecat.c: Add a test.
30561         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30562         showing how the function works when DIR is the empty string.
30563
30564 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30565
30566         * tests/test-canonicalize.sh: Turn on executable bit.
30567
30568 2007-09-19  Eric Blake  <ebb9@byu.net>
30569
30570         * README: Update CVS instructions.
30571
30572 2007-09-18  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/areadlink: New file.
30575         * lib/areadlink.h (areadlink): New declaration.
30576         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30577
30578 2007-09-17  Jim Meyering  <jim@meyering.net>
30579
30580         * lib/savewd.c (ESTALE) [!defined]: Define.
30581         Reported to be required on Interix by Martin Koeppe.
30582
30583 2007-09-17  Bruno Haible  <bruno@clisp.org>
30584
30585         * gnulib-tool (func_version): Use $version.
30586
30587 2007-09-16  Bruno Haible  <bruno@clisp.org>
30588
30589         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30590         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30591         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30592         Reported by Greg Schafer <gschafer@zip.com.au>.
30593
30594 2007-09-15  Bruno Haible  <bruno@clisp.org>
30595
30596         * gnulib-tool (sed): Try a little harder to make bash understand the
30597         alias.
30598         Reported by Bruce Korb <bruce.korb@gmail.com>.
30599
30600 2007-09-13  Eric Blake  <ebb9@byu.net>
30601
30602         * ChangeLog: Remove conflict markers.
30603
30604 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30605
30606         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30607         Reported by Bruno Haible <bruno@clisp.org>.
30608
30609 2007-09-12  Bruno Haible  <bruno@clisp.org>
30610
30611         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30612         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30613         is not defined.
30614
30615 2007-09-12  Eric Blake  <ebb9@byu.net>
30616
30617         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30618         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30619         Autoconf definition.
30620         * modules/euidaccess (Depends-on): Add extensions, for
30621         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30622         * modules/fnmatch (Depends-on): Likewise.
30623         * modules/getaddrinfo (Depends-on): Likewise.
30624         * modules/getdelim (Depends-on): Likewise.
30625         * modules/getline (Depends-on): Likewise.
30626         * modules/getsubopt (Depends-on): Likewise.
30627         * modules/gettext (Depends-on): Likewise.
30628         * modules/group-member (Depends-on): Likewise.
30629         * modules/mbchar (Depends-on): Likewise.
30630         * modules/memmem (Depends-on): Likewise.
30631         * modules/mempcpy (Depends-on): Likewise.
30632         * modules/memrchr (Depends-on): Likewise.
30633         * modules/pagealign_alloc (Depends-on): Likewise.
30634         * modules/readutmp (Depends-on): Likewise.
30635         * modules/stpcpy (Depends-on): Likewise.
30636         * modules/stpncpy (Depends-on): Likewise.
30637         * modules/strchrnul (Depends-on): Likewise.
30638         * modules/strndup (Depends-on): Likewise.
30639         * modules/strsep (Depends-on): Likewise.
30640         * modules/strverscmp (Depends-on): Likewise.
30641         * modules/vasprintf (Depends-on): Likewise.
30642         * modules/wcwidth (Depends-on): Likewise.
30643         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30644         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30645         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30646         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30649         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30650         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30651         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30652         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30653         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30654         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30655         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30656         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30657         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30658         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30659         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30660         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30661         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30662         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30663         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30664         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30665         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30666         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30667         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30669         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30670         so that lock.m4 can be used in gettext without extensions module.
30671
30672 2007-09-11  Bruno Haible  <bruno@clisp.org>
30673
30674         * m4/isc-posix.m4: Remove file.
30675         Suggested by Eric Blake.
30676
30677 2007-09-11  Eric Blake  <ebb9@byu.net>
30678
30679         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30680
30681 2007-09-10  Bruno Haible  <bruno@clisp.org>
30682
30683         * posix-modules: Fix typo in error message.
30684         Reported by Matt <mkraai@beckman.com>.
30685
30686 2007-09-09  Bruno Haible  <bruno@clisp.org>
30687
30688         * doc/functions/getdelim.texi: Update list of platforms lacking the
30689         function.
30690         * doc/functions/getline.texi: Likewise.
30691
30692 2007-09-09  Jim Meyering  <jim@meyering.net>
30693
30694         * lib/hash.c (hash_initialize): Detect calloc failure.
30695         Reported by Bruno Haible.
30696
30697 2007-09-09  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30700         malloc or realloc fails.
30701
30702 2007-09-09  Bruno Haible  <bruno@clisp.org>
30703
30704         * modules/getcwd (Depends-on): Add malloc-posix.
30705         * modules/glob (Depends-on): Likewise.
30706         * modules/putenv (Depends-on): Likewise.
30707         * modules/strdup (Depends-on): Likewise.
30708         * modules/getdelim (Depends-on): Add realloc-posix.
30709         * modules/read-file (Depends-on): Likewise.
30710
30711 2007-09-09  Bruno Haible  <bruno@clisp.org>
30712
30713         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30714         (gl_FUNC_MALLOC_POSIX): Require it.
30715         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30716         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30717         * modules/realloc (Files): Add m4/malloc.m4.
30718         * modules/calloc (Files): Likewise.
30719
30720 2007-09-09  Bruno Haible  <bruno@clisp.org>
30721
30722         * modules/malloc-posix: New file.
30723         * modules/malloc (Depends-on): Add malloc-posix.
30724         * lib/malloc.c: Include errno.h.
30725         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30726         and a POSIX-compatible malloc into a single function. Set ENOMEM
30727         when returning NULL.
30728         * m4/malloc.m4: New file.
30729         * doc/functions/malloc.texi: Mention the malloc-posix module.
30730         * lib/stdlib_.h (malloc): New declaration.
30731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30732         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30733         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30734         and HAVE_MALLOC_POSIX.
30735
30736 2007-09-09  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/realloc-posix: New file.
30739         * modules/realloc (Depends-on): Add realloc-posix.
30740         * lib/realloc.c: Include errno.h.
30741         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30742         and a POSIX-compatible realloc into a single function. Set ENOMEM
30743         when returning NULL.
30744         * m4/realloc.m4: New file.
30745         * doc/functions/realloc.texi: Mention the realloc-posix module.
30746         * lib/stdlib_.h (realloc): New declaration.
30747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30748         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30749         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30750         and HAVE_REALLOC_POSIX.
30751
30752 2007-09-09  Bruno Haible  <bruno@clisp.org>
30753
30754         * modules/calloc-posix: New file.
30755         * modules/calloc (Depends-on): Add calloc-posix.
30756         * lib/calloc.c: Include errno.h.
30757         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30758         and a POSIX-compatible calloc into a single function. Set ENOMEM
30759         when returning NULL.
30760         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30761         * doc/functions/calloc.texi: Mention the calloc-posix module.
30762         * lib/stdlib_.h (calloc): New declaration.
30763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30764         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30765         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30766         and HAVE_CALLOC_POSIX.
30767
30768 2007-09-09  Bruno Haible  <bruno@clisp.org>
30769
30770         Allow for modules to show an arbitrary notice.
30771         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30772         * gnulib-tool: New option --extract-notice.
30773         (func_usage): Document it.
30774         (sed_extract_prog): Update.
30775         (func_get_notice): New function.
30776         (func_modules_notice): New function.
30777         (func_import, func_create_testdir): Invoke it.
30778         Suggested by Jim Meyering.
30779
30780 2007-09-09  Bruno Haible  <bruno@clisp.org>
30781
30782         * gnulib-tool: New options --verbose, --quiet.
30783         (func_usage): Document them.
30784         (verbose): New variable.
30785         (func_execute_command): New function.
30786         (func_import): Don't show the module list and the file list if
30787         $verbose < 0.
30788         (func_create_testdir): Likewise. Use func_execute_command.
30789         (func_create_megatestdir): Use func_execute_command.
30790
30791 2007-09-08  Bruno Haible  <bruno@clisp.org>
30792
30793         * gnulib-tool (func_import): Prefer rsync over wget when available,
30794         for fetching the PO files.
30795
30796 2007-09-08  Bruno Haible  <bruno@clisp.org>
30797
30798         * posix-modules: New file. Portions copied from gnulib-tool.
30799         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30800
30801 2007-09-08  Jim Meyering  <jim@meyering.net>
30802
30803         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30804         * lib/fpending.h: Rename from __fpending.h.
30805         * lib/fpending.c: Rename from __fpending.c.
30806         Include "fpending.h", not "__fpending.h".
30807         * lib/__fpending.h, lib/__fpending.c: Remove files.
30808         * modules/fpending (Files): Reflect new file names.
30809         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30810
30811 2007-09-08  Bruno Haible  <bruno@clisp.org>
30812
30813         * m4/inttypes-h.m4: Remove stub file.
30814
30815 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30816
30817         * doc/headers/stdint.texi: Discuss #include_next issue.
30818
30819 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30820
30821         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30822
30823 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30824
30825         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30826         in variable name.
30827
30828 2007-09-03  Jim Meyering  <jim@meyering.net>
30829
30830         New module: git-version-gen.
30831         * modules/git-version-gen: New file.
30832
30833         Import changes from coreutils for bootstrap script.
30834
30835         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30836
30837         bootstrap: uses rsync to download the .po files
30838         * build-aux/bootstrap (po_download_command_format): New global.
30839         (download_po_files): Use rsync.
30840         (update_po_files): Don't remove .po files after download,
30841         so future rsync runs can take advantage of the copies.
30842
30843         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30844
30845         Solve the unnecessary-.po-file-regeneration problem once and for all.
30846         * build-aux/bootstrap (download_po_files): New function, renamed from
30847         get_translations.  Now, downloads, but doesn't update LINGUAS.
30848         (update_po_files): New function.
30849
30850         bootstrap: Ignore more.
30851         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30852         uniwidth to e.g., lib/.gitignore.
30853         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30854
30855         * build-aux/bootstrap: New setting: vc_ignore.
30856         (insert_sorted_if_absent): Create $file if absent.
30857         Adapt to new, possibly empty, list: $vc_ignore.
30858
30859         bootstrap: generate more ignorable names
30860         * build-aux/bootstrap (slurp): When generating ignorable names,
30861         also map .sin to .sed, .gperf to .c, and .y to .c.
30862
30863 2007-09-03  Jim Meyering  <jim@meyering.net>
30864
30865         * build-aux/git-version-gen: New file, from coreutils.  For details, see
30866         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30867
30868 2007-09-02  Bruno Haible  <bruno@clisp.org>
30869
30870         Fix mis-recognition of 'mcs' on QNX 6.
30871         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30872         output contains the string "Mono".
30873         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30874         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30875
30876 2007-09-01  Bruno Haible  <bruno@clisp.org>
30877
30878         Fix collision between uniwidth/* and linebreak modules.
30879         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30880         u32_width): Remove declarations.
30881         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30882         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30883         streq3, streq2, streq1, streq0): Remove functions.
30884         (STREQ): Remove macro.
30885         (is_cjk_encoding): Remove function.
30886         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30887         (uc_width, u8_width, u16_width, u32_width): Remove functions.
30888         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30889         * NEWS: Document the change.
30890
30891 2007-09-01  Bruno Haible  <bruno@clisp.org>
30892
30893         * lib/streq.h: Add double-inclusion guard.
30894
30895 2007-09-01  Karl Berry  <karl@gnu.org>
30896
30897         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30898
30899 2007-08-28  Jim Meyering  <jim@meyering.net>
30900
30901         Rename mreadlink_with_size to areadlink_with_size.
30902         * NEWS: Document the change.
30903         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30904         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30905         * lib/mreadlink.h: Rename this to...
30906         * lib/areadlink.h: ...this.
30907         * modules/mreadlink-with-size: Rename this to...
30908         * modules/areadlink-with-size: ...this.
30909         * lib/canonicalize.c: Reflect the renaming.
30910         * modules/canonicalize: Likewise.
30911
30912 2007-08-26  Bruno Haible  <bruno@clisp.org>
30913
30914         * gnulib-tool (func_import): When deciding which files to remove,
30915         consider also dangling symbolic links.
30916         Reported by Eric Blake.
30917
30918 2007-08-26  Bruno Haible  <bruno@clisp.org>
30919
30920         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30921
30922 2007-08-23  Simon Josefsson  <simon@josefsson.org>
30923
30924         * lib/readline.c: Don't include getline.h, the prototype is now
30925         found in stdio.h.
30926
30927 2007-08-23  Jim Meyering  <jim@meyering.net>
30928
30929         Getdelim touchup.
30930         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30931         around the funlockfile call, since funlockfile never sets errno.
30932         Don't set errno upon failed realloc.
30933
30934 2007-08-22  Eric Blake  <ebb9@byu.net>
30935
30936         Getline touchups.
30937         * lib/getdelim.c (getdelim): Revert regression that required *n to
30938         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
30939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30940         getdelim, rather than whether implementation is missing.
30941         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30942         * lib/stdio_.h (getline): Also declare if replacement is
30943         required.
30944         * doc/functions/getdelim.texi: New file.
30945         * doc/functions/getline.texi: Likewise.
30946         * doc/gnulib.texi (Function Substitutes): Add new files.
30947         Reported by Bruno Haible.
30948
30949 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
30950
30951         * users.txt: Add Guile.
30952
30953 2007-08-22  Eric Blake  <ebb9@byu.net>
30954
30955         * tests/test-getdelim.c (main): Use remove, not unlink.
30956         * tests/test-getline.c (main): Likewise.
30957
30958         Move getline and getdelim into stdio.h, per POSIX 200x.
30959         * modules/getline (Files): Remove getline.h.
30960         (Depends-on): Add stdio.
30961         (configure.ac): Add module indicator.
30962         * modules/getdelim (Files): Remove getdelim.h.
30963         (Depends-on): Add stdio.
30964         (configure.ac): Add module indicator.
30965         * modules/stdio (Makefile.am): Work with new indicators.
30966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30967         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30968         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30969         * lib/getdelim.h: Delete.
30970         * lib/getline.h: Delete.
30971         * lib/stdio_.h (getdelim, getline): Declare.
30972         * modules/getdelim-tests: New module.
30973         * modules/getline-tests: Likewise.
30974         * tests/test-getdelim.c: New file.
30975         * tests/test-getline.c: Likewise.
30976         * NEWS: Document the change.
30977         * lib/getline.c: Update choice of header.
30978         * lib/csharpcomp.c: Likewise.
30979         * lib/getpass.c: Likewise.
30980         * lib/javacomp.c: Likewise.
30981         * lib/javaversion.c: Likewise.
30982         * lib/yesno.c: Likewise.
30983         * lib/getdelim.c: Likewise.
30984         (getdelim): Set errno on failure, and avoid memory leak.
30985
30986 2007-08-19  Bruno Haible  <bruno@clisp.org>
30987
30988         * modules/closein (Depends-on): Add freadahead.
30989         * lib/closein.c: Include freadahead.h.
30990         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30991         is zero.
30992
30993 2007-08-19  Bruno Haible  <bruno@clisp.org>
30994
30995         * modules/freadahead-tests: New file.
30996         * tests/test-freadahead.sh: New file.
30997         * tests/test-freadahead.c: New file.
30998
30999         * modules/freadahead: New file.
31000         * lib/freadahead.h: New file.
31001         * lib/freadahead.c: New file.
31002         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31003         fbufmode, fpurge, freadable, fwritable.
31004
31005 2007-08-19  Eric Blake  <ebb9@byu.net>
31006
31007         Test yesno in combination with closein.
31008         * lib/yesno.c (yesno): Document use of stdin.
31009         * modules/yesno-tests (Files): New module.
31010         * tests/test-yesno.c (main): New file.
31011         * tests/test-yesno.sh: Likewise.
31012
31013 2007-08-19  Bruno Haible  <bruno@clisp.org>
31014
31015         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31016         * lib/fseeko.c (rpl_fseeko): Likewise.
31017         * lib/fseterr.c (fseterr): Likewise.
31018
31019 2007-08-19  Bruno Haible  <bruno@clisp.org>
31020
31021         * tests/test-lseek.c (main): Disable a test for BeOS.
31022         * doc/functions/lseek.texi: Document the BeOS bug.
31023
31024 2007-08-19  Bruno Haible  <bruno@clisp.org>
31025             Eric Blake  <ebb9@byu.net>
31026
31027         * lib/lseek.c: Include <sys/stat.h>.
31028         (rpl_lseek): Add workaround code also for Unix platforms.
31029         Needed for BeOS.
31030         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31031         * doc/functions/lseek.texi: Document BeOS definiency.
31032
31033 2007-08-18  Bruno Haible  <bruno@clisp.org>
31034
31035         * modules/fstrcmp-tests: New file.
31036         * tests/test-fstrcmp.c: New file.
31037
31038 2007-08-18  Bruno Haible  <bruno@clisp.org>
31039
31040         * modules/fstrcmp: New file, from GNU gettext with modifications.
31041         * lib/fstrcmp.h: New file, from GNU gettext.
31042         * lib/fstrcmp.c: New file, from GNU gettext.
31043         * MODULES.html.sh (String handling): Add fstrcmp.
31044
31045 2007-08-18  Bruno Haible  <bruno@clisp.org>
31046
31047         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31048         'bool'.
31049         (diag, compareseq): Remove const from the ctxt argument.
31050         (USE_HEURISTIC): Undefine at the end.
31051
31052 2007-08-18  Jim Meyering  <jim@meyering.net>
31053
31054         New file: lib/idcache.h
31055         * NEWS: Mention the addition.
31056         * modules/idcache (Files): Add lib/idcache.h
31057         * lib/idcache.c: Include "idcache.h".
31058         Don't include <sys/types.h>.
31059         Add a FIXME comment.
31060         Move file-scoped "static" declarations to the top.
31061         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31062
31063 2007-08-17  Bruno Haible  <bruno@clisp.org>
31064         and Paul Eggert  <eggert@cs.ucla.edu>
31065
31066         * MODULES.html.sh: Add diffseq.
31067         * modules/diffseq: New file.
31068         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31069         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31070
31071 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         Import changes from coreutils for bootstrap script.
31074
31075         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31076
31077         * build-aux/bootstrap (slurp): Work even in environments where
31078         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31079         current code does not slurp files whose names start with ".", and
31080         this looks like it might be a troublesome area.
31081
31082         2007-07-11  Jim Meyering  <jim@meyering.net>
31083
31084         If there's a GPL vN copyright comment, require that N == 3.
31085
31086         2007-07-08  Jim Meyering  <jim@meyering.net>
31087
31088         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31089         * build-aux/bootstrap (mam_template): Move definition out of loop.
31090
31091         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31092
31093         * build-aux/bootstrap (symlink_to_dir): Rename function from
31094         symlink_to_gnulib.  Add a directory parameter.  Update all
31095         callers.
31096         (cp_mark_as_generated): Also check for -- and link to -- files in
31097         gl/.
31098
31099         2007-07-08  Jim Meyering  <jim@meyering.net>
31100
31101         Adapt to deeper hierarchy in gnulib.
31102         * build-aux/bootstrap (symlink_to_dir): If the destination
31103         directory doesn't exist, create it. This is required at least for
31104         "lib/uniwidth/cjk.h".
31105
31106         2007-05-15  Jim Meyering  <jim@meyering.net>
31107
31108         * build-aux/bootstrap: Now that generated Makefile.am files
31109         are no longer under version control, they must be created at
31110         bootstrap time.
31111
31112 2007-08-14  Ben Pfaff  <blp@gnu.org>
31113
31114         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31115
31116 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31117
31118         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31119         given the changes below.
31120         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31121         even on hosts that have padding bits beyond the supported 64.
31122
31123 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31124
31125         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31126         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31127         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31128         depends on it.
31129         (xstrtol_error): Remove.
31130         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31131         but with a different signature.
31132         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31133         * lib/xstrtol-error.c: Include exitfail.h.
31134         (xstrtol_fatal): New function, with a different signature from the
31135         old xstrtol_error, so that the caller need not worry about passing
31136         in an exit status, or about storage management of the option argument.
31137         (xstrtol_error): Now a static function.  Redo signature to
31138         implement xstrtol_fatal.  Output the correct number of hyphens in
31139         front of the option so that the caller need not worry about
31140         storage management.
31141         (N_): New macro.
31142         (_): Remove; not used now.
31143         * modules/xstrtol: Depend on getopt.
31144         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31145         of old STRTOL_FATAL_ERROR macro.
31146         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31147         of test program.
31148         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31149         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31150
31151 2007-08-08  Eric Blake  <ebb9@byu.net>
31152
31153         * lib/xstrtol-error.c: Add missing include.
31154
31155         Move xstrtol messages into gnulib domain, when --pobase is used.
31156         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31157         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31158         * modules/xstrtol (Files): Distribute new file.
31159         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31160         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31161         * tests/test-xstrtol.c: ...into new file.
31162         * tests/test-xstrtoul.c: Also test xstrtoul.
31163         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31164         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31165         * tests/test-xstrtol.sh: Drive the tests.
31166         * tests/test-xstrtoimax.sh: Likewise.
31167         * tests/test-xstrtoumax.sh: Likewise.
31168         * modules/xstrtol-tests: New module.
31169         * modules/xstrtoimax-tests: Likewise.
31170         * modules/xstrtoumax-tests: Likewise.
31171
31172 2007-08-08  Jim Meyering  <jim@meyering.net>
31173
31174         New function: mfile_name_concat.
31175         * lib/filenamecat.c (mfile_name_concat): New function, just like
31176         file_name_concat, but return NULL upon failure rather than exiting
31177         with a diagnostic.
31178         * lib/filenamecat.h: Declare it.
31179
31180 2007-08-07  Bruno Haible  <bruno@clisp.org>
31181
31182         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31183         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31184         warning from gcc.
31185         Reported by Eric Blake.
31186
31187 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31188
31189         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31190         * modules/crypto/arcfour (License): Likewise.
31191         * modules/crypto/des-tests (License): Likewise.
31192         * modules/crypto/gc-arctwo-tests (License): Likewise.
31193         * modules/crypto/gc-des-tests (License): Likewise.
31194         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31195         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31196         * modules/crypto/gc-md2-tests (License): Likewise.
31197         * modules/crypto/gc-md4-tests (License): Likewise.
31198         * modules/crypto/gc-md5-tests (License): Likewise.
31199         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31200         * modules/crypto/gc-rijndael-tests (License): Likewise.
31201         * modules/crypto/gc-sha1-tests (License): Likewise.
31202         * modules/crypto/gc-tests (License): Likewise.
31203         * modules/crypto/hmac-md5 (License): Likewise.
31204         * modules/crypto/hmac-sha1 (License): Likewise.
31205         * modules/crypto/md2-tests (License): Likewise.
31206         * modules/crypto/md4-tests (License): Likewise.
31207         * modules/crypto/md5 (License): Likewise.
31208         * modules/crypto/rijndael (License): Likewise.
31209         * modules/crypto/sha1 (License): Likewise.
31210         * modules/memxor (License): Likewise.
31211
31212 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31213         and Bruno Haible  <bruno@clisp.org>
31214
31215         * NEWS: Describe interface changes to human, xstrtol.
31216         * lib/human.h: Include <xstrtol.h>.
31217         (human_options): Return enum strtol_error, not int.  Remove
31218         bool arg; take int * instead.
31219         * lib/human.c: Don't include "gettext.h".
31220         (_): Remove; no longer used.
31221         Don't include <xstrtol.h>, since human.h does it.
31222         (human_options): Adjust to abovementioned interface changes.
31223         Do not report error to stderr; that's now the caller's
31224         responsibility.
31225         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31226         interface change.
31227         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31228         Str, Argument_type_string.  All uses changed.  Put " argument"
31229         in diagnostics to make them clearer.  Change wording of suffix
31230         message for clarity.
31231         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31232         Argument_type_string.
31233         (STRTOL_FATAL_WARN): Remove; no longer used.
31234         * modules/human (Depends-on): Remove gettext-h.
31235
31236 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31237
31238         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31239
31240 2007-07-31  Bruno Haible  <bruno@clisp.org>
31241
31242         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31243         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31244         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31245
31246 2007-07-31  Bruno Haible  <bruno@clisp.org>
31247
31248         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31249         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31250
31251 2007-07-30  Bruno Haible  <bruno@clisp.org>
31252
31253         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31254         * modules/c-ctype (License): Likewise.
31255         * modules/c-strcase (License): Likewise.
31256         * modules/check-version (License): Likewise.
31257         * modules/iconv (License): Likewise.
31258         * modules/iconv_open (License): Likewise.
31259         * modules/read-file (License): Likewise.
31260         * modules/striconv (License): Likewise.
31261         * modules/strverscmp (License): Likewise.
31262         * modules/vasprintf (License): Likewise.
31263         * modules/crypto/des (License): Likewise.
31264         * modules/crypto/gc (License): Likewise.
31265         * modules/crypto/gc-arcfour (License): Likewise.
31266         * modules/crypto/gc-arctwo (License): Likewise.
31267         * modules/crypto/gc-des (License): Likewise.
31268         * modules/crypto/gc-hmac-md5 (License): Likewise.
31269         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31270         * modules/crypto/gc-md2 (License): Likewise.
31271         * modules/crypto/gc-md4 (License): Likewise.
31272         * modules/crypto/gc-md5 (License): Likewise.
31273         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31274         * modules/crypto/gc-random (License): Likewise.
31275         * modules/crypto/gc-rijndael (License): Likewise.
31276         * modules/crypto/gc-sha1 (License): Likewise.
31277         * modules/crypto/md2 (License): Likewise.
31278         * modules/crypto/md4 (License): Likewise.
31279
31280 2007-07-30  Jim Meyering  <jim@meyering.net>
31281
31282         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31283         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31284         it has valid stat data.  This bug would cause du not to count the
31285         sizes of inaccessible directories.
31286         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31287         in <http://bugzilla.redhat.com/250077>.
31288
31289 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31290             Bruno Haible  <bruno@clisp.org>
31291
31292         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31293         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31294         #include_next, gives a diagnostic about it, but reports no error in
31295         the exit code.
31296         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31297
31298 2007-07-24  Ben Pfaff  <blp@gnu.org>
31299
31300         Improve name: "count-one-bits" is better than "popcount".
31301         * MODULES.html.sh: Update name.
31302         * lib/popcount.h: Renamed lib/count-one-bits.h.
31303         (popcount): Renamed count_one_bits.
31304         (popcountl): Renamed count_one_bits_l.
31305         (popcountll): Renamed count_one_bits_ll.
31306         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31307         * modules/popcount: Renamed module/count-one-bits.
31308         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31309         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31310
31311 2007-07-23  Ben Pfaff  <blp@gnu.org>
31312
31313         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31314         better code generation, and add U to large constants to avoid
31315         warnings, in non-GCC case.
31316         Suggested by Bruno Haible.
31317
31318 2007-07-23  Ben Pfaff  <blp@gnu.org>
31319
31320         * lib/popcount.h: Use verify_true instead of if...abort.
31321         * modules/popcount: Depend on verify module.
31322         Suggested by Jim Meyering.
31323
31324 2007-07-23  Bruno Haible  <bruno@clisp.org>
31325
31326         * gnulib-tool (func_import): Create a .cvsignore file also when the
31327         directory is not yet in CVS but the toplevel directory is. When
31328         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31329         Reported by Karl Berry.
31330
31331 2007-07-22  Ben Pfaff  <blp@gnu.org>
31332
31333         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31334         case.
31335         Suggested by Eric Blake.
31336
31337 2007-07-22  Ben Pfaff  <blp@gnu.org>
31338
31339         New module: popcount.
31340         * MODULES.html.sh: Add popcount.
31341         * modules/popcount: New file.
31342         * modules/popcount-tests: New file.
31343         * tests/test-popcount.c: New file.
31344         * lib/popcount.h: New file.
31345         * m4/popcount.m4: New file.
31346
31347 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31348
31349         * build-aux/announce-gen: Update to GPLv3.
31350
31351         * build-aux/config.guess: Update from config.
31352
31353 2007-07-21  Bruno Haible  <bruno@clisp.org>
31354
31355         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31356         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31357
31358 2007-07-20  Jim Meyering  <jim@meyering.net>
31359
31360         * check-module: Diagnose a self-dependency.
31361
31362 2007-07-19  Bruno Haible  <bruno@clisp.org>
31363
31364         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31365         empty.
31366         Reported by Eric Blake.
31367
31368 2007-07-18  Bruno Haible  <bruno@clisp.org>
31369
31370         * gnulib-tool: New options --po-base, --po-domain.
31371         (func_usage): Document them.
31372         (pobase, po_domain): New variables.
31373         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31374         DEFAULT_TEXT_DOMAIN.
31375         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31376         (func_import): Consider pobase and po_domain. Create a po/ directory.
31377         (func_create_testdir): Set pobase and po_domain to empty.
31378         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31379         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31380
31381 2007-07-18  Bruno Haible  <bruno@clisp.org>
31382
31383         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31384         EXTRA_DIST augmentation for files in build-aux/.
31385
31386 2007-07-16  Bruno Haible  <bruno@clisp.org>
31387
31388         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31389         * modules/getdelim (License): Likewise.
31390
31391 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31392
31393         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31394         * modules/d-type (License): Likewise.
31395         * modules/extensions (License): Likewise.
31396         * modules/fnmatch (License): Likewise.
31397         * modules/fseeko (License): Likewise.
31398         * modules/getaddrinfo (License): Likewise.
31399         * modules/getline (License): Likewise.
31400         * modules/getlogin_r (License): Likewise.
31401         * modules/getpass (License): Likewise.
31402         * modules/gettimeofday (License): Likewise.
31403         * modules/glob (License): Likewise.
31404         * modules/inet_ntop (License): Likewise.
31405         * modules/malloc (License): Likewise.
31406         * modules/malloca (License): Likewise.
31407         * modules/memmem (License): Likewise.
31408         * modules/mempcpy (License): Likewise.
31409         * modules/memset (License): Likewise.
31410         * modules/minmax (License): Likewise.
31411         * modules/mktime (License): Likewise.
31412         * modules/netinet_in (License): Likewise.
31413         * modules/pathmax (License): Likewise.
31414         * modules/poll (License): Likewise.
31415         * modules/regex (License): Likewise.
31416         * modules/snprintf (License): Likewise.
31417         * modules/stdbool (License): Likewise.
31418         * modules/stdint (License): Likewise.
31419         * modules/stdio (License): Likewise.
31420         * modules/strcase (License): Likewise.
31421         * modules/strcasestr (License): Likewise.
31422         * modules/strdup (License): Likewise.
31423         * modules/string (License): Likewise.
31424         * modules/strndup (License): Likewise.
31425         * modules/strnlen (License): Likewise.
31426         * modules/strpbrk (License): Likewise.
31427         * modules/strptime (License): Likewise.
31428         * modules/strsep (License): Likewise.
31429         * modules/sys_select (License): Likewise.
31430         * modules/sys_socket (License): Likewise.
31431         * modules/sys_stat (License): Likewise.
31432         * modules/sys_time (License): Likewise.
31433         * modules/time (License): Likewise.
31434         * modules/time_r (License): Likewise.
31435         * modules/timegm (License): Likewise.
31436         * modules/unistd (License): Likewise.
31437         * modules/vsnprintf (License): Likewise.
31438         * modules/wctype (License): Likewise.
31439
31440 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31441
31442         * modules/argz (License): LGPLv2+.
31443
31444 2007-07-15  Karl Berry  <karl@gnu.org>
31445
31446         * doc/gnulib.texi: revise node structure per new fdl.texi.
31447
31448 2007-07-14  Bruno Haible  <bruno@clisp.org>
31449
31450         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31451         the output file.
31452         * lib/uniname/uninames.h: Regenerated.
31453
31454 2007-07-14  Karl Berry  <karl@gnu.org>
31455
31456         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31457         omitting sectioning and index commands.
31458
31459 2007-07-13  Bruno Haible  <bruno@clisp.org>
31460
31461         New gnulib-tool option --more-symlinks.
31462         * gnulib-tool (func_usage): Document --more-symlinks.
31463         (do_copyrights): New variable.
31464         Recognize option --more-symlinks.
31465         (func_import): Don't add a copyright notice transform to
31466         sed_transform_lib_file if do_copyrights is empty.
31467
31468 2007-07-13  Bruno Haible  <bruno@clisp.org>
31469
31470         * lib/vasnprintf.c (decimal_point_char): Define also if
31471         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31472         && !NEED_PRINTF_DIRECTIVE_A.
31473         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31474         Gary V. Vaughan <gary@gnu.org>.
31475
31476 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31477
31478         * lib/inttypes_.h: Undo previous change, since it was fixed
31479         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31480
31481 2007-07-13  Bruno Haible  <bruno@clisp.org>
31482
31483         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31484         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31485
31486 2007-07-13  Jim Meyering  <jim@meyering.net>
31487
31488         df: Don't fail for Tru64's "file-on-file mount".
31489         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31490         so we fall through and use statfs instead.  Details here:
31491         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31492         Reported by Albert Chin.
31493
31494 2007-07-13  Bruno Haible  <bruno@clisp.org>
31495
31496         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31497         * modules/configmake (License): Likewise.
31498         * modules/gettext (License): Likewise.
31499         * modules/gettext-h (License): Likewise.
31500         * modules/include_next (License): Likewise.
31501         * modules/link-warning (License): Likewise.
31502         * modules/localcharset (License): Likewise.
31503         * modules/localename (License): Likewise.
31504         * modules/lock (License): Likewise.
31505         * modules/relocatable-lib-lgpl (License): Likewise.
31506         * modules/size_max (License): Likewise.
31507         * modules/vasnprintf (License): Likewise.
31508         * modules/wchar (License): Likewise.
31509         * modules/xsize (License): Likewise.
31510
31511 2007-07-13  Bruno Haible  <bruno@clisp.org>
31512
31513         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31514         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31515
31516 2007-07-12  Bruno Haible  <bruno@clisp.org>
31517
31518         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31519         in the modules files.
31520
31521 2007-07-11  Karl Berry  <karl@gnu.org>
31522
31523         * MODULES.html.sh (func_module): use
31524          sed -e '\|^'"${includefile}"'$|d'
31525          instead of /.../d, to avoid errors on $includefile's containing /.
31526
31527 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31528
31529         * gnulib-tool (func_import): Avoid duplication of --avoid
31530         statements
31531         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31532         names to `_' in variable names.
31533
31534 2007-07-10  Eric Blake  <ebb9@byu.net>
31535
31536         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31537         * NEWS: Document this change.
31538
31539 2007-07-08  Bruno Haible  <bruno@clisp.org>
31540
31541         Update to Unicode 5.0.
31542         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31543         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31544         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31545         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31546         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31547         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31548         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31549         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31550         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31551         U+10A3F, U+1D242..U+1D244.
31552         (nonspacing_table_ind): Update.
31553         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31554         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31555
31556 2007-07-08  Bruno Haible  <bruno@clisp.org>
31557
31558         Update to Unicode 5.0.
31559         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31560         code transform. Extend the name index field of unicode_name_to_code and
31561         unicode_code_to_name from 16 to 24 bits.
31562         * lib/uniname/uniname.c (unicode_character_name,
31563         unicode_name_character): Add the range 0x12xxx to the code transform.
31564         * lib/uniname/uninames.h: Regenerated.
31565         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31566
31567 2007-07-07  Bruno Haible  <bruno@clisp.org>
31568
31569         * modules/wcwidth-tests: New file.
31570         * tests/test-wcwidth.c: New file.
31571
31572         Work around MacOS X wcwidth() bug.
31573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31574         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31575         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31576         original wcwidth in non-UTF-8 locales.
31577         * modules/wcwidth (Depends-on): Add localcharset, streq,
31578         uniwidth/width.
31579         * doc/functions/wcwidth.texi: Update.
31580
31581 2007-07-07  Bruno Haible  <bruno@clisp.org>
31582
31583         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31584         (wcwidth): New declaration.
31585         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31586         macros.
31587         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31588         here. Prepare for creating <wchar.h> unconditionally.
31589         * modules/wchar (Depends-on): Add link-warning.
31590         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31591         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31592         * lib/wcwidth.h: Remove file.
31593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31594         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31595         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31596         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31597         (Include): Replace wcwidth.h with <wchar.h>.
31598         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31599         * lib/mbchar.h: Don't include wcwidth.h.
31600         * lib/mbswidth.c: Likewise.
31601         * NEWS: Mention the change.
31602
31603 2007-07-07  Bruno Haible  <bruno@clisp.org>
31604
31605         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31606         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31607         definition with an external declaration.
31608         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31609         defined as a function. Remove AC_C_INLINE requirement.
31610         * modules/wcwidth (Files): Add lib/wcwidth.c.
31611         (Makefile.am): Remove redundant statement.
31612
31613 2007-07-07  Bruno Haible  <bruno@clisp.org>
31614
31615         * MODULES.html.sh (Unicode string functions): Add the new modules.
31616
31617         * tests/uniwidth/test-u32-strwidth.c: New file.
31618         * modules/uniwidth/u32-strwidth-tests: New file.
31619
31620         * lib/uniwidth/u32-strwidth.c: New file.
31621         * modules/uniwidth/u32-strwidth: New file.
31622
31623         * tests/uniwidth/test-u16-strwidth.c: New file.
31624         * modules/uniwidth/u16-strwidth-tests: New file.
31625
31626         * lib/uniwidth/u16-strwidth.c: New file.
31627         * modules/uniwidth/u16-strwidth: New file.
31628
31629         * tests/uniwidth/test-u8-strwidth.c: New file.
31630         * modules/uniwidth/u8-strwidth-tests: New file.
31631
31632         * lib/uniwidth/u8-strwidth.c: New file.
31633         * modules/uniwidth/u8-strwidth: New file.
31634
31635         * tests/uniwidth/test-u32-width.c: New file.
31636         * modules/uniwidth/u32-width-tests: New file.
31637
31638         * lib/uniwidth/u32-width.c: New file.
31639         * modules/uniwidth/u32-width: New file.
31640
31641         * tests/uniwidth/test-u16-width.c: New file.
31642         * modules/uniwidth/u16-width-tests: New file.
31643
31644         * lib/uniwidth/u16-width.c: New file.
31645         * modules/uniwidth/u16-width: New file.
31646
31647         * tests/uniwidth/test-u8-width.c: New file.
31648         * modules/uniwidth/u8-width-tests: New file.
31649
31650         * lib/uniwidth/u8-width.c: New file.
31651         * modules/uniwidth/u8-width: New file.
31652
31653         * tests/uniwidth/test-uc_width.c: New file.
31654         * modules/uniwidth/width-tests: New file.
31655
31656         * lib/uniwidth/width.c: New file, from GNU libiconv.
31657         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31658         * modules/uniwidth/width: New file.
31659
31660         * lib/uniwidth.h: New file, from GNU libiconv.
31661         * modules/uniwidth/base: New file.
31662
31663 2007-07-07  Bruno Haible  <bruno@clisp.org>
31664
31665         * lib/uniname.h: New file, from GNU gettext.
31666         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31667         * lib/uniname/uninames.h: New file, from GNU gettext.
31668         * lib/uniname/uniname.c: New file, from GNU gettext.
31669         * tests/uniname/test-uninames.sh: New file.
31670         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31671         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31672         * modules/uniname/base: New file.
31673         * modules/uniname/uniname: New file.
31674         * modules/uniname/uniname-tests: New file.
31675         * MODULES.html.sh (Unicode string functions): Add the new modules.
31676
31677 2007-07-06  Bruno Haible  <bruno@clisp.org>
31678
31679         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31680
31681 2007-07-06  Bruno Haible  <bruno@clisp.org>
31682
31683         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31684         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31685         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31686         include <sys/time.h>.
31687         Reported by Eric Blake.
31688
31689 2007-07-06  Eric Blake  <ebb9@byu.net>
31690
31691         Fix testing canonicalize on cygwin.
31692         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31693         Revert patch from 2007-06-19.
31694         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31695         canonicalize module is also in use.
31696         * tests/test-canonicalize.c: New file.
31697         * tests/test-canonicalize.sh: Likewise.
31698         * modules/canonicalize-tests: Likewise.
31699
31700 2007-07-06  Jim Meyering  <jim@meyering.net>
31701
31702         * lib/getugroups.c (getugroups): Detect getgrent failure.
31703         Adjust comment to reflect reality: this function may return -1.
31704
31705 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31706
31707         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31708         the new TP address.
31709         (usage): Fix typo
31710         (gnulib_mk): New variable.
31711
31712 2007-07-05  Jim Meyering  <jim@meyering.net>
31713
31714         Don't let endgrent clobber errno, no matter how improbable.
31715         * lib/getugroups.c (getugroups): Save and restore errno around
31716         endgrent call.
31717
31718         Close the group DB even when failing with 2^31 or more members.
31719         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31720
31721 2007-07-04  Jim Meyering  <jim@meyering.net>
31722
31723         * lib/getugroups.h: New file.
31724         * lib/getugroups.c: Include "getugroups.h".
31725         Remove uses of "register" keyword.
31726         Move local variable, "cp", down into scope where used.
31727         Give "username" parameter the "const" attribute.
31728         * modules/getugroups (Files): Add lib/getugroups.h
31729
31730 2007-07-04  Karl Berry  <karl@gnu.org>
31731
31732         * MODULES.html.sh (func_all_modules): Complete rename of
31733         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31734
31735 2007-07-02  Bruno Haible  <bruno@clisp.org>
31736
31737         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31738         mode, when inttypes.h comes from gnulib.
31739         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31740
31741 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31742
31743         * NEWS: Mention lgpl module name change.
31744
31745         * modules/lgpl-2.1: Renamed from lgpl.
31746
31747         * NEWS: Mention gpl module name change.
31748
31749         * modules/gpl-3.0: New file, based on gpl-2.0.
31750
31751         * modules/gpl-2.0: Renamed from gpl.
31752
31753         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31754         doc/gpl-2.0.texi.
31755
31756 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31757
31758         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31759         #define __STDC_LIMIT_MACROS temporarily while including
31760         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31761         Problem reported by Joel E. Denny in
31762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31763
31764 2007-07-01  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/unistdio.h: New file.
31767         * lib/unistdio/u-asnprintf.h: New file.
31768         * lib/unistdio/u-asprintf.h: New file.
31769         * lib/unistdio/u-printf-args.c: New file.
31770         * lib/unistdio/u-printf-args.h: New file.
31771         * lib/unistdio/u-printf-parse.h: New file.
31772         * lib/unistdio/u-snprintf.h: New file.
31773         * lib/unistdio/u-sprintf.h: New file.
31774         * lib/unistdio/u-vasprintf.h: New file.
31775         * lib/unistdio/u-vsnprintf.h: New file.
31776         * lib/unistdio/u-vsprintf.h: New file.
31777         * lib/unistdio/ulc-asnprintf.c: New file.
31778         * lib/unistdio/ulc-asprintf.c: New file.
31779         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31780         * lib/unistdio/ulc-printf-parse.c: New file.
31781         * lib/unistdio/ulc-snprintf.c: New file.
31782         * lib/unistdio/ulc-sprintf.c: New file.
31783         * lib/unistdio/ulc-vasnprintf.c: New file.
31784         * lib/unistdio/ulc-vasprintf.c: New file.
31785         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31786         * lib/unistdio/ulc-vsnprintf.c: New file.
31787         * lib/unistdio/ulc-vsprintf.c: New file.
31788         * lib/unistdio/u8-asnprintf.c: New file.
31789         * lib/unistdio/u8-asprintf.c: New file.
31790         * lib/unistdio/u8-printf-parse.c: New file.
31791         * lib/unistdio/u8-snprintf.c: New file.
31792         * lib/unistdio/u8-sprintf.c: New file.
31793         * lib/unistdio/u8-vasnprintf.c: New file.
31794         * lib/unistdio/u8-vasprintf.c: New file.
31795         * lib/unistdio/u8-vsnprintf.c: New file.
31796         * lib/unistdio/u8-vsprintf.c: New file.
31797         * lib/unistdio/u8-u8-asnprintf.c: New file.
31798         * lib/unistdio/u8-u8-asprintf.c: New file.
31799         * lib/unistdio/u8-u8-snprintf.c: New file.
31800         * lib/unistdio/u8-u8-sprintf.c: New file.
31801         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31802         * lib/unistdio/u8-u8-vasprintf.c: New file.
31803         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31804         * lib/unistdio/u8-u8-vsprintf.c: New file.
31805         * lib/unistdio/u16-asnprintf.c: New file.
31806         * lib/unistdio/u16-asprintf.c: New file.
31807         * lib/unistdio/u16-printf-parse.c: New file.
31808         * lib/unistdio/u16-snprintf.c: New file.
31809         * lib/unistdio/u16-sprintf.c: New file.
31810         * lib/unistdio/u16-vasnprintf.c: New file.
31811         * lib/unistdio/u16-vasprintf.c: New file.
31812         * lib/unistdio/u16-vsnprintf.c: New file.
31813         * lib/unistdio/u16-vsprintf.c: New file.
31814         * lib/unistdio/u16-u16-asnprintf.c: New file.
31815         * lib/unistdio/u16-u16-asprintf.c: New file.
31816         * lib/unistdio/u16-u16-snprintf.c: New file.
31817         * lib/unistdio/u16-u16-sprintf.c: New file.
31818         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31819         * lib/unistdio/u16-u16-vasprintf.c: New file.
31820         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31821         * lib/unistdio/u16-u16-vsprintf.c: New file.
31822         * lib/unistdio/u32-asnprintf.c: New file.
31823         * lib/unistdio/u32-asprintf.c: New file.
31824         * lib/unistdio/u32-printf-parse.c: New file.
31825         * lib/unistdio/u32-snprintf.c: New file.
31826         * lib/unistdio/u32-sprintf.c: New file.
31827         * lib/unistdio/u32-vasnprintf.c: New file.
31828         * lib/unistdio/u32-vasprintf.c: New file.
31829         * lib/unistdio/u32-vsnprintf.c: New file.
31830         * lib/unistdio/u32-vsprintf.c: New file.
31831         * lib/unistdio/u32-u32-asnprintf.c: New file.
31832         * lib/unistdio/u32-u32-asprintf.c: New file.
31833         * lib/unistdio/u32-u32-snprintf.c: New file.
31834         * lib/unistdio/u32-u32-sprintf.c: New file.
31835         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31836         * lib/unistdio/u32-u32-vasprintf.c: New file.
31837         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31838         * lib/unistdio/u32-u32-vsprintf.c: New file.
31839         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31840         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31841         * tests/unistdio/test-ulc-printf1.h: New file.
31842         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31843         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31844         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31845         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31846         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31847         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31848         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31849         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31850         * tests/unistdio/test-u8-asnprintf1.c: New file.
31851         * tests/unistdio/test-u8-asnprintf1.h: New file.
31852         * tests/unistdio/test-u8-printf1.h: New file.
31853         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31854         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31855         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31856         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31857         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31858         * tests/unistdio/test-u8-vasprintf1.c: New file.
31859         * tests/unistdio/test-u8-vsnprintf1.c: New file.
31860         * tests/unistdio/test-u8-vsprintf1.c: New file.
31861         * tests/unistdio/test-u16-asnprintf1.c: New file.
31862         * tests/unistdio/test-u16-asnprintf1.h: New file.
31863         * tests/unistdio/test-u16-printf1.h: New file.
31864         * tests/unistdio/test-u16-vasnprintf1.c: New file.
31865         * tests/unistdio/test-u16-vasnprintf2.c: New file.
31866         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31867         * tests/unistdio/test-u16-vasnprintf3.c: New file.
31868         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31869         * tests/unistdio/test-u16-vasprintf1.c: New file.
31870         * tests/unistdio/test-u16-vsnprintf1.c: New file.
31871         * tests/unistdio/test-u16-vsprintf1.c: New file.
31872         * tests/unistdio/test-u32-asnprintf1.c: New file.
31873         * tests/unistdio/test-u32-asnprintf1.h: New file.
31874         * tests/unistdio/test-u32-printf1.h: New file.
31875         * tests/unistdio/test-u32-vasnprintf1.c: New file.
31876         * tests/unistdio/test-u32-vasnprintf2.c: New file.
31877         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31878         * tests/unistdio/test-u32-vasnprintf3.c: New file.
31879         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31880         * tests/unistdio/test-u32-vasprintf1.c: New file.
31881         * tests/unistdio/test-u32-vsnprintf1.c: New file.
31882         * tests/unistdio/test-u32-vsprintf1.c: New file.
31883         * modules/unistdio/base: New file.
31884         * modules/unistdio/u-printf-args: New file.
31885         * modules/unistdio/ulc-asnprintf: New file.
31886         * modules/unistdio/ulc-asprintf: New file.
31887         * modules/unistdio/ulc-fprintf: New file.
31888         * modules/unistdio/ulc-printf-parse: New file.
31889         * modules/unistdio/ulc-snprintf: New file.
31890         * modules/unistdio/ulc-sprintf: New file.
31891         * modules/unistdio/ulc-vasnprintf: New file.
31892         * modules/unistdio/ulc-vasprintf: New file.
31893         * modules/unistdio/ulc-vfprintf: New file.
31894         * modules/unistdio/ulc-vsnprintf: New file.
31895         * modules/unistdio/ulc-vsprintf: New file.
31896         * modules/unistdio/u8-asnprintf: New file.
31897         * modules/unistdio/u8-asprintf: New file.
31898         * modules/unistdio/u8-printf-parse: New file.
31899         * modules/unistdio/u8-snprintf: New file.
31900         * modules/unistdio/u8-sprintf: New file.
31901         * modules/unistdio/u8-vasnprintf: New file.
31902         * modules/unistdio/u8-vasprintf: New file.
31903         * modules/unistdio/u8-vsnprintf: New file.
31904         * modules/unistdio/u8-vsprintf: New file.
31905         * modules/unistdio/u8-u8-asnprintf: New file.
31906         * modules/unistdio/u8-u8-asprintf: New file.
31907         * modules/unistdio/u8-u8-snprintf: New file.
31908         * modules/unistdio/u8-u8-sprintf: New file.
31909         * modules/unistdio/u8-u8-vasnprintf: New file.
31910         * modules/unistdio/u8-u8-vasprintf: New file.
31911         * modules/unistdio/u8-u8-vsnprintf: New file.
31912         * modules/unistdio/u8-u8-vsprintf: New file.
31913         * modules/unistdio/u16-asnprintf: New file.
31914         * modules/unistdio/u16-asprintf: New file.
31915         * modules/unistdio/u16-printf-parse: New file.
31916         * modules/unistdio/u16-snprintf: New file.
31917         * modules/unistdio/u16-sprintf: New file.
31918         * modules/unistdio/u16-vasnprintf: New file.
31919         * modules/unistdio/u16-vasprintf: New file.
31920         * modules/unistdio/u16-vsnprintf: New file.
31921         * modules/unistdio/u16-vsprintf: New file.
31922         * modules/unistdio/u16-u16-asnprintf: New file.
31923         * modules/unistdio/u16-u16-asprintf: New file.
31924         * modules/unistdio/u16-u16-snprintf: New file.
31925         * modules/unistdio/u16-u16-sprintf: New file.
31926         * modules/unistdio/u16-u16-vasnprintf: New file.
31927         * modules/unistdio/u16-u16-vasprintf: New file.
31928         * modules/unistdio/u16-u16-vsnprintf: New file.
31929         * modules/unistdio/u16-u16-vsprintf: New file.
31930         * modules/unistdio/u32-asnprintf: New file.
31931         * modules/unistdio/u32-asprintf: New file.
31932         * modules/unistdio/u32-printf-parse: New file.
31933         * modules/unistdio/u32-snprintf: New file.
31934         * modules/unistdio/u32-sprintf: New file.
31935         * modules/unistdio/u32-vasnprintf: New file.
31936         * modules/unistdio/u32-vasprintf: New file.
31937         * modules/unistdio/u32-vsnprintf: New file.
31938         * modules/unistdio/u32-vsprintf: New file.
31939         * modules/unistdio/u32-u32-asnprintf: New file.
31940         * modules/unistdio/u32-u32-asprintf: New file.
31941         * modules/unistdio/u32-u32-snprintf: New file.
31942         * modules/unistdio/u32-u32-sprintf: New file.
31943         * modules/unistdio/u32-u32-vasnprintf: New file.
31944         * modules/unistdio/u32-u32-vasprintf: New file.
31945         * modules/unistdio/u32-u32-vsnprintf: New file.
31946         * modules/unistdio/u32-u32-vsprintf: New file.
31947         * modules/unistdio/ulc-asnprintf-tests: New file.
31948         * modules/unistdio/ulc-vasnprintf-tests: New file.
31949         * modules/unistdio/ulc-vasprintf-tests: New file.
31950         * modules/unistdio/ulc-vsnprintf-tests: New file.
31951         * modules/unistdio/ulc-vsprintf-tests: New file.
31952         * modules/unistdio/u8-asnprintf-tests: New file.
31953         * modules/unistdio/u8-vasnprintf-tests: New file.
31954         * modules/unistdio/u8-vasprintf-tests: New file.
31955         * modules/unistdio/u8-vsnprintf-tests: New file.
31956         * modules/unistdio/u8-vsprintf-tests: New file.
31957         * modules/unistdio/u16-asnprintf-tests: New file.
31958         * modules/unistdio/u16-vasnprintf-tests: New file.
31959         * modules/unistdio/u16-vasprintf-tests: New file.
31960         * modules/unistdio/u16-vsnprintf-tests: New file.
31961         * modules/unistdio/u16-vsprintf-tests: New file.
31962         * modules/unistdio/u32-asnprintf-tests: New file.
31963         * modules/unistdio/u32-vasnprintf-tests: New file.
31964         * modules/unistdio/u32-vasprintf-tests: New file.
31965         * modules/unistdio/u32-vsnprintf-tests: New file.
31966         * modules/unistdio/u32-vsprintf-tests: New file.
31967         * MODULES.html.sh (Unicode string functions): Add the new modules.
31968
31969 2007-07-01  Bruno Haible  <bruno@clisp.org>
31970
31971         * lib/sprintf.c (sprintf): Limit the available length estimation,
31972         to avoid address wraparound.
31973         * lib/vsprintf.c (vsprintf): Likewise.
31974         * modules/sprintf-posix (Dependencies): Add stdint.
31975         * modules/vsprintf-posix (Dependencies): Likewise.
31976
31977 2007-07-01  Bruno Haible  <bruno@clisp.org>
31978
31979         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31980         Windows PATH as well. Conservative double-quoting. Comments.
31981
31982 2007-07-01  Bruno Haible  <bruno@clisp.org>
31983             Eric Blake  <ebb9@byu.net>
31984             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31985
31986         * gnulib-tool (self_abspathname): Fix algorithm to cope with
31987         empty components in $PATH, denoting '.'.
31988
31989 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31990
31991         * gnulib-tool: Fix indentation.
31992         (func_create_megatestdir): Likewise.
31993         Report by Bruno Haible.
31994
31995 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31996
31997         Sync from Automake.
31998         * build-aux/gnupload: Fix shell portability issues with for loops.
31999         Report by Karl Berry.
32000
32001 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32002
32003         * build-aux/maint.mk (POURL): Use translationproject.org.
32004
32005 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32006             Bruno Haible  <bruno@clisp.org>
32007
32008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32009         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32010         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32011         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32012         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32013
32014 2007-06-27  Bruno Haible  <bruno@clisp.org>
32015
32016         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32017         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32018
32019 2007-06-26  Karl Berry  <karl@gnu.org>
32020
32021         * MODULES.html.sh: remove xreadlink-with-size.
32022
32023 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32024
32025         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32026         method that I hope also handles the double-include problem noted
32027         by Bruno Haible in
32028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32029
32030 2007-06-23  Bruno Haible  <bruno@clisp.org>
32031
32032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32033         Don't let the 'mostlyclean' target fail if the last subdirectory could
32034         not be removed.
32035         Reported by Karl Berry.
32036
32037 2007-06-23  Bruno Haible  <bruno@clisp.org>
32038
32039         * gnulib-tool (echo): Add a speedier workaround for ksh.
32040         * tests/test-echo.sh: Likewise.
32041
32042 2007-06-23  Bruno Haible  <bruno@clisp.org>
32043
32044         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32045         * tests/test-echo.sh: Likewise.
32046
32047 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32048
32049         * gnulib-tool (IFS): Initialize early, so we don't set it to
32050         empty later.
32051         (self_abspathname): Rewrite algorithm to set it, reindent.
32052         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32053         (func_create_megatestdir): Merge some sed scripts.
32054
32055 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32056
32057         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32058         exposed by Sun Studio 11 cc on Solaris 8.
32059
32060 2007-06-22  Bruno Haible  <bruno@clisp.org>
32061
32062         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32063         backslashes.
32064         * tests/test-echo.sh: New file.
32065
32066 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32067
32068         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32069         simplify `sed_replace_build_aux' scripts, they are portable but
32070         echoing them with `echo' is not.
32071         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32072
32073 2007-06-21  Karl Berry  <karl@gnu.org>
32074
32075         * config/srclist.txt: guess we can't handle the licenses via
32076         srclist at the moment.
32077
32078 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32079
32080         * MODULES.html.sh: Add include_next.
32081         * modules/include_next: New file.
32082
32083 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32084
32085         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32086         INCLUDE_NEXT.
32087         (gl_CHECK_NEXT_HEADERS): New macro.
32088         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32089         the obsolescent gl_ABSOLUTE_HEADER.
32090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32091         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32092         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32093         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32094         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32095         * m4/math_h.m4 (gl_MATH_H): Likewise.
32096         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32097         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32098         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32099         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32100         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32101         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32104         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32107         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32108         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32109         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32110         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32111         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32112         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32113         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32114         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32115         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32116         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32117         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32118         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32119         * lib/float_.h: Likewise.
32120         * lib/inttypes_.h: Likewise.
32121         * lib/math_.h: Likewise.
32122         * lib/search_.h: Likewise.
32123         * lib/signal_.h: Likewise.
32124         * lib/stdint_.h: Likewise.
32125         * lib/stdio_.h: Likewise.
32126         * lib/stdlib_.h: Likewise.
32127         * lib/string_.h: Likewise.
32128         * lib/sys_stat_.h: Likewise.
32129         * lib/sys_time_.h: Likewise.
32130         * lib/time_.h: Likewise.
32131         * lib/unistd_.h: Likewise.
32132         * lib/wchar_.h: Likewise.
32133         * lib/wctype_.h: Likewise.
32134         * lib/dirent_.h: Likewise.
32135         * lib/iconv_.h: Likewise.
32136         * lib/locale_.h: Likewise.
32137         * lib/netinet_in_.h: Likewise.
32138         * lib/sys_select_.h: Likewise.
32139         * lib/sys_socket_.h: Likewise.
32140         * lib/sysexits_.h: Likewise.
32141         * modules/fcntl (Depends-on): Depend on include_next, not
32142         absolute_header.
32143         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32144         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32145         * modules/fchdir: Likewise.
32146         * modules/float: Likewise.
32147         * modules/iconv_open: Likewise.
32148         * modules/inttypes: Likewise.
32149         * modules/locale: Likewise.
32150         * modules/math: Likewise.
32151         * modules/netinet_in: Likewise.
32152         * modules/search: Likewise.
32153         * modules/signal: Likewise.
32154         * modules/stdint: Likewise.
32155         * modules/stdio: Likewise.
32156         * modules/stdlib: Likewise.
32157         * modules/string: Likewise.
32158         * modules/sys_select: Likewise.
32159         * modules/sys_socket: Likewise.
32160         * modules/sys_stat: Likewise.
32161         * modules/sys_time: Likewise.
32162         * modules/sysexits: Likewise.
32163         * modules/time: Likewise.
32164         * modules/unistd: Likewise.
32165         * modules/wchar: Likewise.
32166         * modules/wctype: Likewise.
32167         * modules/sys_stat: Change maintainer to "all".
32168         * modules/unistd: Likewise.
32169
32170 2007-06-20  Karl Berry  <karl@gnu.org>
32171
32172         * config/srclist.txt: track www changes in license files.
32173
32174 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32175
32176         * build-aux/bootstrap: Remove stray dot.
32177         Make sure build_aux settings are honored when linking
32178         gnulib_extra_files.
32179
32180 2007-06-19  Eric Blake  <ebb9@byu.net>
32181
32182         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32183         Allow compilation on cygwin.
32184
32185 2007-06-19  Jim Meyering  <jim@meyering.net>
32186
32187         xreadlink-with-size: Remove module.  No longer used.
32188         Ex-callers now use xreadlink or mreadlink-with-size.
32189         * modules/xreadlink-with-size: Remove module.
32190         * lib/xreadlink-with-size.c: Remove file.
32191         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32192         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32193         just before the function definition *is* accurate.
32194
32195         Eliminate one way canonicalize_filename_mode could exit.
32196         * lib/canonicalize.c (canonicalize_filename_mode):
32197         Use mreadlink_with_size, not xreadlink_with_size.
32198
32199 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32200
32201         Detect porting problems to FreeBSD/arm, which has time_t wider than
32202         long int.  Original problem reported for GNU diff by Xin Li in
32203         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32204         * modules/getdate (Depends-on): Add intprops, verify.
32205         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32206         is an integer type no wider than long int.
32207
32208 2007-06-18  Jim Meyering  <jim@meyering.net>
32209
32210         New module: mreadlink-with-size.
32211         * MODULES.html.sh: Add mreadlink-with-size.
32212         * modules/mreadlink-with-size: New module
32213         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32214         not xreadlink-with-size.
32215         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32216
32217 2007-06-16  Bruno Haible  <bruno@clisp.org>
32218
32219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32220         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32221         Reported by Gary V. Vaughan <gary@gnu.org>.
32222
32223 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         Revamp lchown so that it lives in unistd.h where it belongs.
32226         * lib/lchown.h: Remove.
32227         * lib/dirchownmod.c: Don't include lib/lchown.h.
32228         * lib/fchownat.c: Likewise.
32229         * lib/openat.c: Likewise.
32230         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32231         does not follow symlinks.
32232         (EOPNOTSUPP): Define if not defined.
32233         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32234         is defined to 0.
32235         (lchown): New decl.
32236         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32237         Do not check for lchown decl.
32238         Set REPLACE_LCHOWN.
32239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32240         REPLACE_LCHOWN.
32241         * modules/chown: Make it clear it follows symlinks.
32242         * modules/lchown: Make it clear it doesn't follow symlinks.
32243         (Files): Remove lib/lchown.h
32244         (Depends-on): Add unistd.
32245         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32246         (Include): Include <unistd.h>, not "lchown.h".
32247         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32248         REPLACE_LCHOWN.
32249
32250 2007-06-15  Jim Meyering  <jim@meyering.net>
32251
32252         Change license (GPL to LGPL) of fsusage and dependents.
32253         * modules/fsusage (License): Change to LGPL.
32254         * modules/full-read (License): Likewise.
32255         * modules/full-write (License): Likewise.
32256         * modules/safe-read (License): Likewise.
32257         * modules/safe-write (License): Likewise.
32258
32259 2007-06-14  Ben Pfaff  <blp@gnu.org>
32260
32261         Missing part of allocsa -> malloca transition.
32262         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32263         gl_MALLOCA.
32264
32265 2007-06-12  Bruno Haible  <bruno@clisp.org>
32266
32267         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32268         to ia64, x86_64, i386.
32269         Reported by Eric Blake.
32270
32271 2007-06-12  Bruno Haible  <bruno@clisp.org>
32272
32273         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32274         cross-compiling to x86_64.
32275
32276 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32277
32278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32279         glitch reported by Ralf Wildenhues in
32280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32281
32282         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32283         Vin Shelton.
32284
32285 2007-06-11  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32288         replacement string.
32289         Reported by Eric Blake.
32290
32291 2007-06-10  Bruno Haible  <bruno@clisp.org>
32292
32293         Prepare vasnprintf code for use with Unicode strings.
32294         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32295         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32296         TYPE_U32_STRING.
32297         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32298         a_u32_string variants.
32299         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32300         * lib/printf-args.c: Don't include config.h and the specification
32301         header if PRINTF_FETCHARGS is already defined.
32302         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32303         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32304         TYPE_U16_STRING, TYPE_U32_STRING.
32305         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32306         u16_directive, u16_directives, u32_directive, u32_directives): New
32307         types.
32308         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32309         New declarations.
32310         * lib/printf-parse.c: Don't include config.h and the specification
32311         header if PRINTF_PARSE is already defined. Eliminate the set of
32312         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32313         them now. Include c-ctype.h.
32314         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32315         directive and CHAR_T_ONLY_ASCII.
32316         * lib/vasnprintf.c: Don't include config.h and the specification header
32317         if VASNPRINTF is already defined.
32318         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32319         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32320         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32321         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32322         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32323         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32324         code accordingly.
32325         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32326         pad_ourselves also in this case, with the 'c' and 's' directives, and
32327         with a different notion of "width".
32328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32329
32330 2007-06-10  Bruno Haible  <bruno@clisp.org>
32331
32332         * modules/unistr/u32-mbsnlen: New file.
32333         * lib/unistr/u32-mbsnlen.c: New file.
32334
32335         * modules/unistr/u16-mbsnlen: New file.
32336         * lib/unistr/u16-mbsnlen.c: New file.
32337
32338         * modules/unistr/u8-mbsnlen: New file.
32339         * lib/unistr/u8-mbsnlen.c: New file.
32340
32341         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32342         declarations.
32343
32344 2007-06-10  Bruno Haible  <bruno@clisp.org>
32345
32346         * lib/string_.h (mbsnlen): New declaration.
32347         * lib/mbsnlen.c: New file.
32348         * m4/mbsnlen.m4: New file.
32349         * modules/mbsnlen: New file.
32350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32351         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32352         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32353
32354 2007-06-10  Bruno Haible  <bruno@clisp.org>
32355
32356         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32357
32358 2007-06-10  Bruno Haible  <bruno@clisp.org>
32359
32360         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32361         * lib/mbuiter.h: Likewise.
32362
32363 2007-06-10  Bruno Haible  <bruno@clisp.org>
32364
32365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32366         declaration.
32367
32368 2007-06-10  Karl Berry  <karl@gnu.org>
32369
32370         * config/srclist.txt: remove gettext entries, Bruno prefers
32371         to update individually.
32372
32373 2007-06-10  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32376         'maxlen'. Ensure only length + width bytes are allocated, not
32377         length + 1 + width.
32378
32379 2007-06-09  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32382         (CHAR_T): Remove macro.
32383         (VASNPRINTF): Update.
32384
32385 2007-06-09  Bruno Haible  <bruno@clisp.org>
32386
32387         * MODULES.html.sh (Unicode string functions): Add the new modules.
32388
32389         * modules/uniconv/u32-conv-to-enc: New file.
32390         * lib/uniconv/u32-conv-to-enc.c: New file.
32391         * modules/uniconv/u32-conv-to-enc-tests: New file.
32392         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32393
32394         * modules/uniconv/u16-conv-to-enc: New file.
32395         * lib/uniconv/u16-conv-to-enc.c: New file.
32396         * lib/uniconv/u-conv-to-enc.h: New file.
32397         * modules/uniconv/u16-conv-to-enc-tests: New file.
32398         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32399
32400         * modules/uniconv/u8-conv-to-enc: New file.
32401         * lib/uniconv/u8-conv-to-enc.c: New file.
32402         * modules/uniconv/u8-conv-to-enc-tests: New file.
32403         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32404
32405         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32406         u32_conv_to_encoding): New declarations.
32407
32408 2007-06-09  Bruno Haible  <bruno@clisp.org>
32409
32410         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32411
32412 2007-06-09  Bruno Haible  <bruno@clisp.org>
32413
32414         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32415         * modules/malloca: Renamed from modules/allocsa, updated.
32416         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32417         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32418         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32419         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32420         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32421         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32422         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32423         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32424         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32425         * modules/c-strcasestr (Depends-on): Update.
32426         * lib/c-strcasestr.c: Update.
32427         * modules/c-strstr (Depends-on): Update.
32428         * lib/c-strstr.c: Update.
32429         * modules/canonicalize-lgpl (Depends-on): Update.
32430         * lib/canonicalize-lgpl.c: Update.
32431         * modules/clean-temp (Depends-on): Update.
32432         * lib/clean-temp.c: Update.
32433         * modules/csharpcomp (Depends-on): Update.
32434         * lib/csharpcomp.c: Update.
32435         * modules/csharpexec (Depends-on): Update.
32436         * lib/csharpexec.c: Update.
32437         * modules/javacomp (Depends-on): Update.
32438         * lib/javacomp.c: Update.
32439         * modules/javaexec (Depends-on): Update.
32440         * lib/javaexec.c: Update.
32441         * modules/mbscasestr (Depends-on): Update.
32442         * lib/mbscasestr.c: Update.
32443         * modules/mbsstr (Depends-on): Update.
32444         * lib/mbsstr.c: Update.
32445         * modules/setenv (Depends-on): Update.
32446         * lib/setenv.c: Update.
32447         * modules/strcasestr (Depends-on): Update.
32448         * lib/strcasestr.c: Update.
32449         * modules/striconveha (Depends-on): Update.
32450         * lib/striconveha.c: Update.
32451         * modules/relocatable-prog-wrapper (Files): Update.
32452         * lib/relocwrapper.c: Update.
32453         * build-aux/install-reloc: Update.
32454         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32455
32456 2007-06-08  Bruno Haible  <bruno@clisp.org>
32457
32458         Port to uClibc.
32459         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32460         * lib/fpurge.c (fpurge): Likewise.
32461         * lib/freading.c (freading): Likewise.
32462         * lib/fseeko.c (rpl_fseeko): Likewise.
32463         * lib/fseterr.c (fseterr): Likewise.
32464         * lib/fwriting.c (fwriting): Likewise.
32465         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32466
32467 2007-06-08  Bruno Haible  <bruno@clisp.org>
32468
32469         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32470         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32471         * modules/gettext (Files): Add m4/intlmacosx.m4.
32472
32473 2007-06-07  Bruno Haible  <bruno@clisp.org>
32474
32475         * modules/localename-tests: New file.
32476         * tests/test-localename.c: New file.
32477
32478         New module 'localename'.
32479         * lib/localename.h: New file.
32480         * lib/localename.c: New file, from GNU gettext.
32481         * m4/localename.m4: New file.
32482         * modules/localename: New file.
32483
32484 2007-06-07  Bruno Haible  <bruno@clisp.org>
32485
32486         Work around the lack of <wchar.h> on some builds of uClibc.
32487         * doc/headers/wchar.texi: Update.
32488         * lib/wchar_.h: Include <wchar.h> only if it exists.
32489         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32490         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32491         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32492         doesn't exist.
32493         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32494         * modules/mbfile (Depends-on): Add wchar.
32495         * modules/mbiter (Depends-on): Likewise.
32496         * modules/mbuiter (Depends-on): Likewise.
32497         Reported by Simon Josefsson.
32498
32499 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32500
32501         Work around problem reported by Steven M. Schweda in
32502         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32503         Tru64 5.1B with the Compaq compiler environment installed declares
32504         an 'isblank' function but does not define it in the C library.
32505         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32506         * lib/regex_internal.h (isblank): Likewise.
32507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32508         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32509
32510 2007-06-05  Bruno Haible  <bruno@clisp.org>
32511
32512         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32513         ia64.
32514         * modules/printf-safe: New file.
32515         * modules/fprintf-posix (Depends-on): Add printf-safe.
32516         * modules/printf-posix (Depends-on): Likewise.
32517         * modules/snprintf-posix (Depends-on): Likewise.
32518         * modules/sprintf-posix (Depends-on): Likewise.
32519         * modules/vasnprintf-posix (Depends-on): Likewise.
32520         * modules/vasprintf-posix (Depends-on): Likewise.
32521         * modules/vfprintf-posix (Depends-on): Likewise.
32522         * modules/vprintf-posix (Depends-on): Likewise.
32523         * modules/vsnprintf-posix (Depends-on): Likewise.
32524         * modules/vsprintf-posix (Depends-on): Likewise.
32525         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32526         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32527         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32528         "no" on i386, x86_64, ia64.
32529         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32530         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32531         on i386, x86_64, ia64.
32532         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32533         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32534         on i386, x86_64, ia64.
32535         * tests/test-vasnprintf-posix.c: Include float.h.
32536         (LDBL80_WORDS): New macro.
32537         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32538         on i386, x86_64, ia64.
32539         * tests/test-vasprintf-posix.c: Include float.h.
32540         (LDBL80_WORDS): New macro.
32541         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32542         on i386, x86_64, ia64.
32543         * tests/test-snprintf-posix.c: Include float.h.
32544         * tests/test-sprintf-posix.c: Likewise.
32545         * tests/test-vsnprintf-posix.c: Likewise.
32546         * tests/test-vsprintf-posix.c: Likewise.
32547
32548 2007-06-05  Bruno Haible  <bruno@clisp.org>
32549
32550         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32551         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32552         non-IEEE numbers on i386, x86_64, ia64.
32553         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32554         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32555         * tests/test-isnanl.h: Include float.h.
32556         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32557
32558 2007-06-05  Bruno Haible  <bruno@clisp.org>
32559
32560         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32561         also the %a / %A. Handle the %a / %A code before this extra handling.
32562
32563 2007-06-05  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32566         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32567
32568 2007-06-05  Bruno Haible  <bruno@clisp.org>
32569
32570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32571         typo in variable name.
32572
32573 2007-06-05  Eric Blake  <ebb9@byu.net>
32574
32575         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32576         Reported by Simon Josefsson.
32577
32578 2007-06-04  Bruno Haible  <bruno@clisp.org>
32579
32580         Avoid test failures on some PowerPC platforms.
32581         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32582         Define differently for PowerPC.
32583         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32584         Reported by Gary V. Vaughan <gary@gnu.org>.
32585
32586 2007-06-02  Bruno Haible  <bruno@clisp.org>
32587
32588         Fix test-stdint failure on FreeBSD/ia64.
32589         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32590         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32591         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32592         * doc/headers/stdint.texi: Update.
32593
32594 2007-06-01  Bruno Haible  <bruno@clisp.org>
32595
32596         * tests/test-binary-io.c (main): Pass a third argument to open().
32597         Reported by Gary V. Vaughan <gary@gnu.org>.
32598
32599 2007-06-01  Bruno Haible  <bruno@clisp.org>
32600
32601         * doc/functions/frexpl.texi: Update for mingw.
32602
32603 2007-06-01  Bruno Haible  <bruno@clisp.org>
32604
32605         * tests/test-lseek.c (main): Disable test of errno for invalid third
32606         argument.
32607         * doc/functions/lseek.texi: Update.
32608         Reported by Gary V. Vaughan <gary@gnu.org>.
32609
32610 2007-05-28  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32613
32614 2007-05-31  Eric Blake  <ebb9@byu.net>
32615
32616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32617         cross compiling.
32618
32619 2007-05-30  Eric Blake  <ebb9@byu.net>
32620         and Bruno Haible  <bruno@clisp.org>
32621
32622         Work around mingw test failures exposed by m4-1.4.9b.
32623         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32624         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32625         moment.
32626
32627 2007-05-30  Bruno Haible  <bruno@clisp.org>
32628
32629         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32630         assuming that they are closed. Needed on HP-UX 11.
32631
32632 2007-05-29  Bruno Haible  <bruno@clisp.org>
32633
32634         Fix a problem with #include_next.
32635         * lib/dirent_.h: Split the double-inclusion guard.
32636         * lib/fcntl_.h: Likewise.
32637         * lib/float_.h: Likewise.
32638         * lib/iconv_.h: Likewise.
32639         * lib/inttypes_.h: Likewise.
32640         * lib/locale_.h: Likewise.
32641         * lib/math_.h: Likewise.
32642         * lib/netinet_in_.h: Likewise.
32643         * lib/search_.h: Likewise.
32644         * lib/signal_.h: Likewise.
32645         * lib/stdint_.h: Likewise.
32646         * lib/stdio_.h: Likewise.
32647         * lib/stdlib_.h: Likewise.
32648         * lib/string_.h: Likewise.
32649         * lib/sys_select_.h: Likewise.
32650         * lib/sys_socket_.h: Likewise.
32651         * lib/sys_stat_.h: Likewise.
32652         * lib/sys_time_.h: Likewise.
32653         * lib/sysexits_.h: Likewise.
32654         * lib/time_.h: Likewise.
32655         * lib/unistd_.h: Likewise.
32656         * lib/wchar_.h: Likewise.
32657         * lib/wctype_.h: Likewise.
32658
32659 2007-05-29  Bruno Haible  <bruno@clisp.org>
32660
32661         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32662         for the moment.
32663
32664 2007-05-29  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32667         invocation.
32668         Reported by Eric Blake.
32669
32670 2007-05-29  Bruno Haible  <bruno@clisp.org>
32671
32672         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32673         compiling case.
32674
32675 2007-05-29  Eric Blake  <ebb9@byu.net>
32676             Bruno Haible  <bruno@clisp.org>
32677
32678         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32679         cross compiles.
32680
32681 2007-05-28  Eric Blake  <ebb9@byu.net>
32682
32683         * modules/closein-tests (test_closein_LDADD): Support test on
32684         cygwin with libtool.
32685
32686 2007-05-28  Bruno Haible  <bruno@clisp.org>
32687
32688         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32689         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32690         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32691         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32692         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32693         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32694         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32695         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32696         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32697
32698 2007-05-28  Eric Blake  <ebb9@byu.net>
32699
32700         Unconditionally include <config.h> in unit tests.
32701         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32702         * tests/test-allocsa.c, tests/test-arcfour.c,
32703         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32704         tests/test-array_list.c, tests/test-array_oset.c,
32705         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32706         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32707         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32708         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32709         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32710         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32711         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32712         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32713         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32714         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32715         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32716         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32717         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32718         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32719         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32720         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32721         test-md5.c, test-memmem.c, test-printf-posix.c,
32722         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32723         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32724         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32725         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32726         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32727         test-vasnprintf-posix2.c, test-vasnprintf.c,
32728         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32729         test-vfprintf-posix.c, test-vprintf-posix.c,
32730         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32731         test-xvasprintf.c: Likewise.
32732
32733 2007-05-28  Bruno Haible  <bruno@clisp.org>
32734
32735         * gnulib-tool (func_import): Remember the --with-tests command-line
32736         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32737         Reported by Eric Blake.
32738
32739 2007-05-28  Bruno Haible  <bruno@clisp.org>
32740
32741         * modules/ftell-tests: New file.
32742         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32743         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32744
32745         * lib/ftell.c: New file.
32746         * modules/ftell: New file.
32747         * m4/ftell.m4: New file.
32748         * doc/functions/ftell.texi: Update.
32749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32750         REPLACE_FTELL.
32751         * lib/stdio_.h (rpl_ftell): New declaration.
32752         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32753         REPLACE_FTELL.
32754
32755 2007-05-28  Eric Blake  <ebb9@byu.net>
32756
32757         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32758
32759 2007-05-28  Bruno Haible  <bruno@clisp.org>
32760
32761         * modules/fseek-tests: New file.
32762         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32763         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32764
32765         * lib/fseek.c: New file.
32766         * modules/fseek: New file.
32767         * m4/fseek.m4: New file.
32768         * doc/functions/fseek.texi: Update.
32769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32770         REPLACE_FSEEK.
32771         * lib/stdio_.h (rpl_fseek): New declaration.
32772         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32773         REPLACE_FSEEK.
32774
32775 2007-05-28  Bruno Haible  <bruno@clisp.org>
32776
32777         * lib/stdio_.h (fflush): More comments.
32778
32779 2007-05-28  Bruno Haible  <bruno@clisp.org>
32780
32781         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32782         runtime test.
32783
32784 2007-05-28  Eric Blake  <ebb9@byu.net>
32785
32786         Improve lseek module.
32787         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32788         * lib/unistd_.h (lseek): Scale back link warning message.
32789         * tests/test-lseek.c: Beef up test.
32790         * tests/test-lseek.sh: Exercise more facets of lseek.
32791         Reported by Bruno Haible.
32792
32793 2007-05-28  Bruno Haible  <bruno@clisp.org>
32794
32795         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32796         to define.
32797
32798 2007-05-27  Bruno Haible  <bruno@clisp.org>
32799
32800         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32801
32802 2007-05-27  Bruno Haible  <bruno@clisp.org>
32803
32804         * modules/openmp: New file.
32805         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32806         Noah Misch.
32807
32808 2007-05-26  Bruno Haible  <bruno@clisp.org>
32809
32810         * modules/chdir-long (Depends-on): Add fchdir.
32811         * modules/chdir-safer (Depends-on): Likewise.
32812         * modules/fts (Depends-on): Likewise.
32813         * modules/fts-lgpl (Depends-on): Likewise.
32814         * modules/openat (Depends-on): Likewise.
32815         * modules/savewd (Depends-on): Likewise.
32816
32817 2007-05-24  Eric Blake  <ebb9@byu.net>
32818
32819         Fix lseek on mingw.
32820         * modules/lseek: New module.
32821         * m4/lseek.m4: New file.
32822         * lib/lseek.c: New file.
32823         * modules/lseek-tests: New file.
32824         * tests/test-lseek.c: New file.
32825         * tests/test-lseek.sh: New file.
32826         * MODULES.html.sh: Document lseek module.
32827         * modules/fflush (Depends-on): Add lseek, fseeko.
32828         * modules/fseeko (Depends-on): Likewise.
32829         * modules/ftello (Depends-on): Likewise.
32830         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32831         broken.
32832         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32833         broken.
32834         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32835         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32836         * lib/ftello.c (rpl_ftello): Likewise.
32837         * tests/test-fseeko.c (main): Test this.
32838         * tests/test-fseeko.sh: Likewise.
32839         * tests/test-ftello.c (main): Likewise.
32840         * tests/test-ftello.sh: Likewise.
32841         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32842         implies replacing fseek.
32843         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32844         HAVE_FTELLO.
32845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32846         * modules/unistd (Makefile.am): Likewise.
32847         * lib/unistd_.h (lseek): Declare a replacement.
32848         * doc/functions/lseek.texi (lseek): Document this fix.
32849         * doc/functions/fseek.texi (fseek): Likewise.
32850         * doc/functions/ftell.texi (ftell): Likewise.
32851
32852 2007-05-24  Bruno Haible  <bruno@clisp.org>
32853
32854         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32855         in the printed representation of a NaN.
32856         * tests/test-vasprintf-posix.c (test_function): Likewise.
32857         * tests/test-snprintf-posix.h (test_function): Likewise.
32858         * tests/test-sprintf-posix.h (test_function): Likewise.
32859         Reported by Eric Blake.
32860
32861 2007-05-23  Eric Blake  <ebb9@byu.net>
32862
32863         Fix fseeko/ftello on cygwin 1.5.24.
32864         * doc/functions/fseeko.texi (fseeko): Document the fix.
32865         * doc/functions/ftello.texi (ftello): Document the fix.
32866         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32867         * doc/functions/stdout.text (stdout): New file.
32868         * doc/functions/stderr.text (stderr): New file.
32869         * doc/gnulib.texi (Function Substitutes): Use new files.
32870         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32871         prior to 1.7.0.
32872         * tests/test-ftello.c (main): Likewise for ftello.
32873         * tests/test-fseeko.sh: New file.
32874         * tests/test-ftello.sh: New file.
32875         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32876         with seekable stdin.
32877         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32878         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32879         (gl_REPLACE_FSEEKO): New macro.
32880         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32881         * modules/fseeko (Files): Distribute fseeko.c.
32882         * modules/ftello (Files): Distribute ftello.c.
32883         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32884         mode.
32885         * lib/ftello.c (rpl_ftello): New file.
32886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32887         fseeko, ftello.
32888         (gl_STDIN_LARGE_OFFSET): New macro.
32889         * modules/stdio (Makefile.am): Perform the replacement.
32890         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32891
32892 2007-05-23  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32895         GNULIB_POSIXCHECK is defined.
32896
32897 2007-05-21  Bruno Haible  <bruno@clisp.org>
32898
32899         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32900         Check also the output for NaN arguments. When cross-compiling, guess
32901         no on IRIX.
32902         * lib/vasnprintf.c: Update comments.
32903         * tests/test-vasnprintf-posix.c (strisnan): New function.
32904         (test_function): Use it.
32905         * tests/test-vasprintf-posix.c (strisnan): New function.
32906         (test_function): Use it.
32907         * tests/test-snprintf-posix.h (strisnan): New function.
32908         (test_function): Use it.
32909         * tests/test-sprintf-posix.h (strisnan): New function.
32910         (test_function): Use it.
32911         Reported by Eric Blake.
32912
32913 2007-05-20  Bruno Haible  <bruno@clisp.org>
32914
32915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32916         numbers that fails on BeOS.
32917         * doc/functions/frexpl.texi: Update.
32918
32919 2007-05-20  Jim Meyering  <jim@meyering.net>
32920
32921         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32922         forced upon us by glibc-2.6.
32923
32924 2007-05-20  Bruno Haible  <bruno@clisp.org>
32925
32926         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32927         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32928         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32929         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32930         NEED_PRINTF_INFINITE.
32931         (is_infinitel): New function.
32932         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32934         gl_PREREQ_VASNPRINTF_INFINITE.
32935         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32936         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32937         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32938         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32939         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32940         gl_PREREQ_VASNPRINTF_INFINITE.
32941         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32942         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32945         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32946         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32948         * doc/functions/fprintf.texi: Update.
32949         * doc/functions/printf.texi: Update.
32950         * doc/functions/snprintf.texi: Update.
32951         * doc/functions/sprintf.texi: Update.
32952         * doc/functions/vfprintf.texi: Update.
32953         * doc/functions/vprintf.texi: Update.
32954         * doc/functions/vsnprintf.texi: Update.
32955         * doc/functions/vsprintf.texi: Update.
32956
32957 2007-05-20  Bruno Haible  <bruno@clisp.org>
32958
32959         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32960         was not found in libc.
32961         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32962
32963 2007-05-20  Bruno Haible  <bruno@clisp.org>
32964
32965         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32966         printed as "-nan" instead of "nan".
32967         * tests/test-vasprintf-posix.c (test_function): Likewise.
32968         * tests/test-snprintf-posix.h (test_function): Likewise.
32969         * tests/test-sprintf-posix.h (test_function): Likewise.
32970         Needed for HP-UX 11.
32971
32972 2007-05-20  Jim Meyering  <jim@meyering.net>
32973
32974         Fix buggy test for the fchownat-deref bug.
32975         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32976         symlink required for the run-test.  Without it, this test would
32977         always declare that fchownat doesn't work, and client code would
32978         unnecessarily use the replacement function with fixed libc.
32979         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32980         Reported by Greg Schafer.
32981
32982 2007-05-19  Bruno Haible  <bruno@clisp.org>
32983
32984         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32985         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32986         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32987         Needed for IRIX 6.5 and Solaris 2.5.1.
32988
32989 2007-05-19  Bruno Haible  <bruno@clisp.org>
32990
32991         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32992         (test_function): Skip tests involving -0.0 on platforms where
32993         -0.0 = 0.0.
32994         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32995         (test_function): Skip tests involving -0.0 on platforms where
32996         -0.0 = 0.0.
32997         * tests/test-snprintf-posix.h (have_minus_zero): New function.
32998         (test_function): Skip tests involving -0.0 on platforms where
32999         -0.0 = 0.0.
33000         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33001         (test_function): Skip tests involving -0.0 on platforms where
33002         -0.0 = 0.0.
33003         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33004         tests.
33005         * tests/test-printf-posix.h (test_function): Likewise.
33006         * tests/test-printf-posix.output: Remove all -0.0 related results.
33007         Needed for IRIX 6.5.
33008
33009 2007-05-19  Bruno Haible  <bruno@clisp.org>
33010
33011         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33012         printed as "nan0x7fffffff" instead of "nan".
33013         * tests/test-vasprintf-posix.c (test_function): Likewise.
33014         * tests/test-snprintf-posix.h (test_function): Likewise.
33015         * tests/test-sprintf-posix.h (test_function): Likewise.
33016         * tests/test-fprintf-posix.h (NaN): Remove macro.
33017         (test_function): Remove all NaN related tests.
33018         * tests/test-printf-posix.h (NaN): Remove macro.
33019         (test_function): Remove all NaN related tests.
33020         * tests/test-printf-posix.output: Remove all NaN related results.
33021         Needed for IRIX 6.5.
33022
33023 2007-05-19  Bruno Haible  <bruno@clisp.org>
33024
33025         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33026         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33027
33028 2007-05-19  Bruno Haible  <bruno@clisp.org>
33029
33030         * lib/float_.h: New file.
33031         * m4/float_h.m4: New file.
33032         * modules/float: New file.
33033         * modules/isnanl (Dependencies): Add float.
33034         * modules/isnanl-nolibm (Dependencies): Likewise.
33035         * modules/mathl (Dependencies): Likewise.
33036         * modules/printf-frexpl (Dependencies): Likewise.
33037         * modules/signbit (Dependencies): Likewise.
33038         * modules/vasnprintf (Dependencies): Likewise.
33039         * doc/headers/float.texi: Update.
33040
33041 2007-05-19  Jim Meyering  <jim@meyering.net>
33042
33043         * lib/utimens.c (gl_futimens): Rename from futimens,
33044         now that glibc-2.6 declares futimens.
33045         * lib/utimens.h: Likewise.
33046
33047 2007-05-19  Bruno Haible  <bruno@clisp.org>
33048
33049         Avoid test failures on mingw.
33050         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33051         * tests/test-printf-posix.sh: Likewise.
33052         * tests/test-vfprintf-posix.sh: Likewise.
33053         * tests/test-vprintf-posix.sh: Likewise.
33054
33055 2007-05-19  Bruno Haible  <bruno@clisp.org>
33056
33057         Fix *printf result for NaN, Inf, -0.0 on mingw.
33058         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33059         * lib/vasnprintf.c: Include math.h and isnan.h.
33060         (is_infinite_or_zero): New function.
33061         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33062         values in the %f, %F, %e, %E, %g, %G directives.
33063         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33064         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33065         gl_PRINTF_INFINITE and test its result. Invoke
33066         gl_PREREQ_VASNPRINTF_INFINITE.
33067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33071         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33072         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33073         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33074         * doc/functions/fprintf.texi: Update.
33075         * doc/functions/printf.texi: Update.
33076         * doc/functions/snprintf.texi: Update.
33077         * doc/functions/sprintf.texi: Update.
33078         * doc/functions/vfprintf.texi: Update.
33079         * doc/functions/vprintf.texi: Update.
33080         * doc/functions/vsnprintf.texi: Update.
33081         * doc/functions/vsprintf.texi: Update.
33082
33083 2007-05-19  Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33086         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33087         Instead of multiplying with 10^k, set extra_zeroes to k.
33088         (scale10_round_long_double): Remove function.
33089
33090 2007-05-18  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33093         introduced on 2007-05-06.
33094
33095 2007-05-18  Bruno Haible  <bruno@clisp.org>
33096
33097         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33098         %g directives.
33099         * tests/test-vasprintf-posix.c (test_function): Likewise.
33100         * tests/test-snprintf-posix.h (test_function): Likewise.
33101         * tests/test-sprintf-posix.h (test_function): Likewise.
33102
33103 2007-05-18  Bruno Haible  <bruno@clisp.org>
33104
33105         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33106         (strmatch): New function.
33107         (test_function): Test the %f directive on numbers of various exponents.
33108         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33109         (strmatch): New function.
33110         (test_function): Test the %f directive on numbers of various exponents.
33111         * tests/test-snprintf-posix.h (strmatch): New function.
33112         (test_function): Test the %f directive on numbers of various exponents.
33113         * tests/test-sprintf-posix.h (strmatch): New function.
33114         (test_function): Test the %f directive on numbers of various exponents.
33115         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33116         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33117         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33118         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33119
33120 2007-05-18  Bruno Haible  <bruno@clisp.org>
33121
33122         Add support for 'long double' number output.
33123         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33124         * lib/vasnprintf.c: Include math.h and float+.h.
33125         (mp_limb_t): New type.
33126         (GMP_LIMB_BITS): New macro.
33127         (mp_twolimb_t): New type.
33128         (GMP_TWOLIMB_BITS): New macro.
33129         (mpn_t): New type.
33130         (multiply, divide, convert_to_decimal, decode_long_double,
33131         scale10_round_long_double, scale10_round_decimal_long_double,
33132         floorlog10l): New functions.
33133         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33134         for the %f, %F, %e, %E, %g, %G directives.
33135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33137         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33138         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33146         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33147         * modules/snprintf-posix (Depends-on): Likewise.
33148         * modules/sprintf-posix (Depends-on): Likewise.
33149         * modules/vasnprintf-posix (Depends-on): Likewise.
33150         * modules/vasprintf-posix (Depends-on): Likewise.
33151         * modules/vfprintf-posix (Depends-on): Likewise.
33152         * modules/vsnprintf-posix (Depends-on): Likewise.
33153         * modules/vsprintf-posix (Depends-on): Likewise.
33154         * modules/vasnprintf (Files): Add lib/float+.h.
33155         * doc/functions/fprintf.texi: Update.
33156         * doc/functions/printf.texi: Update.
33157         * doc/functions/snprintf.texi: Update.
33158         * doc/functions/sprintf.texi: Update.
33159         * doc/functions/vfprintf.texi: Update.
33160         * doc/functions/vprintf.texi: Update.
33161         * doc/functions/vsnprintf.texi: Update.
33162         * doc/functions/vsprintf.texi: Update.
33163
33164 2007-05-18  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33167
33168 2007-05-18  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33171         for printing 64-bit integers. Needed for mingw.
33172
33173 2007-05-18  Bruno Haible  <bruno@clisp.org>
33174
33175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33176         gl_FUNC_FREXPL_WORKS.
33177         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33178
33179 2007-05-18  Bruno Haible  <bruno@clisp.org>
33180
33181         * modules/frexpl-nolibm-tests: New file.
33182
33183         * modules/frexpl-nolibm: New file.
33184         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33185
33186 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33187
33188         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33189         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33190         GCC 4.2, which otherwise issues a lot of warnings.
33191         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33192         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33193         Likewise.
33194         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33195         * modules/iconv_open (iconv.h): Likewise.
33196         * modules/locale (locale.h): Likewise.
33197         * modules/netinet_in (netinet/in.h): Likewise.
33198         * modules/sys_select (sys_select.h): Likewise.
33199         * modules/sys_socket (sys/socket.h): Likewise.
33200         * modules/sys_stat (sys/stat.h): Likewise.
33201         * modules/sysexits (sysexits.h): Likewise.
33202         * modules/unistd (unistd.h): Likewise.
33203
33204 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33205
33206         * modules/closein-tests (Makefile.am): Distribute
33207         `test-closein.sh'.
33208
33209 2007-05-17  Bruno Haible  <bruno@clisp.org>
33210
33211         * tests/test-printf-posix.output: Renamed from
33212         tests/test-fprintf-posix.out.
33213         * modules/fprintf-posix-tests: Update.
33214         * modules/printf-posix-tests: Update.
33215         * modules/vfprintf-posix-tests: Update.
33216         * modules/vprintf-posix-tests: Update.
33217         * tests/test-fprintf-posix.sh: Update.
33218         * tests/test-printf-posix.sh: Update.
33219         * tests/test-vfprintf-posix.sh: Update.
33220         * tests/test-vprintf-posix.sh: Update.
33221         Reported by Ralf Wildenhues.
33222
33223 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33224
33225         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33226         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33227         GCC 4.2, which otherwise issues a lot of warnings.
33228         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33229         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33230         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33231         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33232         it should no longer be needed.
33233         * lib/string_.h: Likewise.
33234         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33235         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33236         * modules/inttypes (inttypes.h): Likewise.
33237         * modules/math (math.h): Likewise.
33238         * modules/search (search.h): Likewise.
33239         * modules/signal (signal.h): Likewise.
33240         * modules/stdint (stdint.h): Likewise.
33241         * modules/stdio (stdio.h): Likewise.
33242         * modules/stdlib (stdlib.h): Likewise.
33243         * modules/string (string.h): Likewise.
33244         * modules/sys_time (sys/time.h): Likewise.
33245         * modules/time (time.h): Likewise.
33246         * modules/wchar (wchar.h): Likewise.
33247         * modules/wctype (wtype.h): Likewise.
33248
33249 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33250
33251         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33252
33253 2007-05-13  Bruno Haible  <bruno@clisp.org>
33254
33255         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33256         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33257         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33258         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33259         (gl_PREREQ_STRTOK_R): Don't require it here.
33260
33261 2007-05-13  Bruno Haible  <bruno@clisp.org>
33262
33263         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33264         when used in C++ mode.
33265
33266 2007-05-12  Bruno Haible  <bruno@clisp.org>
33267
33268         * lib/linebuffer.h: Tweak doc.
33269         * lib/linebuffer.c: Likewise.
33270
33271 2007-05-12  James Youngman  <jay@gnu.org>
33272
33273         * lib/linebuffer.c (readlinebuffer_delim): New function,
33274         like readlinebuffer, but use a caller-specified delimiter.
33275         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33276         as the delimiter.
33277         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33278
33279 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33280
33281         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33282         * modules/openat (Files): Remove openat-die.c.
33283         (Depends-on): Add openat-die.
33284         * modules/openat-die: New module.
33285
33286 2007-05-06  Bruno Haible  <bruno@clisp.org>
33287
33288         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33289         Update with info about Cygwin.
33290         * doc/functions/fprintf.texi: Update.
33291         * doc/functions/printf.texi: Update.
33292         * doc/functions/snprintf.texi: Update.
33293         * doc/functions/sprintf.texi: Update.
33294         * doc/functions/vfprintf.texi: Update.
33295         * doc/functions/vprintf.texi: Update.
33296         * doc/functions/vsnprintf.texi: Update.
33297         * doc/functions/vsprintf.texi: Update.
33298         Reported by Eric Blake.
33299
33300 2007-05-06  Bruno Haible  <bruno@clisp.org>
33301
33302         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33303         padding ourselves for the floating-point directives.
33304         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33307         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33308         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33316         * tests/test-snprintf-posix.h (test_function): Also check the width
33317         and some flags in the %f directive.
33318         * tests/test-sprintf-posix.h (test_function): Likewise.
33319         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33320         * tests/test-vasprintf-posix.c (test_function): Likewise.
33321         * doc/functions/fprintf.texi: Update.
33322         * doc/functions/printf.texi: Update.
33323         * doc/functions/snprintf.texi: Update.
33324         * doc/functions/sprintf.texi: Update.
33325         * doc/functions/vfprintf.texi: Update.
33326         * doc/functions/vprintf.texi: Update.
33327         * doc/functions/vsnprintf.texi: Update.
33328         * doc/functions/vsprintf.texi: Update.
33329
33330 2007-05-06  Bruno Haible  <bruno@clisp.org>
33331
33332         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33333         pass the ' flag character to sprintf or snprintf.
33334         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33337         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33338         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33339         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33346         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33347         flag.
33348         * tests/test-sprintf-posix.h (test_function): Likewise.
33349         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33350         * tests/test-vasprintf-posix.c (test_function): Likewise.
33351         * doc/functions/fprintf.texi: Update.
33352         * doc/functions/printf.texi: Update.
33353         * doc/functions/snprintf.texi: Update.
33354         * doc/functions/sprintf.texi: Update.
33355         * doc/functions/vfprintf.texi: Update.
33356         * doc/functions/vprintf.texi: Update.
33357         * doc/functions/vsnprintf.texi: Update.
33358         * doc/functions/vsprintf.texi: Update.
33359
33360 2007-05-01  Bruno Haible  <bruno@clisp.org>
33361
33362         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33363
33364 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33365
33366         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33367         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33368
33369 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33370
33371         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33372         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33374
33375 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33376
33377         * lib/argp-help.c (struct hol_entry): New member `ord'.
33378         (HOL_ENTRY_PTRCMP): Use ord for comparison
33379         (hol_sort): Initialize ord.
33380
33381 2007-05-01  Bruno Haible  <bruno@clisp.org>
33382
33383         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33384         Reported by Eric Blake.
33385         * doc/gnulib.texi (Function Substitutes): Update.
33386
33387 2007-05-01  Bruno Haible  <bruno@clisp.org>
33388
33389         * doc/functions.texi: Remove file, now redundant through
33390         doc/functions/*.texi.
33391
33392 2007-05-01  Bruno Haible  <bruno@clisp.org>
33393
33394         * modules/argp (Depends-on): Add sleep.
33395
33396 2007-05-01  Bruno Haible  <bruno@clisp.org>
33397
33398         * modules/sleep-tests: New file.
33399         * tests/test-sleep.c: New file.
33400
33401         * modules/sleep: New file.
33402         * lib/sleep.c: New file.
33403         * m4/sleep.m4: New file.
33404         * lib/unistd_.h (sleep): New declaration.
33405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33406         HAVE_SLEEP.
33407         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33408         * doc/functions/sleep.texi: Document the sleep module.
33409
33410 2007-05-01  Bruno Haible  <bruno@clisp.org>
33411
33412         * lib/sigprocmask.h: Remove file.
33413         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33414         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33415         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33416         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33417         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33418         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33419         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33420         HAVE_SIGSET_T as a shell variable.
33421         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33422         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33423         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33424         (Depends-on): Add signal. Remove verify.
33425         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33426         (Include): Mention <signal.h> instead of sigprocmask.h.
33427         * NEWS: Mention the change.
33428         * lib/fatal-signal.c: Don't include sigprocmask.h.
33429
33430 2007-05-01  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/signal: New file.
33433         * lib/signal_.h: New file.
33434         * m4/signal_h.m4: New file.
33435
33436 2007-05-01  Bruno Haible  <bruno@clisp.org>
33437
33438         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33439         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33440         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33441         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33442
33443 2007-05-01  Bruno Haible  <bruno@clisp.org>
33444
33445         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33446         configure time.
33447         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33448         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33449         * modules/sys_stat (Makefile.am): Substitute their values into
33450         sys/stat.h.
33451
33452 2007-05-01  Bruno Haible  <bruno@clisp.org>
33453
33454         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33455         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33456         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33457
33458 2007-05-01  Bruno Haible  <bruno@clisp.org>
33459
33460         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33461         'assert' module here.
33462
33463 2007-05-01  Bruno Haible  <bruno@clisp.org>
33464
33465         * doc/functions/*.texi: New files.
33466         * doc/functions/google-ranking.txt: New file.
33467         * doc/gnulib.texi (Function Substitutes): New chapter.
33468         (ctime, inet_ntoa): Remove sections.
33469         * doc/ctime.texi: Remove file.
33470         * doc/inet_ntoa.texi: Remove file.
33471         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33472         dependencies.
33473         (%.info): New rule, specifying a --reference-limit.
33474
33475 2007-05-01  Bruno Haible  <bruno@clisp.org>
33476
33477         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33478
33479 2007-05-01  Bruno Haible  <bruno@clisp.org>
33480
33481         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33482         the portability of 'mkdir' to mingw systems.
33483
33484 2007-05-01  Bruno Haible  <bruno@clisp.org>
33485
33486         * doc/headers/google-ranking.txt: New file.
33487
33488 2007-04-30  Eric Blake  <ebb9@byu.net>
33489
33490         Prefer fseeko to fseek.
33491         * modules/getpass (Depends-on): Add fseeko.
33492         * lib/getpass.c (getpass): Use fseeko, not fseek.
33493
33494 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33495
33496         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33497         assumes the sorting is stable, while most qsort implementations
33498         are not.  Use argument addresses to ensure they never compare as
33499         equal.
33500
33501         * tests/test-argp-2.sh (usage-indent test): Fix output
33502         (func_compare): Restore diff options
33503         * tests/test-argp.c: Restore #include "progname.h"
33504
33505 2007-04-29  Bruno Haible  <bruno@clisp.org>
33506
33507         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33509         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33511         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33512         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33513         (TESTS, check_PROGRAMS): Add test-snprintf.
33514         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33515         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33516         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33517         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33518         assertions that fail on HP-UX, OSF/1, or IRIX.
33519         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33520
33521 2007-04-29  Bruno Haible  <bruno@clisp.org>
33522
33523         * MODULES.html.sh (posix_functions): Remove 'contents'.
33524
33525 2007-04-29  Karl Berry  <karl@gnu.org>
33526
33527         * config/srclist.txt (gendocs_template_min): new entry.
33528
33529 2007-04-29  Bruno Haible  <bruno@clisp.org>
33530
33531         Work around fpurge bug on BSD systems.
33532         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33533         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33534         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33535         fpurge to rpl_fpurge if the system already has this function.
33536         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33537         the case where the system already has this function. Correct invariants
33538         on BSD systems.
33539         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33540         BSD systems.
33541
33542 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33543
33544         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33545         proposed by Sven Verdoolaege.
33546
33547         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33548         options.
33549         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33550         (usage and help tests): Update
33551
33552 2007-04-29  Bruno Haible  <bruno@clisp.org>
33553
33554         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33555         Print more information in case of failure. Disable a test on BeOS.
33556
33557 2007-04-29  Bruno Haible  <bruno@clisp.org>
33558
33559         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33560         This helps debugging on systems on which no gdb is available.
33561
33562 2007-04-29  Bruno Haible  <bruno@clisp.org>
33563
33564         * lib/freading.h: Improve comments.
33565         * lib/fwriting.h: Likewise.
33566         * tests/test-freading.c (main): Don't check freading immediately after
33567         repositioning. Needed for glibc.
33568
33569 2007-04-29  Bruno Haible  <bruno@clisp.org>
33570
33571         * lib/freading.c (freading): Trivial simplification.
33572
33573 2007-04-28  Bruno Haible  <bruno@clisp.org>
33574
33575         * tests/test-fwriting.c (main): Also test the interaction between
33576         fflush and fwriting.
33577         * modules/fwriting-tests (Depends-on): Add fflush.
33578
33579         * tests/test-freading.c (main): Also test the interaction between
33580         fflush and freading.
33581         * modules/freading-tests (Depends-on): Add fflush.
33582
33583 2007-04-28  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33586         fseeko and ftello.
33587         Suggested by Eric Blake.
33588
33589 2007-04-28  Jim Meyering  <jim@meyering.net>
33590
33591         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33592         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33593         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33594
33595 2007-04-27  Eric Blake  <ebb9@byu.net>
33596
33597         * doc/headers/assert.texi (assert.h): Document assert module use.
33598
33599 2007-04-27  Bruno Haible  <bruno@clisp.org>
33600
33601         * doc/headers/*.texi: New files.
33602         * doc/gnulib.texi (Header File Substitutes): New chapter.
33603         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33604         dependencies.
33605         (standards.info ,standards.html, standards.dvi): Update dependencies.
33606         (mostlyclean, clean): New targets.
33607
33608 2007-04-27  Bruno Haible  <bruno@clisp.org>
33609
33610         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33611         * modules/sysexits (Files, Makefile.am): Update.
33612
33613         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33614         * modules/sys_socket (Files, Makefile.am): Update.
33615
33616         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33617         * modules/sys_stat (Files, Makefile.am): Update.
33618
33619 2007-04-27  Eric Blake  <ebb9@byu.net>
33620
33621         * lib/freading.h: Improve comments.
33622         * lib/fwriting.h: Likewise.
33623         * lib/fflush.c: Likewise.
33624
33625         Fix closein for mingw.
33626         * modules/closein-tests: Add tests for closein.
33627         * tests/test-closein.c: New file.
33628         * tests/test-closein.sh: Likewise.
33629         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33630         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33631
33632 2007-04-27  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33635         version is < 6.
33636         * lib/math_.h [__DECC]: Likewise.
33637         * lib/stdio_.h [__DECC]: Likewise.
33638         * lib/stdlib_.h [__DECC]: Likewise.
33639         * lib/string_.h [__DECC]: Likewise.
33640         * lib/time_.h [__DECC]: Likewise.
33641         * lib/wchar_.h [__DECC]: Likewise.
33642         * lib/wctype_.h [__DECC]: Likewise.
33643
33644 2007-04-27  Bruno Haible  <bruno@clisp.org>
33645
33646         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33647
33648 2007-04-27  Bruno Haible  <bruno@clisp.org>
33649
33650         * lib/fflush.c: Add comments.
33651         * modules/fpurge-tests (Depends-on): Add fflush.
33652         * modules/freadable-tests (Depends-on): Likewise.
33653         * modules/fwritable-tests (Depends-on): Likewise.
33654
33655 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33656
33657         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33658         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33659         Report by Bruno Haible <bruno@clisp.org>.
33660
33661 2007-04-26  Eric Blake  <ebb9@byu.net>
33662
33663         Fix fflush on mingw.
33664         * modules/fflush (Depends-on): Add freading.
33665         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33666         but unread data.
33667
33668 2007-04-26  Eric Blake  <ebb9@byu.net>
33669         and Bruno Haible  <bruno@clisp.org>
33670
33671         Implement freading and fwriting.
33672         * lib/freading.c: New file.
33673         * lib/freading.h: Likewise.
33674         * m4/freading.m4: Likewise.
33675         * modules/freading: Likewise.
33676         * modules/freading-tests: Likewise.
33677         * tests/test-freading.c: Likewise.
33678         * lib/fwriting.c: New file.
33679         * lib/fwriting.h: Likewise.
33680         * m4/fwriting.m4: Likewise.
33681         * modules/fwriting: Likewise.
33682         * modules/fwriting-tests: Likewise.
33683         * tests/test-fwriting.c: Likewise.
33684         * MODULES.html.sh (File stream based Input/Output): Mention them.
33685
33686 2007-04-26  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33689         'long' when we assume it.
33690         Suggested by Eric Blake.
33691
33692 2007-04-26  Bruno Haible  <bruno@clisp.org>
33693
33694         Ensure fseeko, ftello are declared on glibc systems.
33695         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33696         * modules/fseeko (configure.ac-early): Likewise.
33697         * modules/ftello (configure.ac-early): Likewise.
33698         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33699         AC_FUNC_FSEEKO for this.
33700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33701         (gl_CHECK_FSEEKO): Remove macro.
33702
33703 2007-04-26  Bruno Haible  <bruno@clisp.org>
33704
33705         * tests/test-fflush.c (main): Also check the ftell result after
33706         fflush and fseek/fseeko.
33707         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33708         file descriptor position cache in the stream.
33709         * lib/fseeko.c (rpl_fseeko): Likewise.
33710
33711 2007-04-26  Bruno Haible  <bruno@clisp.org>
33712
33713         * modules/fflush-tests (Depends-on): Add fseeko.
33714
33715 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33716             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33717
33718         * lib/argz_.h: ensure error_t definition is obtained in same
33719         mechanism system argz.h would have.
33720         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33721         argz facilities are known bad.  Err on the side of caution if
33722         cross-compiling.
33723
33724 2007-04-25  Eric Blake  <ebb9@byu.net>
33725
33726         * lib/fpurge.c (includes): Use stdlib.h for free.
33727         * tests/test-fflush.c (main): Also test fflush-fseeko.
33728
33729 2007-04-25  Bruno Haible  <bruno@clisp.org>
33730
33731         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33732         * lib/fseeko.c: New file.
33733         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33734         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33735         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33736         gl_FUNC_FSEEKO.
33737         (gl_FUNC_FSEEKO): Invoke it.
33738         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33739         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33740         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33741
33742 2007-04-25  Bruno Haible  <bruno@clisp.org>
33743
33744         * modules/fflush (Depends-on): Add ftello.
33745
33746 2007-04-25  Bruno Haible  <bruno@clisp.org>
33747
33748         * modules/ftello-tests: New file.
33749         * tests/test-ftello.c: New file.
33750
33751         * modules/ftello: New file.
33752         * m4/ftello.m4: New file.
33753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33754         HAVE_FTELLO.
33755         * lib/stdio_.h (ftello): New declaration.
33756         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33757         HAVE_FTELLO.
33758
33759 2007-04-25  Bruno Haible  <bruno@clisp.org>
33760
33761         * modules/fseeko-tests: New file.
33762         * tests/test-fseeko.c: New file.
33763
33764         * modules/fseeko: New file.
33765         * m4/fseeko.m4: New file.
33766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33767         HAVE_FSEEKO.
33768         * lib/stdio_.h (fseeko): New declaration.
33769         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33770         HAVE_FSEEKO.
33771
33772 2007-04-25  Bruno Haible  <bruno@clisp.org>
33773
33774         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33775
33776 2007-04-25  Bruno Haible  <bruno@clisp.org>
33777
33778         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33779         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33780         * tests/test-unistd.c: Likewise.
33781         * tests/test-fcntl.c: Likewise.
33782
33783 2007-04-23  Eric Blake  <ebb9@byu.net>
33784
33785         * lib/fflush.c: Fix missing include.
33786         Reported by Bruno Haible.
33787
33788 2007-04-23  Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33791         Reported by Eric Blake.
33792
33793 2007-04-23  Bruno Haible  <bruno@clisp.org>
33794
33795         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33796
33797 2007-04-23  Bruno Haible  <bruno@clisp.org>
33798
33799         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33800
33801 2007-04-23  Bruno Haible  <bruno@clisp.org>
33802
33803         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33804         Needed on HP-UX 11.
33805
33806 2007-04-16  Eric Blake  <ebb9@byu.net>
33807
33808         Make fflush rely on fpurge.
33809         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33810         open coding all variants.
33811         * modules/fflush (Depends-on): Add fpurge and unistd.
33812         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33813         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33814
33815         Fix --with-tests compilation on cygwin.
33816         * modules/argmatch-tests (Makefile.am): List gnulib library first
33817         in LDADD.
33818         * modules/argp-tests (Makefile.am): Likewise.
33819         * modules/array-list-tests (Makefile.am): Likewise.
33820         * modules/array-oset-tests (Makefile.am): Likewise.
33821         * modules/avltree-list-tests (Makefile.am): Likewise.
33822         * modules/avltree-oset-tests (Makefile.am): Likewise.
33823         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33824         * modules/carray-list-tests (Makefile.am): Likewise.
33825         * modules/dirname-tests (Makefile.am): Likewise.
33826         * modules/frexp-tests (Makefile.am): Likewise.
33827         * modules/isnanl-tests (Makefile.am): Likewise.
33828         * modules/linked-list-tests (Makefile.am): Likewise.
33829         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33830         * modules/lock-tests (Makefile.am): Likewise.
33831         * modules/rbtree-list-tests (Makefile.am): Likewise.
33832         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33833         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33834         * modules/tls-tests (Makefile.am): Likewise.
33835         * modules/tsearch-tests (Makefile.am): Likewise.
33836         * modules/xvasprintf-tests (Makefile.am): Likewise.
33837
33838         Fix fpurge for cygwin.
33839         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33840         value.
33841         * modules/fpurge-tests (Depends-on): Clean up trash.
33842
33843 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33844
33845         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33846
33847         * m4/autobuild.m4: Re-indent.
33848
33849 2007-04-13  Bruno Haible  <bruno@clisp.org>
33850
33851         * modules/fpurge-tests: New file.
33852         * tests/test-fpurge.c: New file.
33853
33854         * modules/fpurge: New file.
33855         * lib/fpurge.h: New file.
33856         * lib/fpurge.c: New file.
33857         * m4/fpurge.m4: New file.
33858
33859 2007-04-13  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/fbufmode-tests: New file.
33862         * tests/test-fbufmode.c: New file.
33863
33864         * modules/fbufmode: New file.
33865         * lib/fbufmode.h: New file.
33866         * lib/fbufmode.c: New file.
33867         * m4/fbufmode.m4: New file.
33868
33869 2007-04-13  Bruno Haible  <bruno@clisp.org>
33870
33871         * modules/fwritable-tests: New file.
33872         * tests/test-fwritable.c: New file.
33873
33874         * modules/fwritable: New file.
33875         * lib/fwritable.h: New file.
33876         * lib/fwritable.c: New file.
33877         * m4/fwritable.m4: New file.
33878
33879 2007-04-13  Bruno Haible  <bruno@clisp.org>
33880
33881         * modules/freadable-tests: New file.
33882         * tests/test-freadable.c: New file.
33883
33884         * modules/freadable: New file.
33885         * lib/freadable.h: New file.
33886         * lib/freadable.c: New file.
33887         * m4/freadable.m4: New file.
33888
33889 2007-04-13  Bruno Haible  <bruno@clisp.org>
33890
33891         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33892         MOSTLYCLEANFILES.
33893
33894 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33895
33896         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33897         gzip bootstrap.conf to avoid dragging in i18n machinery.
33898         (gnulib_tool_option): Use it.
33899
33900 2007-04-13  Bruno Haible  <bruno@clisp.org>
33901
33902         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33903         %F directives.
33904         * tests/test-vasprintf-posix.c (test_function): Likewise.
33905         * tests/test-snprintf-posix.h (test_function): Likewise.
33906         * tests/test-sprintf-posix.h (test_function): Likewise.
33907         * tests/test-fprintf-posix.h (test_function): Likewise.
33908         * tests/test-printf-posix.h (test_function): Likewise.
33909         * tests/test-fprintf-posix.out: Likewise.
33910
33911 2007-04-13  Bruno Haible  <bruno@clisp.org>
33912
33913         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33914         * modules/tls-tests (configure.ac): Likewise.
33915         Reported by Arto C. Nirkko <anirkko@insel.ch>.
33916
33917 2007-04-13  Bruno Haible  <bruno@clisp.org>
33918
33919         * lib/tls.c (glthread_tls_get): Fix return type.
33920         Patch by Arto C. Nirkko <anirkko@insel.ch>.
33921
33922 2007-04-12  Eric Blake  <ebb9@byu.net>
33923
33924         * modules/gettime (Depends-on): Remove gettime.
33925         Reported by Dmitry V. Levin.
33926
33927 2007-04-12  Bruno Haible  <bruno@clisp.org>
33928
33929         * modules/fflush (Include): Mention <stdio.h>.
33930         * modules/strtoimax (Include): Mention <inttypes.h>.
33931         * modules/strtoumax (Include): Likewise.
33932
33933 2007-04-12  Eric Blake  <ebb9@byu.net>
33934
33935         * .cvsignore: New file.
33936         * .gitignore: Likewise.
33937
33938 2007-04-12  Bruno Haible  <bruno@clisp.org>
33939
33940         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33941         not before, since $(LDADD) often contains libgnu.a.
33942         * modules/striconv-tests (test_striconv_LDADD): Likewise.
33943         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33944         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33945         Needed on Cygwin.
33946
33947 2007-04-12  Eric Blake  <ebb9@byu.net>
33948
33949         Work around glibc's failure to flush stdin on fclose.
33950         * lib/closein.c (close_stdin): Flush stdin before closing.
33951
33952         Work around glibc's failure to reset seekable stdin on exit.
33953         * modules/closein: New module.
33954         * lib/closein.c: New file.
33955         * lib/closein.h: Likewise.
33956         * m4/closein.m4: Likewise.
33957         * MODULES.html.sh (File stream based Input/Output): Document it.
33958
33959 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33960
33961         * gnulib-tool: Rename generated 'autobuild' script to
33962         'do-autobuild' in --create-megatestdir output.
33963
33964         * doc/gnulib.texi (Build robot for gnulib): Fix.
33965
33966 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33967
33968         * modules/sysexits (Depends-on): Add absolute-header.
33969
33970 2007-04-12  Eric Blake  <ebb9@byu.net>
33971
33972         No need to preserve errno on success.
33973         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33974         Reported by Bruno Haible.
33975
33976 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33977
33978         * MODULES.html.sh (Support for maintaining and releasing
33979         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
33980
33981 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33982
33983         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33984
33985 2007-04-12  Simon Josefsson  <simon@josefsson.org>
33986
33987         * modules/autobuild: New module.
33988
33989         * m4/autobuild.m4: New file.
33990
33991 2007-04-11  Bruno Haible  <bruno@clisp.org>
33992
33993         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33994         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33998         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33999         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34001         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34002         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
34004         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34005         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
34007         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34008         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34009         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
34010         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34011         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34012         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
34013         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34014         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
34016         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34017         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
34019         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34020         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34021         Reported by Eric Blake.
34022
34023 2007-04-11  Bruno Haible  <bruno@clisp.org>
34024
34025         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34026
34027 2007-04-10  Bruno Haible  <bruno@clisp.org>
34028
34029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34030         for NaN and Infinity. Needed on FreeBSD 6.1.
34031         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34032         regarding results for "%010a" of Infinity and NaN.
34033         * tests/test-vasprintf-posix.c (test_function): Likewise.
34034         * tests/test-snprintf-posix.h (test_function): Likewise.
34035         * tests/test-sprintf-posix.h (test_function): Likewise.
34036         * tests/test-fprintf-posix.h (test_function): Likewise.
34037         * tests/test-printf-posix.h (test_function): Likewise.
34038         * tests/test-fprintf-posix.out: Likewise.
34039
34040 2007-04-10  Bruno Haible  <bruno@clisp.org>
34041
34042         * modules/locale-tests: New file.
34043         * tests/test-locale.c: New file.
34044
34045         * modules/locale: New file.
34046         * lib/locale_.h: New file.
34047         * m4/locale_h.m4: New file.
34048
34049 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34050             Bruno Haible  <bruno@clisp.org>
34051
34052         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34053         be determined, test for availability of the copysignf, copysign,
34054         copysignl functions.
34055         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34056         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34057         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34058
34059 2007-04-09  Eric Blake  <ebb9@byu.net>
34060
34061         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34062         * modules/stdio (Makefile.am): Support fflush.
34063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34064         * modules/fflush: New file.
34065         * lib/fflush.c: Likewise.
34066         * m4/fflush.m4: Likewise.
34067         * modules/fflush-tests: New test.
34068         * tests/test-fflush.c: Likewise.
34069         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34070
34071 2007-04-06  Bruno Haible  <bruno@clisp.org>
34072
34073         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34074         (VASNPRINTF): Use signbit for faster determination whether to print a
34075         minus sign.
34076         * modules/vasnprintf (Files): Remove lib/float+.h.
34077         * modules/fprintf-posix (Depends-on): Add signbit.
34078         * modules/snprintf-posix (Depends-on): Likewise.
34079         * modules/sprintf-posix (Depends-on): Likewise.
34080         * modules/vasnprintf-posix (Depends-on): Likewise.
34081         * modules/vasprintf-posix (Depends-on): Likewise.
34082         * modules/vfprintf-posix (Depends-on): Likewise.
34083         * modules/vsnprintf-posix (Depends-on): Likewise.
34084         * modules/vsprintf-posix (Depends-on): Likewise.
34085
34086 2007-04-06  Bruno Haible  <bruno@clisp.org>
34087
34088         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34089         * tests/test-frexpl.c (main): Likewise.
34090         * tests/test-ldexpl.c (main): Likewise.
34091         * modules/frexp-tests (Depends-on): Add signbit.
34092         * modules/frexpl-tests (Depdends-on): Likewise.
34093         * modules/ldexpl-tests (Depdends-on): Likewise.
34094
34095 2007-04-06  Bruno Haible  <bruno@clisp.org>
34096
34097         * modules/signbit-tests: New file.
34098         * tests/test-signbit.c: New file.
34099
34100         * modules/signbit: New file.
34101         * lib/signbitf.c: New file.
34102         * lib/signbitd.c: New file.
34103         * lib/signbitl.c: New file.
34104         * m4/signbit.m4: New file.
34105         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34106         (signbit): New macro.
34107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34108         REPLACE_SIGNBIT.
34109         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34110         REPLACE_FREXPL into math.h.
34111
34112 2007-04-06  Bruno Haible  <bruno@clisp.org>
34113
34114         * modules/isnanf-nolibm-tests: New file.
34115         * tests/test-isnanf.c: New file.
34116
34117         * modules/isnanf-nolibm: New file.
34118         * lib/isnanf.h: New file.
34119         * lib/isnanf.c: New file.
34120         * lib/isnan.c: Consider the USE_FLOAT macro.
34121         * m4/isnanf.m4: New file.
34122
34123 2007-04-06  Bruno Haible  <bruno@clisp.org>
34124
34125         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34126         (Link): New section.
34127
34128         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34129
34130 2007-04-06  Bruno Haible  <bruno@clisp.org>
34131
34132         Assume the 'long double' type.
34133         * m4/longdouble.m4: Remove file.
34134         * config/srclist.txt: Don't mention longdouble.m4.
34135         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34136         * lib/float+.h: Likewise.
34137         * lib/frexp.c: Likewise.
34138         * lib/printf-args.h: Likewise.
34139         * lib/printf-args.c: Likewise.
34140         * lib/printf-frexp.c: Likewise.
34141         * lib/printf-parse.c: Likewise.
34142         * lib/vasnprintf.c: Likewise.
34143         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34144         * m4/intl.m4: Likewise.
34145         * m4/isnanl.m4: Likewise.
34146         * m4/printf.m4: Likewise.
34147         * m4/printf-frexpl.m4: Likewise.
34148         * m4/vasnprintf.m4: Likewise.
34149         * modules/allocsa (Files): Remove m4/longdouble.m4.
34150         * modules/gettext (Files): Likewise.
34151         * modules/relocatable-prog-wrapper (Files): Likewise.
34152         * modules/vasnprintf (Files): Likewise.
34153         * modules/isnanl (Files): Likewise.
34154         (Include): Simplify.
34155         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34156         (Include): Simplify.
34157         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34158         (Include): Simplify.
34159         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34160         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34161         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34162         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34163         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34164         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34165         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34166         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34167         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34168         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34169         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34170         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34171         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34172         * tests/test-isnanl.c: Likewise.
34173         * tests/test-snprintf-posix.h: Likewise.
34174         * tests/test-sprintf-posix.h: Likewise.
34175         * tests/test-vasnprintf-posix.c: Likewise.
34176         * tests/test-vasnprintf-posix2.c: Likewise.
34177         * tests/test-vasprintf-posix.c: Likewise.
34178
34179 2007-04-06  Bruno Haible  <bruno@clisp.org>
34180
34181         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34182         * lib/math_.h [__DECC]: Include the overridden include file through
34183         #include_next, outside the double-inclusion guard.
34184         * lib/stdio_.h [__DECC]: Likewise.
34185         * lib/stdlib_.h [__DECC]: Likewise.
34186         * lib/string_.h [__DECC]: Likewise.
34187         * lib/time_.h [__DECC]: Likewise.
34188         * lib/wchar_.h [__DECC]: Likewise.
34189         * lib/wctype_.h [__DECC]: Likewise.
34190         * lib/inttypes_.h [__DECC]: Likewise.
34191         Reported by Albert Chin <china@thewrittenword.com> in
34192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34193
34194 2007-04-04  Eric Blake  <ebb9@byu.net>
34195
34196         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34197         1.5.x.
34198
34199 2007-04-04  Bruno Haible  <bruno@clisp.org>
34200
34201         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34202         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34203
34204 2007-04-04  Bruno Haible  <bruno@clisp.org>
34205
34206         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34207         results for "%010a" of Infinity and NaN.
34208         * tests/test-vasprintf-posix.c (test_function): Likewise.
34209         * tests/test-snprintf-posix.h (test_function): Likewise.
34210         * tests/test-sprintf-posix.h (test_function): Likewise.
34211         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34212         * tests/test-printf-posix.h (test_function): Likewise.
34213         * tests/test-fprintf-posix.out: Update.
34214         Needed for FreeBSD 6.1.
34215
34216 2007-04-04  Bruno Haible  <bruno@clisp.org>
34217
34218         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34219         directly used by the gnulib modules nor by gnulib-tool.
34220
34221 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         * DEPENDENCIES: Give overall description of version dependency
34224         desirability.  Use more-typical names for apps.
34225         Add shell, coreutils, diffutils, grep, tar, gzip.
34226
34227 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34228
34229         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34230
34231 2007-04-04  Karl Berry  <karl@gnu.org>
34232
34233         * MODULES.html.sh (func_module): missing '.
34234
34235 2007-04-03  Bruno Haible  <bruno@clisp.org>
34236
34237         * modules/argmatch-tests (Makefile.am): New variable
34238         test_argmatch_LDADD.
34239         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34240         * modules/array-list-tests (Makefile.am): New variable
34241         test_array_list_LDADD.
34242         * modules/array-oset-tests (Makefile.am): New variable
34243         test_array_oset_LDADD.
34244         * modules/avltree-list-tests (Makefile.am): New variable
34245         test_avltree_list_LDADD.
34246         * modules/avltree-oset-tests (Makefile.am): New variable
34247         test_avltree_oset_LDADD.
34248         * modules/avltreehash-list-tests (Makefile.am): New variable
34249         test_avltreehash_list_LDADD.
34250         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34251         test_canonicalize_lgpl_LDADD.
34252         * modules/carray-list-tests (Makefile.am): New variable
34253         test_carray_list_LDADD.
34254         * modules/dirname-tests (Makefile.am): New variable
34255         test_dirname_LDADD.
34256         * modules/linked-list-tests (Makefile.am): New variable
34257         test_linked_list_LDADD.
34258         * modules/linkedhash-list-tests (Makefile.am): New variable
34259         test_linkedhash_list_LDADD.
34260         * modules/rbtree-list-tests (Makefile.am): New variable
34261         test_rbtree_list_LDADD.
34262         * modules/rbtree-oset-tests (Makefile.am): New variable
34263         test_rbtree_oset_LDADD.
34264         * modules/rbtreehash-list-tests (Makefile.am): New variable
34265         test_rbtreehash_list_LDADD.
34266         * modules/xvasprintf-tests (Makefile.am): New variable
34267         test_xvasprintf_LDADD.
34268         Reported by Eric Blake.
34269
34270 2007-04-03  Eric Blake  <ebb9@byu.net>
34271
34272         * DEPENDENCIES: Weaken m4 requirements.
34273
34274 2007-04-03  Bruno Haible  <bruno@clisp.org>
34275
34276         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34277         * modules/isnanl-tests (configure.ac): Likewise.
34278
34279 2007-04-03  Ben Pfaff  <blp@gnu.org>
34280
34281         * modules/iconv_open: Add $(srcdir)/ to source directory
34282         references in Makefile fragments that call gperf, to fix VPATH
34283         builds.
34284
34285 2007-04-03  Bruno Haible  <bruno@clisp.org>
34286
34287         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34288         * lib/ldexpl.c: Undo last change.
34289
34290 2007-04-03  Bruno Haible  <bruno@clisp.org>
34291
34292         * modules/printf-frexpl (Depends-on): Undo last change.
34293         (Files): Add m4/ldexpl.m4.
34294
34295 2007-04-03  Bruno Haible  <bruno@clisp.org>
34296
34297         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34298         * modules/isnanl (Link): New section.
34299
34300         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34301         * modules/frexp (Link): New section.
34302
34303         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34304         * modules/frexpl (Link): New section.
34305
34306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34307         * modules/ldexpl (Link): New section.
34308
34309 2007-04-03  Bruno Haible  <bruno@clisp.org>
34310
34311         * modules/TEMPLATE-EXTENDED: New file.
34312         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34313
34314 2007-04-03  Bruno Haible  <bruno@clisp.org>
34315
34316         * DEPENDENCIES: New file.
34317         Suggested by Simon Josefsson.
34318
34319 2007-04-03  Bruno Haible  <bruno@clisp.org>
34320
34321         * doc/gnulib.texi: Escape @.
34322
34323 2007-04-03  James Youngman  <jay@gnu.org>
34324         and Paul Eggert  <eggert@cs.ucla.edu>
34325
34326         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34327         birthtime on all systems that have birthtime, not just those which
34328         use st_birthtimensec rather than st_birthtim.  Putting zero in
34329         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34330         that the birth time is not available for files on an NFS mount.
34331
34332 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34333
34334         * modules/memxor: Move back from crypto/, suggested by Bruno.
34335         * modules/crypto/hmac-sha1: Fix memxor dependency.
34336
34337         * modules/crypto/gc: Moved from ../.
34338
34339 2007-04-02  Eric Blake  <ebb9@byu.net>
34340
34341         * lib/ldexpl.c (includes): Avoid libm.
34342
34343         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34344
34345 2007-04-02  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34348         on IRIX.
34349
34350 2007-04-02  Bruno Haible  <bruno@clisp.org>
34351
34352         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34353         x86 or x86_64 platforms running MacOS X.
34354         Reported by Ryan Schmidt <@ryandesign.com>.
34355
34356 2007-04-02  Bruno Haible  <bruno@clisp.org>
34357
34358         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34359         i386.
34360
34361 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34362
34363         * modules/crypto/arcfour: Moved from ../.
34364         * modules/crypto/arcfour-tests: Moved from ../.
34365         * modules/crypto/arctwo: Moved from ../.
34366         * modules/crypto/arctwo-tests: Moved from ../.
34367         * modules/crypto/des: Moved from ../.
34368         * modules/crypto/des-tests: Moved from ../.
34369         * modules/crypto/gc-arcfour: Moved from ../.
34370         * modules/crypto/gc-arcfour-tests: Moved from ../.
34371         * modules/crypto/gc-arctwo: Moved from ../.
34372         * modules/crypto/gc-arctwo-tests: Moved from ../.
34373         * modules/crypto/gc-des: Moved from ../.
34374         * modules/crypto/gc-des-tests: Moved from ../.
34375         * modules/crypto/gc-hmac-md5: Moved from ../.
34376         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34377         * modules/crypto/gc-hmac-sha1: Moved from ../.
34378         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34379         * modules/crypto/gc-md2: Moved from ../.
34380         * modules/crypto/gc-md2-tests: Moved from ../.
34381         * modules/crypto/gc-md4: Moved from ../.
34382         * modules/crypto/gc-md4-tests: Moved from ../.
34383         * modules/crypto/gc-md5: Moved from ../.
34384         * modules/crypto/gc-md5-tests: Moved from ../.
34385         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34386         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34387         * modules/crypto/gc-random: Moved from ../.
34388         * modules/crypto/gc-rijndael: Moved from ../.
34389         * modules/crypto/gc-rijndael-tests: Moved from ../.
34390         * modules/crypto/gc-sha1: Moved from ../.
34391         * modules/crypto/gc-sha1-tests: Moved from ../.
34392         * modules/crypto/gc-tests: Moved from ../.
34393         * modules/crypto/hmac-md5: Moved from ../.
34394         * modules/crypto/hmac-md5-tests: Moved from ../.
34395         * modules/crypto/hmac-sha1: Moved from ../.
34396         * modules/crypto/hmac-sha1-tests: Moved from ../.
34397         * modules/crypto/md2: Moved from ../.
34398         * modules/crypto/md2-tests: Moved from ../.
34399         * modules/crypto/md4: Moved from ../.
34400         * modules/crypto/md4-tests: Moved from ../.
34401         * modules/crypto/md5: Moved from ../.
34402         * modules/crypto/md5-tests: Moved from ../.
34403         * modules/crypto/memxor: Moved from ../.
34404         * modules/crypto/rijndael: Moved from ../.
34405         * modules/crypto/rijndael-tests: Moved from ../.
34406         * modules/crypto/sha1: Moved from ../.
34407
34408 2007-03-30  James Youngman  <jay@gnu.org>
34409
34410         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34411         rename() to change the ctime of a file (because ctime is unaffected
34412         by rename on jfs2 on AIX 5.1).
34413         (main): Start by doing cleanup, in case a previous run failed leaving
34414         test files behind.
34415
34416 2007-03-31  Bruno Haible  <bruno@clisp.org>
34417
34418         Support old proprietary implementations of iconv.
34419         * modules/iconv_open: New file.
34420         * lib/iconv_.h: New file.
34421         * m4/iconv_h.m4: New file.
34422         * lib/iconv_open.c: New file.
34423         * lib/iconv_open-aix.gperf: New file.
34424         * lib/iconv_open-hpux.gperf: New file.
34425         * lib/iconv_open-irix.gperf: New file.
34426         * lib/iconv_open-osf.gperf: New file.
34427         * m4/iconv_open.m4: New file.
34428         * modules/linebreak (Depends-on): Add iconv_open.
34429         * modules/striconv (Depends-on): Likewise.
34430         * modules/striconveh (Depends-on): Likewise.
34431         * modules/unicodeio (Depends-on): Likewise.
34432         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34433         (iconv_t)(-1).
34434         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34435         conversion if cd is (iconv_t)(-1).
34436         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34437         is not possible.
34438
34439 2007-03-31  Bruno Haible  <bruno@clisp.org>
34440
34441         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34442         work on Solaris either. Protect also second use of "autodetect_jp".
34443
34444 2007-03-31  Bruno Haible  <bruno@clisp.org>
34445
34446         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34447         the function is not present.
34448
34449 2007-03-31  Bruno Haible  <bruno@clisp.org>
34450
34451         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34452         the function is not present.
34453
34454 2007-03-31  Bruno Haible  <bruno@clisp.org>
34455
34456         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34457         a bug in HP-UX iconv_open().
34458
34459 2007-03-31  Bruno Haible  <bruno@clisp.org>
34460
34461         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34462         (Mathematics <math.h>): New section, add fpieee.
34463         (Input/output <stdio.h>): Add fseterr.
34464         (Mathematics <math.h>): New section, add printf-frexp.
34465         (Container data structures): Add sublist.
34466         (Core language properties): Add fpucw, inline.
34467         (Functions for greatest-width integer types <inttypes.h>): Add
34468         imaxabs, imaxdiv, inttypes.
34469         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34470         isnanl-nolibm, ldexp.
34471         (Mathematics <math.h>): New section, add printf-frexpl.
34472         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34473         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34474         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34475         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34476         (Unicode string functions): Add unistr/u*-mbtoucr.
34477         (Java): Add javacomp-script, javaexec-script.
34478         (C#): Add csharpcomp-script, csharpexec-script.
34479         (Support for building libraries and executables): Add havelib,
34480         relocatable-*.
34481         (Support for maintaining and releasing projects): Renamed from
34482         'Support for maintaining and release projects'. Add announce-gen.
34483
34484 2007-03-31  Bruno Haible  <bruno@clisp.org>
34485
34486         * README: Talk primarily about git.
34487         (git and CVS): Renamed from CVS.
34488         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34489         gnulib is available through git.
34490         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34491
34492 2007-03-30  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34495         * lib/poll_.h: Likewise.
34496         * lib/stat_.h: Likewise.
34497         * lib/sys_time_.h: Likewise.
34498         * lib/sysexit_.h: Likewise.
34499         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34500         * lib/stdbool_.h: Likewise.
34501         * lib/byteswap_.h: Add double-inclusion guard.
34502
34503 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34504
34505         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34506
34507 2007-03-30  Karl Berry  <karl@gnu.org>
34508
34509         * config/srclist-update: double space after USA in the license
34510         substitution, since that's how it's usually (?) written.
34511
34512 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34513
34514         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34515         reported by Bruno Haible.
34516
34517 2007-03-29  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34520         a bug in AIX iconv().
34521
34522 2007-03-29  Bruno Haible  <bruno@clisp.org>
34523
34524         * modules/ldexpl-tests: New file.
34525         * tests/test-ldexpl.c: New file.
34526
34527 2007-03-29  Bruno Haible  <bruno@clisp.org>
34528
34529         * lib/ldexpl.c: Include fpucw.h.
34530         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34531         multiplication.
34532         * modules/ldexpl (Depends-on): Add fpucw.
34533
34534 2007-03-29  Bruno Haible  <bruno@clisp.org>
34535
34536         * modules/ldexpl: New file.
34537         * m4/ldexpl.m4: New file.
34538         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34539         set.
34540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34541         REPLACE_LDEXPL.
34542         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34543         REPLACE_LDEXPL.
34544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34545         gl_FUNC_LDEXPL_WORKS.
34546         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34547         * modules/mathl (Files): Remove lib/ldexpl.c.
34548         (Depends-on): Add ldexpl.
34549
34550 2007-03-29  Bruno Haible  <bruno@clisp.org>
34551
34552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34553
34554 2007-03-29  Bruno Haible  <bruno@clisp.org>
34555
34556         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34557         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34558         and possibly also HP-UX.
34559         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34560         work on AIX, IRIX, HP-UX, OSF/1.
34561         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34562         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34563         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34564         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34565         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34566         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34567
34568 2007-03-29  Bruno Haible  <bruno@clisp.org>
34569
34570         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34571
34572 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34573
34574         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34575         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34576
34577 2007-03-29  Eric Blake  <ebb9@byu.net>
34578
34579         * lib/acl-internal.h: Remove redundant include.
34580         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34581         Cygwin when a file is locked.
34582
34583 2007-03-29  Bruno Haible  <bruno@clisp.org>
34584
34585         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34586         file.
34587         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34588
34589 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34590
34591         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34592         try to remove a parent directory if the child couldn't be removed
34593         (except for the first rmdir, which could fail because the child
34594         doesn't exist).  Problem reported by Jeff Blaine in
34595         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34596
34597 2007-03-28  Bruno Haible  <bruno@clisp.org>
34598
34599         * lib/striconveh.c (utf8conv_carefully): New function.
34600         (mem_cd_iconveh_internal): Invoke it.
34601
34602 2007-03-28  Bruno Haible  <bruno@clisp.org>
34603
34604         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34605         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34606         input.
34607         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34608         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34609         unistr/u8-uctomb.
34610
34611 2007-03-28  Bruno Haible  <bruno@clisp.org>
34612
34613         * modules/unistr/u8-mbtoucr: New file.
34614         * lib/unistr/u8-mbtoucr.c: New file.
34615         * modules/unistr/u16-mbtoucr: New file.
34616         * lib/unistr/u16-mbtoucr.c: New file.
34617         * modules/unistr/u16-mbtoucr: New file.
34618         * lib/unistr/u16-mbtoucr.c: New file.
34619         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34620
34621 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34622             Bruno Haible  <bruno@clisp.org>
34623
34624         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34625         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34626         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34627
34628         * m4/stdio_h.m4: Add stubs for vasprintf too.
34629
34630         * modules/stdio: Support vasprintf in sed command.
34631
34632         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34633         vasprintf.h.  Add stdio module indicator.
34634
34635         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34636         vasprintf.h.
34637
34638         * lib/vasprintf.h: File removed.
34639
34640         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34641         * lib/vasprintf.c: Ditto.
34642         * lib/xvasprintf.c: Ditto.
34643         * tests/test-vasprintf-posix.c: Ditto.
34644         * tests/test-vasprintf.c: Ditto.
34645
34646 2007-03-27  Bruno Haible  <bruno@clisp.org>
34647
34648         Make vasnprintf multithread-safe.
34649         * lib/vasnprintf.c (decimal_point_char): New function.
34650         (VASNPRINTF): Use it.
34651         Suggested by Simon Josefsson.
34652
34653 2007-03-27  Eric Blake  <ebb9@byu.net>
34654
34655         Support sub-second birthtime on cygwin.
34656         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34657         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34658         (get_stat_birthtime): Also work with st_birthtim.
34659
34660 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34661
34662         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34663         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34664         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34665         (get_stat_birthtime_ns): Simplify compile-time tests.
34666         (get_stat_birthtime): Change the API to look like
34667         get_stat_mtime etc., except return a negative tv_nsec on error.
34668         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34669         Don't check for "spare" fields.
34670         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34671         or for struct stat.st_birthtime, as these tests aren't used.
34672         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34673
34674 2007-03-27  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/stat-time.h: Include <sys/stat.h>.
34677
34678 2007-03-27  James Youngman  <jay@gnu.org>
34679
34680         * lib/stat-time.h (get_stat_birthtime): New function for
34681           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34682         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34683           and its variants.
34684         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34685         * modules/stat-time-test: New file.
34686         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34687
34688 2007-03-26  Bruno Haible  <bruno@clisp.org>
34689
34690         Better support of signalling NaNs.
34691         * lib/atanl.c: Include isnanl.h.
34692         (atanl): Perform test for NaN at the beginning of the function and
34693         through a call to isnanl.
34694         * lib/cosl.c: Include isnanl.h.
34695         (cosl): Perform test for NaN at the beginning of the function and
34696         through a call to isnanl.
34697         * lib/ldexpl.c: Include isnanl.h.
34698         (ldexpl): Perform test for NaN through a call to isnanl.
34699         * lib/logl.c: Include isnanl.h.
34700         (logl): Perform test for NaN at the beginning of the function and
34701         through a call to isnanl.
34702         * lib/sinl.c: Include isnanl.h.
34703         (sinl): Perform test for NaN at the beginning of the function and
34704         through a call to isnanl.
34705         * lib/sqrtl.c: Include isnanl.h.
34706         (sqrtl): Perform test for NaN at the beginning of the function and
34707         through a call to isnanl.
34708         * lib/tanl.c: Include isnanl.h.
34709         (tanl): Perform test for NaN at the beginning of the function and
34710         through a call to isnanl.
34711         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34712         * modules/mathl (Depends-on): Add isnanl.
34713
34714 2007-03-26  Eric Blake  <ebb9@byu.net>
34715
34716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34717         regression in logic sense of previous patch.
34718
34719 2007-03-26  Bruno Haible  <bruno@clisp.org>
34720
34721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34722         unportable shell command "if ! ...".
34723         Reported by Ralf Wildenhues.
34724
34725 2007-03-25  Bruno Haible  <bruno@clisp.org>
34726
34727         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34728         <sysexits.h> file, and only add EX_CONFIG.
34729         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34730         absolute file name and whether it is sufficient. Substitute also
34731         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34732         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34733         ABSOLUTE_SYSEXITS_H into sysexits.h.
34734
34735 2007-03-25  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34738         hints is NULL.
34739
34740 2007-03-25  Bruno Haible  <bruno@clisp.org>
34741
34742         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34743         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34744
34745 2007-03-25  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/vasnprintf.c: Include langinfo.h.
34748         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34749         multithread-safe.
34750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34751         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34759         Reported by Simon Josefsson.
34760
34761 2007-03-25  Bruno Haible  <bruno@clisp.org>
34762
34763         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34764         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34765         * modules/vasnprintf (Depends-on): Add stdint.
34766
34767 2007-03-25  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/fpieee: New file.
34770         * m4/fpieee.m4: New file.
34771         * modules/isnan-nolibm (Depends-on): Add fpieee.
34772         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34773         * modules/isnanl (Depends-on): Add fpieee.
34774
34775 2007-03-25  Bruno Haible  <bruno@clisp.org>
34776
34777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34778
34779 2007-03-25  Bruno Haible  <bruno@clisp.org>
34780
34781         Avoid test failures on IRIX 6.5.
34782         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34783         (main): Use it.
34784         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34785         macros.
34786         (main): Use them.
34787
34788 2007-03-25  Bruno Haible  <bruno@clisp.org>
34789
34790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34791         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34792         exists but doesn't work.
34793         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34794         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34796         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34797
34798 2007-03-25  Bruno Haible  <bruno@clisp.org>
34799
34800         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34801         returns inf. Needed on IRIX 6.5.
34802
34803 2007-03-25  Bruno Haible  <bruno@clisp.org>
34804
34805         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34806         (main): Use isnanl instead of x != x idiom.
34807         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34808
34809         * tests/test-frexp.c: Include isnan.h.
34810         (main): Use isnan instead of x != x idiom.
34811         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34812
34813 2007-03-25  Bruno Haible  <bruno@clisp.org>
34814
34815         * tests/test-frexp.c (NaN): New function/macro.
34816         (main): Use it instead of 0.0 / 0.0.
34817         * tests/test-isnan.c (NaN): New function/macro.
34818         (main): Use it instead of 0.0 / 0.0.
34819         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34820         (test_function): Use it instead of 0.0 / 0.0.
34821         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34822         (test_function): Use it instead of 0.0 / 0.0.
34823         * tests/test-snprintf-posix.h (NaN): New function/macro.
34824         (test_function): Use it instead of 0.0 / 0.0.
34825         * tests/test-sprintf-posix.h (NaN): New function/macro.
34826         (test_function): Use it instead of 0.0 / 0.0.
34827         * tests/test-fprintf-posix.h (NaN): New function/macro.
34828         (test_function): Use it instead of 0.0 / 0.0.
34829         * tests/test-printf-posix.h (NaN): New function/macro.
34830         (test_function): Use it instead of 0.0 / 0.0.
34831
34832         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34833
34834 2007-03-25  Bruno Haible  <bruno@clisp.org>
34835
34836         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34837
34838 2007-03-25  Bruno Haible  <bruno@clisp.org>
34839
34840         * lib/regexec.c (merge_state_with_log): Make static.
34841
34842 2007-03-25  Bruno Haible  <bruno@clisp.org>
34843
34844         * lib/trigl.c (kernel_rem_pio2): Make static.
34845
34846 2007-03-25  Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/sincosl.c (sincosl_table): Make static.
34849
34850 2007-03-25  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34853         if the compiler does not support C99.
34854
34855 2007-03-25  Bruno Haible  <bruno@clisp.org>
34856
34857         * modules/time (Makefile.am): Ensure all rule action lines start with a
34858         tab.
34859
34860 2007-03-24  Bruno Haible  <bruno@clisp.org>
34861
34862         * modules/tsearch-tests: New file.
34863         * tests/test-tsearch.sh: New file.
34864         * tests/test-tsearch.c: New file, mostly copied from glibc.
34865
34866         * modules/search-tests: New file.
34867         * tests/test-search.c: New file.
34868
34869         * modules/search: New file.
34870         * lib/search_.h: New file, incorporating lib/tsearch.h.
34871         * m4/search_h.m4: New file.
34872         * lib/tsearch.h: Remove file.
34873         * lib/tsearch.c: Include search.h instead of tsearch.h.
34874         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34875         HAVE_TSEARCH.
34876         * modules/tsearch (Files): Remove lib/tsearch.h.
34877         (Depends-on): Add search.
34878         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34879         (Include): Change tsearch.h into search.h.
34880
34881 2007-03-24  Bruno Haible  <bruno@clisp.org>
34882
34883         * modules/fpucw: New file.
34884         * lib/fpucw.h: New file.
34885         * lib/frexp.c: Include fpucw.h.
34886         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34887         (FUNC): Use them.
34888         * lib/printf-frexp.c: Include fpucw.h.
34889         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34890         (FUNC): Use them.
34891         * lib/vasnprintf.c: Include fpucw.h.
34892         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34893         'long double' calculations.
34894         * tests/test-frexpl.c: Include fpucw.h.
34895         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34896         * tests/test-printf-frexpl.c: Include fpucw.h.
34897         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34898         * modules/frexpl (Depends-on): Add fpucw.
34899         * modules/printf-frexpl (Depends-on): Likewise.
34900         * modules/fprintf-posix (Depends-on): Likewise.
34901         * modules/snprintf-posix (Depends-on): Likewise.
34902         * modules/sprintf-posix (Depends-on): Likewise.
34903         * modules/vasnprintf-posix (Depends-on): Likewise.
34904         * modules/vasprintf-posix (Depends-on): Likewise.
34905         * modules/vfprintf-posix (Depends-on): Likewise.
34906         * modules/vsnprintf-posix (Depends-on): Likewise.
34907         * modules/vsprintf-posix (Depends-on): Likewise.
34908         * modules/frexpl-tests (Depends-on): Likewise.
34909         * modules/printf-frexpl-tests (Depends-on): Likewise.
34910
34911 2007-03-24  Bruno Haible  <bruno@clisp.org>
34912
34913         * lib/float+.h: New file.
34914         * lib/isnan.c: Include float+.h.
34915         (SIZE): New macro.
34916         (FUNC): Compare only SIZE bytes of the value.
34917         * lib/vasnprintf.c: Include float+.h.
34918         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34919         SIZEOF_LDBL or SIZEOF_DBL bytes.
34920         * modules/isnan-nolibm (Files): Add lib/float+.h.
34921         * modules/isnanl-nolibm (Files): Add lib/float+.h.
34922         * modules/isnanl (Files): Add lib/float+.h.
34923         * modules/vasnprintf (Files): Add lib/float+.h.
34924
34925 2007-03-24  Bruno Haible  <bruno@clisp.org>
34926
34927         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34928         include isnanl-nolibm.h.
34929
34930 2007-03-24  Bruno Haible  <bruno@clisp.org>
34931
34932         * tests/test-read-file.c (main): Don't produce spurious output for
34933         expected situations. Make the test fail if it encountered unexpected
34934         results.
34935
34936 2007-03-24  Bruno Haible  <bruno@clisp.org>
34937
34938         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34939         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34940
34941 2007-03-24  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34944
34945 2007-03-24  Bruno Haible  <bruno@clisp.org>
34946
34947         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34948         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34949
34950         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34951         * modules/utf8-ucs4: Turn into a symbolic link to module
34952         unistr/u8-mbtouc.
34953
34954         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34955         utf8-ucs4-unsafe.
34956         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34957         unistr/u8-mbtouc-unsafe.
34958
34959         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34960         * modules/utf16-ucs4: Turn into a symbolic link to module
34961         unistr/u16-mbtouc.
34962
34963         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34964         utf16-ucs4-unsafe.
34965         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34966         unistr/u16-mbtouc-unsafe.
34967
34968         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34969         * modules/ucs4-utf8: Turn into a symbolic link to module
34970         unistr/u8-ubtomb.
34971
34972         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34973         * modules/ucs4-utf16: Turn into a symbolic link to module
34974         unistr/u16-ubtomb.
34975
34976 2007-03-24  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34979         Enable the function only if HAVE_INLINE.
34980         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34981         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34982         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34983         Enable the function only if HAVE_INLINE.
34984         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34985         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34986         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34987         Enable the function only if HAVE_INLINE.
34988         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34989         Enable the function only if HAVE_INLINE.
34990         * modules/utf8-ucs4: Update.
34991         * modules/utf8-ucs4-unsafe: Update.
34992         * modules/utf16-ucs4: Update.
34993         * modules/utf16-ucs4-unsafe: Update.
34994         * modules/ucs4-utf8: Update.
34995         * modules/ucs4-utf16: Update.
34996
34997 2007-03-24  Bruno Haible  <bruno@clisp.org>
34998
34999         * lib/utf8-ucs4.h: Remove file.
35000         * lib/utf8-ucs4-unsafe.h: Remove file.
35001         * lib/utf16-ucs4.h: Remove file.
35002         * lib/utf16-ucs4-unsafe.h: Remove file.
35003         * lib/ucs4-utf8.h: Remove file.
35004         * lib/ucs4-utf16.h: Remove file.
35005         * lib/unistr.h: Include their previous contents.
35006         * m4/utf-ucs4.m4: Remove file.
35007         * m4/ucs4-utf.m4: Remove file.
35008         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35009         (Depends-on): Add unistr/base.
35010         (configure.ac): Remove gl_UTF_UCS4.
35011         (Makefile.am): Update.
35012         (Include): Change to unistr.h.
35013         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35014         (Depends-on): Add unistr/base.
35015         (configure.ac): Remove gl_UTF_UCS4.
35016         (Makefile.am): Update.
35017         (Include): Change to unistr.h.
35018         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35019         (Depends-on): Add unistr/base.
35020         (configure.ac): Remove gl_UTF_UCS4.
35021         (Makefile.am): Update.
35022         (Include): Change to unistr.h.
35023         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35024         (Depends-on): Add unistr/base.
35025         (configure.ac): Remove gl_UTF_UCS4.
35026         (Makefile.am): Update.
35027         (Include): Change to unistr.h.
35028         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35029         (Depends-on): Add unistr/base.
35030         (configure.ac): Remove gl_UCS4_UTF.
35031         (Makefile.am): Update.
35032         (Include): Change to unistr.h.
35033         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35034         (Depends-on): Add unistr/base.
35035         (configure.ac): Remove gl_UCS4_UTF.
35036         (Makefile.am): Update.
35037         (Include): Change to unistr.h.
35038         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35039         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35040         utf8-ucs4-unsafe.h.
35041         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35042         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35043         utf16-ucs4-unsafe.h.
35044         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35045         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35046         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35047         * lib/unistr/u8-strchr.c: Likewise.
35048         * lib/unistr/u8-strrchr.c: Likewise.
35049         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35050         * lib/unistr/u16-strchr.c: Likewise.
35051         * lib/unistr/u16-strrchr.c: Likewise.
35052         * lib/striconveh.c: Update.
35053         * lib/linebreak.c: Update.
35054
35055 2007-03-24  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35058         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35059
35060 2007-03-22  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35063
35064 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35065
35066         * MODULES.html.sh (File system functions): New module write-any-file.
35067         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35068         * m4/write-any-file.m4: New files.
35069
35070 2007-03-23  Eric Blake  <ebb9@byu.net>
35071
35072         * gnulib-tool: Rearrange space-tab sequences, since some editors
35073         like to eat them.
35074
35075 2007-03-23  Eric Blake  <ebb9@byu.net>
35076
35077         * lib/version-etc.c (version_etc_va): Update license wording to
35078         be more concise.  Recommended by Richard Stallman.
35079
35080 2007-03-22  Bruno Haible  <bruno@clisp.org>
35081
35082         * lib/poll.c (MSG_PEEK): New fallback definition.
35083
35084 2007-03-22  Bruno Haible  <bruno@clisp.org>
35085
35086         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35087         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35088         (main): Update.
35089         Fixes a compilation error on BeOS.
35090
35091 2007-03-22  Bruno Haible  <bruno@clisp.org>
35092
35093         * modules/frexpl-tests: New file.
35094         * tests/test-frexpl.c: New file.
35095
35096         * modules/frexpl: New file.
35097         * m4/frexpl.m4: New file.
35098         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35099         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35101         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35102         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35103         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35104
35105 2007-03-22  Bruno Haible  <bruno@clisp.org>
35106
35107         * lib/frexpl.c: Share code with lib/frexp.c.
35108         * modules/mathl (Files): Add lib/frexp.c.
35109         (Depends-on): Add isnanl-nolibm.
35110
35111 2007-03-22  Bruno Haible  <bruno@clisp.org>
35112
35113         * modules/printf-frexp (Files): Add m4/frexp.m4.
35114         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35115         only if the found frexp function actually works.
35116
35117 2007-03-22  Bruno Haible  <bruno@clisp.org>
35118
35119         * lib/frexp.c: Remove older implementation that uses divisions.
35120
35121 2007-03-21  Bruno Haible  <bruno@clisp.org>
35122
35123         * modules/frexp-tests: New file.
35124         * tests/test-frexp.c: New file.
35125
35126         * modules/frexp: New file.
35127         * lib/frexp.c: New file.
35128         * m4/frexp.m4: New file.
35129         * lib/math_.h (frexp): New declaration.
35130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35131         REPLACE_FREXP.
35132         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35133
35134 2007-03-21  Bruno Haible  <bruno@clisp.org>
35135
35136         * modules/isnanl-tests: New file.
35137         * tests/test-isnanl.c: New file.
35138
35139         * modules/isnanl: New file.
35140         * lib/isnanl.h: New file.
35141         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35142         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35143         gl_FUNC_ISNANL_WORKS.
35144         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35145         New macros.
35146
35147 2007-03-21  Bruno Haible  <bruno@clisp.org>
35148
35149         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35150         lib/isnanl.h.
35151         (Include): Update.
35152         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35153         * lib/vasnprintf.c: Update.
35154         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35155         tests/test-isnanl.h, remove tests/test-isnanl.c.
35156         (Makefile.am): Update.
35157         * tests/test-isnanl-nolibm.c: New file.
35158         * tests/test-isnanl.h: New file.
35159         * tests/test-isnanl.c: Remove file.
35160
35161 2007-03-21  Jim Meyering  <jim@meyering.net>
35162
35163         When trying to open ".", treat ESTALE like EACCES.
35164         * lib/savewd.c (savewd_save): Resort to forking not just upon
35165         failure with EACCES, but also when errno is ESTALE.
35166
35167 2007-03-20  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35170         Needed on AIX 5.1. Reported by Matthew Woehlke.
35171
35172 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35173
35174         Suggestions by Bruno Haible:
35175         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35176         our own.
35177         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35178         * modules/acl (Depends-on): Add gettext.
35179
35180 2007-03-19  Bruno Haible  <bruno@clisp.org>
35181
35182         * modules/iconvme: Remove file.
35183         * lib/iconvme.h: Remove file.
35184         * lib/iconvme.c: Remove file.
35185         * m4/iconvme.m4: Remove file.
35186
35187 2007-03-19  Bruno Haible  <bruno@clisp.org>
35188
35189         * doc/relocatable-maint.texi: Break long shell script line.
35190         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35191
35192 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35193
35194         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35195         handle file_has_acl.
35196         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35197         * lib/acl.c: Move header inclusions and related macro defns into
35198         lib/acl-internal.h.
35199         (S_ISLNK): Remove defn, since that's now done for us.
35200         (file_has_acl): Move to lib/file-has-acl.c.
35201         Call acl_trivial if available.  This is the crucial part of the fix.
35202         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35203         shared within the library.  Rewrite a bit, partly to make it compatible
35204         with the GNU coding style.
35205         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35206         Remove unnecessary double-quotes.
35207         Don't test for acl_to_text; the build will catch that.
35208         Replace acl_entries if it doesn't exist and it is needed.
35209         Check for -lsec and acl_trivial (as used on Solaris 10).
35210         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35211         lib/file-has-acl.c.
35212         (Depends-on): Add sys_stat, for S_ISLNK.
35213
35214 2007-03-19  Ben Pfaff  <blp@gnu.org>
35215
35216         * doc/gnulib.texi: Fix typos.
35217         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35218
35219 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35220
35221         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35222         If size is zero here, buf must be zero.
35223
35224 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35225
35226         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35227         <bruno@clisp.org>.
35228
35229 2007-03-18  Bruno Haible  <bruno@clisp.org>
35230
35231         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35232         Suggested by Eric Blake.
35233
35234 2007-03-18  Ben Pfaff  <blp@gnu.org>
35235
35236         * doc/relocatable.texi: Recommend using as prefix a directory
35237         that does not exist and will never be created.  Based on
35238         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35239         and others.
35240
35241 2007-03-17  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/fchownat.c: Include lchown.h.
35244
35245 2007-03-17  Bruno Haible  <bruno@clisp.org>
35246
35247         Fix endless loop when the given allocated size was > INT_MAX.
35248         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35249         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35250         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35251         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35252         * lib/sprintf.c (sprintf): Likewise.
35253
35254 2007-03-17  Bruno Haible  <bruno@clisp.org>
35255
35256         * tests/test-argp-2.sh (func_compare): Output a context diff.
35257
35258 2007-03-17  Bruno Haible  <bruno@clisp.org>
35259
35260         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35261         locale's decimal-point character.
35262
35263 2007-03-17  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35266         before comparing it. Needed because on some platforms (e.g. x86) a
35267         'long double' occupies less bytes than sizeof (long double).
35268
35269 2007-03-17  Bruno Haible  <bruno@clisp.org>
35270
35271         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35272         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35273         * tests/test-getaddrinfo.c (simple): Likewise.
35274         * tests/test-read-file.c (main): Likewise.
35275
35276 2007-03-17  Bruno Haible  <bruno@clisp.org>
35277
35278         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35279
35280 2007-03-17  Bruno Haible  <bruno@clisp.org>
35281
35282         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35283         unused variable.
35284
35285 2007-03-17  Bruno Haible  <bruno@clisp.org>
35286
35287         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35288         * tests/test-c-strncasecmp.c: Likewise.
35289
35290 2007-03-17  Bruno Haible  <bruno@clisp.org>
35291
35292         * modules/stdlib (Depends-on): Add unistd.
35293         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35294         Needed for MacOS X 10.3.
35295
35296 2007-03-17  Bruno Haible  <bruno@clisp.org>
35297
35298         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35299
35300 2007-03-17  Bruno Haible  <bruno@clisp.org>
35301
35302         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35303
35304 2007-03-17  Bruno Haible  <bruno@clisp.org>
35305
35306         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35307         to reflect files copied from gnulib (with or without modifications).
35308         Suggested by Jim Meyering.
35309
35310 2007-03-17  Eric Blake  <ebb9@byu.net>
35311
35312         * NEWS: Document stdlib change from 2007-02-18.
35313
35314 2007-03-17  Jim Meyering  <jim@meyering.net>
35315
35316         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35317         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35318         someone uses a name containing shell meta-characters.
35319         Reported by Alfred M. Szmidt.
35320
35321         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35322
35323 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35324
35325         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35326         and copy gettext configuration files only if configure.ac contains
35327         a use of AM_GNU_GETTEXT_VERSION.
35328
35329 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35330
35331         * build-aux/bootstrap (gnulib_name): New variable.
35332         (gnulib_tool_options): Use it.
35333
35334 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35335
35336         * tests/test-des.c: Use new namespace.
35337
35338 2007-03-15  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35341         Reported by James Youngman <jay@gnu.org>.
35342
35343 2007-03-15  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35346         declared prototype. Needed with cc on OSF/1 5.1.
35347
35348 2007-03-15  Bruno Haible  <bruno@clisp.org>
35349
35350         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35351         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35352         (struct gl_list_implementation): Add dispose_fn argument to the
35353         'create_empty', 'create' methods.
35354         (struct gl_list_impl_base): Add field 'dispose_fn'.
35355         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35356         argument.
35357         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35358         dispose_fn argument.
35359         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35360         dispose_fn on the dropped values.
35361         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35362         dispose_fn argument.
35363         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35364         dropped values.
35365         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35366         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35367         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35368         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35369         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35370         argument.
35371         (gl_tree_list_free): Call dispose_fn on the dropped values.
35372         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35373         the dropped values.
35374         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35375         Add dispose_fn argument.
35376         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35377         Call dispose_fn on the dropped values.
35378         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35379         Add dispose_fn argument.
35380         (gl_sublist_create): Initialize the 'dispose_fn' field.
35381         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35382         * tests/test-array_list.c (main): Update.
35383         * tests/test-carray_list.c (main): Update.
35384         * tests/test-avltree_list.c (main): Update.
35385         * tests/test-rbtree_list.c (main): Update.
35386         * tests/test-avltreehash_list.c (main): Update.
35387         * tests/test-rbtreehash_list.c (main): Update.
35388         * tests/test-linked_list.c (main): Update.
35389         * tests/test-linkedhash_list.c (main): Update.
35390         * tests/test-array_oset.c (main): Update.
35391
35392 2007-03-15  Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35395         (gl_oset_create_empty): Add dispose_fn argument.
35396         (struct gl_oset_implementation): Add dispose_fn argument to
35397         'create_empty' method.
35398         (struct gl_oset_impl_base): Add dispose_fn field.
35399         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35400         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35401         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35402         values.
35403         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35404         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35405         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35406         dropped value.
35407         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35408         dropped value.
35409         * tests/test-array_oset.c (main): Update.
35410         * tests/test-avltree_oset.c (main): Update.
35411         * tests/test-rbtree_oset.c (main): Update.
35412         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35413
35414 2007-03-13  Bruno Haible  <bruno@clisp.org>
35415
35416         * tests/test-stdbool.c (i): Update after last patch.
35417
35418 2007-03-12  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35421         the iswprint macro. Needed on Solaris 2.5.1.
35422
35423 2007-03-12  Bruno Haible  <bruno@clisp.org>
35424
35425         * tests/test-printf-frexp.c (main): Declare x as volatile.
35426
35427 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35428
35429         * doc/gnulib.texi (Build robot for gnulib): New section.
35430
35431 2007-03-12  Jim Meyering  <jim@meyering.net>
35432
35433         * build-aux/bootstrap: New file.
35434         * build-aux/bootstrap.conf: New file, from coreutils.
35435
35436 2007-03-11  Bruno Haible  <bruno@clisp.org>
35437
35438         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35439
35440 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35441
35442         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35443         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35444         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35445
35446 2007-03-11  Bruno Haible  <bruno@clisp.org>
35447
35448         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35449         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35450
35451 2007-03-11  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35454         formula. Needed for SunPRO C 5.0.
35455
35456 2007-03-11  Bruno Haible  <bruno@clisp.org>
35457
35458         * modules/long-options (Depends-on): Add getopt.
35459
35460 2007-03-11  Bruno Haible  <bruno@clisp.org>
35461
35462         * modules/modechange (Depends-on): Add stdbool.
35463
35464 2007-03-11  Bruno Haible  <bruno@clisp.org>
35465
35466         * modules/i-ring (Depends-on): Add stdbool.
35467
35468 2007-03-11  Bruno Haible  <bruno@clisp.org>
35469
35470         * modules/gc-des (Depends-on): Add stdbool.
35471
35472 2007-03-11  Bruno Haible  <bruno@clisp.org>
35473
35474         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35475
35476 2007-03-11  Bruno Haible  <bruno@clisp.org>
35477
35478         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35479
35480 2007-03-11  Bruno Haible  <bruno@clisp.org>
35481
35482         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35483
35484 2007-03-11  Bruno Haible  <bruno@clisp.org>
35485
35486         * lib/vasnprintf.c (sprintf): Undefine.
35487
35488 2007-03-11  Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35491         initializers in SunPRO C and Compaq C compilers.
35492
35493 2007-03-11  Bruno Haible  <bruno@clisp.org>
35494
35495         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35496         decrementing code ANSI C compliant.
35497
35498 2007-03-11  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35501         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35502
35503 2007-03-11  Bruno Haible  <bruno@clisp.org>
35504
35505         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35506         <stdbool.h> substitute doesn't pass.
35507
35508 2007-03-11  Bruno Haible  <bruno@clisp.org>
35509
35510         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35511
35512 2007-03-11  Bruno Haible  <bruno@clisp.org>
35513
35514         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35515         script, for submission to autobuild.josefsson.org.
35516
35517 2007-03-10  Bruno Haible  <bruno@clisp.org>
35518
35519         * modules/canonicalize-lgpl-tests: New file.
35520         * tests/test-canonicalize-lgpl.sh: New file.
35521         * tests/test-canonicalize-lgpl.c: New file.
35522
35523         * modules/c-strcase-tests: New file.
35524         * tests/test-c-strcase.sh: New file.
35525         * tests/test-c-strcasecmp.c: New file.
35526         * tests/test-c-strncasecmp.c: New file.
35527
35528         * modules/atexit-tests: New file.
35529         * tests/test-atexit.sh: New file.
35530         * tests/test-atexit.c: New file.
35531
35532 2007-03-10  Bruno Haible  <bruno@clisp.org>
35533
35534         * tests/test-binary-io.sh: Use temporary filenames that are not so
35535         likely to clash with those of other tests (in a parallel make).
35536         * tests/test-binary-io.c: Likewise.
35537
35538 2007-03-10  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35541         fallback; use #error instead.
35542         Suggested by Simon Josefsson.
35543
35544 2007-03-10  Bruno Haible  <bruno@clisp.org>
35545
35546         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35547         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35548         first and the last.
35549
35550 2007-03-10  Bruno Haible  <bruno@clisp.org>
35551
35552         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35553
35554 2007-03-10  Bruno Haible  <bruno@clisp.org>
35555
35556         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35557         "make distcheck".
35558         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35559         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35560         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35561
35562 2007-03-10  Bruno Haible  <bruno@clisp.org>
35563
35564         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35565         variable.
35566         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35567         variable.
35568
35569 2007-03-09  Eric Blake  <ebb9@byu.net>
35570         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35571
35572         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35573         types are not being provided by gnulib.
35574         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35575         types are supported.
35576
35577 2007-03-10  Bruno Haible  <bruno@clisp.org>
35578
35579         * lib/stdio_.h (__attribute__): New macro.
35580         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35581         vsprintf): Specify __attribute__ __format__ for GCC.
35582         Suggested by Eric Blake.
35583
35584 2007-03-09  Bruno Haible  <bruno@clisp.org>
35585
35586         * modules/printf-posix-tests: New file.
35587         * tests/test-printf-posix.sh: New file.
35588         * tests/test-printf-posix.c: New file.
35589
35590         * modules/printf-posix: New file.
35591         * lib/printf.c: New file.
35592         * m4/printf-posix-rpl.m4: New file.
35593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35594         REPLACE_PRINTF.
35595         * lib/stdio_.h (printf): New declaration.
35596         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35597         ____strfmon____): New macros.
35598         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35599         REPLACE_PRINTF.
35600
35601 2007-03-09  Bruno Haible  <bruno@clisp.org>
35602
35603         * tests/test-vasnprintf-posix2.sh: New file.
35604         * tests/test-vasnprintf-posix2.c: New file.
35605         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35606         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35607         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35608
35609         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35610         a locale dependent decimal point, rather than always '.'.
35611
35612 2007-03-09  Eric Blake  <ebb9@byu.net>
35613
35614         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35615         spite of platforms like Tandem/NSK that define it to -1.
35616
35617 2007-03-08  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/vprintf-posix-tests: New file.
35620         * tests/test-vprintf-posix.sh: New file.
35621         * tests/test-vprintf-posix.c: New file.
35622         * tests/test-printf-posix.h: New file.
35623
35624         * modules/vprintf-posix: New file.
35625         * lib/vprintf.c: New file.
35626         * m4/vprintf-posix.m4: New file.
35627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35628         REPLACE_VPRINTF.
35629         * lib/stdio_.h (vprintf): New declaration.
35630         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35631         REPLACE_VPRINTF.
35632
35633 2007-03-08  Bruno Haible  <bruno@clisp.org>
35634
35635         * modules/fprintf-posix-tests: New file.
35636         * tests/test-fprintf-posix.sh: New file.
35637         * tests/test-fprintf-posix.c: New file.
35638
35639         * modules/fprintf-posix: New file.
35640         * lib/fprintf.c: New file.
35641         * m4/fprintf-posix.m4: New file.
35642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35643         REPLACE_FPRINTF.
35644         * lib/stdio_.h (fprintf): New declaration.
35645         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35646         REPLACE_FPRINTF.
35647
35648 2007-03-08  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/vfprintf-posix-tests: New file.
35651         * tests/test-vfprintf-posix.sh: New file.
35652         * tests/test-vfprintf-posix.c: New file.
35653         * tests/test-fprintf-posix.h: New file.
35654         * tests/test-fprintf-posix.out: New file.
35655
35656         * modules/vfprintf-posix: New file.
35657         * lib/vfprintf.c: New file.
35658         * m4/vfprintf-posix.m4: New file.
35659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35660         REPLACE_VFPRINTF.
35661         * lib/stdio_.h (vfprintf): New declaration.
35662         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35663         REPLACE_VFPRINTF.
35664
35665 2007-03-08  Bruno Haible  <bruno@clisp.org>
35666
35667         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35668
35669 2007-03-08  Bruno Haible  <bruno@clisp.org>
35670
35671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35672         instead of 'expr' invocations.
35673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35678         Suggested by Paul Eggert.
35679
35680 2007-03-08  Bruno Haible  <bruno@clisp.org>
35681
35682         * modules/fseterr-tests: New file.
35683         * tests/test-fseterr.c: New file.
35684
35685         * modules/fseterr: New file.
35686         * lib/fseterr.h: New file.
35687         * lib/fseterr.c: New file.
35688
35689 2007-03-08  Bruno Haible  <bruno@clisp.org>
35690
35691         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35692         * lib/getopt_.h: Likewise.
35693         * lib/mbswidth.h: Likewise.
35694         * lib/setenv.h: Likewise.
35695         * lib/vasnprintf.h: Likewise.
35696         * lib/vasprintf.h: Likewise.
35697         * lib/verror.h: Likewise.
35698         * lib/xsetenv.h: Likewise.
35699         * lib/xvasprintf.h: Likewise.
35700
35701 2007-03-08  Jim Meyering  <jim@meyering.net>
35702
35703         * users.txt: Add parted.
35704
35705         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35706
35707 2007-03-07  Bruno Haible  <bruno@clisp.org>
35708
35709         * m4/printf.m4: Make the shell script snippets copy&pastable.
35710
35711 2007-03-02  Bruno Haible  <bruno@clisp.org>
35712
35713         * lib/netinet_in_.h: New file.
35714         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35715         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35716         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35717         (Depends-on): Add absolute-header.
35718         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35719         into netinet/in.h.
35720
35721 2007-03-03  Bruno Haible  <bruno@clisp.org>
35722
35723         * lib/sys_select_.h: New file.
35724         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35725         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35726         * modules/sys_select (Files): Add lib/sys_select_.h.
35727         (Depends-on): Add absolute-header.
35728         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35729         into sys/select.h.
35730
35731 2007-03-02  Bruno Haible  <bruno@clisp.org>
35732
35733         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35734         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35735         values.
35736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35737         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35738         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35739         * modules/sys_socket (Depends-on): Add absolute-header.
35740         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35741         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35742         (Include): Remove requirement of inclusion of <sys/types.h>.
35743
35744 2007-03-02  Bruno Haible  <bruno@clisp.org>
35745
35746         * lib/byteswap_.h (bswap_32): Fix formula.
35747
35748 2007-03-06  Bruno Haible  <bruno@clisp.org>
35749
35750         * modules/sprintf-posix-tests: New file.
35751         * tests/test-sprintf-posix.c: New file.
35752
35753         * modules/sprintf-posix: New file.
35754         * lib/sprintf.c: New file.
35755         * m4/sprintf-posix.m4: New file.
35756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35757         REPLACE_SPRINTF.
35758         * lib/stdio_.h (sprintf): New declaration.
35759         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35760         REPLACE_SPRINTF.
35761
35762 2007-03-06  Bruno Haible  <bruno@clisp.org>
35763
35764         * modules/vsprintf-posix-tests: New file.
35765         * tests/test-vsprintf-posix.c: New file.
35766         * tests/test-sprintf-posix.h: New file.
35767
35768         * modules/vsprintf-posix: New file.
35769         * lib/vsprintf.c: New file.
35770         * m4/vsprintf-posix.m4: New file.
35771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35772         REPLACE_VSPRINTF.
35773         * lib/stdio_.h (vsprintf): New declaration.
35774         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35775         REPLACE_VSPRINTF.
35776
35777 2007-03-06  Bruno Haible  <bruno@clisp.org>
35778
35779         * modules/vsnprintf (Depend-on): Remove minmax.
35780
35781 2007-03-06  Bruno Haible  <bruno@clisp.org>
35782
35783         * modules/snprintf-posix-tests: New file.
35784         * tests/test-snprintf-posix.c: New file.
35785
35786         * modules/snprintf-posix: New file.
35787         * m4/snprintf-posix.m4: New file.
35788         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35789         gl_FUNC_SNPRINTF.
35790         (gl_FUNC_SNPRINTF): Invoke it.
35791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35792         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35793         is set.
35794         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35795
35796 2007-03-06  Bruno Haible  <bruno@clisp.org>
35797
35798         * modules/vsnprintf-posix-tests: New file.
35799         * tests/test-vsnprintf-posix.c: New file.
35800         * tests/test-snprintf-posix.h: New file.
35801
35802         * modules/vsnprintf-posix: New file.
35803         * m4/vsnprintf-posix.m4: New file.
35804         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35805         gl_FUNC_VSNPRINTF.
35806         (gl_FUNC_VSNPRINTF): Invoke it.
35807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35808         * lib/stdio_.h (vsnprintf): Define as a replacement if
35809         REPLACE_VSNPRINTF is set.
35810         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35811
35812 2007-03-06  Bruno Haible  <bruno@clisp.org>
35813
35814         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35816
35817 2007-03-06  Bruno Haible  <bruno@clisp.org>
35818
35819         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35820         (asinl): Declare also if HAVE_DECL_ASINL is set.
35821         (atanl): Declare also if HAVE_DECL_ATANL is set.
35822         (ceill): Declare also if HAVE_DECL_CEILL is set.
35823         (cosl): Declare also if HAVE_DECL_COSL is set.
35824         (expl): Declare also if HAVE_DECL_EXPL is set.
35825         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35826         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35827         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35828         (logl): Declare also if HAVE_DECL_LOGL is set.
35829         (sinl): Declare also if HAVE_DECL_SINL is set.
35830         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35831         (tanl): Declare also if HAVE_DECL_TANL is set.
35832         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35834         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35835         declaration of frexpl, ldexpl.
35836         * modules/printf-frexpl (Depends-on): Add math.
35837         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35838
35839 2007-03-05  Bruno Haible  <bruno@clisp.org>
35840
35841         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35842         frexpl and ldexpl are declared.
35843         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35844
35845 2007-03-05  Bruno Haible  <bruno@clisp.org>
35846
35847         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35848         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35849
35850 2007-03-05  Bruno Haible  <bruno@clisp.org>
35851
35852         * lib/stdio_.h: Include <stddef.h>.
35853
35854 2007-03-05  Bruno Haible  <bruno@clisp.org>
35855
35856         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35857
35858 2007-03-05  Bruno Haible  <bruno@clisp.org>
35859
35860         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35861         NetBSD 4, from Ralf Wildenhues.
35862
35863 2007-03-04  Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/vasprintf.h: Update #if logic for the case when the functions
35866         exist but are overridden.
35867
35868 2007-03-04  Bruno Haible  <bruno@clisp.org>
35869
35870         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35871         implementations: glibc-2.4 and MacOS X 10.3.
35872         * tests/test-vasnprintf-posix.c (test_function): Test also the case
35873         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35874         * tests/test-vasprintf-posix.c (test_function): Likewise.
35875
35876 2007-03-04  Bruno Haible  <bruno@clisp.org>
35877
35878         * modules/vasprintf-posix-tests: New file.
35879         * tests/test-vasprintf-posix.c: New file.
35880
35881         * modules/vasprintf-posix: New file.
35882         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35883         defined.
35884         * m4/vasprintf-posix.m4: New file.
35885         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35886         gl_FUNC_VASPRINTF.
35887         (gl_FUNC_VASPRINTF): Invoke it.
35888         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35889         here.
35890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35891
35892 2007-03-04  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35895         REPLACE_GETTIMEOFDAY.
35896         * modules/sys_time (Makefile.am): Likewise.
35897         * m4/sys_time_h.m4: Likewise.
35898         * m4/gettimeofday.m4: Likewise.
35899
35900 2007-03-04  Bruno Haible  <bruno@clisp.org>
35901
35902         * modules/vasnprintf-posix-tests: New file.
35903         * tests/test-vasnprintf-posix.c: New file.
35904
35905         * modules/vasnprintf-posix: New file.
35906         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35907         printf-frexpl.h.
35908         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35909         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35910         REPLACE_VASNPRINTF is defined.
35911         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35912         gl_FUNC_VASNPRINTF.
35913         (gl_FUNC_VASNPRINTF): Invoke it.
35914         * m4/vasnprintf-posix.m4: New file.
35915         * m4/printf.m4: New file.
35916
35917 2007-03-04  Bruno Haible  <bruno@clisp.org>
35918
35919         Compile progreloc.c only if --enable-relocatable is specified.
35920         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35921         if --enable-relocatable was specified.
35922         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35923         lib_SOURCES.
35924
35925 2007-03-04  Jim Meyering  <jim@meyering.net>
35926
35927         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35928         Use it consistently, rather than enumerating errno constants.
35929
35930 2007-03-04  Bruno Haible  <bruno@clisp.org>
35931
35932         * modules/xvasprintf-tests: New file.
35933         * tests/test-xvasprintf.c: New file.
35934
35935         * modules/vasprintf-tests: New file.
35936         * tests/test-vasprintf.c: New file.
35937
35938         * modules/vasnprintf-tests: New file.
35939         * tests/test-vasnprintf.c: New file.
35940
35941         * modules/vsnprintf-tests: New file.
35942         * tests/test-vsnprintf.c: New file.
35943
35944         * modules/snprintf-tests: New file.
35945         * tests/test-snprintf.c: New file.
35946
35947 2007-03-04  Bruno Haible  <bruno@clisp.org>
35948
35949         Compile relocatable.c only if --enable-relocatable is specified.
35950         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35951         gl_RELOCATABLE_LIBRARY.
35952         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35953         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35954         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35955         gl_RELOCATABLE_LIBRARY.
35956         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35957         (Makefile.am): Remove lib_SOURCES.
35958         * modules/relocatable-lib-lgpl (configure.ac): Invoke
35959         gl_RELOCATABLE_LIBRARY.
35960         (Makefile.am): Remove lib_SOURCES.
35961         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35962         always.
35963         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35964         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35965
35966 2007-03-04  Bruno Haible  <bruno@clisp.org>
35967
35968         * modules/argmatch-tests: New file.
35969         * tests/test-argmatch.c: New file.
35970
35971         * tests/test-allocsa.c (main): Halve the number of loop runs.
35972
35973         * modules/alloca-opt-tests: New file.
35974         * tests/test-alloca-opt.c: New file.
35975
35976 2007-03-04  Jim Meyering  <jim@meyering.net>
35977
35978         Work around difference between Linux ACLs and Solaris 10 ZFS.
35979         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35980         for EINVAL.
35981
35982 2007-03-03  Bruno Haible  <bruno@clisp.org>
35983
35984         * modules/relocatable-prog (Depends-on): Add back progreloc's
35985         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35986
35987 2007-03-03  Bruno Haible  <bruno@clisp.org>
35988
35989         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35990         * modules/relocatable-lib: New file.
35991
35992 2007-03-03  Bruno Haible  <bruno@clisp.org>
35993
35994         * modules/relocatable-prog: Renamed from modules/relocatable.
35995         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35996
35997 2007-03-03  Bruno Haible  <bruno@clisp.org>
35998
35999         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36000         m4/relocatable-lib.m4.
36001         (Depends-on): Remove 'relocatable'.
36002         (configure.ac): Add gl_RELOCATABLE_NOP.
36003
36004 2007-03-03  Bruno Haible  <bruno@clisp.org>
36005
36006         * modules/relocatable-prog-wrapper: New file.
36007         * modules/relocatable (Depends-on): Add it. Remove all other
36008         dependencies except progname.
36009         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36010
36011         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36012         (gl_FUNC_STRERROR): Nop.
36013         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36014
36015         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36016         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36017
36018         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36019         (gl_FUNC_READLINK): Update.
36020
36021         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36022
36023 2007-03-03  Bruno Haible  <bruno@clisp.org>
36024
36025         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36026         * modules/xreadlink (Depends-on): Add unistd.
36027         * modules/xreadlink-with-size (Depends-on): Likewise.
36028
36029 2007-03-03  Bruno Haible  <bruno@clisp.org>
36030
36031         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36032         extracted from gt_FUNC_SETENV.
36033         (gt_FUNC_SETENV): Remove macro.
36034         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36035         remove gt_FUNC_SETENV.
36036
36037 2007-03-03  Bruno Haible  <bruno@clisp.org>
36038
36039         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36040         ENABLE_RELOCATABLE here.
36041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36042
36043 2007-03-03  Bruno Haible  <bruno@clisp.org>
36044
36045         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36046         * tests/test-rbtreehash_list.c: Include progname.h.
36047         (main): Call set_program_name.
36048
36049         * modules/rbtree-oset-tests (Depends-on): Add progname.
36050         * tests/test-rbtree_oset.c: Include progname.h.
36051         (main): Call set_program_name.
36052
36053         * modules/rbtree-list-tests (Depends-on): Add progname.
36054         * tests/test-rbtree_list.c: Include progname.h.
36055         (main): Call set_program_name.
36056
36057         * modules/linked-list-tests (Depends-on): Add progname.
36058         * tests/test-linked_list.c: Include progname.h.
36059         (main): Call set_program_name.
36060
36061 2007-03-03  Bruno Haible  <bruno@clisp.org>
36062
36063         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36064         All uses of __restrict changed to _Restrict_.
36065         * lib/glob_.h (__restrict): Remove macro.
36066
36067 2007-03-02  Bruno Haible  <bruno@clisp.org>
36068
36069         * modules/gettext (configure.ac): Require gettext infrastructure
36070         from version 0.16.1.
36071
36072 2007-03-02  Bruno Haible  <bruno@clisp.org>
36073
36074         * modules/linkedhash-list-tests (Depends-on): Add progname.
36075         * tests/test-linkedhash_list.c: Include progname.h.
36076         (main): Call set_program_name.
36077
36078         * modules/carray-list-tests (Depends-on): Add progname.
36079         * tests/test-carray_list.c: Include progname.h.
36080         (main): Call set_program_name.
36081
36082         * modules/avltreehash-list-tests (Depends-on): Add progname.
36083         * tests/test-avltreehash_list.c: Include progname.h.
36084         (main): Call set_program_name.
36085
36086         * modules/avltree-oset-tests (Depends-on): Add progname.
36087         * tests/test-avltree_oset.c: Include progname.h.
36088         (main): Call set_program_name.
36089
36090         * modules/avltree-list-tests (Depends-on): Add progname.
36091         * tests/test-avltree_list.c: Include progname.h.
36092         (main): Call set_program_name.
36093
36094         * modules/array-oset-tests (Depends-on): Add progname.
36095         * tests/test-array_oset.c: Include progname.h.
36096         (main): Call set_program_name.
36097
36098         * modules/array-list-tests (Depends-on): Add progname.
36099         * tests/test-array_list.c: Include progname.h.
36100         (main): Call set_program_name.
36101
36102         * modules/argp-tests (Depends-on): Add progname.
36103         * tests/test-argp.c: Include argp.h first. Include progname.h.
36104         (main): Call set_program_name.
36105
36106 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36107
36108         * doc/gnulib-tool.texi (Initial import): Reword description of
36109         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36110         limited effect even if defined after the first system include.
36111
36112 2007-03-01  Bruno Haible  <bruno@clisp.org>
36113
36114         * build-aux/config.libpath: Update to libtool-1.5.22.
36115         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36116
36117 2007-03-01  Bruno Haible  <bruno@clisp.org>
36118
36119         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36120         foo_CFLAGS.
36121         Reported by Ralf Wildenhues.
36122
36123 2007-03-01  Bruno Haible  <bruno@clisp.org>
36124
36125         * build-aux/install-reloc: Remove object files left over by some
36126         compilers.
36127         Reported by Ralf Wildenhues.
36128
36129 2007-03-01  Bruno Haible  <bruno@clisp.org>
36130
36131         * build-aux/install-reloc: Break long lines.
36132
36133 2007-03-01  Bruno Haible  <bruno@clisp.org>
36134
36135         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36136         Reported by Ralf Wildenhues.
36137
36138 2007-03-01  Bruno Haible  <bruno@clisp.org>
36139
36140         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36141         include ordering constraints.
36142
36143 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36144
36145         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36147         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36148         as another example.
36149         * lib/time_.h: Fix misspelling.
36150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36151         Require gl_HEADER_TIME_H_DEFAULTS.
36152         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36153         * m4/time_r.m4 (gl_TIME_R): Likewise.
36154         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36155
36156 2007-03-01  Bruno Haible  <bruno@clisp.org>
36157
36158         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36159         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36160
36161 2007-03-01  Jim Meyering  <jim@meyering.net>
36162
36163         * modules/xreadlink (Maintainer): Add my name.
36164         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36165
36166 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36167             Bruno Haible  <bruno@clisp.org>
36168
36169         * build-aux/install-reloc: Compile also c-ctype.c.
36170         * build-aux/relocatable.sh.in: New file.
36171         * doc/relocatable.texi: New file.
36172         * doc/relocatable-maint.texi: New file.
36173         * doc/gnulib.texi: Include relocatable-maint.texi.
36174         * lib/progreloc.c: Include unistd.h unconditionally.
36175         * lib/relocwrapper.c: Include unistd.h unconditionally.
36176         Include c-ctype.h.
36177         (add_dotbin): Use c_tolower.
36178         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36179         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36180         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36181         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36182         to m4/relocatable-lib.m4.
36183         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36184         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36185         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36186         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36187         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36188         * modules/relocatable: New file.
36189         * modules/relocatable-lib: New file.
36190         * modules/relocatable-script: New file.
36191
36192 2007-02-28  Bruno Haible  <bruno@clisp.org>
36193
36194         Import --enable-relocatable infrastructure.
36195         * build-aux/config.libpath: New file, from GNU gettext.
36196         * build-aux/install-reloc: New file, from GNU gettext.
36197         * build-aux/reloc-ldflags: New file, from GNU gettext.
36198         * lib/relocatable.h: New file, from GNU gettext.
36199         * lib/relocatable.c: New file, from GNU gettext.
36200         * lib/relocwrapper.c: New file, from GNU gettext.
36201         * m4/relocatable.m4: New file, from GNU gettext.
36202
36203 2007-02-28  Bruno Haible  <bruno@clisp.org>
36204
36205         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36206
36207         * modules/xreadlink: New file, from GNU gettext with modifications.
36208         * lib/xreadlink.c: New file, from GNU gettext.
36209         * lib/xreadlink.h: Add comments.
36210         (xreadlink): New declaration.
36211
36212         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36213         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36214         lib/xreadlink-with-size.c.
36215         (configure.ac): Remove gl_XREADLINK invocation.
36216         (Makefile.am): Augment lib_SOURCES.
36217         * m4/xreadlink.m4: Remove file.
36218         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36219         (xreadlink_with_size): Renamed from xreadink.
36220         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36221         * modules/canonicalize (Depends-on): Replace xreadlink with
36222         xreadlink-with-size.
36223         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36224
36225 2007-02-25  Jim Meyering  <jim@meyering.net>
36226
36227         * build-aux/announce-gen: When complaining about excess arguments,
36228         list them.
36229
36230 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36231
36232         * README: Document signed integer overflow situation more
36233         accurately.
36234
36235 2007-02-25  Bruno Haible  <bruno@clisp.org>
36236
36237         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36238         'a' or 'A' conversion.
36239
36240 2007-02-25  Bruno Haible  <bruno@clisp.org>
36241
36242         * modules/filename: Renamed from modules/pathname.
36243         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36244         lib/concatpath.c with lib/concat-filename.c.
36245         (Makefile.am): Update.
36246         (Include): Replace pathname.h with filename.h.
36247         * lib/filename.h: Renamed from lib/pathname.h.
36248         (concatenated_filename): Renamed from concatenated_pathname.
36249         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36250         (concatenated_filename): Renamed from concatenated_pathname.
36251         * lib/findprog.c: Include filename.h instead of pathname.h.
36252         (find_in_path): Update.
36253         * lib/javacomp.c: Include filename.h instead of pathname.h.
36254         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36255         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36256         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36257         is_oldgcj_14_13_usable, is_javac_usable): Update.
36258         * lib/javaexec.c: Include filename.h instead of pathname.h.
36259         (execute_java_class): Update.
36260         * modules/findprog: Update.
36261         * modules/javacomp: Update.
36262         * modules/javaexec: Update.
36263         * MODULES.html.sh (File system functions): Add 'filename', remove
36264         'pathname'.
36265
36266 2007-02-25  Bruno Haible  <bruno@clisp.org>
36267
36268         * modules/printf-frexpl-tests: New file.
36269         * tests/test-printf-frexpl.c: New file.
36270
36271         * modules/printf-frexpl: New file.
36272         * lib/printf-frexpl.h: New file.
36273         * lib/printf-frexpl.c: New file.
36274         * m4/printf-frexpl.m4: New file.
36275
36276 2007-02-25  Bruno Haible  <bruno@clisp.org>
36277
36278         * modules/printf-frexp-tests: New file.
36279         * tests/test-printf-frexp.c: New file.
36280
36281         * modules/printf-frexp: New file.
36282         * lib/printf-frexp.h: New file.
36283         * lib/printf-frexp.c: New file.
36284         * m4/printf-frexp.m4: New file.
36285
36286 2007-02-25  Bruno Haible  <bruno@clisp.org>
36287
36288         Assume automake >= 1.10 for the tests.
36289         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36290         * modules/arctwo-tests: Likewise.
36291         * modules/argp-tests: Likewise.
36292         * modules/avltree-list-tests: Likewise.
36293         * modules/avltree-oset-tests: Likewise.
36294         * modules/avltreehash-list-tests: Likewise.
36295         * modules/carray-list-tests: Likewise.
36296         * modules/crc-tests: Likewise.
36297         * modules/des-tests: Likewise.
36298         * modules/gc-arcfour-tests: Likewise.
36299         * modules/gc-arctwo-tests: Likewise.
36300         * modules/gc-des-tests: Likewise.
36301         * modules/gc-hmac-md5-tests: Likewise.
36302         * modules/gc-hmac-sha1-tests: Likewise.
36303         * modules/gc-md2-tests: Likewise.
36304         * modules/gc-md4-tests: Likewise.
36305         * modules/gc-md5-tests: Likewise.
36306         * modules/gc-pbkdf2-sha1-tests: Likewise.
36307         * modules/gc-rijndael-tests: Likewise.
36308         * modules/gc-sha1-tests: Likewise.
36309         * modules/gc-tests: Likewise.
36310         * modules/getaddrinfo-tests: Likewise.
36311         * modules/hmac-md5-tests: Likewise.
36312         * modules/hmac-sha1-tests: Likewise.
36313         * modules/linked-list-tests: Likewise.
36314         * modules/linkedhash-list-tests: Likewise.
36315         * modules/lock-tests: Likewise.
36316         * modules/md2-tests: Likewise.
36317         * modules/md4-tests: Likewise.
36318         * modules/md5-tests: Likewise.
36319         * modules/rbtree-list-tests: Likewise.
36320         * modules/rbtree-oset-tests: Likewise.
36321         * modules/rbtreehash-list-tests: Likewise.
36322         * modules/read-file-tests: Likewise.
36323         * modules/rijndael-tests: Likewise.
36324         * modules/stdint-tests: Likewise.
36325         * modules/tls-tests: Likewise.
36326
36327 2007-02-24  Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36330         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36331         function; instead check whether isnan with a double argument links.
36332         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36333         function; instead check whether isnan with a 'long double' argument
36334         links.
36335         Reported by Eric Blake <ebb9@byu.net>.
36336
36337 2007-02-24  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36340         defined.
36341         * lib/isnanl.c: Remove all code. Just include isnan.c.
36342         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36343
36344 2007-02-25  Jim Meyering  <jim@meyering.net>
36345
36346         Avoid conflicting types for 'unsetenv' on FreeBSD.
36347         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36348         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36349         in stdlib.h.
36350
36351 2007-02-24  Bruno Haible  <bruno@clisp.org>
36352
36353         * modules/isnanl-nolibm-tests: New file.
36354         * tests/test-isnanl.c: New file.
36355
36356         * modules/isnanl-nolibm: New file.
36357         * lib/isnanl.h: New file.
36358         * lib/isnanl.c: New file.
36359         * m4/isnanl.m4: New file.
36360
36361 2007-02-24  Bruno Haible  <bruno@clisp.org>
36362
36363         * modules/isnan-nolibm-tests: New file.
36364         * tests/test-isnan.c: New file.
36365
36366         * modules/isnan-nolibm: New file.
36367         * lib/isnan.h: New file.
36368         * lib/isnan.c: New file.
36369         * m4/isnan.m4: New file.
36370
36371 2007-02-24  Bruno Haible  <bruno@clisp.org>
36372
36373         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36374         assume that an exponent fits in 20 bits.
36375
36376 2007-02-24  Jim Meyering  <jim@meyering.net>
36377
36378         * m4/regex.m4: Update the description of the configure-time option,
36379         --without-included-regex, to state accurately what the defaults are,
36380         and perhaps to give people an idea why using this option is risky.
36381
36382 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36383
36384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36385         loops on small arguments.  This attempts to avoid the problem
36386         Bruno Haible reported for AIX 4.3.2 in
36387         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36388
36389 2007-02-23  Bruno Haible  <bruno@clisp.org>
36390
36391         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36392         Needed for help2man.
36393
36394 2007-02-23  Karl Berry  <karl@gnu.org>
36395
36396         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36397         exists, foo.h should be cvs-ignored, not committed.
36398
36399 2007-02-23  Eric Blake  <ebb9@byu.net>
36400
36401         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36402         * lib/stat-time.h (includes): Likewise.
36403         * lib/utimecmp.c (includes): Likewise.
36404         * lib/utimens.h (includes): Likewise.
36405         * lib/getdate.y (includes): Also include "timespec.h" for use
36406         internal to the module.
36407         * modules/utimens (Depends-on): Revert yesterday's patch.
36408         * modules/nanosleep (Depends-on): Add missing dependency.
36409
36410 2007-02-22  Bruno Haible  <bruno@clisp.org>
36411
36412         * lib/glob.c: Don't include getlogin_r.h.
36413
36414 2007-02-22  Jim Meyering  <jim@meyering.net>
36415
36416         * modules/utimens (Depends-on): Add timespec, required for
36417         utimens.h's inclusion of timespec.h.
36418
36419 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36420
36421         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36422         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36423         Schwab in
36424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36425         I'll try to think of a better way to fix the Solaris problem.
36426
36427         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36428         like glibc; on Solaris 10, it fails with errno == EINVAL.
36429         POSIX says the behavior is unspecified if the first argument is NULL,
36430         so play it safe and never pass NULL to the system getcwd.
36431
36432 2007-02-21  Jim Meyering  <jim@meyering.net>
36433
36434         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36435         of gettimeofday.  It would conflict with the one now always
36436         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36437         an IRIX 6.5 build failure.
36438
36439 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36440
36441         Minor fixups to port to Solaris 10 with Sun C 5.8.
36442         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36443         * modules/getcwd (Depends-on): Add dirfd.
36444         * lib/putenv.c (putenv): #undef it.
36445         (rpl_putenv): New decl.
36446         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36447
36448 2007-02-20  Bruno Haible  <bruno@clisp.org>
36449
36450         * modules/stdio-tests: New file.
36451         * tests/test-stdio.c: New file.
36452
36453         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36454         (Depends-on): Add stdio.
36455         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36456         (Include): Use <stdio.h> instead of vsnprintf.h.
36457         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36458         HAVE_DECL_VSNPRINTF.
36459         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36460
36461         * modules/snprintf (Files): Remove lib/snprintf.h.
36462         (Depends-on): Add stdio.
36463         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36464         (Include): Use <stdio.h> instead of snprintf.h.
36465         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36466         HAVE_DECL_SNPRINTF.
36467         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36468         * lib/getaddrinfo.c: Likewise.
36469
36470         * modules/stdio: New file.
36471         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36472         * lib/snprintf.h: Remove file.
36473         * lib/vsnprintf.h: Remove file.
36474         * lib/.cppi-disable: Remove snprintf.h.
36475         * m4/stdio_h.m4: New file.
36476         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36477
36478 2007-02-20  Jim Meyering  <jim@meyering.net>
36479
36480         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36481         used by e.g., mingw.  From Bruno Haible.
36482
36483 2007-02-19  Bruno Haible  <bruno@clisp.org>
36484
36485         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36486         warnings.
36487         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36488
36489 2007-02-19  Bruno Haible  <bruno@clisp.org>
36490
36491         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36492         from mingw users.
36493
36494 2007-02-19  Bruno Haible  <bruno@clisp.org>
36495
36496         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36497         warnings.
36498         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36499
36500 2007-02-19  Jim Meyering  <jim@meyering.net>
36501
36502         Don't use FD after a successful "fdopendir (fd)".
36503         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36504         Reset it by calling dirfd on the just-obtained DIR*.
36505
36506         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36507         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36508
36509 2007-02-18  Bruno Haible  <bruno@clisp.org>
36510
36511         * lib/readlink.c: Include <unistd.h>.
36512         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36513         HAVE_READLINK.
36514         * modules/readlink (Depends-on): Add unistd.
36515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36516         (Include): Add <unistd.h>.
36517
36518         * lib/getlogin_r.h: Remove file.
36519         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36520         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36521         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36522         HAVE_DECL_GETLOGIN_R.
36523         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36525         (Include): Use <unistd.h> instead of getlogin_r.h.
36526
36527         * lib/getcwd.h: Remove file.
36528         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36529         * lib/xgetcwd.c: Likewise.
36530         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36531         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36532         * modules/getcwd (Files): Remove lib/getcwd.h.
36533         (Depends-on): Add unistd.
36534         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36535         (Include): Use <unistd.h> instad of getcwd.h.
36536
36537         * lib/ftruncate.c: Include <unistd.h> first.
36538         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36539         Set HAVE_FTRUNCATE.
36540         * modules/ftruncate (Depends-on): Add unistd.
36541         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36542
36543         * lib/fchdir.c: Include <unistd.h> first.
36544         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36545         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36546         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36547         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36548         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36549
36550         * lib/dup2.c: Include <unistd.h> first.
36551         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36552         HAVE_DUP2.
36553         * modules/dup2 (Depends-on): Add unistd.
36554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36555
36556         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36557         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36558         REPLACE_CHOWN. Don't define chown as a macro here.
36559         * modules/chown (Depends-on): Add unistd.
36560         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36561
36562         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36563         Add definition for GL_LINK_WARNING.
36564         (chown, dup2): New declarations.
36565         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36566         link warning.
36567         (ftruncate): New declaration.
36568         (getcwd): New declaration, taken from old getcwd.h.
36569         (getlogin_r): New declaration, taken from old getlogin_r.h.
36570         (readlink): New declaration.
36571         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36572         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36573         (gl_PREREQ_UNISTD): Remove macro.
36574         (gl_UNISTD_MODULE_INDICATOR): New macro.
36575         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36576         many new variables. Don't set UNISTD_H.
36577         * modules/unistd (Description): Change.
36578         (Depends-on): Add link-warning.
36579         (configure.ac): Update.
36580         (Makefile.am): Create unistd.h always. Substitute many new variables
36581         into it.
36582
36583 2007-02-18  Bruno Haible  <bruno@clisp.org>
36584
36585         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36586         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36587         HAVE_GETSUBOPT.
36588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36589         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36590         * lib/getsubopt.h: Remove file.
36591         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36592         (Depends-on): Add stdlib.
36593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36594         (Includes): Use <stdlib.h> instead of getsubopt.h.
36595         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36596         Set HAVE_GETSUBOPT.
36597         * lib/getsubopt.c: Don't include getsubopt.h.
36598
36599 2007-02-18  Bruno Haible  <bruno@clisp.org>
36600
36601         * modules/fchdir (Depends-on): Add dup2.
36602
36603 2007-02-18  Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/stdlib_.h: Handle glibc's special invocation convention
36606         specially.
36607
36608 2007-02-18  Bruno Haible  <bruno@clisp.org>
36609
36610         * modules/stdlib-tests: New file.
36611         * tests/test-stdlib.c: New file.
36612
36613         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36614         (Depends-on): Add stdlib.
36615         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36616         (Includes): Use <stdlib.h> instead of mkstemp.h.
36617         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36618         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36619         * lib/mkstemp.c: Don't include mkstemp.h.
36620         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36621         * lib/stdlib--.h: Don't include mkstemp.h.
36622
36623         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36624         (Depends-on): Add stdlib.
36625         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36626         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36627         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36628         HAVE_MKDTEMP.
36629         * lib/mkdtemp.c: Don't include mkdtemp.h.
36630         * lib/clean-temp.c: Don't include mkdtemp.h.
36631
36632         * modules/exit (Files): Remove lib/exit.h.
36633         (Depends-on): Add stdlib.
36634         (Makefile.am): Remove lib_SOURCES.
36635         (Include): Use <stdlib.h> instead of exit.h.
36636         * lib/argmatch.c: Don't include exit.h.
36637         * lib/execute.c: Likewise.
36638         * lib/pagealign_alloc.c: Likewise.
36639         * lib/pipe.c: Likewise.
36640         * lib/wait-process.c: Likewise.
36641         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36642         * lib/exitfail.c: Likewise.
36643         * lib/savewd.c: Likewise.
36644         * lib/xsetenv.c: Likewise.
36645
36646         * modules/stdlib: New file.
36647         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36648         and extra comments about mkstemp().
36649         * lib/exit.h: Remove file.
36650         * lib/mkdtemp.h: Remove file.
36651         * lib/mkstemp.h: Remove file.
36652         * m4/stdlib_h.m4: New file.
36653         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36654
36655 2007-02-18  Bruno Haible  <bruno@clisp.org>
36656
36657         * modules/math-tests: New file.
36658         * tests/test-math.c: New file.
36659
36660         * modules/math: New file.
36661         * modules/mathl (Files): Remove lib/mathl.h.
36662         (Depends-on): Add math.
36663         (Makefile.am): Don't mention mathl.h.
36664         (Include): Use <math.h> instead of mathl.h.
36665         * lib/math_.h: New file.
36666         * lib/mathl.h: Remove file.
36667         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36668         mathl.h.
36669         * lib/asinl.c: Likewise.
36670         * lib/atanl.c: Likewise.
36671         * lib/ceill.c: Likewise.
36672         * lib/cosl.c: Likewise.
36673         * lib/expl.c: Likewise.
36674         * lib/floorl.c: Likewise.
36675         * lib/frexpl.c: Likewise.
36676         * lib/ldexpl.c: Likewise.
36677         * lib/logl.c: Likewise.
36678         * lib/sincosl.c: Likewise.
36679         * lib/sinl.c: Likewise.
36680         * lib/sqrtl.c: Likewise.
36681         * lib/tanl.c: Likewise.
36682         * lib/trigl.c: Likewise.
36683         * m4/math_h.m4: New file.
36684         * MODULES.html.sh (Mathematics): Add math.
36685
36686 2007-02-17  Bruno Haible  <bruno@clisp.org>
36687
36688         * modules/wctype-tests: New file.
36689         * tests/test-wctype.c: New file.
36690
36691         * modules/wchar-tests: New file.
36692         * tests/test-wchar.c: New file.
36693
36694         * modules/unistd-tests: New file.
36695         * tests/test-unistd.c: New file.
36696
36697         * modules/time-tests: New file.
36698         * tests/test-time.c: New file.
36699
36700         * modules/sysexits-tests: New file.
36701         * tests/test-sysexits.c: New file.
36702
36703         * modules/sys_time-tests: New file.
36704         * tests/test-sys_time.c: New file.
36705
36706         * modules/sys_stat-tests: New file.
36707         * tests/test-sys_stat.c: New file.
36708
36709         * modules/sys_socket-tests: New file.
36710         * tests/test-sys_socket.c: New file.
36711
36712         * modules/sys_select-tests: New file.
36713         * tests/test-sys_select.c: New file.
36714
36715         * modules/string-tests: New file.
36716         * tests/test-string.c: New file.
36717
36718         * modules/stdbool-tests: New file.
36719         * tests/test-stdbool.c: New file.
36720
36721         * modules/netinet_in-tests: New file.
36722         * tests/test-netinet_in.c: New file.
36723
36724         * modules/inttypes-tests: New file.
36725         * tests/test-inttypes.c: New file.
36726
36727         * modules/fcntl-tests: New file.
36728         * tests/test-fcntl.c: New file.
36729
36730         * modules/byteswap-tests: New file.
36731         * tests/test-byteswap.c: New file.
36732
36733         * modules/arpa_inet-tests: New file.
36734         * tests/test-arpa_inet.c: New file.
36735
36736 2007-02-17  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36739         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36740         if the corresponding module is not enabled. Emit link warnings if
36741         the function is used nevertheless.
36742         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36743         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36744         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36745         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36746         * modules/inttypes (Depends-on): Add link-warning.
36747         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36748         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36749         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36750         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36751         * modules/imaxdiv (configure.ac): Likewise.
36752         * modules/strtoimax (configure.ac): Likewise.
36753         * modules/strtoumax (configure.ac): Likewise.
36754
36755 2007-02-17  Bruno Haible  <bruno@clisp.org>
36756
36757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36758         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36759         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36760         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36761
36762 2007-02-17  Bruno Haible  <bruno@clisp.org>
36763
36764         * modules/link-warning: New file.
36765         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36766         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36767         * modules/string (Depends-on): Add link-warning.
36768         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36769         string.h.
36770         * MODULES.html.sh (Support for building libraries and executables): Add
36771         link-warning.
36772
36773 2007-02-17  Bruno Haible  <bruno@clisp.org>
36774
36775         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36776         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36777         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36778         long lines.
36779
36780 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36781             Bruno Haible  <bruno@clisp.org>
36782
36783         * modules/tmpfile: New file.
36784         * lib/tmpfile.c: New file.
36785         * m4/tmpfile.m4: New file.
36786         * MODULES.html.sh (func_all_modules): New section "Input/output".
36787
36788 2007-02-15  Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36791         (supports_delete_on_close): New function.
36792         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36793
36794 2007-02-14  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/mbspcasecmp-tests: New file.
36797         * tests/test-mbspcasecmp.sh: New file.
36798         * tests/test-mbspcasecmp.c: New file.
36799
36800         New module mbspcasecmp.
36801         * modules/mbspcasecmp: New file.
36802         * lib/mbspcasecmp.c: New file.
36803         * lib/string_.h (strncasecmp): Change warning message.
36804         (mbspcasecmp): New declaration.
36805         * m4/mbspcasecmp.m4: New file.
36806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36807         GNULIB_MBSPCASECMP.
36808         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36809         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36810
36811 2007-02-14  Bruno Haible  <bruno@clisp.org>
36812
36813         * modules/mbsncasecmp-tests: New file.
36814         * tests/test-mbsncasecmp.sh: New file.
36815         * tests/test-mbsncasecmp.c: New file.
36816
36817         New module mbsncasecmp.
36818         * modules/mbsncasecmp: New file.
36819         * lib/mbsncasecmp.c: New file.
36820         * lib/string_.h (mbsncasecmp): New declaration.
36821         * m4/mbsncasecmp.m4: New file.
36822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36823         GNULIB_MBSNCASECMP.
36824         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36825         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36826
36827 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36828
36829         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36830         Verify that it doesn't overlap with our flags.
36831         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36832         do not have the desired effect in multibyte locales; instead, use
36833         mbscasecmp.
36834         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36835         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36836         we don't require GNU fnmatch ourselves (if our users require it, they
36837         should do so explicitly).
36838
36839         Fix regex code so it doesn't rely on strcasecmp.
36840         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36841         Otherwise, include gnulib's langinfo.h.
36842         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36843         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36844         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36845         * modules/regex (FILES): Remove m4/codeset.m4.
36846         (Depends-on): Add localcharset.  Remove strcase.
36847
36848 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36849
36850         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36851         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36852
36853 2007-02-13  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36857
36858 2007-02-12  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36861         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36862         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36863         time warning rather than a link error.
36864
36865 2007-02-12  Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36868         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36870
36871 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36872
36873         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36874         args, not 2.
36875
36876 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
36877
36878         New module 'time', so that apps can include <time.h> as per
36879         POSIX and GNU instead of separate include files like time_r.h
36880         and timegm.h.  This implementation tries out a simpler approach
36881         for replacing decls in standard include files (as compared to
36882         the string module), somewhat as an experiment.
36883
36884         * config/srclist.txt: Comment out mktime.c for now.
36885         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36886         since it doesn't apply any more.  Use generic wording instead.
36887         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36888         'time'.
36889         * lib/time_.h, m4/time_h.m4, modules/time: New files.
36890         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36891         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36892         Don't include <sys/types.h>; no longer needed since we assume C89.
36893         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36894         * lib/strftime.c: Likewise.
36895         * lib/time_r.c: Likewise.
36896         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36897         * lib/nanosleep.c: Include <time.h> first, to check interface.
36898         * lib/strptime.c: Likewise.
36899         * lib/time_r.c: Likewise.
36900         * lib/timegm.c: Likewise.
36901         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36902         needed.
36903         * lib/timegm.c: Don't include timegm.h; no longer needed.
36904         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36905         time.h now handles any problems in that area.
36906         (struct timespec, nanosleep): Remove; time.h now arranges for these.
36907         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36908         that time.h defines struct timespec.
36909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36910         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
36911         handles that.
36912         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36913         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36914         needed.  Set REPLACE_LOCALTIME.
36915         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36916         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36917         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36918         nanosleep; time_h.m4 now does that.  Don't require
36919         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36920         module handles this now.
36921         * modules/getdate (Depends-on): Remove timespec.  Add time.
36922         * modules/nanosleep (Depends-on): Likewise.
36923         * modules/stat-time (Depends-on): Likewise.
36924         * modules/nanosleep (Include): Include time.h, not timespec.h.
36925         * modules/strptime (Files): Remove lib/strptime.h.
36926         (Depends-on): Add extensions, time.
36927         (Include): Include time.h, not strptime.h.
36928         * modules/time_r (Files): Remove lib/time_r.h.
36929         (Depends-on): Add time.
36930         (Include): Include time.h, not time_r.h.
36931         * modules/timegm: Likewise.
36932         * modules/timespec (Description): Now does timespec-related decls
36933         of our own, instead of struct timespec itself.
36934         (Depends-on): Add time; remove extensions.
36935         (Maintainer): Add self.
36936         * modules/utimecmp (Depends-on): Add time; remove timespec.
36937         * modules/utimens (Depends-on): Likewise.
36938         * modules/xnanosleep (Depends-on): Likewise.
36939
36940 2007-02-11  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/c-strstr.c: Include allocsa.h.
36943         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36944         * lib/c-strcasestr.c: Include allocsa.h.
36945         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36946         * lib/strcasestr.c: Include allocsa.h.
36947         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36948         * lib/mbsstr.c: Include allocsa.h.
36949         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36950         allocsa/freesa instead of malloc/free.
36951         * lib/mbscasestr.c: Include allocsa.h.
36952         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36953         allocsa/freesa instead of malloc/free.
36954         * modules/c-strstr (Depends-on): Add allocsa.
36955         * modules/c-strcasestr (Depends-on): Likewise.
36956         * modules/strcasestr (Depends-on): Likewise.
36957         * modules/mbsstr (Depends-on): Likewise.
36958         * modules/mbscasestr (Depends-on): Likewise.
36959
36960 2007-02-11  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36963
36964         * modules/mbsspn-tests: New file.
36965         * tests/test-mbsspn.sh: New file.
36966         * tests/test-mbsspn.c: New file.
36967
36968 2007-02-11  Bruno Haible  <bruno@clisp.org>
36969
36970         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36971
36972         * modules/mbspbrk-tests: New file.
36973         * tests/test-mbspbrk.sh: New file.
36974         * tests/test-mbspbrk.c: New file.
36975
36976 2007-02-11  Bruno Haible  <bruno@clisp.org>
36977
36978         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36979         unneeded cast.
36980
36981         * modules/mbscspn-tests: New file.
36982         * tests/test-mbscspn.sh: New file.
36983         * tests/test-mbscspn.c: New file.
36984
36985 2007-02-11  Bruno Haible  <bruno@clisp.org>
36986
36987         * modules/mbscasecmp-tests: New file.
36988         * tests/test-mbscasecmp.sh: New file.
36989         * tests/test-mbscasecmp.c: New file.
36990
36991 2007-02-11  Bruno Haible  <bruno@clisp.org>
36992
36993         Ensure O(n) worst-case complexity of mbscasestr.
36994         * lib/mbscasestr.c: Include stdbool.h.
36995         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36996         functions.
36997         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36998         the bookkeeping indicates that it's worth it.
36999         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37000
37001         * modules/mbscasestr-tests: New file.
37002         * tests/test-mbscasestr1.c: New file.
37003         * tests/test-mbscasestr2.sh: New file.
37004         * tests/test-mbscasestr2.c: New file.
37005         * tests/test-mbscasestr3.sh: New file.
37006         * tests/test-mbscasestr3.c: New file.
37007         * tests/test-mbscasestr4.sh: New file.
37008         * tests/test-mbscasestr4.c: New file.
37009         * m4/locale-tr.m4: New file.
37010
37011 2007-02-11  Bruno Haible  <bruno@clisp.org>
37012
37013         Ensure O(n) worst-case complexity of mbsstr.
37014         * lib/mbsstr.c: Include stdbool.h.
37015         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37016         functions.
37017         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37018         bookkeeping indicates that it's worth it.
37019         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37020
37021         * modules/mbsstr-tests: New file.
37022         * tests/test-mbsstr1.c: New file.
37023         * tests/test-mbsstr2.sh: New file.
37024         * tests/test-mbsstr2.c: New file.
37025         * tests/test-mbsstr3.sh: New file.
37026         * tests/test-mbsstr3.c: New file.
37027         * m4/locale-fr.m4: New file.
37028
37029 2007-02-11  Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/mbsrchr.c (mbsrchr): Fix bug.
37032
37033         * modules/mbsrchr-tests: New file.
37034         * tests/test-mbsrchr.sh: New file.
37035         * tests/test-mbsrchr.c: New file.
37036
37037 2007-02-11  Bruno Haible  <bruno@clisp.org>
37038
37039         * lib/mbschr.c (mbschr): Fix bug.
37040
37041         * modules/mbschr-tests: New file.
37042         * tests/test-mbschr.sh: New file.
37043         * tests/test-mbschr.c: New file.
37044         * m4/locale-zh.m4: New file.
37045
37046 2007-02-11  Bruno Haible  <bruno@clisp.org>
37047
37048         Support for copying multibyte string iterators.
37049         * lib/mbiter.h: Include <string.h>.
37050         (mbiter_multi_copy): New function.
37051         (mbi_copy): New macro.
37052         * lib/mbuiter.h: Include <string.h>.
37053         (mbuiter_multi_copy): New function.
37054         (mbui_copy): New macro.
37055
37056 2007-02-11  Bruno Haible  <bruno@clisp.org>
37057
37058         New module mbslen.
37059         * modules/mbslen: New file.
37060         * lib/mbslen.c: New file.
37061         * lib/string_.h (mbslen): New declaration.
37062         * m4/mbslen.m4: New file.
37063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37064         GNULIB_MBSLEN.
37065         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37066         * MODULES.html.sh (Internationalization functions): Add mbslen.
37067
37068 2007-02-11  Bruno Haible  <bruno@clisp.org>
37069
37070         Ensure O(n) worst-case complexity of strcasestr substitute.
37071         * lib/strcasestr.c: Include stdbool.h.
37072         (knuth_morris_pratt): New function.
37073         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37074         bookkeeping indicates that it's worth it.
37075         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37076
37077         * modules/strcasestr-tests: New file.
37078         * tests/test-strcasestr.c: New file.
37079
37080 2007-02-11  Bruno Haible  <bruno@clisp.org>
37081
37082         Ensure O(n) worst-case complexity of c_strcasestr.
37083         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37084         (knuth_morris_pratt): New function.
37085         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37086         the bookkeeping indicates that it's worth it.
37087         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37088
37089         * modules/c-strcasestr-tests: New file.
37090         * tests/test-c-strcasestr.c: New file.
37091
37092 2007-02-11  Bruno Haible  <bruno@clisp.org>
37093
37094         Ensure O(n) worst-case complexity of c_strstr.
37095         * lib/c-strstr.c: Include stdbool.h, string.h.
37096         (knuth_morris_pratt): New function.
37097         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37098         bookkeeping indicates that it's worth it.
37099         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37100
37101         * lib/c-strstr.c: Complete rewrite for maintainability.
37102
37103         * modules/c-strstr-tests: New file.
37104         * tests/test-c-strstr.c: New file.
37105
37106 2007-02-11  Bruno Haible  <bruno@clisp.org>
37107
37108         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37109         5.2.1 and earlier, whereby \055 was treated just like the range
37110         delimiter '-'.
37111         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37112
37113 2007-02-08  Bruno Haible  <bruno@clisp.org>
37114
37115         * modules/regex (Depends-on): Add stdbool.
37116         Reported by Dalibor Topic <robilad@kaffe.org>.
37117
37118 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37119
37120         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37121         Prefer returning from main to exiting from it.
37122         Remove unnecessary parens after sizeof.
37123
37124 2007-02-05  Bruno Haible  <bruno@clisp.org>
37125
37126         New module mbssep.
37127         * modules/mbssep: New file.
37128         * lib/mbssep.c: New file.
37129         * lib/string_.h (strsep): Add a conditional link warning.
37130         (mbssep): New declaration.
37131         * m4/mbssep.m4: New file.
37132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37133         GNULIB_MBSSEP.
37134         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37135         * MODULES.html.sh (Internationalization functions): Add mbssep.
37136
37137 2007-02-05  Bruno Haible  <bruno@clisp.org>
37138
37139         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37140         Optimize search in case of 1 delimiter.
37141
37142 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37143
37144         * lib/acl.h: Include sys/types.h before sys/acl.h.
37145
37146 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37147
37148         Merge upstream fix for glibc bugzilla #3957:
37149
37150         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37151
37152         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37153         bit for RE_HAT_LISTS_NOT_NEWLINE.
37154         (build_charclass_op): Remove bogus comment.
37155
37156 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37157
37158         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37159
37160 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37161
37162         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37163         * lib/memmem.c [!defined _LIBC]: Include config.h.
37164
37165 2007-02-04  Bruno Haible  <bruno@clisp.org>
37166
37167         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37168         warning message.
37169
37170 2007-02-04  Bruno Haible  <bruno@clisp.org>
37171
37172         New module mbstok_r.
37173         * modules/mbstok_r: New file.
37174         * lib/mbstok_r.c: New file.
37175         * lib/string_.h (strtok_r): Change argument names to match the
37176         comments. Add a conditional link warning.
37177         (mbstok_r): New declaration.
37178         * m4/mbstok_r.m4: New file.
37179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37180         GNULIB_MBSTOK_R.
37181         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37182         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37183
37184 2007-02-04  Bruno Haible  <bruno@clisp.org>
37185
37186         New module mbsspn.
37187         * modules/mbsspn: New file.
37188         * lib/mbsspn.c: New file.
37189         * lib/string_.h (strspn): Add a conditional link warning.
37190         (mbsspn): New declaration.
37191         * m4/mbsspn.m4: New file.
37192         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37193         GNULIB_MBSSPN.
37194         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37195         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37196
37197 2007-02-04  Bruno Haible  <bruno@clisp.org>
37198
37199         New module mbspbrk.
37200         * modules/mbspbrk: New file.
37201         * lib/mbspbrk.c: New file.
37202         * lib/string_.h (strpbrk): Add a conditional link warning.
37203         (mbspbrk): New declaration.
37204         * m4/mbspbrk.m4: New file.
37205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37206         GNULIB_MBSPBRK.
37207         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37208         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37209
37210 2007-02-04  Bruno Haible  <bruno@clisp.org>
37211
37212         New module mbscspn.
37213         * modules/mbscspn: New file.
37214         * lib/mbscspn.c: New file.
37215         * lib/string_.h (strcspn): Add a conditional link warning.
37216         (mbscspn): New declaration.
37217         * m4/mbscspn.m4: New file.
37218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37219         GNULIB_MBSCSPN.
37220         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37221         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37222
37223 2007-02-04  Bruno Haible  <bruno@clisp.org>
37224
37225         New module mbscasestr, reduced goal of strcasestr.
37226         * modules/mbscasestr: New file.
37227         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37228         (mbscasestr): Renamed from strcasestr.
37229         * lib/strcasestr.c: Don't include mbuiter.h.
37230         (strcasestr): Remove support for multibyte locales.
37231         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37232         Change the conditional link warning.
37233         (mbscasestr): New declaration.
37234         * m4/mbscasestr.m4: New file.
37235         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37236         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37237         REPLACE_STRCASESTR.
37238         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37240         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37241         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37242         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37243         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37244         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37245         (Depends-on): Remove mbuiter.
37246         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37247
37248 2007-02-04  Bruno Haible  <bruno@clisp.org>
37249
37250         Simplify handling of strncasecmp.
37251         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37252         the conditional link warning.
37253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37254         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37255         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37256         * modules/strcase (configure.ac): Don't invoke
37257         gl_STRING_MODULE_INDICATOR.
37258         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37259
37260 2007-02-04  Bruno Haible  <bruno@clisp.org>
37261
37262         New module mbscasecmp, reduced goal of strcasecmp.
37263         * modules/mbscasecmp: New file.
37264         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37265         (mbscasecmp): Renamed from strcasecmp.
37266         * lib/strcasecmp.c: Don't include mbuiter.h.
37267         (strcasecmp): Remove support for multibyte locales.
37268         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37269         Change the conditional link warning.
37270         (mbscasecmp): New declaration.
37271         * m4/mbscasecmp.m4: New file.
37272         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37273         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37274         REPLACE_STRCASECMP.
37275         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37277         GNULIB_MBSCASECMP.
37278         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37279         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37280         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37281         (Depends-on): Remove mbuiter.
37282         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37283
37284 2007-02-04  Bruno Haible  <bruno@clisp.org>
37285
37286         New module mbsstr. Remove module strstr.
37287         * modules/mbsstr: New file.
37288         * modules/strstr: Remove file.
37289         * lib/mbsstr.c: Renamed from lib/strstr.c.
37290         (mbsstr): Renamed from strstr.
37291         * lib/string_.h (strstr): Remove declaration. Change the conditional
37292         link warning.
37293         (mbsstr): New declaration.
37294         * m4/mbsstr.m4: New file.
37295         * m4/strstr.m4: Remove file.
37296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37297         REPLACE_STRSTR.
37298         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37299         Don't initialize GNULIB_STRSTR.
37300         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37301         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37302         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37303         (Support for systems lacking ANSI C 89): Remove strstr.
37304
37305 2007-02-04  Bruno Haible  <bruno@clisp.org>
37306
37307         New module mbsrchr.
37308         * modules/mbsrchr: New file.
37309         * lib/mbsrchr.c: New file.
37310         * lib/string_.h (strrchr): Add a conditional link warning.
37311         (mbsrchr): New declaration.
37312         * m4/mbsrchr.m4: New file.
37313         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37314         GNULIB_MBSRCHR.
37315         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37316         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37317
37318 2007-02-04  Bruno Haible  <bruno@clisp.org>
37319
37320         New module mbschr.
37321         * modules/mbschr: New file.
37322         * lib/mbschr.c: New file.
37323         * lib/string_.h (strchr): Add a conditional link warning.
37324         (mbschr): New declaration.
37325         * m4/mbschr.m4: New file.
37326         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37327         GNULIB_MBSCHR.
37328         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37329         * MODULES.html.sh (Internationalization functions): Add mbschr.
37330
37331 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37332
37333         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37334
37335         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37336
37337 2007-02-04  Bruno Haible  <bruno@clisp.org>
37338
37339         New module description section 'configure.ac-early'.
37340         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37341         (func_get_autoconf_early_snippet): New function.
37342         (func_import, func_create_testdir): Use it. Remove special cases for
37343         modules 'extensions' and 'lock'.
37344         * modules/extensions (configure.ac-early): Require
37345         gl_USE_SYSTEM_EXTENSIONS.
37346         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37347
37348 2007-02-04  Bruno Haible  <bruno@clisp.org>
37349
37350         Make use of gcj-4.3's -fsource and -ftarget option.
37351         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37352         and if so try the options -fsource and -ftarget.
37353         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37354         source_version, ftarget_option, target_version arguments.
37355         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37356         (is_envjavac_oldgcj_14_14_usable): Renamed from
37357         is_envjavac_gcj_14_14_usable.
37358         (is_envjavac_oldgcj_14_13_usable): Renamed from
37359         is_envjavac_gcj_14_13_usable.
37360         (is_gcj_present): Update.
37361         (is_gcj_43, is_gcj43_usable): New functions.
37362         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37363         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37364         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37365         try the options -fsource and -ftarget.
37366
37367 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37368
37369         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37370         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37371         larger value.
37372
37373 2007-02-03  Jim Meyering  <jim@meyering.net>
37374
37375         Give tools a better chance to allocate space for very large buffers.
37376         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37377
37378         Make pwd and readlink work also when run with an unreadable parent dir
37379         on systems with openat support.
37380         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37381         provided getcwd function, even when we have openat support.
37382         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37383
37384 2007-02-02  Bruno Haible  <bruno@clisp.org>
37385
37386         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37387         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37388         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37389         portability problems if one of these functions is only used on specific
37390         platforms.
37391         Reported by Paul Eggert.
37392
37393 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37394
37395         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37396         is causing more trouble than it's curing.
37397         * lib/regex_internal.h (__mempcpy): Remove.
37398         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37399         (and make the code a tad smaller to boot).
37400         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37401
37402 2007-02-02  Jim Meyering  <jim@meyering.net>
37403
37404         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37405         section, not in the Makefile.am: one.
37406
37407 2007-02-02  Eric Blake  <ebb9@byu.net>
37408
37409         * lib/strchrnul.c: Always include config.h first.
37410
37411         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37412         gnulib strstr is not necessary here.
37413
37414 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37415
37416         * m4/socklen.m4: Fix typo.
37417
37418 2007-02-02  Eric Blake  <ebb9@byu.net>
37419
37420         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37421         * modules/netinet_in (Makefile.am): Likewise.
37422
37423 2007-02-01  Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/string_.h (GL_LINK_WARNING): New macro.
37426         (strcasecmp, strstr, strcasestr): If provided by the system,
37427         conditionally define as a macro that leads to a warning instead of to
37428         an error.
37429         (strncasecmp): Conditionally define as a macro that leads to a warning.
37430
37431 2007-02-01  Karl Berry  <karl@gnu.org>
37432
37433         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37434
37435 2007-02-01  Bruno Haible  <bruno@clisp.org>
37436
37437         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37438         renamings.
37439
37440 2007-02-01  Eric Blake  <ebb9@byu.net>
37441
37442         * modules/regex (Depends-on): Revert dependence on mempcpy.
37443         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37444         module's definition of mempcpy.
37445         Reported by Paul Eggert.
37446
37447 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37448
37449         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37450         the symbol XYZ before redefining it.  This fixes a problem with
37451         programs that don't use XYZ, when compiled on systems that define
37452         XYZ to something else.
37453
37454 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37455
37456         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37457         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37458         writeable to group or other and (2) is intended to have a special
37459         mode bit that is set or cleared.  In such a case, the directory
37460         should be neither group- nor other-writeable until the special
37461         mode bits are right.
37462
37463 2007-01-31  Eric Blake  <ebb9@byu.net>
37464
37465         * modules/mountlist (Depends-on): Add strstr.
37466
37467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37468         bug.
37469         * modules/string (Makefile.am): Remove redundant replacement.
37470         * modules/regex (Depends-on): Add mempcpy.
37471
37472 2007-01-31  Bruno Haible  <bruno@clisp.org>
37473
37474         New module description field 'Link'.
37475         * gnulib-tool (func_usage): Document --extract-link-directive.
37476         (sed_extract_prog): Recognize 'Link' directive.
37477         (func_get_link_directive): New function.
37478         (func_import): Show summary of link directives.
37479         Handle --extract-link-directive option.
37480         * modules/acl (Link): New section.
37481         * modules/clock-time (Link): New section.
37482         * modules/euidaccess (Link): New section.
37483         * modules/gettext (Link): New section.
37484         * modules/iconv (Link): New section.
37485         * modules/lock (Link): New section.
37486         * modules/nanosleep (Link): New section.
37487         * modules/readline (Link): New section.
37488
37489 2007-01-27  Bruno Haible  <bruno@clisp.org>
37490
37491         Enforce the use of gnulib modules for unportable <string.h> functions.
37492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37493         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37494         (gl_HEADER_STRING_H_BODY): Require it.
37495         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37496         the symbol XYZ to one that gives a link error.
37497         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37498         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37499         * modules/mempcpy (configure.ac): Likewise.
37500         * modules/memrchr (configure.ac): Likewise.
37501         * modules/stpcpy (configure.ac): Likewise.
37502         * modules/stpncpy (configure.ac): Likewise.
37503         * modules/strcase (configure.ac): Likewise.
37504         * modules/strcasestr (configure.ac): Likewise.
37505         * modules/strchrnul (configure.ac): Likewise.
37506         * modules/strdup (configure.ac): Likewise.
37507         * modules/strndup (configure.ac): Likewise.
37508         * modules/strnlen (configure.ac): Likewise.
37509         * modules/strpbrk (configure.ac): Likewise.
37510         * modules/strsep (configure.ac): Likewise.
37511         * modules/strstr (configure.ac): Likewise.
37512         * modules/strtok_r (configure.ac): Likewise.
37513
37514 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37515
37516         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37517
37518 2007-01-30  Jim Meyering  <jim@meyering.net>
37519
37520         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37521
37522 2007-01-29  Bruno Haible  <bruno@clisp.org>
37523
37524         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37525         * lib/execute.c: Likewise.
37526         * lib/pipe.c: Likewise.
37527         * lib/printf-args.h: Likewise.
37528         * lib/printf-args.c: Likewise.
37529         * lib/printf-parse.c: Likewise.
37530         * lib/vasnprintf.c: Likewise.
37531
37532 2007-01-29  Eric Blake  <ebb9@byu.net>
37533
37534         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37535         declaration.
37536
37537 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37538
37539         * lib/strptime.h (strptime): Use 'restrict' for args where
37540         POSIX requires this.
37541         * lib/strptime.c (strptime): Likewise.
37542         Change license notice from LGPL to GPL, since gnulib-tool will
37543         change this as needed.
37544         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37545         defined.
37546         Include "strptime.h" first, to check interface.
37547         Do not #undef _LIBC and _NL_CURRENT.
37548         Do not include <stdlib.h>; no longer needed.
37549         Include "time_r.h" and declare ptime_locale_status
37550         only if _LIBC is not defined.
37551         (__P): Remove unused macro.
37552         (match_string): Bring back glibc version, but use it only if _LIBC
37553         is defined.
37554         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37555         Remove unnecessary assertion and abort() call.
37556         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37557         * m4/strptime.m4: Fix serial number comment.
37558         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37559         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37560         (Depends-on): Add time_r.
37561
37562 2007-01-29  Bruno Haible  <bruno@clisp.org>
37563
37564         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37565         strptime.
37566         * modules/strptime (Depends-on): Add stdbool.
37567         * lib/strptime.h: Include <time.h> always. Add comments.
37568
37569 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37570
37571         * modules/strptime: New file.
37572         * lib/strptime.h: New file.
37573         * lib/strptime.c: New file.
37574         * m4/strptime.m4: New file.
37575
37576 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37577
37578         * MODULES.html.sh: New module mpsort.
37579         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37580
37581         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37582         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37584         All uses changed.
37585         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37586         All uses changed.
37587         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37588         to _Restrict_.
37589         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37590         the parameter matches the prototype.
37591
37592 2007-01-28  Jim Meyering  <jim@meyering.net>
37593
37594         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37595         sys/time.h here, reverting that part of the previous patch:
37596         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37597
37598 2007-01-28  Bruno Haible  <bruno@clisp.org>
37599
37600         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37601         value of $(SYS_TIME_H).
37602         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37603         remove it conditionally, too. [added by Jim Meyering]
37604         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37605         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37606         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37607         GETTIMEOFDAY_REPLACEMENT to 1.
37608
37609 2007-01-28  Bruno Haible  <bruno@clisp.org>
37610
37611         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37612         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37614         Set UNISTD_H instead of UNISTD_H2.
37615         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37616
37617 2007-01-28  Bruno Haible  <bruno@clisp.org>
37618
37619         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37620         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37621
37622 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37623
37624         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37625         (func_create_testdir): Ensure C locale for `grep' and `tr'
37626         character ranges.
37627         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37628         ACLOCAL_AMFLAGS parsing state machine.
37629
37630 2007-01-27  Bruno Haible  <bruno@clisp.org>
37631
37632         * modules/unistr/base: Update.
37633
37634 2007-01-27  Bruno Haible  <bruno@clisp.org>
37635
37636         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37637         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37638         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37639         modules/unistr/u32-mbtouc.
37640         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37641         * lib/unistr.h: Update.
37642         * lib/linebreak.c: Update.
37643         * modules/unistr/u32-mbtouc: Renamed from
37644         modules/unistr/u32-mbtouc-safe.
37645         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37646         * lib/unistr.h: Update.
37647         * lib/unistr/u32-to-u8.c: Update.
37648         * lib/unistr/u32-to-u16.c: Update.
37649
37650 2007-01-27  Bruno Haible  <bruno@clisp.org>
37651
37652         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37653         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37654         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37655         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37656         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37657         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37658         modules/unistr/u16-mbtouc.
37659         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37660         * lib/unistr.h: Update.
37661         * lib/linebreak.c: Update.
37662         * modules/linebreak: Update.
37663         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37664         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37665         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37666         * modules/unistr/u16-mbtouc: Renamed from
37667         modules/unistr/u16-mbtouc-safe.
37668         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37669         * lib/unistr.h: Update.
37670         * lib/unistr/u16-to-u8.c: Update.
37671         * modules/unistr/u16-to-u8: Update.
37672         * lib/unistr/u16-to-u32.c: Update.
37673         * modules/unistr/u16-to-u32: Update.
37674
37675 2007-01-27  Bruno Haible  <bruno@clisp.org>
37676
37677         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37678         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37679         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37680         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37681         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37682         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37683         modules/unistr/u8-mbtouc.
37684         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37685         * lib/unistr.h: Update.
37686         * lib/striconveh.c: Update.
37687         * modules/striconveh: Update.
37688         * lib/linebreak.c: Update.
37689         * modules/linebreak: Update.
37690         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37691         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37692         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37693         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37694         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37695         * lib/unistr.h: Update.
37696         * lib/striconveh.c: Update.
37697         * modules/striconveh: Update.
37698         * lib/unistr/u8-to-u16.c: Update.
37699         * modules/unistr/u8-to-u16: Update.
37700         * lib/unistr/u8-to-u32.c: Update.
37701         * modules/unistr/u8-to-u32: Update.
37702
37703 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37704
37705         Sync from Libtool.
37706         * lib/argz.c: Do not include strings.h nor memory.h, include
37707         string.h unconditionally.  Patch by Simon Josefsson.
37708
37709 2007-01-27  Bruno Haible  <bruno@clisp.org>
37710
37711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37712         from gl_HEADER_STRING_H_BODY.
37713         (gl_HEADER_STRING_H_BODY): Require it.
37714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37715         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37716         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37717         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37719         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37721         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37722         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37724         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37725         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37726         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37727         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37728         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37729
37730 2007-01-27  Bruno Haible  <bruno@clisp.org>
37731
37732         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37733         check_PROGRAMS into noinst_PROGRAMS.
37734         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37735         check_PROGRAMS in this case.
37736         (func_import): Set for_test to false.
37737         (func_create_testdir): Set for_test to true.
37738
37739 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37740             Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37743         (Depends-on): Add string.
37744         (Includes): Use <string.h> instead of strcasestr.h.
37745         * modules/string (Makefile.am): Also substitute the value of
37746         REPLACE_STRCASESTR.
37747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37748         assume strcasestr is declared in <string.h> not <strings.h>. Also
37749         set REPLACE_STRCASESTR.
37750         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37751         REPLACE_STRCASESTR.
37752         * lib/strcasestr.h: Remove file.
37753         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37754         * lib/string_.h (strcasestr): New declaration.
37755
37756 2007-01-27  Bruno Haible  <bruno@clisp.org>
37757
37758         * lib/string_.h: Use 'extern'.
37759
37760 2007-01-27  Jim Meyering  <jim@meyering.net>
37761
37762         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37763         of set-but-not-used local, "q".
37764
37765         * lib/mempcpy.c: Include <config.h> before <string.h>.
37766         This fixes a compilation error on HP-UX, due to the system's
37767         "restrict"-using mempcpy prototype.
37768
37769 2007-01-26  Bruno Haible  <bruno@clisp.org>
37770
37771         Small optimization.
37772         * lib/javacomp.c: Include c-strstr.h.
37773          (is_envjavac_gcj): Use c_strstr instead of strstr.
37774         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37775
37776 2007-01-26  Bruno Haible  <bruno@clisp.org>
37777
37778         * MODULES.html.sh (Unicode string functions): Add the new modules.
37779
37780         * modules/uniconv/u32-strconv-to-locale: New file.
37781         * lib/uniconv/u32-strconv-to-locale.c: New file.
37782
37783         * modules/uniconv/u16-strconv-to-locale: New file.
37784         * lib/uniconv/u16-strconv-to-locale.c: New file.
37785
37786         * modules/uniconv/u8-strconv-to-locale: New file.
37787         * lib/uniconv/u8-strconv-to-locale.c: New file.
37788
37789         * modules/uniconv/u32-strconv-from-locale: New file.
37790         * lib/uniconv/u32-strconv-from-locale.c: New file.
37791
37792         * modules/uniconv/u16-strconv-from-locale: New file.
37793         * lib/uniconv/u16-strconv-from-locale.c: New file.
37794
37795         * modules/uniconv/u8-strconv-from-locale: New file.
37796         * lib/uniconv/u8-strconv-from-locale.c: New file.
37797
37798         * modules/uniconv/u32-strconv-to-enc: New file.
37799         * lib/uniconv/u32-strconv-to-enc.c: New file.
37800         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37801         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37802
37803         * modules/uniconv/u16-strconv-to-enc: New file.
37804         * lib/uniconv/u16-strconv-to-enc.c: New file.
37805         * lib/uniconv/u-strconv-to-enc.h: New file.
37806         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37807         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37808
37809         * modules/uniconv/u8-strconv-to-enc: New file.
37810         * lib/uniconv/u8-strconv-to-enc.c: New file.
37811         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37812         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37813
37814         * modules/uniconv/u32-strconv-from-enc: New file.
37815         * lib/uniconv/u32-strconv-from-enc.c: New file.
37816         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37817         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37818
37819         * modules/uniconv/u16-strconv-from-enc: New file.
37820         * lib/uniconv/u16-strconv-from-enc.c: New file.
37821         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37822         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37823
37824         * modules/uniconv/u8-strconv-from-enc: New file.
37825         * lib/uniconv/u8-strconv-from-enc.c: New file.
37826         * lib/uniconv/u-strconv-from-enc.h: New file.
37827         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37828         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37829
37830         * modules/uniconv/u32-conv-from-enc: New file.
37831         * lib/uniconv/u32-conv-from-enc.c: New file.
37832         * modules/uniconv/u32-conv-from-enc-tests: New file.
37833         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37834
37835         * modules/uniconv/u16-conv-from-enc: New file.
37836         * lib/uniconv/u16-conv-from-enc.c: New file.
37837         * lib/uniconv/u-conv-from-enc.h: New file.
37838         * modules/uniconv/u16-conv-from-enc-tests: New file.
37839         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37840
37841         * modules/uniconv/u8-conv-from-enc: New file.
37842         * lib/uniconv/u8-conv-from-enc.c: New file.
37843         * modules/uniconv/u8-conv-from-enc-tests: New file.
37844         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37845
37846         * modules/uniconv/base: New file.
37847         * lib/uniconv.h: New file.
37848
37849 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37850
37851         * doc/gnulib-tool.texi (Initial import): Update to match current
37852         behavior with strdup module.
37853         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37854         * lib/memmem.h: Remove; all uses removed.  This is now done
37855         by <string.h>.
37856         * lib/mempcpy.h: Likewise.
37857         * lib/memrchr.h: Likewise.
37858         * lib/stpcpy.h: Likewise.
37859         * lib/stpncpy.h: Likewise.
37860         * lib/strcase.h: Likewise.
37861         * lib/strchrnul.h: Likewise.
37862         * lib/strdup.h: Likewise.
37863         * lib/strndup.h: Likewise.
37864         * lib/strnlen.h: Likewise.
37865         * lib/strpbrk.h: Likewise.
37866         * lib/strsep.h: Likewise.
37867         * lib/strstr.h: Likewise.
37868         * lib/strtok_r.h: Likewise.
37869         * lib/string_.h: New file.
37870         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37871         Rely on <string.h> instead.
37872         * lib/canon-host.c: Likewise.
37873         * lib/chdir-long.c: Likewise.
37874         * lib/concatpath.c: Likewise.
37875         * lib/exclude.c: Likewise.
37876         * lib/fchdir.c: Likewise.
37877         * lib/getaddrinfo.c: Likewise.
37878         * lib/getcwd.c: Likewise.
37879         * lib/getsubopt.c: Likewise.
37880         * lib/glob.c: Likewise.
37881         * lib/hard-locale.c: Likewise.
37882         * lib/iconvme.c: Likewise.
37883         * lib/javacomp.c: Likewise.
37884         * lib/mempcpy.c: Likewise.
37885         * lib/memrchr.c: Likewise.
37886         * lib/regex_internal.h: Likewise.
37887         * lib/stpncpy.c: Likewise.
37888         * lib/strcasecmp.c: Likewise.
37889         * lib/strchrnul.c: Likewise.
37890         * lib/strdup.c: Likewise.
37891         * lib/striconv.c: Likewise.
37892         * lib/striconveh.c: Likewise.
37893         * lib/striconveha.c: Likewise.
37894         * lib/strncasecmp.c: Likewise.
37895         * lib/strndup.c: Likewise.
37896         * lib/strnlen.c: Likewise.
37897         * lib/strsep.c: Likewise.
37898         * lib/strstr.c: Likewise.
37899         * lib/strtok_r.c: Likewise.
37900         * lib/userspec.c: Likewise.
37901         * lib/w32spawn.h: Likewise.
37902         * lib/xstrndup.c: Likewise.
37903         * lib/mountlist.c (strstr): Remove decl.
37904         * m4/string_h.m4: New file.
37905         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37906         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37908         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37909         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37910         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37911         Set REPLACE_STRCASECMP if necessary.
37912         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37913         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37914         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37915         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37916         HAVE_DECL_STRDUP if necessary.
37917         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37918         since gl_FUNC_STRNDUP does that now.
37919         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37920         Check for decl here...
37921         (gl_PREREQ_STRNLEN): ... not here.
37922         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37923         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37924         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37925         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37926         necessary.
37927         * modules/string: New file.
37928         * modules/memmem (Files): Remove special-purpose include file.
37929         (Depends-on): Add string.
37930         (Include): Include <string.h>, not the removed file.
37931         * modules/mempcpy: Likewise.
37932         * modules/memrchr: Likewise.
37933         * modules/stpcpy: Likewise.
37934         * modules/stpncpy: Likewise.
37935         * modules/strcase: Likewise.
37936         * modules/strchrnul: Likewise.
37937         * modules/strdup: Likewise.
37938         * modules/strndup: Likewise.
37939         * modules/strnlen: Likewise.
37940         * modules/strpbrk: Likewise.
37941         * modules/strsep: Likewise.
37942         * modules/strstr: Likewise.
37943         * modules/strtok_r: Likewise.
37944         * tests/test-dirname.c: Don't include "strdup.h", since
37945         <string.h> now suffices.
37946         * tests/test-memmem.c: Don't include "memmem.h", since
37947         <string.h> now suffices.
37948
37949 2007-01-25  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37952         *resultp is 0.
37953
37954         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37955         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37956         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37957         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37958
37959         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37960         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37961         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37962         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37963         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37964         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37965
37966 2007-01-24  Bruno Haible  <bruno@clisp.org>
37967
37968         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37969         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37970         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37971         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37972         gl_FUNC_FTS_CORE.
37973         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37974         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37975         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37976         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37977         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37978         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37979         gl_FUNC_FCHOWNAT.
37980         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37981         gl_FUNC_STRFTIME.
37982         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37983         Reported by Ralf Wildenhues.
37984
37985 2007-01-24  Bruno Haible  <bruno@clisp.org>
37986
37987         Drop AC_REQUIRE calls that are redundant with the module dependencies.
37988         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37989         gl_GETADDRINFO.
37990         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37991         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37992         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37993
37994 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
37995
37996         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37997         Don't use 'exit'; just return from 'main'.
37998         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37999
38000         * lib/fnmatch_.h: Readjust white space and comments to match
38001         glibc, to avoid spurious diffs.
38002
38003 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38004
38005         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38006         2004-12-01 change by Jakub Jelinek, since this code won't compile
38007         if !LIBC.  Problem reported by Bob Proulx.
38008
38009 2007-01-23  Bruno Haible  <bruno@clisp.org>
38010
38011         * lib/striconveh.c: Include c-strcaseeq.h.
38012         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38013         * modules/striconveh (Depends-on): Add c-strcaseeq.
38014
38015 2007-01-23  Bruno Haible  <bruno@clisp.org>
38016
38017         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38018
38019         * modules/c-strcaseeq: New file.
38020         * lib/c-strcaseeq.h: New file.
38021
38022         * modules/streq: New file.
38023         * lib/streq.h: New file.
38024
38025 2007-01-23  Bruno Haible  <bruno@clisp.org>
38026
38027         * modules/striconveha-tests: New file.
38028         * tests/test-striconveha.c: New file.
38029
38030         * lib/striconveha.h: Include <stdbool.h>.
38031         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38032         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38033         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38034         (mem_iconveha): New function.
38035         (str_iconveha_notranslit): Renamed from str_iconveha.
38036         (str_iconveha): New function.
38037         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38038         c-strcase.
38039
38040 2007-01-23  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38043         encodings without forgiving before trying any encoding with handler.
38044         (str_iconveha): Try all encodings without forgiving before trying any
38045         encoding with handler.
38046
38047 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38048
38049         Import the following changes from libc.
38050
38051         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38052
38053         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38054
38055         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38056
38057         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38058         normal_bracket label.
38059
38060         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38061
38062         [BZ #361]
38063         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38064         to normal_bracket after fetching the next character.
38065
38066 2007-01-22  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38069         argument.
38070         * lib/striconveh.c (iconv_carefully_1): New function.
38071         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38072         argument.
38073         (str_cd_iconveh): Update.
38074         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38075         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38076         * tests/test-striconveh.c (MAGIC): New macro.
38077         (new_offsets): New function.
38078         (main): Test call with and without offsets.
38079
38080 2007-01-22  Bruno Haible  <bruno@clisp.org>
38081
38082         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38083         * modules/sys_select (Makefile.am): Likewise.
38084         * modules/sys_socket (Makefile.am): Likewise.
38085         * modules/sys_time (Makefile.am): Likewise.
38086
38087 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38088
38089         * modules/gettimeofday (License): Change from GPL to LGPL, since
38090         gettimeofday is a library function.
38091
38092 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38093
38094         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38095
38096 2007-01-21  Bruno Haible  <bruno@clisp.org>
38097
38098         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38099
38100 2007-01-21  Bruno Haible  <bruno@clisp.org>
38101
38102         * modules/striconveha: New file.
38103         * lib/striconveha.h: New file.
38104         * lib/striconveha.c: New file.
38105         * MODULES.html.sh (Internationalization functions): Add striconveha.
38106         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38107         string.
38108         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38109
38110 2007-01-21  Bruno Haible  <bruno@clisp.org>
38111
38112         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38113         * lib/striconveh.c (str_iconveh): Likewise.
38114
38115 2007-01-21  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/striconveh.h (mem_iconveh): New declaration.
38118         * lib/striconveh.c (mem_iconveh): New function.
38119         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38120
38121 2007-01-21  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38124
38125         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38126         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38127         original result buffer.
38128         (str_cd_iconveh): Update.
38129         * tests/test-striconveh.c (main): Update.
38130
38131         * lib/striconv.h (mem_cd_iconv): Change specification.
38132         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38133         result buffer.
38134         (str_cd_iconv): Update.
38135         * tests/test-striconv.c (main): Update.
38136
38137 2007-01-21  Bruno Haible  <bruno@clisp.org>
38138
38139         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38140
38141 2007-01-20  Jim Meyering  <jim@meyering.net>
38142
38143         * lib/userspec.c (parse_with_separator): If a user or group string
38144         starts with "+", skip the corresponding name-to-ID look-up, since
38145         such a look-up must fail: user and group names may not include "+".
38146
38147 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38148
38149         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38150         since we now assume the sys_time module.
38151         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38152         check for sys/time.h; no longer needed.
38153         * modules/poll (Depends-on): Depend on sys_time.
38154
38155 2007-01-18  Bruno Haible  <bruno@clisp.org>
38156
38157         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38158         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38159
38160         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38161         gettimeofday.
38162
38163         * tests/test-gettimeofday.c: Include <time.h>.
38164         (dummy): Remove variable.
38165
38166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38167         gl_HEADER_SYS_TIME_H.
38168         (gl_HEADER_SYS_TIME_H): New macro.
38169
38170         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38171         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38172         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38173         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38174         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38175         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38176         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38177         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38178         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38179         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38180         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38181
38182         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38183         last change; it caused a compilation error when cross-compiling to
38184         Cygwin.
38185
38186 2007-01-18  Jim Meyering  <jim@meyering.net>
38187
38188         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38189         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38190         than the race-prone "test -d sys || mkdir sys".
38191         (configure.ac): Use AC_PROG_MKDIR_P.
38192         * modules/sys_select: Likewise.
38193         * modules/sys_socket: Likewise.
38194         * modules/sys_time: Likewise.
38195
38196 2007-01-18  Eric Blake  <ebb9@byu.net>
38197
38198         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38199         replace gettimeofday.
38200         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38201         name, to avoid infinite recursion.
38202
38203 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38204
38205         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38206         module sys_time.
38207         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38208         assume timespec.h defines struct timeval.
38209         * lib/settime.c: Likewise.
38210         * lib/utimens.c: Likewise.
38211         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38212         since we now assume the gettimeofday module.
38213         * lib/tempname.c (__gen_tempname): Likewise.
38214         * lib/gettimeofday.h: Remove.
38215         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38216         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38217         Include <time.h>, for 'time()'.
38218         (localtime_buffer_addr): Also use this workaround if
38219         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38220         to simplify the uses.  All uses changed.
38221         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38222         that #undef is inside {}, and 'const' follows type name consistently.
38223         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38224         (gettimeofday): Do not use the maximum possible value for
38225         tv->tv_usec, since that might break usages other than ls.c.
38226         Instead, we'll leave ls.c alone.  This undoes today's patch
38227         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38228         we've never observed the problem but might as well keep the
38229         canary.
38230         * lib/nanosleep.c: Include timespec.h first, for interface check.
38231         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38232         now assume the sys_time module.
38233         * lib/tempname.c: Likewise.
38234         * lib/timespec.h: Likewise.
38235         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38236         needed.
38237         * lib/strftime.c: Likewise.
38238         * lib/timespec.h: Likewise.
38239         * lib/posixtm.c: Include posixtm.h first, for interface check.
38240         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38241         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38242         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38243         * lib/sys_time_.h: New file.
38244         * lib/timespec.h (struct timespec): Use long int, not long.
38245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38246         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38247         Remove obsolescent call to AC_HEADER_TIME.
38248         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38249         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38250         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38251         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38252         Likewise.
38253         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38254         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38255         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38256         into the sys_time module.  Check for gettimeofday just once.
38257         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38258         for gettimeofday signature to just check the signature.  Merely
38259         compile it, since linking doesn't test signature.  Improve test for
38260         whether gettimeofday.o is actually needed.
38261         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38262         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38263         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38264         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38265         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38266         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38267         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38268         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38269         than worrying about sys/time.h.
38270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38271         Don't bother worrying about TIME_WITH_SYS_TIME.
38272         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38273         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38274         * m4/sys_time_h.m4: New file.
38275         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38276         Don't include sys/time.h.  Return from main rather than exiting.
38277         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38278         all uses changed.
38279         * modules/gethrxtime (Depends-on): Add sys_time.
38280         * modules/gettime (Depends-on): Likewise.
38281         * modules/gettimeofday (Depends-on): Likewise.
38282         * modules/nanosleep (Depends-on): Likewise.
38283         * modules/settime (Depends-on): Likewise.
38284         * modules/tempname (Depends-on): Likewise.
38285         * modules/utimens (Depends-on): Likewise.
38286         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38287         (Include:) Change back to <sys/time.h>.
38288         (Maintainer:) Add self.
38289         * modules/sys_time: New file.
38290         * modules/tempname (Depends-on): Add gettimeofday.
38291         * tests/test-gettimeofday.c: Include <sys/time.h>
38292         rather than gettimeofday.h.
38293
38294 2007-01-17  Bruno Haible  <bruno@clisp.org>
38295
38296         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38297         the license default to GPL.
38298         (func_create_testdir): Don't complain if a module is LGPL and its
38299         tests module depends on GPLed modules.
38300
38301 2007-01-17  Bruno Haible  <bruno@clisp.org>
38302
38303         * lib/gettimeofday.c (gettimeofday): Add code for the case
38304         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38305         maximum possible value for tv->tv_usec, rather than the minimum one.
38306
38307 2005-10-08  Martin Lambers  <marlam@marlam.de>
38308 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38309 2007-01-16  Bruno Haible  <bruno@clisp.org>
38310
38311         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38312         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38313         gl_FUNC_GETTIMEOFDAY.
38314         (Include): Add gettimeofday.h.
38315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38316         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38317         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38318         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38319         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38320         * lib/gettimeofday.h: New file.
38321         * lib/gettimeofday.c: Include <sys/timeb.h>.
38322         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38323         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38324         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38325         fall back on time().
38326
38327         * tests/test-gettimeofday.c: New file.
38328         * modules/gettimeofday-tests: New file.
38329
38330 2007-01-16  Eric Blake  <ebb9@byu.net>
38331
38332         * modules/fnmatch (Depends-on): Depend on wchar.
38333         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38334         * m4/fnmatch.m4: Likewise.
38335         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38336         * m4/mbchar.m4: Likewise.
38337         * modules/mbswidth (Depends-on): Depend on wchar.
38338         * lib/mbswidth.c: Assume <wchar.h>.
38339         * m4/mbswidth.m4: Likewise.
38340         * modules/quotearg (Depends-on): Depend on wchar.
38341         * lib/quotearg.c: Assume <wchar.h>.
38342         * m4/quotearg.m4: Likewise.
38343         * modules/regex (Depends-on): Depend on wchar.
38344         * lib/regex_internal.h: Assume <wchar.h>.
38345         * m4/regex.m4: Likewise.
38346         * modules/stdint (Depends-on): Depend on wchar.
38347         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38348         * m4/stdint.m4: Likewise.
38349         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38350         * modules/strftime (Depends-on): Depend on wchar.
38351         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38352         * modules/strtol (Depends-on): Depend on wchar.
38353         * lib/strtol.c: Assume <wchar.h>.
38354         * modules/wcwidth (Depends-on): Depend on wchar.
38355         * lib/wcwidth.h: Assume <wchar.h>.
38356         * m4/wcwidth.m4: Likewise.
38357
38358 2007-01-16  Bruno Haible  <bruno@clisp.org>
38359
38360         * modules/csharpexec-script: New, created from...
38361         * modules/csharpexec: ... this.
38362
38363 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38364
38365         * modules/javaexec-script: New, created from...
38366         * modules/javaexec: ... this.
38367
38368 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38369
38370         * modules/poll (Dependencies): Add sys_select.
38371
38372 2007-01-15  Jim Meyering  <jim@meyering.net>
38373
38374         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38375         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38376         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38377         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38378
38379 2007-01-15  Bruno Haible  <bruno@clisp.org>
38380
38381         * modules/striconveh: New file.
38382         * lib/striconveh.h: New file.
38383         * lib/striconveh.c: New file.
38384         * MODULES.html.sh (Internationalization functions): Add striconveh.
38385
38386         * modules/striconveh-tests: New file.
38387         * tests/test-striconveh.c: New file.
38388
38389 2007-01-15  Bruno Haible  <bruno@clisp.org>
38390
38391         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38392         not from GNU libiconv or GNU libc.
38393
38394 2007-01-15  Bruno Haible  <bruno@clisp.org>
38395
38396         * doc/gnulib-intro.texi (Copyright): Explain the different license
38397         terms for module descriptions, autoconf macros, tests, documentation.
38398
38399 2007-01-14  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/striconv-tests: New file.
38402         * tests/test-striconv.c: New file.
38403
38404 2007-01-14  Bruno Haible  <bruno@clisp.org>
38405
38406         * modules/iconv-tests: New file.
38407         * tests/test-iconv.c: New file.
38408
38409 2007-01-14  Bruno Haible  <bruno@clisp.org>
38410
38411         * gnulib-tool (func_get_license): For test modules, use the license of
38412         the main module.
38413
38414 2007-01-14  Bruno Haible  <bruno@clisp.org>
38415
38416         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38417         if iconv is found to exist.
38418
38419 2007-01-14  Bruno Haible  <bruno@clisp.org>
38420
38421         * modules/c-ctype-tests: New file.
38422         * tests/test-c-ctype.c: New file.
38423
38424 2007-01-14  Bruno Haible  <bruno@clisp.org>
38425
38426         * modules/binary-io-tests: New file.
38427         * tests/test-binary-io.sh: New file.
38428         * tests/test-binary-io.c: New file.
38429
38430 2007-01-14  Bruno Haible  <bruno@clisp.org>
38431
38432         * modules/array-oset-tests: New file.
38433         * tests/test-array_oset.c: New file.
38434
38435 2007-01-14  Bruno Haible  <bruno@clisp.org>
38436
38437         * modules/array-list-tests: New file.
38438         * tests/test-array_list.c: New file.
38439
38440 2007-01-14  Bruno Haible  <bruno@clisp.org>
38441
38442         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38443         and make.
38444         Reported by Simon Josefsson in
38445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38446
38447 2007-01-14  Bruno Haible  <bruno@clisp.org>
38448
38449         * modules/allocsa-tests: New file.
38450         * tests/test-allocsa.c: New file.
38451
38452 2007-01-14  Bruno Haible  <bruno@clisp.org>
38453
38454         * modules/fchdir (Depends-on): Add absolute-header.
38455         * modules/unistd (Depends-on): Likewise.
38456
38457 2006-12-30  Bruno Haible  <bruno@clisp.org>
38458
38459         * modules/fchdir: New file.
38460         * modules/unistd (Files): Add lib/unistd_.h.
38461         (Makefile.am): Generate unistd.h from unistd_.h.
38462         * lib/fchdir.c: New file.
38463         * lib/dirent_.h: New file.
38464         * lib/unistd_.h: New file.
38465         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38466         * m4/fchdir.m4: New file.
38467         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38468         (gl_HEADER_UNISTD): Invoke it.
38469         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38470         function.
38471         * lib/backupfile.c (opendir, closedir): Undefine.
38472         * lib/chown.c (open, close): Undefine.
38473         * lib/clean-temp.c (open, close): Undefine.
38474         * lib/copy-file.c (open, close): Undefine.
38475         * lib/execute.c (open, close): Undefine.
38476         * lib/fsusage.c (open, close): Undefine.
38477         * lib/gc-gnulib.c (open, close): Undefine.
38478         * lib/getcwd.c (opendir, closedir): Undefine.
38479         * lib/glob.c (opendir, closedir): Undefine.
38480         * lib/javacomp.c (open, close): Undefine.
38481         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38482         * lib/openat-proc.c (open, close): Undefine.
38483         * lib/pagealign_alloc.c (open, close): Undefine.
38484         * lib/pipe.c (open, close): Undefine.
38485         * lib/progreloc.c (open, close): Undefine.
38486         * lib/savedir.c (opendir, closedir): Undefine.
38487         * lib/utime.c (open, close): Undefine.
38488         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38489
38490 2007-01-10  Bruno Haible  <bruno@clisp.org>
38491
38492         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38493
38494 2007-01-12  Eric Blake  <ebb9@byu.net>
38495
38496         Provide a robust <wchar.h>.  Further simplifications are now
38497         possible in other modules, but not included here.
38498         * modules/wchar: New module.
38499         * m4/wchar.m4: New file.
38500         * lib/wchar_.h: Likewise.
38501         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38502         of the new module.
38503         * MODULES.html.sh (Extended multibyte and wide character utilities):
38504         New section.
38505
38506 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38507
38508         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38509         to a reasonable default for memory allocation.
38510         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38511         file system that reports garbage st_size values for symlinks.
38512         Problem reported by Liyang Hu.
38513
38514 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38515
38516         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38517         Emacs .#* auto-save files).
38518
38519 2007-01-11  Bruno Haible  <bruno@clisp.org>
38520
38521         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38522         directory.
38523
38524 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38525
38526         Use @...@ consistently in lib/wctype_.h.
38527         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38528         on it being set to 1 or 0.
38529         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38530         go back to AC_SUBSTing it.
38531         * modules/wctype (Makefile.am): Undo previous change.
38532
38533 2007-01-10  Eric Blake  <ebb9@byu.net>
38534
38535         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38536         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38537         * modules/wctype (Makefile.am): Likewise.
38538         Reported by Chris McGuire.
38539
38540 2007-01-10  Jim Meyering  <jim@meyering.net>
38541
38542         fts.c: a small readability/maintainability improvement
38543         * lib/fts.c (fts_read): Make this code slightly more readable and
38544         maintainable by hoisting the "sp->fts_cur = p" assignments to
38545         immediately follow the statements that set P.  Derived from
38546         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38547
38548 2007-01-10  Eric Blake  <ebb9@byu.net>
38549
38550         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38551         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38553         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38554         Reported by Chris McGuire.
38555
38556 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38557
38558         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38559         in sed script.
38560
38561 2007-01-09  Bruno Haible  <bruno@clisp.org>
38562
38563         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38564         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38565         variables.
38566         (func_module): Use them.
38567
38568 2007-01-09  Bruno Haible  <bruno@clisp.org>
38569
38570         * modules/unistr/base: New file.
38571         * lib/unistr.h: New file.
38572
38573         * modules/unistr/u8-to-u16: New file.
38574         * lib/unistr/u8-to-u16.c: New file.
38575
38576         * modules/unistr/u8-to-u32: New file.
38577         * lib/unistr/u8-to-u32.c: New file.
38578
38579         * modules/unistr/u16-to-u8: New file.
38580         * lib/unistr/u16-to-u8.c: New file.
38581
38582         * modules/unistr/u16-to-u32: New file.
38583         * lib/unistr/u16-to-u32.c: New file.
38584
38585         * modules/unistr/u32-to-u8: New file.
38586         * lib/unistr/u32-to-u8.c: New file.
38587
38588         * modules/unistr/u32-to-u16: New file.
38589         * lib/unistr/u32-to-u16.c: New file.
38590
38591         * modules/unistr/u8-check: New file.
38592         * modules/unistr/u16-check: New file.
38593         * modules/unistr/u32-check: New file.
38594         * lib/unistr/u8-check.c: New file.
38595         * lib/unistr/u16-check.c: New file.
38596         * lib/unistr/u32-check.c: New file.
38597
38598         * modules/unistr/u8-chr: New file.
38599         * modules/unistr/u16-chr: New file.
38600         * modules/unistr/u32-chr: New file.
38601         * lib/unistr/u8-chr.c: New file.
38602         * lib/unistr/u16-chr.c: New file.
38603         * lib/unistr/u32-chr.c: New file.
38604
38605         * modules/unistr/u8-cmp: New file.
38606         * modules/unistr/u16-cmp: New file.
38607         * modules/unistr/u32-cmp: New file.
38608         * lib/unistr/u8-cmp.c: New file.
38609         * lib/unistr/u16-cmp.c: New file.
38610         * lib/unistr/u32-cmp.c: New file.
38611
38612         * modules/unistr/u8-cpy: New file.
38613         * modules/unistr/u16-cpy: New file.
38614         * modules/unistr/u32-cpy: New file.
38615         * lib/unistr/u8-cpy.c: New file.
38616         * lib/unistr/u16-cpy.c: New file.
38617         * lib/unistr/u32-cpy.c: New file.
38618         * lib/unistr/u-cpy.h: New file.
38619
38620         * modules/unistr/u8-cpy-alloc: New file.
38621         * modules/unistr/u16-cpy-alloc: New file.
38622         * modules/unistr/u32-cpy-alloc: New file.
38623         * lib/unistr/u8-cpy-alloc.c: New file.
38624         * lib/unistr/u16-cpy-alloc.c: New file.
38625         * lib/unistr/u32-cpy-alloc.c: New file.
38626         * lib/unistr/u-cpy-alloc.h: New file.
38627
38628         * modules/unistr/u8-endswith: New file.
38629         * modules/unistr/u16-endswith: New file.
38630         * modules/unistr/u32-endswith: New file.
38631         * lib/unistr/u8-endswith.c: New file.
38632         * lib/unistr/u16-endswith.c: New file.
38633         * lib/unistr/u32-endswith.c: New file.
38634         * lib/unistr/u-endswith.h: New file.
38635
38636         * modules/unistr/u8-mblen: New file.
38637         * modules/unistr/u16-mblen: New file.
38638         * modules/unistr/u32-mblen: New file.
38639         * lib/unistr/u8-mblen.c: New file.
38640         * lib/unistr/u16-mblen.c: New file.
38641         * lib/unistr/u32-mblen.c: New file.
38642
38643         * modules/unistr/u8-mbtouc: New file.
38644         * modules/unistr/u16-mbtouc: New file.
38645         * modules/unistr/u32-mbtouc: New file.
38646         * lib/unistr/u8-mbtouc.c: New file.
38647         * lib/unistr/u16-mbtouc.c: New file.
38648         * lib/unistr/u32-mbtouc.c: New file.
38649
38650         * modules/unistr/u8-mbtouc-safe: New file.
38651         * modules/unistr/u16-mbtouc-safe: New file.
38652         * modules/unistr/u32-mbtouc-safe: New file.
38653         * lib/unistr/u8-mbtouc-safe.c: New file.
38654         * lib/unistr/u16-mbtouc-safe.c: New file.
38655         * lib/unistr/u32-mbtouc-safe.c: New file.
38656
38657         * modules/unistr/u8-move: New file.
38658         * modules/unistr/u16-move: New file.
38659         * modules/unistr/u32-move: New file.
38660         * lib/unistr/u8-move.c: New file.
38661         * lib/unistr/u16-move.c: New file.
38662         * lib/unistr/u32-move.c: New file.
38663         * lib/unistr/u-move.h: New file.
38664
38665         * modules/unistr/u8-next: New file.
38666         * modules/unistr/u16-next: New file.
38667         * modules/unistr/u32-next: New file.
38668         * lib/unistr/u8-next.c: New file.
38669         * lib/unistr/u16-next.c: New file.
38670         * lib/unistr/u32-next.c: New file.
38671
38672         * modules/unistr/u8-prev: New file.
38673         * modules/unistr/u16-prev: New file.
38674         * modules/unistr/u32-prev: New file.
38675         * lib/unistr/u8-prev.c: New file.
38676         * lib/unistr/u16-prev.c: New file.
38677         * lib/unistr/u32-prev.c: New file.
38678
38679         * modules/unistr/u8-set: New file.
38680         * modules/unistr/u16-set: New file.
38681         * modules/unistr/u32-set: New file.
38682         * lib/unistr/u8-set.c: New file.
38683         * lib/unistr/u16-set.c: New file.
38684         * lib/unistr/u32-set.c: New file.
38685         * lib/unistr/u-set.h: New file.
38686
38687         * modules/unistr/u8-startswith: New file.
38688         * modules/unistr/u16-startswith: New file.
38689         * modules/unistr/u32-startswith: New file.
38690         * lib/unistr/u8-startswith.c: New file.
38691         * lib/unistr/u16-startswith.c: New file.
38692         * lib/unistr/u32-startswith.c: New file.
38693         * lib/unistr/u-startswith.h: New file.
38694
38695         * modules/unistr/u8-stpcpy: New file.
38696         * modules/unistr/u16-stpcpy: New file.
38697         * modules/unistr/u32-stpcpy: New file.
38698         * lib/unistr/u8-stpcpy.c: New file.
38699         * lib/unistr/u16-stpcpy.c: New file.
38700         * lib/unistr/u32-stpcpy.c: New file.
38701         * lib/unistr/u-stpcpy.h: New file.
38702
38703         * modules/unistr/u8-stpncpy: New file.
38704         * modules/unistr/u16-stpncpy: New file.
38705         * modules/unistr/u32-stpncpy: New file.
38706         * lib/unistr/u8-stpncpy.c: New file.
38707         * lib/unistr/u16-stpncpy.c: New file.
38708         * lib/unistr/u32-stpncpy.c: New file.
38709         * lib/unistr/u-stpncpy.h: New file.
38710
38711         * modules/unistr/u8-strcat: New file.
38712         * modules/unistr/u16-strcat: New file.
38713         * modules/unistr/u32-strcat: New file.
38714         * lib/unistr/u8-strcat.c: New file.
38715         * lib/unistr/u16-strcat.c: New file.
38716         * lib/unistr/u32-strcat.c: New file.
38717         * lib/unistr/u-strcat.h: New file.
38718
38719         * modules/unistr/u8-strchr: New file.
38720         * modules/unistr/u16-strchr: New file.
38721         * modules/unistr/u32-strchr: New file.
38722         * lib/unistr/u8-strchr.c: New file.
38723         * lib/unistr/u16-strchr.c: New file.
38724         * lib/unistr/u32-strchr.c: New file.
38725
38726         * modules/unistr/u8-strcmp: New file.
38727         * modules/unistr/u16-strcmp: New file.
38728         * modules/unistr/u32-strcmp: New file.
38729         * lib/unistr/u8-strcmp.c: New file.
38730         * lib/unistr/u16-strcmp.c: New file.
38731         * lib/unistr/u32-strcmp.c: New file.
38732
38733         * modules/unistr/u8-strcpy: New file.
38734         * modules/unistr/u16-strcpy: New file.
38735         * modules/unistr/u32-strcpy: New file.
38736         * lib/unistr/u8-strcpy.c: New file.
38737         * lib/unistr/u16-strcpy.c: New file.
38738         * lib/unistr/u32-strcpy.c: New file.
38739         * lib/unistr/u-strcpy.h: New file.
38740
38741         * modules/unistr/u8-strcspn: New file.
38742         * modules/unistr/u16-strcspn: New file.
38743         * modules/unistr/u32-strcspn: New file.
38744         * lib/unistr/u8-strcspn.c: New file.
38745         * lib/unistr/u16-strcspn.c: New file.
38746         * lib/unistr/u32-strcspn.c: New file.
38747         * lib/unistr/u-strcspn.h: New file.
38748
38749         * modules/unistr/u8-strdup: New file.
38750         * modules/unistr/u16-strdup: New file.
38751         * modules/unistr/u32-strdup: New file.
38752         * lib/unistr/u8-strdup.c: New file.
38753         * lib/unistr/u16-strdup.c: New file.
38754         * lib/unistr/u32-strdup.c: New file.
38755         * lib/unistr/u-strdup.h: New file.
38756
38757         * modules/unistr/u8-strlen: New file.
38758         * modules/unistr/u16-strlen: New file.
38759         * modules/unistr/u32-strlen: New file.
38760         * lib/unistr/u8-strlen.c: New file.
38761         * lib/unistr/u16-strlen.c: New file.
38762         * lib/unistr/u32-strlen.c: New file.
38763         * lib/unistr/u-strlen.h: New file.
38764
38765         * modules/unistr/u8-strmblen: New file.
38766         * modules/unistr/u16-strmblen: New file.
38767         * modules/unistr/u32-strmblen: New file.
38768         * lib/unistr/u8-strmblen.c: New file.
38769         * lib/unistr/u16-strmblen.c: New file.
38770         * lib/unistr/u32-strmblen.c: New file.
38771
38772         * modules/unistr/u8-strmbtouc: New file.
38773         * modules/unistr/u16-strmbtouc: New file.
38774         * modules/unistr/u32-strmbtouc: New file.
38775         * lib/unistr/u8-strmbtouc.c: New file.
38776         * lib/unistr/u16-strmbtouc.c: New file.
38777         * lib/unistr/u32-strmbtouc.c: New file.
38778
38779         * modules/unistr/u8-strncat: New file.
38780         * modules/unistr/u16-strncat: New file.
38781         * modules/unistr/u32-strncat: New file.
38782         * lib/unistr/u8-strncat.c: New file.
38783         * lib/unistr/u16-strncat.c: New file.
38784         * lib/unistr/u32-strncat.c: New file.
38785         * lib/unistr/u-strncat.h: New file.
38786
38787         * modules/unistr/u8-strncmp: New file.
38788         * modules/unistr/u16-strncmp: New file.
38789         * modules/unistr/u32-strncmp: New file.
38790         * lib/unistr/u8-strncmp.c: New file.
38791         * lib/unistr/u16-strncmp.c: New file.
38792         * lib/unistr/u32-strncmp.c: New file.
38793
38794         * modules/unistr/u8-strncpy: New file.
38795         * modules/unistr/u16-strncpy: New file.
38796         * modules/unistr/u32-strncpy: New file.
38797         * lib/unistr/u8-strncpy.c: New file.
38798         * lib/unistr/u16-strncpy.c: New file.
38799         * lib/unistr/u32-strncpy.c: New file.
38800         * lib/unistr/u-strncpy.h: New file.
38801
38802         * modules/unistr/u8-strnlen: New file.
38803         * modules/unistr/u16-strnlen: New file.
38804         * modules/unistr/u32-strnlen: New file.
38805         * lib/unistr/u8-strnlen.c: New file.
38806         * lib/unistr/u16-strnlen.c: New file.
38807         * lib/unistr/u32-strnlen.c: New file.
38808         * lib/unistr/u-strnlen.h: New file.
38809
38810         * modules/unistr/u8-strpbrk: New file.
38811         * modules/unistr/u16-strpbrk: New file.
38812         * modules/unistr/u32-strpbrk: New file.
38813         * lib/unistr/u8-strpbrk.c: New file.
38814         * lib/unistr/u16-strpbrk.c: New file.
38815         * lib/unistr/u32-strpbrk.c: New file.
38816         * lib/unistr/u-strpbrk.h: New file.
38817
38818         * modules/unistr/u8-strrchr: New file.
38819         * modules/unistr/u16-strrchr: New file.
38820         * modules/unistr/u32-strrchr: New file.
38821         * lib/unistr/u8-strrchr.c: New file.
38822         * lib/unistr/u16-strrchr.c: New file.
38823         * lib/unistr/u32-strrchr.c: New file.
38824
38825         * modules/unistr/u8-strspn: New file.
38826         * modules/unistr/u16-strspn: New file.
38827         * modules/unistr/u32-strspn: New file.
38828         * lib/unistr/u8-strspn.c: New file.
38829         * lib/unistr/u16-strspn.c: New file.
38830         * lib/unistr/u32-strspn.c: New file.
38831         * lib/unistr/u-strspn.h: New file.
38832
38833         * modules/unistr/u8-strstr: New file.
38834         * modules/unistr/u16-strstr: New file.
38835         * modules/unistr/u32-strstr: New file.
38836         * lib/unistr/u8-strstr.c: New file.
38837         * lib/unistr/u16-strstr.c: New file.
38838         * lib/unistr/u32-strstr.c: New file.
38839         * lib/unistr/u-strstr.h: New file.
38840
38841         * modules/unistr/u8-strtok: New file.
38842         * modules/unistr/u16-strtok: New file.
38843         * modules/unistr/u32-strtok: New file.
38844         * lib/unistr/u8-strtok.c: New file.
38845         * lib/unistr/u16-strtok.c: New file.
38846         * lib/unistr/u32-strtok.c: New file.
38847         * lib/unistr/u-strtok.h: New file.
38848
38849         * modules/unistr/u8-uctomb: New file.
38850         * modules/unistr/u16-uctomb: New file.
38851         * modules/unistr/u32-uctomb: New file.
38852         * lib/unistr/u8-uctomb.c: New file.
38853         * lib/unistr/u16-uctomb.c: New file.
38854         * lib/unistr/u32-uctomb.c: New file.
38855
38856         * MODULES.html.sh (Unicode string functions): Add the new modules.
38857
38858 2007-01-08  Bruno Haible  <bruno@clisp.org>
38859
38860         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38861         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38862         subdirectories.
38863
38864 2007-01-08  Karl Berry  <karl@gnu.org>
38865
38866         * doc/error.texi: mention that main() fns must set program_name
38867         when progname is used.
38868
38869 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
38870
38871         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38872         WCTYPE_H is empty, for the benefit of builds from non-distclean
38873         directories.  Problem reported by Eric Blake in
38874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38875
38876 2007-01-08  Bruno Haible  <bruno@clisp.org>
38877
38878         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38879         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38880         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38881         PROVIDE_CANONICALIZE_FILENAME_MODE.
38882         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38883
38884 2007-01-08  Bruno Haible  <bruno@clisp.org>
38885
38886         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38887         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38888         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38889         * lib/fts.c: Likewise.
38890         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38891
38892 2006-12-25  Bruno Haible  <bruno@clisp.org>
38893
38894         * modules/utf8-ucs4-safe: New file.
38895         * lib/utf8-ucs4-safe.h: New file.
38896         * lib/unistr/utf8-ucs4-safe.c: New file.
38897
38898         * modules/utf16-ucs4-safe: New file.
38899         * lib/utf16-ucs4-safe.h: New file.
38900         * lib/unistr/utf16-ucs4-safe.c: New file.
38901
38902         * MODULES.html.sh (Unicode string functions): Add the new modules.
38903
38904 2007-01-08  Bruno Haible  <bruno@clisp.org>
38905
38906         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38907         (Depends-on): Add unitypes.
38908         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38909         (u8_mbtouc_aux): Move out to separate file.
38910         (u8_mbtouc): Use ucs4_t, uint8_t types.
38911         * lib/unistr/utf8-ucs4.c: New file.
38912
38913         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38914         (Depends-on): Add unitypes.
38915         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38916         (u16_mbtouc_aux): Move out to separate file.
38917         (u16_mbtouc): Use ucs4_t, uint16_t types.
38918         * lib/unistr/utf16-ucs4.c: New file.
38919
38920         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38921         (Depends-on): Add unitypes.
38922         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38923         (u8_uctomb_aux): Move out to separate file.
38924         (u8_uctomb): Use ucs4_t, uint8_t types.
38925         * lib/unistr/ucs4-utf8.c: New file.
38926
38927         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38928         (Depends-on): Add unitypes.
38929         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38930         (u16_uctomb_aux): Move out to separate file.
38931         (u16_uctomb): Use ucs4_t, uint16_t types.
38932         * lib/unistr/ucs4-utf16.c: New file.
38933
38934 2006-12-25  Bruno Haible  <bruno@clisp.org>
38935
38936         * modules/unitypes: New file.
38937         * lib/unitypes.h: New file.
38938         * MODULES.html.sh (func_all_modules): New section "Unicode string
38939         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38940         this section. Add unitypes.
38941
38942 2007-01-08  Bruno Haible  <bruno@clisp.org>
38943
38944         Avoid variable names that conflict with those from libtool.
38945         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38946         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38947         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38948         library_names_spec to acl_library_names_spec, hardcode_* to
38949         acl_hardcode_*.
38950         Reported by Ralf Wildenhues.
38951
38952 2007-01-08  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38955         definition.
38956         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38957         definition.
38958         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38959         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38960         definition.
38961         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38962         definition.
38963         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38964         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38965         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38966         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38967         definition.
38968         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38969         definition.
38970         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38971         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38972         GC_USE_<algorithm>.
38973         * lib/gc-libgcrypt.c: Likewise.
38974         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38975         * modules/gc-arctwo (configure.ac): Likewise.
38976         * modules/gc-des (configure.ac): Likewise.
38977         * modules/gc-hmac-md5 (configure.ac): Likewise.
38978         * modules/gc-hmac-sha1 (configure.ac): Likewise.
38979         * modules/gc-md2 (configure.ac): Likewise.
38980         * modules/gc-md4 (configure.ac): Likewise.
38981         * modules/gc-md5 (configure.ac): Likewise.
38982         * modules/gc-random (configure.ac): Likewise.
38983         * modules/gc-rijndael (configure.ac): Likewise.
38984         * modules/gc-sha1 (configure.ac): Likewise.
38985
38986 2007-01-08  Bruno Haible  <bruno@clisp.org>
38987
38988         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38989         macro definition.
38990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38991         definition.
38992         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38993         definition.
38994         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38995         * modules/fcntl-safer (configure.ac): Likewise.
38996         * modules/fopen-safer (configure.ac): Likewise.
38997         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38998         GNULIB_FWRITEERROR macro definition.
38999
39000 2007-01-08  Bruno Haible  <bruno@clisp.org>
39001
39002         * m4/gnulib-common.m4: New file.
39003         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39004         (func_get_filelist): Add m4/gnulib-common.m4.
39005
39006 2007-01-08  Bruno Haible  <bruno@clisp.org>
39007
39008         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39009         command.
39010
39011 2007-01-08  Jim Meyering  <jim@meyering.net>
39012
39013         Use a more robust test for a "can't happen" condition.
39014         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39015         narrowed the st_size value.  Presuming the "can't happen" condition
39016         is true, that narrowing could conceivably convert an invalid st_size
39017         value into a valid one.  Instead, use a change based on Matthew
39018         Woehlke's original patch.
39019
39020         Slight readability improvement: use an assert-like macro
39021         in place of literal "abort ()" uses.
39022         * lib/fts.c (fts_assert): Define.
39023         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39024         Use this macro instead of a bare 'abort'.
39025
39026 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39027
39028         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39029         simply work around them.
39030         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39031         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39032         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39033         declaring.
39034         Don't bother to define as macros, since the standard doesn't require it.
39035         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39036         longer worry about IRIX 5.3.
39037         (HAVE_WCTYPE_CTMP_BUG): Remove.
39038
39039 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39040
39041         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39042         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39043         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39044         Problems reported by Georg Schwarz for IRIX 5.3.
39045
39046         * gnulib-tool (autoconf_minversion): Take the maximum version number
39047         found, not the minimum.  Problem reported by James Youngman.
39048
39049 2007-01-03  Karl Berry  <karl@gnu.org>
39050
39051         * doc/error.texi: new file, explaining interaction with progname.
39052         * doc/gnulib.texi: include it.  Update copyright.
39053
39054 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39055
39056         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39057         AC_CANONICAL_HOST, to improve autobuild outputs.
39058
39059 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39060             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39061
39062         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39063         sockets, server sockets, and other file descriptors.  Count errors
39064         to compute the return value.  Reorder the code a bit to be easier
39065         to follow.  Don't set event bits that were not requested (except
39066         POLLERR and POLLHUP).
39067
39068 2007-01-01  Bruno Haible  <bruno@clisp.org>
39069
39070         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39071
39072 2007-01-03  Jim Meyering  <jim@meyering.net>
39073
39074         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39075
39076 2007-01-02  Bruno Haible  <bruno@clisp.org>
39077
39078         * modules/settime (Include): Require timespec.h.
39079         * modules/nanosleep (Include): Likewise.
39080
39081 2007-01-01  Bruno Haible  <bruno@clisp.org>
39082
39083         * gnulib-tool (func_emit_copyright_notice): Bump year.
39084         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39085
39086 2007-01-01  Bruno Haible  <bruno@clisp.org>
39087
39088         Improve support for OpenBSD.
39089         * build-aux/config.rpath (libname_spec): Export.
39090         (library_names_spec): New variable. Export.
39091         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39092         library_names_spec from the config.rpath output. Locate shared library
39093         through the name pattern in library_names_spec.
39094
39095 2007-01-01  Eric Blake  <ebb9@byu.net>
39096
39097         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39098
39099 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39100
39101         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39102         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39103         assume the C locale, and avoid an "eval" that could cause trouble.
39104         Problem with SORT reported by Bob Proulx.
39105
39106         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39107         Define.  Trivial patch from Henning Nielsen Lund, originally
39108         sent to bug-grep@gnu.org today.
39109
39110 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39111
39112         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39113         struct stat.  Problem reported by Henning Nielsen Lund.
39114         * lib/acl.c: Include acl.h first, to check interface.  Don't
39115         bother to include sys/types.h and sys/stat.h again.
39116
39117 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39118
39119         Import the following change from libc; problem reported by
39120         Sven Verdoolaege.
39121
39122         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39123
39124         [BZ #1373]
39125         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39126
39127 2006-12-28  Jim Meyering  <jim@meyering.net>
39128
39129         * build-aux/announce-gen: Do not assume that the package
39130         builds any of tar.gz, tar.bz2, and .xdelta files.
39131         Suggestion from Simon Josefsson.
39132
39133 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39134
39135         * modules/announce-gen: New file.
39136
39137 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39138
39139         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39140         handles its gotchas now.
39141         * lib/mbswidth.c: Likewise.
39142         * lib/wcwidth.h: Likewise.
39143         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39144         and iswcntrl; the wctype module does this stuff now.
39145         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39147         * modules/mbchar (Depends-on): Add wctype.
39148         * modules/mbswidth (Depends-on): Likewise.
39149         * modules/wcwidth (Depends-on): Likewise.
39150
39151 2006-12-27  Eric Blake  <ebb9@byu.net>
39152
39153         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39154         module uses more than what <wctype.h> is required to provide.
39155
39156 2006-12-26  Eric Blake  <ebb9@byu.net>
39157
39158         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39159
39160 2006-12-26  Eric Blake  <ebb9@byu.net>
39161
39162         * modules/absolute-header: New module.
39163         * modules/fcntl (Depends-on): Depend on it.
39164         * modules/inttypes (Depends-on): Likewise.
39165         * modules/stdint (Depends-on): Likewise.
39166         * modules/sys_stat (Depends-on): Likewise.
39167         * modules/wctype (Depends-on): Likewise.
39168         * MODULES.html.sh (Support for building libraries and
39169         executables): Document it.
39170
39171 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39172
39173         * gnulib-tool (SED): Remove, undoing previous change.
39174         The problem was that it broke coreutils on Solaris, because
39175         "sed --posix" leaked into a makefile.
39176         (sed): New alias, if 'alias' and GNU sed.
39177
39178 2006-12-24  Jim Meyering  <jim@meyering.net>
39179
39180         Work around an fchownat bug in glibc-2.4:
39181         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39182         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39183         in spite of the -P option.
39184         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39185         New macros.
39186         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39187         * modules/openat (Files): Add lib/fchownat.c.
39188         * lib/openat.c (fchownat): Don't define here.  Move to...
39189         * lib/fchownat.c: ...this new file.
39190
39191 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39192
39193         Fix bug reported by Bruno Haible in
39194         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39195         where quotearg.c didn't compile on Mac OS X 10.2 because it
39196         lacks <wchar.h> and wint_t.
39197         * lib/wctype_.h (__wctype_wint_t): New type.
39198         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39199         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39200         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39201         Arg is now of type __wctype_wint_t, not wint_t.
39202         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39203         substitute HAVE_WINT_T.
39204         * modules/wctype (Files): Add m4/wint_t.m4.
39205         (wctype.h): Substitute HAVE_WINT_T.
39206
39207 2006-12-23  Bruno Haible  <bruno@clisp.org>
39208
39209         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39210
39211 2006-12-23  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39214         S_ISLNK.
39215         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39216         mingw.
39217
39218 2006-12-22  Bruno Haible  <bruno@clisp.org>
39219
39220         * lib/copy-file.c: Include acl.h.
39221         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39222         Close the file descriptors only after being done with copy_acl.
39223         * modules/copy-file (Depends-on): Add acl.
39224
39225 2006-12-22  Bruno Haible  <bruno@clisp.org>
39226
39227         * gnulib-tool (SED): New variable.
39228         Use $SED instead of sed everywhere.
39229
39230 2006-12-22  Bruno Haible  <bruno@clisp.org>
39231
39232         * modules/no-c++: New file.
39233         * m4/no-c++.m4: New file.
39234         * MODULES.html.sh (Support for building libraries and executables):
39235         Add no-c++.
39236
39237 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39238
39239         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39240         Include <limits.h>, and use its INT_MAX to rewrite the
39241         j loop so that it does not overflow 'int'.  Problem reported by
39242         Ralf Wildenhues in
39243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39244         Play it safe by shifting left by 1 rather than multiplying by 2,
39245         as GCC is less likely to optimize this away when the value
39246         is signed (when it assumes overflow leads to undefined behavior).
39247         Also, don't assume time_t uses two's complement.
39248
39249 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39250
39251         * MODULES.html.sh: New module wctype.
39252         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39253         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39254         <wctype.h>, since the new wctype module should fix this.
39255         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39256         the wctype module should arrange for it.
39257         * lib/regex_internal.h: Likewise.
39258         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39259         since the wctype module should handle this now.
39260         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39261         * modules/fnmatch (Depends-on): Add wctype.
39262         * modules/quotearg (Depends-on): Likewise.
39263         * modules/regex (Depends-on): Likewise.
39264
39265 2006-12-19  Bruno Haible  <bruno@clisp.org>
39266
39267         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39268         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39269
39270 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39271
39272         * modules/savewd (Depends-on): Fix dependency on fcntl.
39273
39274 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39275
39276         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39277         conforms to C99, rather than relying on the user's environment
39278         setting of STDINT_H.
39279
39280 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39281         and Eric Blake  <ebb9@byu.net>
39282
39283         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39284         This is more consistent with the other defines here.
39285         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39286         Port to z/OS.  Problem reported by Paul Gilmartin.
39287         Change local vars to use gl_ prefix rather than ac_.
39288         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39289         with other defines.
39290         * modules/double-slash-root: New module.
39291         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39292         (Depends-on): Add double-slash-root.
39293         * MODULES.html.sh (File system functions): Mention new module.
39294
39295 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39296
39297         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39298         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39299         This is for the benefit of gzip, which doesn't do i18n.
39300
39301 2006-12-12  Jim Meyering  <jim@meyering.net>
39302
39303         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39304         Reported by Andreas Schwab <schwab@suse.de>.
39305
39306 2006-12-12  Bruno Haible  <bruno@clisp.org>
39307
39308         Merge these changes.
39309         2006-09-05  Bruno Haible  <bruno@clisp.org>
39310         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39311         iconv_alloc succeeded.
39312         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39313         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39314         test for " && dest " at the end - dest is always != NULL there. Call
39315         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39316         with 2xNULL arguments, also to flush the state storage. Handle the
39317         IRIX iconv behaviour. Realloc the final result, to throw away unused
39318         memory.
39319
39320 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39321
39322         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39323         and fchmodat unconditionally, since glibc 2.4 has them.
39324         Problem reported by Arkadiusz Miskiewicz.
39325
39326 2006-12-10  Bruno Haible  <bruno@clisp.org>
39327
39328         * gnulib-tool (func_import): Show the include files only for those
39329         modules that are copied and specified.
39330         Reported by Karl Berry.
39331
39332 2006-12-08  Jim Meyering  <jim@meyering.net>
39333
39334         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39335         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39336
39337         * build-aux/announce-gen: Add two new options, both optional:
39338         --bootstrap-tools=TOOL_LIST
39339               a comma-separated list of tools, e.g.,
39340               autoconf,automake,bison,gnulib
39341         --gnulib-snapshot-date=DATE
39342               if gnulib is in the bootstrap tool list,
39343               then report this as the snapshot date.
39344               If not specified, use the current date/time.
39345               If you specify a date here, be sure it's UTC.
39346
39347 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39348
39349         * tests/test-argp-2.sh: Fix test to match actual output.
39350         (func_compare): Fix sed script to be portable.
39351
39352 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39355         workaround for this case.  It is not autoconfigured now; offhand
39356         it's hard to see how to autoconfigure it.
39357
39358 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39361         a directory that is about to be chowned.  Such a directory's
39362         initial file permissions should permit the owner only and this
39363         should not be changed until after the chown, since the group and
39364         other bits would be incorrect if they granted permission before
39365         the chown.
39366
39367         Fix porting problem for iswctype reported by Georg Schwarz in:
39368         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39369         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39370         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39371         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39372         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39373
39374 2006-12-03  Jim Meyering  <jim@meyering.net>
39375
39376         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39377         p->fts_statp may not yet be defined.
39378         (fts_read): Instead, set it in the caller, once p->fts_statp is
39379         sure to be defined, and corresponds to a top-level directory.
39380         This bug made du -x fail.  Here's the coreutils test case:
39381         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39382         Reported by Mike Frysinger.
39383
39384 2006-12-01  Jim Meyering  <jim@meyering.net>
39385
39386         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39387         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39388         Reported by Simon Josefsson.
39389
39390 2006-11-30  Jim Meyering  <jim@meyering.net>
39391
39392         * m4/warning.m4: Use the all-permissive copyright notice
39393         recommended by RMS (rather than LGPL).
39394         * m4/vararrays.m4: Likewise.
39395         * m4/flexmember.m4: Likewise.
39396
39397 2006-11-29  Bruno Haible  <bruno@clisp.org>
39398
39399         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39400         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39401         using +=.
39402         Reported by Simon Josefsson <simon@josefsson.org>.
39403
39404 2006-11-28  James Youngman <jay@gnu.org>
39405
39406         * README: Advise users that they might find the bug-gnulib@gnu.org
39407         and autotools-announce@gnu.org mailing lists useful.
39408
39409 2006-11-28  Bruno Haible  <bruno@clisp.org>
39410
39411         * m4/ptrdiff_max.m4: Remove file.
39412
39413 2006-11-21  Bruno Haible  <bruno@clisp.org>
39414
39415         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39416         _AC_COMPUTE_INT.
39417         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39418         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39419         _AC_COMPUTE_INT.
39420         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39421         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39422         _AC_COMPUTE_INT.
39423         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39424
39425 2006-11-28  Jim Meyering  <jim@meyering.net>
39426
39427         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39428         warning from "gcc -Wshadow" about shadowing the builtin.
39429
39430 2006-11-27  Bruno Haible  <bruno@clisp.org>
39431
39432         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39433         _AC_COMPUTE_INT.
39434         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39435
39436 2006-11-27  Bruno Haible  <bruno@clisp.org>
39437             Paul Eggert  <eggert@cs.ucla.edu>
39438
39439         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39440
39441 2006-11-26  Bruno Haible  <bruno@clisp.org>
39442
39443         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39444         noinst_LTLIBRARIES.
39445
39446 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39447             Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39450         if compiling with "gcc -ansi".
39451
39452 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39453
39454         Fix some incompatibilities with gcc -ansi -pedantic.
39455         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39456         if compiling pedantically with GCC, unless it's C99 or later.
39457         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39458         it mishandles gcc -ansi -pedantic as well.
39459         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39460         if gcc -pedantic.
39461         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39462         initializers for struct if -pedantic, unless it's C99 or later.
39463
39464 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39465
39466         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39467         Don't close an fd more than once. Identical atimes indicate
39468         success, not failure.
39469
39470 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39471
39472         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39473
39474 2006-11-23  Jim Meyering  <jim@meyering.net>
39475
39476         * build-aux/announce-gen: New file.  From coreutils.
39477
39478 2006-11-22  Jim Meyering  <jim@meyering.net>
39479
39480         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39481         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39482         (fts_read): Use a temporary to narrow the overused st_size member
39483         before using it in a switch statement.  Reported by Matthew Woehlke.
39484
39485         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39486         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39487
39488 2006-11-20  Bruno Haible  <bruno@clisp.org>
39489
39490         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39491         changequote instead of pairs of brackets.
39492         Reported by Andreas Schwab <schwab@suse.de>.
39493
39494 2006-11-21  Jim Meyering  <jim@meyering.net>
39495
39496         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39497         so as to remain compatible with older compilers.
39498         Patch from Michael Deutschmann.
39499
39500 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39501
39502         * MODULES.html.sh (File system functions): Add openat.
39503
39504         * lib/openat.h (rpl_fstatat): New macro, if
39505         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39506         (fstatat): Define to rpl_fstatat under the same conditions,
39507         unless COMPILING_FSTATAT.
39508         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39509         seems to have the bug.
39510         * lib/fstatat.c: New file.
39511         * modules/openat (Files): Add it.
39512
39513 2006-11-20  Bruno Haible  <bruno@clisp.org>
39514
39515         * Makefile: New file.
39516
39517 2006-11-20  Jim Meyering  <jim@meyering.net>
39518
39519         The beginnings of syntax-related checks for gnulib.
39520         * lib/Makefile: New file.
39521         * lib/t-idcache: New script.  Ensure that the two halves of
39522         idcache.c stay in sync.
39523
39524         * lib/idcache.c: Adjust comments in user- and group- portions to
39525         be more accurate, and to be consistent with one another.
39526
39527 2006-11-20  Jim Meyering  <jim@meyering.net>
39528
39529         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39530         continue using the flexible array member (thus, this module performs
39531         half as many malloc calls), with the addition that...
39532         (getgroup, getuser): Consistently record a non-match via an empty
39533         "name" string, and map an empty string match to a NULL return value.
39534         * modules/idcache (Depends-on): Re-add flexmember.
39535
39536         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39537         (getuidbyname, getgroup, getgidbyname): Likewise.
39538
39539         Use cleaner syntax: NULL rather than 0.
39540         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39541
39542 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39543
39544         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39545         It mishandled the case where the group was missing.
39546         Problem reported by Greg Schafer.
39547         * modules/idcache: Likewise.
39548
39549 2006-11-18  Jim Meyering  <jim@meyering.net>
39550
39551         * check-module (%exempt_header): Add exception for some
39552         conditionally-included headers.
39553
39554         * modules/i-ring (Depends-on): Add verify.
39555         (License): Change to LGPL.
39556
39557 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39560         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39561         and inttostr.h.  Use snprintf rather than uinttostr, so that
39562         LGPLed code doesn't depend on GPLed.
39563
39564 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39565
39566         * modules/inline (License): Change from GPL to LGPL.
39567
39568 2006-11-17  Jim Meyering  <jim@meyering.net>
39569
39570         * modules/d-type (License): Switch to LGPL.
39571
39572 2006-11-15  Bruno Haible  <bruno@clisp.org>
39573
39574         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39575
39576 2006-11-15  Eric Blake  <ebb9@byu.net>
39577
39578         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39579         the module dependency.
39580
39581 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39582             Bruno Haible  <bruno@clisp.org>
39583
39584         * gnulib-tool (func_create_testdir): Add license consistency check.
39585
39586 2006-11-15  Eric Blake  <ebb9@byu.net>
39587
39588         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39589         random "(cached)" in configure output.
39590
39591 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39592
39593         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39594         test for conforming inttypes.h is both announced and cached.
39595
39596         * MODULES.html.sh (seen_modules, seen_files): New variables.
39597         (func_module): Rewrite to use a few less gnulib-tool and sed
39598         invocations.  Avoid a couple of quadratic algorithms for ...
39599         (missed_modules, missed_files): ... these, with ...
39600         (func_append, func_tmpdir): ... these new functions, from
39601         gnulib-tool.  Analogously, install traps for cleanup.
39602
39603         * tests/test-gc.c (main): Remove unused variables.
39604         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39605
39606 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39607
39608         * modules/inttostr (License): Change to LGPL.
39609
39610 2006-11-14  Eric Blake  <ebb9@byu.net>
39611
39612         * modules/tempname (License): Change to LGPL.
39613
39614 2006-11-14  Eric Blake  <ebb9@byu.net>
39615
39616         * doc/functions.texi (Function Portability): *printf functions on
39617         Cygwin now understand all POSIX size specifiers.
39618
39619 2006-11-14  Bruno Haible  <bruno@clisp.org>
39620
39621         * modules/c-ctype (License): Change to LGPL.
39622
39623 2006-11-12  Bruno Haible  <bruno@clisp.org>
39624
39625         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39626         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39627         for GNOME libraries, for which the include files are installed in
39628         subdirectories of $prefix/include.
39629
39630 2006-11-12  Bruno Haible  <bruno@clisp.org>
39631
39632         * m4/lib-link.m4: Require at least autoconf-2.54.
39633         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39634         name to underscores for the --with option.
39635
39636 2006-11-13  Bruno Haible  <bruno@clisp.org>
39637
39638         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39639         the tests directory.
39640         Reported by Ralf Wildenhues.
39641
39642 2006-11-13  Bruno Haible  <bruno@clisp.org>
39643
39644         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39645         (func_emit_initmacro_end): Undo the override here.
39646         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39647         Works around the famous automake error in coreutils.
39648
39649 2006-11-13  Eric Blake  <ebb9@byu.net>
39650
39651         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39652         element, not its node.
39653
39654 2006-11-12  Bruno Haible  <bruno@clisp.org>
39655
39656         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39657         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39658
39659 2006-11-12  Bruno Haible  <bruno@clisp.org>
39660
39661         * gnulib-tool: New option --local-symlink.
39662         (func_usage): Document it.
39663         (lsymbolic): New variable.
39664         (func_import, func_create_testdir): If --symlink was not specified,
39665         test whether --local-symlink was specified and the file comes from
39666         the local_gnulib_dir.
39667
39668 2006-11-12  Bruno Haible  <bruno@clisp.org>
39669
39670         * gnulib-tool (func_ln): New function.
39671         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39672
39673 2006-11-12  Bruno Haible  <bruno@clisp.org>
39674
39675         Finish support for source files in subdirectories.
39676         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39677         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39678         AUTOMAKE_OPTIONS.
39679         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39680
39681 2006-11-12  Bruno Haible  <bruno@clisp.org>
39682
39683         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39684         EXTRA_lib_SOURCES augmentation.
39685         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39686
39687 2006-11-12  Jim Meyering  <jim@meyering.net>
39688
39689         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39690         file descriptors.  This also averts a failure on systems with
39691         native openat support when a traversed directory lacks "x" access.
39692         * lib/fts_.h: Include "i-ring.h"
39693         (struct FTS) [fts_fd_ring]: New member.
39694         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39695         (FCHDIR): Add parentheses.
39696         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39697         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39698         When descending, rather than simply closing the previous
39699         fts_cwd_fd value, push that file descriptor onto the ring.
39700         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39701         (fts_open): Initialize the new fd_ring member.
39702         (fts_close): Clear the ring.
39703         (fts_safe_changedir): When possible, use our new fd_ring to skip
39704         the diropen and fstat and dev/ino comparison that would normally
39705         accompany a virtual `chdir ("..")'.
39706
39707         * modules/fts (Depends-on): Add i-ring.
39708         * modules/i-ring: New module.
39709         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39710         * m4/i-ring.m4: New file.
39711
39712 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39713
39714         * gnulib-tool (func_create_testdir): Fix replacement of
39715         `build-aux' in configure.ac.  Run autotools in gltests
39716         subdirectory.
39717         (func_create_testdir, func_create_megatestdir, test): There is
39718         no need for '--force' in most autotool invocations in a new
39719         tree.  Actually fail the whole test if any of the tools, or the
39720         configure or make stages fail.
39721
39722         Sync from Automake.
39723         * build-aux/gnupload: Revert last change.  Add pointer to upload
39724         instructions of the GNU Maintenance Instructions.
39725         Suggestion by Karl Berry.
39726
39727 2006-11-10  Jim Meyering  <jim@meyering.net>
39728
39729         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39730
39731 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39732
39733         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39734         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39735         (bind_textdomain_codeset) [! ENABLE_NLS]:
39736         Evaluate all the arguments.  That way, callers get compatible behavior
39737         if the arguments have side effects.  Also, it avoids some GCC
39738         diagnostics in some cases; Joel E. Denny reported problems when Bison
39739         was configured with --enable-gcc-warnigs.
39740
39741 2006-11-10  Jim Meyering  <jim@meyering.net>
39742
39743         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39744         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39745         account.
39746
39747 2006-11-10  Jim Meyering  <jim@meyering.net>
39748
39749         * modules/inline: New file/module.
39750         * modules/xalloc (Files): Remove m4/inline.m4.
39751         (Depends-on): Add inline, instead.
39752         * modules/oset: Likewise.
39753         * modules/list: Likewise.
39754
39755 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39756
39757         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39758         Problem reported by Matthew Woehlke.
39759
39760 2006-11-09  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/tempname.c (gen_tempname): Remove variant that invokes
39763         __gen_tempname.
39764         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39765         __gen_tempname.
39766
39767 2006-11-08  Bruno Haible  <bruno@clisp.org>
39768
39769         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39770         to 'yes' instead of 'cross-compiling'.
39771
39772 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39773
39774         * lib/quotearg.h (quotearg_free): New decl.
39775         * lib/quotearg.c (quotearg_free): New function.
39776         (slot0, nslots, slotvec0, slotvec):
39777         Now file-scope so that quotearg_free can get at them.
39778
39779 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39780
39781         Sync from Automake.
39782         * build-aux/gnupload: Add missing 'gnu' to example URL.
39783         Report by Karl Berry.
39784
39785 2006-11-08  Bruno Haible  <bruno@clisp.org>
39786
39787         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39788         Suggested by Paul Eggert.
39789
39790 2006-11-08  Jim Meyering  <jim@meyering.net>
39791
39792         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39793         It's already included if !_LIBC.
39794         (fts_safe_changedir): Add a comment.
39795
39796 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39797
39798         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39799         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39800         Matthew Woehlke.
39801
39802         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39803         definitions up, to avoid colliding with change below.
39804         (static_inline) [HAVE_INLINE]: New macro.
39805         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39806         Provide extern decls when !HAVE_INLINE.  Do not define unless
39807         static_inline is defined, either by us or by xmalloc.c.  Use
39808         static_inline rather than static inline.
39809         (XCALLOC): Optimize sizeof(T) = 1 case.
39810         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39811
39812 2006-11-07  Bruno Haible  <bruno@clisp.org>
39813
39814         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39815         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39816         AC_C_INLINE.
39817         * modules/xalloc (Files): Add m4/inline.m4.
39818
39819 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39820
39821         * README: Fix typo.
39822         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39823         (Miscellanous Notes): ...from this.
39824
39825 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39826
39827         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39828         Mention that offsetof should be used instead of sizeof.
39829         From Bruno Haible.
39830
39831 2006-11-07  Bruno Haible  <bruno@clisp.org>
39832
39833         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39834
39835 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39836
39837         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39838         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39839         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39840         (gl_tree_add_before, gl_tree_add_after):
39841         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39842         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39843         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39844         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39845         (gl_linked_add_after, gl_linked_add_at): Likewise.
39846         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39847         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39848         (gl_tree_add_before, gl_tree_add_after): Likewise.
39849         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39850         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39851         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39852
39853 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39854
39855         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39856
39857 2006-11-06  Bruno Haible  <bruno@clisp.org>
39858
39859         * m4/inline.m4: New file.
39860         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39861         * modules/list (Files): Add m4/inline.m4.
39862         * modules/oset (Files): Likewise.
39863
39864 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39865
39866         * lib/idcache.c: Include <stddef.h>, for offsetof.
39867         (struct userid.name): Change from char * to a flexible array member.
39868         All uses changed.
39869         * modules/idcache (Depends-on): Add flexmember.
39870
39871         * MODULES.html.sh (Core language properties): New module flexmember.
39872         * modules/flexmember, m4/flexmember.m4: New files.
39873
39874         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39875         inline functions that are identical with the old xnmalloc_inline,
39876         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
39877         that we can avoid some unnecessary integer multiplications and
39878         divisions in the common case where the element size is known at
39879         compile time.
39880         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39881         needed.
39882         (xnboundedmalloc): Remove.
39883         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39884         arguments, for consistency with rest of this header.
39885         (xcharalloc): Rewrite using XNMALLOC.
39886         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39887         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
39888         versions have been moved to lib/xalloc.h and renamed to be the
39889         non-*_inline versions.
39890         (xmalloc, xrealloc): Implement without reference to the xnmalloc
39891         and xnrealloc functions, since those functions are now inline and
39892         now call us.
39893         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39894         renaming described above.
39895         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39896         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
39897         captures the dependency in AC_C_INLINE.
39898
39899         New module canonicalize-lgpl, proposed by Charles Wilson in
39900         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39901         with a few small changes afterwards.
39902         * MODULES.html.sh (File system functions): New module
39903         canonicalize-lgpl.
39904         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39905         and canonicalize_file_name.
39906         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39907         * modules/canonicalize-lgpl: New files.
39908
39909 2006-11-05  Bruno Haible  <bruno@clisp.org>
39910
39911         * gnulib-tool (func_import, func_create_testdir): Create directories
39912         also for files in subdirectories of lib/.
39913
39914 2006-11-05  Bruno Haible  <bruno@clisp.org>
39915
39916         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39917         ANSI C compliant.
39918
39919 2006-11-03  Bruno Haible  <bruno@clisp.org>
39920
39921         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39922         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39923         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39924         (xnboundedmalloc): New inline function.
39925         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39926         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39927         xmalloc.
39928         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39929         xmalloc.
39930         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39931         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39932         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39933         xmalloc.
39934         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39935         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39936         xmalloc.
39937         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39938         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39939         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39940         xmalloc.
39941         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39942         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39943         gl_tree_add_after): Use XMALLOC instead of xmalloc.
39944         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39945         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39946         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39947         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39948
39949 2006-11-03  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/c-ctype.h [C++]: Define functions without name mangling.
39952         * lib/fwriteerror.h [C++]: Likewise.
39953         * lib/gcd.h [C++]: Likewise.
39954         * lib/linebreak.h [C++]: Likewise.
39955
39956 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39957
39958         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39959         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39960         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39962         Check for functions and headers just once.
39963         Check for declaration of canonicalize_file_name.
39964         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39965
39966 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
39967
39968         * gnulib-tool (func_import): Fix typo in actioncmd.
39969
39970 2006-11-02  Bruno Haible  <bruno@clisp.org>
39971
39972         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39973         newline sequence in the Makefile.am snippet as a space, like "make"
39974         does.
39975         Reported by Roger Persson <perrog@gmail.com>.
39976
39977 2006-11-01  Bruno Haible  <bruno@clisp.org>
39978
39979         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39980         already declared in <string.h>.
39981         * lib/strcase.h (strncasecmp): Don't declare it if yes.
39982
39983 2006-11-01  Bruno Haible  <bruno@clisp.org>
39984
39985         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39986         * lib/strcase.h: Include <string.h>.
39987         (strcasecmp): Define to rpl_strcasecmp here.
39988
39989 2006-11-01  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39992
39993 2006-11-01  Eric Blake  <ebb9@byu.net>
39994
39995         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39996
39997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39998
39999 2006-10-29  Bruno Haible  <bruno@clisp.org>
40000
40001         Make it compile in C++ mode.
40002         * lib/full-write.c (full_rw): Add a cast.
40003
40004 2006-11-01  Bruno Haible  <bruno@clisp.org>
40005
40006         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40007         be POSIX compliant.
40008         Reported by Roger Persson <perrog@gmail.com>.
40009
40010 2006-11-01  Eric Blake  <ebb9@byu.net>
40011
40012         * lib/getopt_.h: Fix comments.
40013
40014 2006-10-31  Eric Blake  <ebb9@byu.net>
40015
40016         * modules/tmpdir (Depends-on): Add sys_stat.
40017         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40018         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40019         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40020         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40021         tempname.
40022
40023 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40024
40025         Avoid some C++ diagnostics reported by Bruno Haible.
40026         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40027         xmalloc.
40028         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40029         (struct slotvec): Move to top level.
40030         (quotearg_n_options): Rewrite to avoid xmalloc.
40031         * lib/xalloc.h (xcharalloc): New function.
40032         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40033         [defined __cplusplus]: Add function template that provides result
40034         type propagation.  This part of the change is from Bruno Haible.
40035
40036 2006-10-29  Bruno Haible  <bruno@clisp.org>
40037
40038         Make it compile in C++ mode.
40039         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40040         * lib/strnlen1.c (strnlen1): Cast memchr result.
40041         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40042         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40043         (create_temp_dir): Rename local variable 'template'.
40044         (compile_csharp_using_sscli): Add cast.
40045         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40046         * lib/findprog.c (find_in_path): Likewise.
40047         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40048         * lib/wait-process.c (register_slave_subprocess): Likewise.
40049
40050 2006-10-22  Bruno Haible  <bruno@clisp.org>
40051
40052         * modules/tsearch: New file.
40053         * lib/tsearch.h: New file.
40054         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40055         * m4/tsearch.m4: New file.
40056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40057
40058 2006-10-29  Eric Blake  <ebb9@byu.net>
40059
40060         * lib/arcfour.c: Assume config.h.
40061         * lib/arctwo.c: Likewise.
40062         * lib/base64.c: Likewise.
40063         * lib/check-version.c: Likewise.
40064         * lib/crc.c: Likewise.
40065         * lib/des.c: Likewise.
40066         * lib/gc-gnulib.c: Likewise.
40067         * lib/gc-libgcrypt.c: Likewise.
40068         * lib/gc-pbkdf2-sha1.c: Likewise.
40069         * lib/getaddrinfo.c: Likewise.
40070         * lib/getdelim.c: Likewise.
40071         * lib/getline.c: Likewise.
40072         * lib/hmac-md5.c: Likewise.
40073         * lib/hmac-sha1.c: Likewise.
40074         * lib/iconvme.c: Likewise.
40075         * lib/md2.c: Likewise.
40076         * lib/md4.c: Likewise.
40077         * lib/memxor.c: Likewise.
40078         * lib/read-file.c: Likewise.
40079         * lib/readline.c: Likewise.
40080         * lib/rijndael-alg-fst.c: Likewise.
40081         * lib/rijndael-api-fst.c: Likewise.
40082         * lib/xgetdomainname.c: Likewise.
40083
40084 2006-10-28  Eric Blake  <ebb9@byu.net>
40085
40086         * lib/xstrndup.c: Assume config.h.
40087
40088 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40089
40090         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40091         stat-macros.h is now for our own macros, whereas stat_h is for
40092         macros in the <sys/stat.h> name space.
40093         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40094         (STAT_MACROS_H): Remove.
40095         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40096         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40097         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40098         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40099         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40100         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40101         Move these macros to ...
40102         * lib/stat_.h: here.  Don't include stat-macros.h.
40103         * lib/canonicalize.c: Don't include stat-macros.h.
40104         * lib/chown.c: Likewise.
40105         * lib/euidaccess.c: Likewise.
40106         * lib/file-type.c: Likewise.
40107         * lib/filemode.c: Likewise.
40108         * lib/glob.c: Likewise.
40109         * lib/isapipe.c: Likewise.
40110         * lib/lchown.c: Likewise.
40111         * lib/lstat.c: Likewise.
40112         * lib/mkdir-p.c: Likewise.
40113         * lib/rmdir.c: Likewise.
40114         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40116         unless mkdir isn't declared, to speed up 'configure'.
40117         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40118         would define all the S_* symbols.
40119         * modules/canonicalize (Depends-on):
40120         Depend on sys_stat, not stat-macros.
40121         * modules/chown: Likewise.
40122         * modules/euidaccess: Likewise.
40123         * modules/filemode: Likewise.
40124         * modules/file-type: Likewise.
40125         * modules/glob: Likewise.
40126         * modules/isapipe: Likewise.
40127         * modules/lchown: Likewise.
40128         * modules/lstat: Likewise.
40129         * modules/mkancesdirs: Likewise.
40130         * modules/rmdir: Likewise.
40131         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40132         * modules/modechange: Likewise.
40133         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40134         (configure.ac): Remove gl_STAT_MACROS.
40135         * modules/sys_stat (Depends-on): Remove stat-macros.
40136
40137 2006-10-27  Bruno Haible  <bruno@clisp.org>
40138
40139         * m4/signed.m4: Remove file.
40140         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40141         invocation.
40142         * modules/vasnprintf (Files): Remove m4/signed.m4.
40143
40144 2006-10-27  Bruno Haible  <bruno@clisp.org>
40145
40146         Update to GNU gettext 0.16.
40147         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40148         m4/inttypes-h.m4, m4/signed.m4.
40149         * m4/gettext.m4: Update to GNU gettext 0.16.
40150         * m4/intl.m4: New file, from GNU gettext.
40151         * m4/intldir.m4: New file, from GNU gettext.
40152         * config/srclist.txt: Update
40153
40154 2006-10-27  Eric Blake  <ebb9@byu.net>
40155
40156         * MODULES.html.sh: Document tempname.
40157         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40158         dependencies.
40159         (Files): Move lib/tempname.c...
40160         * modules/tempname: ...to this new module.
40161         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40162         (gl_PREREQ_TEMPNAME): Move...
40163         * m4/tempname.m4: ...to this new file.
40164         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40165         * modules/sys_stat (Depends-on): Add stat-macros.
40166         * lib/stat_.h (includes): Pick up stat macros.
40167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40168         if stat macros are broken.
40169         * lib/tempname.c (includes): No need to include "stat-macros.h".
40170         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40171         (direxists, __path_search) [!_LIBC]: Don't compile these in
40172         gnulib; the tmpdir module covers that.
40173         * lib/tempname.h: New file.
40174
40175 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40176
40177         * COPYING: Explain how gnulib-tool converts licence headers.
40178         Almost all wording by Eric Blake.
40179
40180 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40181
40182         * lib/mbchar.h (is_basic_table): Make read-only.
40183         * lib/mbchar.c (is_basic_table): Likewise.
40184         Reported by John Darrington.
40185
40186 2006-10-25  Bruno Haible  <bruno@clisp.org>
40187
40188         * lib/progname.h (set_program_name): Undefine before defining.
40189
40190 2006-10-25  Bruno Haible  <bruno@clisp.org>
40191
40192         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40193         false for non-gcc C++ compilers.
40194         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40195
40196 2006-10-24  Bruno Haible  <bruno@clisp.org>
40197
40198         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40199         iconv implementations like Irix iconv.
40200
40201 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40202
40203         * modules/vararrays: New file.
40204         * m4/vararrays.m4: New file, taken from diffutils.
40205         * MODULES.html.sh: New module vararrays.
40206
40207 2006-10-24  Karl Berry  <karl@gnu.org>
40208
40209         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40210         Don't call GNU Unix.
40211
40212 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40213
40214         * users.txt: Add Libtool.
40215
40216         Sync from Libtool:
40217
40218         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40219
40220         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40221         to gnulib's policy of including config.h unconditionally.
40222
40223 2006-10-24  Bruno Haible  <bruno@clisp.org>
40224
40225         * modules/wcwidth (Files): Add m4/wint_t.m4.
40226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40227         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40228
40229 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40230
40231         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40232         to pacify GCC with some -W flags enabled.  Problem reported by
40233         Bruno Haible.
40234
40235 2006-10-24  Jim Meyering  <jim@meyering.net>
40236
40237         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40238         Reported by Karl Berry.
40239
40240 2006-10-23  Bruno Haible  <bruno@clisp.org>
40241
40242         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40243
40244 2006-10-24  Bruno Haible  <bruno@clisp.org>
40245
40246         * lib/gl_list.h: Use C comment style, not C++ comment style.
40247
40248 2006-10-23  Eric Blake  <ebb9@byu.net>
40249
40250         * lib/getaddrinfo.c (includes): Add missing include.
40251
40252 2006-10-23  Bruno Haible  <bruno@clisp.org>
40253             Paul Eggert  <eggert@cs.ucla.edu>
40254
40255         Ability to rename obstack_free.
40256         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40257         obstack_free.
40258         (obstack_free): Invoke the __obstack_free macro.
40259         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40260
40261 2006-10-23  Bruno Haible  <bruno@clisp.org>
40262             Paul Eggert  <eggert@cs.ucla.edu>
40263
40264         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40265         __argc, __argv from the declaration. (They are defined as macros on
40266         mingw.)
40267
40268 2006-10-22  Bruno Haible  <bruno@clisp.org>
40269
40270         * doc/gnulib-intro.texi: New file.
40271         * doc/gnulib.texi: Include it.
40272
40273 2006-10-21  Bruno Haible  <bruno@clisp.org>
40274
40275         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40276         "Introduction", "Miscellanous Notes", "Particular Modules".
40277
40278 2006-10-21  Bruno Haible  <bruno@clisp.org>
40279
40280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40281         Change mostlyclean-local rule to avoid sh syntax error from bash
40282         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40283
40284 2006-10-23  Jim Meyering  <jim@meyering.net>
40285
40286         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40287         in place of snprintf.
40288
40289         * modules/inttostr (Files): Add lib/uinttostr.c.
40290         * lib/uinttostr.c (inttostr): New file/function.
40291         * lib/inttostr.h (uinttostr): Declare.
40292         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40293         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40294         Add uinttostr.
40295         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40296
40297 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40298
40299         * lib/canonicalize.c (ELOOP): Define if not already defined.
40300         Problem reported by Bruno Haible in
40301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40302
40303 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40304
40305         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40306         Problem reported by Perry Smith and Ville Laurikari.
40307
40308         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40309         uses.
40310
40311 2006-10-19  Bruno Haible  <bruno@clisp.org>
40312
40313         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40314         for mingw.
40315
40316 2006-10-19  Bruno Haible  <bruno@clisp.org>
40317
40318         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40319         Needed for mingw.
40320
40321 2006-10-19  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40324
40325 2006-10-19  Bruno Haible  <bruno@clisp.org>
40326
40327         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40328         it.
40329
40330 2006-10-19  Bruno Haible  <bruno@clisp.org>
40331
40332         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40333         invocation.
40334
40335 2006-10-19  Bruno Haible  <bruno@clisp.org>
40336
40337         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40338         mountlist by default.
40339
40340 2006-10-16  Bruno Haible  <bruno@clisp.org>
40341
40342         * lib/c-strstr.c: Include c-strstr.h.
40343
40344 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40345
40346         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40347         in a slash.
40348
40349 2006-10-18  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/lock.h [C++]: Wrap definitions in extern "C".
40352
40353 2006-10-18  Bruno Haible  <bruno@clisp.org>
40354
40355         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40356         gl_LIBOBJS list.
40357
40358 2006-10-18  Bruno Haible  <bruno@clisp.org>
40359
40360         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40361
40362 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40363
40364         * lib/xstrtol.h: Include gettext.h.
40365         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40366         Problem reported by Eric Blake.
40367         * modules/xstrtol (Depends-on): Add gettext-h.
40368
40369 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40370
40371         * lib/strftime.c (advance): New macro.
40372         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40373         incomplete type, so you can't add 0 to it.  Problem and patch
40374         reported by Eelco Dolstra for dietlibc.
40375
40376 2006-10-18  Jim Meyering  <jim@meyering.net>
40377
40378         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40379         type for a local, and rename it: s/up/user_proc/.
40380
40381 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40382
40383         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40384         READ_UTMP_USER_PROCESS.
40385         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40386
40387 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40388
40389         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40390         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40391
40392 2006-10-17  Eric Blake  <ebb9@byu.net>
40393
40394         * lib/sigprocmask.c (sigprocmask): Fix typo.
40395
40396         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40397
40398         * modules/clean-temp (Makefile.am): Don't add to make output...
40399         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40400         config.h.
40401
40402 2006-10-17  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40405         differently if DEFAULT_TEXT_DOMAIN is set.
40406
40407 2006-10-16  Bruno Haible  <bruno@clisp.org>
40408
40409         * lib/clean-temp.c: Include fwriteerror.h.
40410
40411 2006-10-16  Bruno Haible  <bruno@clisp.org>
40412
40413         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40414
40415 2006-10-16  Bruno Haible  <bruno@clisp.org>
40416
40417         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40418         * lib/sigprocmask.h: Include <sys/types.h>.
40419         (sigset_t): Use the system's definition if present.
40420
40421 2006-10-17  Eric Blake  <ebb9@byu.net>
40422
40423         * lib/xvasprintf.c (includes): Assume config.h.
40424         * lib/xasprintf.c (includes): Likewise.
40425
40426 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40427
40428         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40429         at least as wide as intmax_t.
40430
40431 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40432
40433         (Imported from Automake.)
40434         * build-aux/gnupload: Update to version 1.1 of directive file.
40435
40436 2006-10-16  Eric Blake  <ebb9@byu.net>
40437
40438         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40439         match Automake 1.10a.
40440
40441 2006-10-14  Bruno Haible  <bruno@clisp.org>
40442
40443         * modules/sigprocmask: New file.
40444         * lib/sigprocmask.h: New file.
40445         * lib/sigprocmask.c: New file.
40446         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40447         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40448         request sigprocmask.o.
40449         (gl_PREREQ_SIGPROCMASK): New macro.
40450         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40451         (Depends-on): Add sigprocmask.
40452         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40453         gt_SIGNALBLOCKING. Test for 'raise' only once.
40454         * lib/fatal-signal.c: Include sigprocmask.h.
40455         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40456         unblock_fatal_signals): Define always.
40457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40458         sigprocmask.
40459
40460 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40461
40462         Sync from Automake.
40463         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40464         which incorrectly sets the mode of an existing destination
40465         directory.  In some cases the unpatched install-sh could do the
40466         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40467         system.  We hope this is rare in practice, but it's clearly worth
40468         fixing.  Problem reported by Alex Unleashed in
40469         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40470         Also, don't bother to check for -m bugs unless we're using -m;
40471         suggested by Stepan Kasal.
40472
40473 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40474
40475         Sync from Automake.
40476         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40477         `-c' flag, so they appear at the same position as in %FASTDEP%
40478         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40479         which ignores unknown options only after the first non-option.
40480         Bug report against M4 by Nelson H. F. Beebe.
40481
40482 2006-10-13  Jim Meyering  <jim@meyering.net>
40483
40484         Fix a bug in yesterday's change.
40485         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40486         p->fts_statp->st_dev would be used uninitialized.
40487         Ensures that we always call fts_stat on the very first entry.
40488         Miklos Szeredi reported that find -xdev stopped working.
40489
40490 2006-10-12  Bruno Haible  <bruno@clisp.org>
40491
40492         * gnulib-tool (func_get_automake_snippet): Append an automatically
40493         computed EXTRA_DIST augmentation.
40494         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40495         * modules/alloca-opt (Makefile.am): Likewise.
40496         * modules/allocsa (Makefile.am): Likewise.
40497         * modules/arcfour (Makefile.am): Likewise.
40498         * modules/arctwo (Makefile.am): Likewise.
40499         * modules/argmatch (Makefile.am): Likewise.
40500         * modules/argz (Makefile.am): Likewise.
40501         * modules/atexit (Makefile.am): Likewise.
40502         * modules/backupfile (Makefile.am): Likewise.
40503         * modules/byteswap (Makefile.am): Likewise.
40504         * modules/c-strtod (Makefile.am): Likewise.
40505         * modules/c-strtold (Makefile.am): Likewise.
40506         * modules/calloc (Makefile.am): Likewise.
40507         * modules/canon-host (Makefile.am): Likewise.
40508         * modules/canonicalize (Makefile.am): Likewise.
40509         * modules/chdir-long (Makefile.am): Likewise.
40510         * modules/chdir-safer (Makefile.am): Likewise.
40511         * modules/check-version (Makefile.am): Likewise.
40512         * modules/chown (Makefile.am): Likewise.
40513         * modules/cloexec (Makefile.am): Likewise.
40514         * modules/close-stream (Makefile.am): Likewise.
40515         * modules/closeout (Makefile.am): Likewise.
40516         * modules/crc (Makefile.am): Likewise.
40517         * modules/csharpexec (Makefile.am): Likewise.
40518         * modules/cycle-check (Makefile.am): Likewise.
40519         * modules/des (Makefile.am): Likewise.
40520         * modules/dev-ino (Makefile.am): Likewise.
40521         * modules/dirfd (Makefile.am): Likewise.
40522         * modules/dirname (Makefile.am): Likewise.
40523         * modules/dup2 (Makefile.am): Likewise.
40524         * modules/eealloc (Makefile.am): Likewise.
40525         * modules/error (Makefile.am): Likewise.
40526         * modules/euidaccess (Makefile.am): Likewise.
40527         * modules/exclude (Makefile.am): Likewise.
40528         * modules/exitfail (Makefile.am): Likewise.
40529         * modules/fcntl-safer (Makefile.am): Likewise.
40530         * modules/fcntl (Makefile.am): Likewise.
40531         * modules/file-type (Makefile.am): Likewise.
40532         * modules/fileblocks (Makefile.am): Likewise.
40533         * modules/filemode (Makefile.am): Likewise.
40534         * modules/filenamecat (Makefile.am): Likewise.
40535         * modules/fnmatch (Makefile.am): Likewise.
40536         * modules/fopen-safer (Makefile.am): Likewise.
40537         * modules/fpending (Makefile.am): Likewise.
40538         * modules/fprintftime (Makefile.am): Likewise.
40539         * modules/free (Makefile.am): Likewise.
40540         * modules/fsusage (Makefile.am): Likewise.
40541         * modules/ftruncate (Makefile.am): Likewise.
40542         * modules/fts (Makefile.am): Likewise.
40543         * modules/gc-arcfour (Makefile.am): Likewise.
40544         * modules/gc-des (Makefile.am): Likewise.
40545         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40546         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40547         * modules/gc-md4 (Makefile.am): Likewise.
40548         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40549         * modules/gc-sha1 (Makefile.am): Likewise.
40550         * modules/gc (Makefile.am): Likewise.
40551         * modules/getaddrinfo (Makefile.am): Likewise.
40552         * modules/getcwd (Makefile.am): Likewise.
40553         * modules/getdelim (Makefile.am): Likewise.
40554         * modules/getdomainname (Makefile.am): Likewise.
40555         * modules/getgroups (Makefile.am): Likewise.
40556         * modules/gethostname (Makefile.am): Likewise.
40557         * modules/gethrxtime (Makefile.am): Likewise.
40558         * modules/getline (Makefile.am): Likewise.
40559         * modules/getloadavg (Makefile.am): Likewise.
40560         * modules/getlogin_r (Makefile.am): Likewise.
40561         * modules/getndelim2 (Makefile.am): Likewise.
40562         * modules/getopt (Makefile.am): Likewise.
40563         * modules/getpagesize (Makefile.am): Likewise.
40564         * modules/getpass-gnu (Makefile.am): Likewise.
40565         * modules/getpass (Makefile.am): Likewise.
40566         * modules/getsubopt (Makefile.am): Likewise.
40567         * modules/gettime (Makefile.am): Likewise.
40568         * modules/gettimeofday (Makefile.am): Likewise.
40569         * modules/getugroups (Makefile.am): Likewise.
40570         * modules/getusershell (Makefile.am): Likewise.
40571         * modules/glob (Makefile.am): Likewise.
40572         * modules/group-member (Makefile.am): Likewise.
40573         * modules/hard-locale (Makefile.am): Likewise.
40574         * modules/hash (Makefile.am): Likewise.
40575         * modules/hmac-md5 (Makefile.am): Likewise.
40576         * modules/hmac-sha1 (Makefile.am): Likewise.
40577         * modules/human (Makefile.am): Likewise.
40578         * modules/idcache (Makefile.am): Likewise.
40579         * modules/imaxabs (Makefile.am): Likewise.
40580         * modules/imaxdiv (Makefile.am): Likewise.
40581         * modules/inet_ntop (Makefile.am): Likewise.
40582         * modules/inet_pton (Makefile.am): Likewise.
40583         * modules/intprops (Makefile.am): Likewise.
40584         * modules/inttostr (Makefile.am): Likewise.
40585         * modules/inttypes (Makefile.am): Likewise.
40586         * modules/isapipe (Makefile.am): Likewise.
40587         * modules/javaversion (Makefile.am): Likewise.
40588         * modules/lchmod (Makefile.am): Likewise.
40589         * modules/lchown (Makefile.am): Likewise.
40590         * modules/localcharset (Makefile.am): Likewise.
40591         * modules/long-options (Makefile.am): Likewise.
40592         * modules/lstat (Makefile.am): Likewise.
40593         * modules/malloc (Makefile.am): Likewise.
40594         * modules/mathl (Makefile.am): Likewise.
40595         * modules/mbchar (Makefile.am): Likewise.
40596         * modules/md2 (Makefile.am): Likewise.
40597         * modules/md4 (Makefile.am): Likewise.
40598         * modules/md5 (Makefile.am): Likewise.
40599         * modules/memcasecmp (Makefile.am): Likewise.
40600         * modules/memchr (Makefile.am): Likewise.
40601         * modules/memcmp (Makefile.am): Likewise.
40602         * modules/memcoll (Makefile.am): Likewise.
40603         * modules/memcpy (Makefile.am): Likewise.
40604         * modules/memmem (Makefile.am): Likewise.
40605         * modules/memmove (Makefile.am): Likewise.
40606         * modules/mempcpy (Makefile.am): Likewise.
40607         * modules/memrchr (Makefile.am): Likewise.
40608         * modules/memset (Makefile.am): Likewise.
40609         * modules/memxor (Makefile.am): Likewise.
40610         * modules/mkancesdirs (Makefile.am): Likewise.
40611         * modules/mkdir-p (Makefile.am): Likewise.
40612         * modules/mkdir (Makefile.am): Likewise.
40613         * modules/mkdtemp (Makefile.am): Likewise.
40614         * modules/mkstemp (Makefile.am): Likewise.
40615         * modules/mktime (Makefile.am): Likewise.
40616         * modules/modechange (Makefile.am): Likewise.
40617         * modules/mountlist (Makefile.am): Likewise.
40618         * modules/nanosleep (Makefile.am): Likewise.
40619         * modules/obstack (Makefile.am): Likewise.
40620         * modules/openat (Makefile.am): Likewise.
40621         * modules/pagealign_alloc (Makefile.am): Likewise.
40622         * modules/pathmax (Makefile.am): Likewise.
40623         * modules/physmem (Makefile.am): Likewise.
40624         * modules/poll (Makefile.am): Likewise.
40625         * modules/posixtm (Makefile.am): Likewise.
40626         * modules/posixver (Makefile.am): Likewise.
40627         * modules/putenv (Makefile.am): Likewise.
40628         * modules/quote (Makefile.am): Likewise.
40629         * modules/quotearg (Makefile.am): Likewise.
40630         * modules/raise (Makefile.am): Likewise.
40631         * modules/read-file (Makefile.am): Likewise.
40632         * modules/readline (Makefile.am): Likewise.
40633         * modules/readlink (Makefile.am): Likewise.
40634         * modules/readtokens (Makefile.am): Likewise.
40635         * modules/readutmp (Makefile.am): Likewise.
40636         * modules/realloc (Makefile.am): Likewise.
40637         * modules/regex (Makefile.am): Likewise.
40638         * modules/rename-dest-slash (Makefile.am): Likewise.
40639         * modules/rename (Makefile.am): Likewise.
40640         * modules/rijndael (Makefile.am): Likewise.
40641         * modules/rmdir (Makefile.am): Likewise.
40642         * modules/rpmatch (Makefile.am): Likewise.
40643         * modules/safe-read (Makefile.am): Likewise.
40644         * modules/safe-write (Makefile.am): Likewise.
40645         * modules/same-inode (Makefile.am): Likewise.
40646         * modules/same (Makefile.am): Likewise.
40647         * modules/save-cwd (Makefile.am): Likewise.
40648         * modules/savedir (Makefile.am): Likewise.
40649         * modules/setenv (Makefile.am): Likewise.
40650         * modules/settime (Makefile.am): Likewise.
40651         * modules/sha1 (Makefile.am): Likewise.
40652         * modules/sig2str (Makefile.am): Likewise.
40653         * modules/snprintf (Makefile.am): Likewise.
40654         * modules/stat-macros (Makefile.am): Likewise.
40655         * modules/stat-time (Makefile.am): Likewise.
40656         * modules/stdbool (Makefile.am): Likewise.
40657         * modules/stdint (Makefile.am): Likewise.
40658         * modules/stdlib-safer (Makefile.am): Likewise.
40659         * modules/stpcpy (Makefile.am): Likewise.
40660         * modules/stpncpy (Makefile.am): Likewise.
40661         * modules/strcase (Makefile.am): Likewise.
40662         * modules/strcasestr (Makefile.am): Likewise.
40663         * modules/strchrnul (Makefile.am): Likewise.
40664         * modules/strcspn (Makefile.am): Likewise.
40665         * modules/strdup (Makefile.am): Likewise.
40666         * modules/strerror (Makefile.am): Likewise.
40667         * modules/strftime (Makefile.am): Likewise.
40668         * modules/strndup (Makefile.am): Likewise.
40669         * modules/strnlen (Makefile.am): Likewise.
40670         * modules/strpbrk (Makefile.am): Likewise.
40671         * modules/strsep (Makefile.am): Likewise.
40672         * modules/strstr (Makefile.am): Likewise.
40673         * modules/strtod (Makefile.am): Likewise.
40674         * modules/strtoimax (Makefile.am): Likewise.
40675         * modules/strtok_r (Makefile.am): Likewise.
40676         * modules/strtol (Makefile.am): Likewise.
40677         * modules/strtoll (Makefile.am): Likewise.
40678         * modules/strtoul (Makefile.am): Likewise.
40679         * modules/strtoull (Makefile.am): Likewise.
40680         * modules/strtoumax (Makefile.am): Likewise.
40681         * modules/strverscmp (Makefile.am): Likewise.
40682         * modules/sys_socket (Makefile.am): Likewise.
40683         * modules/sys_stat (Makefile.am): Likewise.
40684         * modules/sysexits (Makefile.am): Likewise.
40685         * modules/time_r (Makefile.am): Likewise.
40686         * modules/timegm (Makefile.am): Likewise.
40687         * modules/timespec (Makefile.am): Likewise.
40688         * modules/tmpfile-safer (Makefile.am): Likewise.
40689         * modules/trim (Makefile.am): Likewise.
40690         * modules/unistd-safer (Makefile.am): Likewise.
40691         * modules/unlinkdir (Makefile.am): Likewise.
40692         * modules/unlocked-io (Makefile.am): Likewise.
40693         * modules/userspec (Makefile.am): Likewise.
40694         * modules/utime (Makefile.am): Likewise.
40695         * modules/utimecmp (Makefile.am): Likewise.
40696         * modules/utimens (Makefile.am): Likewise.
40697         * modules/vasnprintf (Makefile.am): Likewise.
40698         * modules/vasprintf (Makefile.am): Likewise.
40699         * modules/vsnprintf (Makefile.am): Likewise.
40700         * modules/xalloc (Makefile.am): Likewise.
40701         * modules/xgetcwd (Makefile.am): Likewise.
40702         * modules/xnanosleep (Makefile.am): Likewise.
40703         * modules/xreadlink (Makefile.am): Likewise.
40704         * modules/xstrtod (Makefile.am): Likewise.
40705         * modules/xstrtol (Makefile.am): Likewise.
40706         * modules/xstrtold (Makefile.am): Likewise.
40707         * modules/yesno (Makefile.am): Likewise.
40708         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40709
40710 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40711
40712         * modules/error (Makefile.am): Distribute files through
40713         EXTRA_DIST, not lib_SOURCES.
40714
40715 2006-10-12  Eric Blake  <ebb9@byu.net>
40716
40717         * modules/error (Makefile.am): Distribute files in /lib.
40718         * modules/obstack (Makefile.am): Likewise.
40719
40720 2006-10-12  Bruno Haible  <bruno@clisp.org>
40721
40722         * modules/acl (Makefile.am): Distribute all files in lib/ through
40723         EXTRA_DIST.
40724         * modules/arcfour (Makefile.am): Likewise.
40725         * modules/arctwo (Makefile.am): Likewise.
40726         * modules/argmatch (Makefile.am): Likewise.
40727         * modules/argz (Makefile.am): Likewise.
40728         * modules/atexit (Makefile.am): Likewise.
40729         * modules/backupfile (Makefile.am): Likewise.
40730         * modules/c-strtod (Makefile.am): Likewise.
40731         * modules/c-strtold (Makefile.am): Likewise.
40732         * modules/calloc (Makefile.am): Likewise.
40733         * modules/canon-host (Makefile.am): Likewise.
40734         * modules/canonicalize (Makefile.am): Likewise.
40735         * modules/chdir-long (Makefile.am): Likewise.
40736         * modules/chdir-safer (Makefile.am): Likewise.
40737         * modules/check-version (Makefile.am): Likewise.
40738         * modules/chown (Makefile.am): Likewise.
40739         * modules/cloexec (Makefile.am): Likewise.
40740         * modules/close-stream (Makefile.am): Likewise.
40741         * modules/closeout (Makefile.am): Likewise.
40742         * modules/crc (Makefile.am): Likewise.
40743         * modules/cycle-check (Makefile.am): Likewise.
40744         * modules/des (Makefile.am): Likewise.
40745         * modules/dirfd (Makefile.am): Likewise.
40746         * modules/dirname (Makefile.am): Likewise.
40747         * modules/dup2 (Makefile.am): Likewise.
40748         * modules/euidaccess (Makefile.am): Likewise.
40749         * modules/exclude (Makefile.am): Likewise.
40750         * modules/exitfail (Makefile.am): Likewise.
40751         * modules/fcntl-safer (Makefile.am): Likewise.
40752         * modules/file-type (Makefile.am): Likewise.
40753         * modules/fileblocks (Makefile.am): Likewise.
40754         * modules/filemode (Makefile.am): Likewise.
40755         * modules/filenamecat (Makefile.am): Likewise.
40756         * modules/fnmatch (Makefile.am): Likewise.
40757         * modules/fopen-safer (Makefile.am): Likewise.
40758         * modules/fpending (Makefile.am): Likewise.
40759         * modules/fprintftime (Makefile.am): Likewise.
40760         * modules/free (Makefile.am): Likewise.
40761         * modules/fsusage (Makefile.am): Likewise.
40762         * modules/ftruncate (Makefile.am): Likewise.
40763         * modules/fts (Makefile.am): Likewise.
40764         * modules/gc (Makefile.am): Likewise.
40765         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40766         * modules/getaddrinfo (Makefile.am): Likewise.
40767         * modules/getcwd (Makefile.am): Likewise.
40768         * modules/getdelim (Makefile.am): Likewise.
40769         * modules/getdomainname (Makefile.am): Likewise.
40770         * modules/getgroups (Makefile.am): Likewise.
40771         * modules/gethostname (Makefile.am): Likewise.
40772         * modules/gethrxtime (Makefile.am): Likewise.
40773         * modules/getline (Makefile.am): Likewise.
40774         * modules/getloadavg (Makefile.am): Likewise.
40775         * modules/getlogin_r (Makefile.am): Likewise.
40776         * modules/getopt (Makefile.am): Likewise.
40777         * modules/getpass (Makefile.am): Likewise.
40778         * modules/getpass-gnu (Makefile.am): Likewise.
40779         * modules/getsubopt (Makefile.am): Likewise.
40780         * modules/gettime (Makefile.am): Likewise.
40781         * modules/gettimeofday (Makefile.am): Likewise.
40782         * modules/getugroups (Makefile.am): Likewise.
40783         * modules/getusershell (Makefile.am): Likewise.
40784         * modules/glob (Makefile.am): Likewise.
40785         * modules/group-member (Makefile.am): Likewise.
40786         * modules/hard-locale (Makefile.am): Likewise.
40787         * modules/hash (Makefile.am): Likewise.
40788         * modules/hmac-md5 (Makefile.am): Likewise.
40789         * modules/hmac-sha1 (Makefile.am): Likewise.
40790         * modules/human (Makefile.am): Likewise.
40791         * modules/idcache (Makefile.am): Likewise.
40792         * modules/imaxabs (Makefile.am): Likewise.
40793         * modules/imaxdiv (Makefile.am): Likewise.
40794         * modules/inet_ntop (Makefile.am): Likewise.
40795         * modules/inet_pton (Makefile.am): Likewise.
40796         * modules/inttostr (Makefile.am): Likewise.
40797         * modules/isapipe (Makefile.am): Likewise.
40798         * modules/lchown (Makefile.am): Likewise.
40799         * modules/long-options (Makefile.am): Likewise.
40800         * modules/lstat (Makefile.am): Likewise.
40801         * modules/malloc (Makefile.am): Likewise.
40802         * modules/mathl (Makefile.am): Likewise.
40803         * modules/mbchar (Makefile.am): Likewise.
40804         * modules/md2 (Makefile.am): Likewise.
40805         * modules/md4 (Makefile.am): Likewise.
40806         * modules/md5 (Makefile.am): Likewise.
40807         * modules/memcasecmp (Makefile.am): Likewise.
40808         * modules/memchr (Makefile.am): Likewise.
40809         * modules/memcmp (Makefile.am): Likewise.
40810         * modules/memcoll (Makefile.am): Likewise.
40811         * modules/memcpy (Makefile.am): Likewise.
40812         * modules/memmem (Makefile.am): Likewise.
40813         * modules/memmove (Makefile.am): Likewise.
40814         * modules/mempcpy (Makefile.am): Likewise.
40815         * modules/memrchr (Makefile.am): Likewise.
40816         * modules/memset (Makefile.am): Likewise.
40817         * modules/memxor (Makefile.am): Likewise.
40818         * modules/mkancesdirs (Makefile.am): Likewise.
40819         * modules/mkdir (Makefile.am): Likewise.
40820         * modules/mkdir-p (Makefile.am): Likewise.
40821         * modules/mkdtemp (Makefile.am): Likewise.
40822         * modules/mkstemp (Makefile.am): Likewise.
40823         * modules/mktime (Makefile.am): Likewise.
40824         * modules/modechange (Makefile.am): Likewise.
40825         * modules/mountlist (Makefile.am): Likewise.
40826         * modules/nanosleep (Makefile.am): Likewise.
40827         * modules/openat (Makefile.am): Likewise.
40828         * modules/pagealign_alloc (Makefile.am): Likewise.
40829         * modules/physmem (Makefile.am): Likewise.
40830         * modules/poll (Makefile.am): Likewise.
40831         * modules/posixtm (Makefile.am): Likewise.
40832         * modules/posixver (Makefile.am): Likewise.
40833         * modules/putenv (Makefile.am): Likewise.
40834         * modules/quote (Makefile.am): Likewise.
40835         * modules/quotearg (Makefile.am): Likewise.
40836         * modules/raise (Makefile.am): Likewise.
40837         * modules/read-file (Makefile.am): Likewise.
40838         * modules/readline (Makefile.am): Likewise.
40839         * modules/readlink (Makefile.am): Likewise.
40840         * modules/readtokens (Makefile.am): Likewise.
40841         * modules/readutmp (Makefile.am): Likewise.
40842         * modules/realloc (Makefile.am): Likewise.
40843         * modules/regex (Makefile.am): Likewise.
40844         * modules/rename (Makefile.am): Likewise.
40845         * modules/rename-dest-slash (Makefile.am): Likewise.
40846         * modules/rijndael (Makefile.am): Likewise.
40847         * modules/rmdir (Makefile.am): Likewise.
40848         * modules/rpmatch (Makefile.am): Likewise.
40849         * modules/safe-read (Makefile.am): Likewise.
40850         * modules/safe-write (Makefile.am): Likewise.
40851         * modules/same (Makefile.am): Likewise.
40852         * modules/save-cwd (Makefile.am): Likewise.
40853         * modules/savedir (Makefile.am): Likewise.
40854         * modules/setenv (Makefile.am): Likewise.
40855         * modules/settime (Makefile.am): Likewise.
40856         * modules/sha1 (Makefile.am): Likewise.
40857         * modules/sig2str (Makefile.am): Likewise.
40858         * modules/snprintf (Makefile.am): Likewise.
40859         * modules/stdlib-safer (Makefile.am): Likewise.
40860         * modules/stpcpy (Makefile.am): Likewise.
40861         * modules/stpncpy (Makefile.am): Likewise.
40862         * modules/strcase (Makefile.am): Likewise.
40863         * modules/strcasestr (Makefile.am): Likewise.
40864         * modules/strchrnul (Makefile.am): Likewise.
40865         * modules/strcspn (Makefile.am): Likewise.
40866         * modules/strdup (Makefile.am): Likewise.
40867         * modules/strerror (Makefile.am): Likewise.
40868         * modules/strftime (Makefile.am): Likewise.
40869         * modules/strndup (Makefile.am): Likewise.
40870         * modules/strnlen (Makefile.am): Likewise.
40871         * modules/strpbrk (Makefile.am): Likewise.
40872         * modules/strsep (Makefile.am): Likewise.
40873         * modules/strstr (Makefile.am): Likewise.
40874         * modules/strtod (Makefile.am): Likewise.
40875         * modules/strtoimax (Makefile.am): Likewise.
40876         * modules/strtok_r (Makefile.am): Likewise.
40877         * modules/strtol (Makefile.am): Likewise.
40878         * modules/strtoll (Makefile.am): Likewise.
40879         * modules/strtoul (Makefile.am): Likewise.
40880         * modules/strtoull (Makefile.am): Likewise.
40881         * modules/strtoumax (Makefile.am): Likewise.
40882         * modules/strverscmp (Makefile.am): Likewise.
40883         * modules/time_r (Makefile.am): Likewise.
40884         * modules/timegm (Makefile.am): Likewise.
40885         * modules/tmpfile-safer (Makefile.am): Likewise.
40886         * modules/unistd-safer (Makefile.am): Likewise.
40887         * modules/unlinkdir (Makefile.am): Likewise.
40888         * modules/userspec (Makefile.am): Likewise.
40889         * modules/utime (Makefile.am): Likewise.
40890         * modules/utimecmp (Makefile.am): Likewise.
40891         * modules/utimens (Makefile.am): Likewise.
40892         * modules/vasnprintf (Makefile.am): Likewise.
40893         * modules/vasprintf (Makefile.am): Likewise.
40894         * modules/vsnprintf (Makefile.am): Likewise.
40895         * modules/xalloc (Makefile.am): Likewise.
40896         * modules/xgetcwd (Makefile.am): Likewise.
40897         * modules/xnanosleep (Makefile.am): Likewise.
40898         * modules/xreadlink (Makefile.am): Likewise.
40899         * modules/xstrtod (Makefile.am): Likewise.
40900         * modules/xstrtol (Makefile.am): Likewise.
40901         * modules/xstrtold (Makefile.am): Likewise.
40902         * modules/yesno (Makefile.am): Likewise.
40903
40904 2006-10-12  Jim Meyering  <jim@meyering.net>
40905
40906         * m4/getloadavg.m4: Revert the change below.
40907
40908         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40909         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
40910         fail with a symlink, which is what coreutils' ./bootstrap now
40911         creates by default.
40912
40913 2006-10-12  Bruno Haible  <bruno@clisp.org>
40914
40915         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40916         mingw.
40917         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40918         MSVC and mingw explicitly.
40919
40920 2006-10-11  Simon Josefsson  <jas@extundo.com>
40921             Bruno Haible  <bruno@clisp.org>
40922
40923         Add support for multiple gnulib-tool invocations in the scope of a
40924         single configure.ac file.
40925         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40926         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40927         with the same contents as the _LIBADD variable.
40928         (func_emit_initmacro_start, func_emit_initmacro_end,
40929         func_emit_initmacro_done): New functions.
40930         (func_import, func_create_testdir): Invoke them. Allow the identifiers
40931         gl_LIBOBJS and gl_LTLIBOBJS.
40932
40933 2006-10-11  Bruno Haible  <bruno@clisp.org>
40934
40935         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40936         (func_create_testdir): Don't create po/Makefile.am, don't invoke
40937         autoreconf. Instead, invoke autopoint explicitly but move back the
40938         *.m4 files from gnulib.
40939
40940 2006-10-11  Bruno Haible  <bruno@clisp.org>
40941
40942         * gnulib-tool (func_usage): Make module names after --create-testdir
40943         optional.
40944         (func_create_testdir): If no module was specified, use nearly all
40945         modules.
40946
40947 2006-10-12  Jim Meyering  <jim@meyering.net>
40948
40949         Big performance improvement for fts-based tools that use FTS_NOSTAT.
40950         Avoid spurious inode-mismatch problems on non-POSIX file systems.
40951         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40952         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40953         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40954         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40955         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40956         (fts_set_stat_required): New function.
40957         (fts_open): Defer the calls to fts_stat, if possible or requested.
40958         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40959         into fts_stat itself.
40960         (fts_read): Perform any required (deferred) fts_stat call.
40961         (fts_build): Likewise, for the directory we're about to open and read.
40962         In the readdir loop, carefully decide whether each entry will require
40963         an eventual call to fts_stat, using dirent.d_type info if available.
40964         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40965         a command line argument into this function.  Update all callers.
40966         Map a return value of FTS_DOT to FTS_D for a command line argument.
40967         * modules/fts (Depends-on): Add d-type.  Alphabetize.
40968         Thanks to Miklos Szeredi for his tenacity and for the initial
40969         bug report about "find" failing on a FUSE-based file system.
40970
40971         * lib/fts.c (fts_open): Use consistent indentation.
40972
40973 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40974
40975         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40976         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40977         reported by Jim Meyering.  All uses of cache variables renamed
40978         to match Autoconf's.
40979         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40980         the other one.
40981
40982         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40983         Fix misspelling in diagnostic.
40984
40985 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
40986
40987         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40988         defined.  Problem reported by Matthew Woehlke.
40989
40990         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40991         Add support for Tandem NonStop R series.
40992         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40993         Use new macro.
40994
40995         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40996         (has_trailing_slash): Omit size arg; all callers changed.
40997         Omit 'inline', since it doesn't help performance and we'd
40998         need to configure it.
40999         Don't count //, ///, etc. as having a trailing slash.
41000         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41001         (rpl_rename_dest_slash): On failure, use rename's errno rather
41002         than (in some cases) an incorrect or junk errno.
41003         Simplify code by removing need to compute length; this does
41004         cause it to make two passes instead of one over the file name,
41005         but it's worth it.
41006
41007         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41008         change, since Autoconf's version may no longer be appropriate now
41009         that we are using CVS Autoconf's version.  Add support for Tandem.
41010
41011 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41012             Bruno Haible  <bruno@clisp.org>
41013
41014         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41015         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41016         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41017         gl_AC_TYPE_LONG_LONG.
41018
41019         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41020         instead of HAVE_LONG_LONG.
41021         * lib/printf-args.c (printf_fetchargs): Likewise.
41022         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41023         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41025         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41026         gl_AC_TYPE_LONG_LONG.
41027
41028 2006-10-11  Bruno Haible  <bruno@clisp.org>
41029
41030         * m4/longlong.m4: Add comments.
41031         * m4/ulonglong.m4: Likewise.
41032
41033 2006-10-10  Bruno Haible  <bruno@clisp.org>
41034
41035         Make it possible to #define stpcpy, strdup to aliases.
41036         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41037         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41038
41039 2006-10-10  Bruno Haible  <bruno@clisp.org>
41040
41041         Make it possible to #define gcd to an alias.
41042         * lib/gcd.c: Include config.h.
41043
41044 2006-10-10  Bruno Haible  <bruno@clisp.org>
41045
41046         Make it possible to #define c_isascii to an alias.
41047         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41048         defined. Undefine the macros before defining them, to avoid gcc
41049         warnings.
41050         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41051         define NO_C_CTYPE_MACROS early.
41052
41053 2006-10-10  Bruno Haible  <bruno@clisp.org>
41054
41055         Make it possible to #define set_program_name to an alias.
41056         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41057         ENABLE_RELOCATABLE early.
41058
41059 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41060
41061         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41062         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41063         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41064         More generally, don't assume that 64-bit signed int is available
41065         if unsigned int is, and vice versa.
41066         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41067         unsigned symbols, not on their signed counterparts.
41068         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41069         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41070         (UINT64_C, UINTMAX_C):
41071         Likewise.
41072         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41073         unsigned counterparts.
41074         (Have_long_long, Unsigned): New macros.
41075         (Int): Renamed from INT.
41076         (strtoimax): Use the new macros.
41077         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41078         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41079         * modules/inttypes (inttypes.h): Substitute
41080         HAVE_UNSIGNED_LONG_LONG_INT.
41081         * modules/stdint (stdint.h): Likewise.
41082         (Files): Add m4/ulonglong.m4.
41083
41084 2006-10-10  Bruno Haible  <bruno@clisp.org>
41085
41086         Fix a gcc -Wshadow warning.
41087         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41088         to 'bucket'.
41089         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41090         gl_linked_indexof_from_to): Likewise.
41091         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41092         Likewise.
41093         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41094         Likewise.
41095         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41096         Reported by Eric Blake.
41097
41098 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41099
41100         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41101         for NetBSD.  Problem reported by Bruno Haible.
41102
41103 2006-10-09  Jim Meyering  <jim@meyering.net>
41104
41105         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41106         Patch from Bruno Haible.
41107
41108 2006-10-09  Jim Meyering  <jim@meyering.net>
41109
41110         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41111         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41112         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41113
41114 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41115
41116         Don't include <config.h> twice; this doesn't work in some cases,
41117         e.g., when config.h has "#define intmax_t long long int" and
41118         we include <config.h>, <inttypes.h>, <config.h> in that order.
41119         Problem reported by Matthew Woehlke in:
41120         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41121         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41122         * lib/fts-cycle.c: Don't include config.h.
41123         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41124         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41125         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41126         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41127         inttypes.h.
41128         * lib/xstrtoumax.c: Likewise.
41129         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41130         __strtol and the like, so that this module is more like its siblings.
41131         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41132         Remove; no longer needed now that we assume gnulib inttypes.h.
41133
41134 2006-10-08  Bruno Haible  <bruno@clisp.org>
41135
41136         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41137         option.
41138
41139 2006-10-07  Jim Meyering  <jim@meyering.net>
41140
41141         * modules/inttypes (inttypes.h): Revert what seems to have been
41142         an inadvertent part of today's change: use "|", not "/" in the
41143         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41144
41145 2006-10-07  Bruno Haible  <bruno@clisp.org>
41146
41147         * modules/sublist: New file.
41148
41149 2006-10-07  Bruno Haible  <bruno@clisp.org>
41150
41151         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41152         * modules/argz (argz.h): Likewise.
41153         * modules/arpa_inet (arpa/inet.h): Likewise.
41154         * modules/byteswap (byteswap.h): Likewise.
41155         * modules/configmake (configmake.h): Likewise.
41156         * modules/fcntl (fcntl.h): Likewise.
41157         * modules/fnmatch (fnmatch.h): Likewise.
41158         * modules/getopt (getopt.h): Likewise.
41159         * modules/glob (glob.h): Likewise.
41160         * modules/inttypes (inttypes.h): Likewise.
41161         * modules/netinet_in (netinet/in.h): Likewise.
41162         * modules/poll (poll.h): Likewise.
41163         * modules/stdbool (stdbool.h): Likewise.
41164         * modules/stdint (stdint.h): Likewise.
41165         * modules/sys_select (sys/select.h): Likewise.
41166         * modules/sys_socket (sys/socket.h): Likewise.
41167         * modules/sys_stat (sys/stat.h): Likewise.
41168         * modules/sysexits (sysexits.h): Likewise.
41169         * modules/unistd (unistd.h): Likewise.
41170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41171         Add a "DO NOT EDIT" comment to the generated file.
41172         (func_import): Likewise for gnulib-comp.m4.
41173
41174 2006-10-07  Bruno Haible  <bruno@clisp.org>
41175
41176         * lib/gl_sublist.h: New file.
41177         * lib/gl_sublist.c: New file.
41178
41179 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41180
41181         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41182         name (relative to the original working directory) and the file
41183         name component (relative to the temporary working directory).  All
41184         callers changed.
41185         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41186         * lib/mkdir-p.c (make_dir_parents): Likewise.
41187         * lib/mkdir-p.h (make_dir_parents): Likewise.
41188
41189 2006-10-06  Eric Blake  <ebb9@byu.net>
41190
41191         Define several macros for use by the clean-temp module.
41192         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41193         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41194         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41195
41196         * lib/clean-temp.h (close_stream_temp): New declaration.
41197         * lib/clean-temp.c (includes): Pull in headers according to what
41198         other modules are in use.
41199         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41200
41201 2006-10-06  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41204         instead of fopen, fwriteerror.
41205
41206 2006-10-06  Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41209         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41210         int.
41211         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41212         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41213         Return an error indicator.
41214         Suggested by Eric Blake.
41215
41216 2006-10-06  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41219         Reported by Eric Blake.
41220
41221 2006-10-06  Bruno Haible  <bruno@clisp.org>
41222
41223         * modules/closeout (Description): Mention stderr too.
41224
41225 2006-10-06  Bruno Haible  <bruno@clisp.org>
41226         and Paul Eggert  <eggert@cs.ucla.edu>
41227
41228         * lib/closeout.c (close_stdout): Also close stderr.
41229         * lib/closeout.h: Update comment.
41230
41231 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41232
41233         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41234         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41235         * lib/dirchownmod.c: Include lchown.h.
41236         * lib/lchown.c: Don't include files that lchown.h now includes.
41237         Don't declare chown, since lchown.h now does that.
41238         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41239         (lchown): Define to rpl_chown if lchown is declared but
41240         does not exist.  Declare using a prototype if lchown is not
41241         declared.  Add a copyright notice.
41242         * lib/mkstemp.h: Include <unistd.h>.
41243         * lib/openat.c: Include lchown.h.
41244
41245         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41246         we now test for that separately.
41247         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41248         rather than O_NOFOLLOW, when testing whether it's possible to
41249         avoid a race condition reliably.
41250         * lib/savewd.c (savewd_chdir): Likewise.
41251
41252         Remove macros that are no longer needed now that stdint.h is
41253         reliable.
41254         * lib/fsusage.c (UINTMAX_MAX): Remove.
41255         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41256         * lib/utimecmp.c (SIZE_MAX): Remove.
41257
41258         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41259
41260         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41261         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41262         O_NOATIME works.
41263
41264 2006-10-05  Bruno Haible  <bruno@clisp.org>
41265
41266         * lib/gl_list.h (gl_sortedlist_search_from_to,
41267         gl_sortedlist_indexof_from_to): New declarations.
41268         (gl_list_implementation): New fields sortedlist_search_from_to,
41269         sortedlist_indexof_from_to.
41270         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41271         inline functions.
41272         * lib/gl_list.c (gl_sortedlist_search_from_to,
41273         gl_sortedlist_indexof_from_to): New functions.
41274         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41275         function.
41276         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41277         (gl_array_sortedlist_search_from_to): New function.
41278         (gl_array_list_implementation): Update.
41279         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41280         function.
41281         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41282         (gl_carray_sortedlist_search_from_to): New function.
41283         (gl_carray_list_implementation): Update.
41284         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41285         gl_linked_sortedlist_indexof_from_to): New functions.
41286         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41287         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41288         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41289         gl_tree_sortedlist_indexof_from_to): New functions.
41290         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41291         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41292         Update.
41293         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41294         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41295         Update.
41296
41297 2006-10-05  Bruno Haible  <bruno@clisp.org>
41298
41299         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41300         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41301         (struct gl_list_implementation): Add fields search_from_to,
41302         indexof_from_to. Remove fields search, indexof.
41303         (gl_list_search): Use the search_from_to method.
41304         (gl_list_search_from, gl_list_search_from_to): New functions.
41305         (gl_list_indexof): Use the indexof_from_to method.
41306         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41307         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41308         (gl_list_search_from, gl_list_search_from_to): New functions.
41309         (gl_list_indexof): Use the indexof_from_to method.
41310         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41311         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41312         gl_array_indexof. Add start_index, end_index arguments.
41313         (gl_array_search_from_to): Renamed from gl_array_search. Add
41314         start_index, end_index arguments.
41315         (gl_array_remove, gl_array_list_implementation): Update.
41316         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41317         gl_carray_indexof. Add start_index, end_index arguments.
41318         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41319         start_index, end_index arguments.
41320         (gl_carray_remove, gl_carray_list_implementation): Update.
41321         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41322         gl_linked_search. Add start_index, end_index arguments.
41323         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41324         start_index, end_index arguments.
41325         (gl_linked_remove): Update.
41326         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41327         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41328         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41329         field to 'size_t'.
41330         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41331         gl_tree_search. Add start_index, end_index arguments.
41332         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41333         start_index, end_index arguments.
41334         (gl_tree_remove): Update.
41335         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41336         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41337         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41338         function.
41339         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41340         gl_tree_search. Add start_index, end_index arguments.
41341         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41342         start_index, end_index arguments.
41343         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41344         Update.
41345         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41346
41347 2006-10-05  Bruno Haible  <bruno@clisp.org>
41348
41349         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41350
41351         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41352         fwriteerror_temp): New declarations.
41353         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41354         (descriptors): New variable.
41355         (cleanup): First, close the descriptors.
41356         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41357         fclose_temp, fwriteerror_temp): New functions.
41358
41359 2006-10-04  Jim Meyering  <jim@meyering.net>
41360
41361         * lib/fts.c (fts_open): Tiny comment change.
41362
41363 2006-10-04  Bruno Haible  <bruno@clisp.org>
41364
41365         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41366         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41367         gl_LOCK_BODY.
41368         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41369         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41370         gl_LOCK_EARLY_BODY.
41371         (gl_LOCK): Require gl_LOCK_BODY.
41372
41373 2006-10-04  Bruno Haible  <bruno@clisp.org>
41374
41375         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41376         (gl_oset_search_atleast): New declaration.
41377         (struct gl_oset_implementation): Add field 'search_atleast'.
41378         (gl_oset_search_atleast): New inline function.
41379         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41380         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41381         (gl_array_oset_implementation): Update.
41382         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41383         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41384         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41385
41386 2006-10-04  Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41389
41390 2006-10-03  Bruno Haible  <bruno@clisp.org>
41391
41392         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41393         from gl_avltreehash_list_implementation.
41394
41395 2006-10-03  Bruno Haible  <bruno@clisp.org>
41396
41397         * lib/gl_oset.c (gl_oset_add): Fix return type.
41398
41399 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41400
41401         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41402
41403 2006-10-02  Eric Blake  <ebb9@byu.net>
41404
41405         * modules/strnlen (Depends-on): Add extensions.
41406
41407 2006-10-02  Eric Blake  <ebb9@byu.net>
41408
41409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41410         definition in 2.60+.
41411
41412 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41413
41414         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41415         checks.
41416
41417 2006-10-02  Bruno Haible  <bruno@clisp.org>
41418
41419         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41420         to the AUTOMAKE_OPTIONS.
41421         Reported by Jim Meyering.
41422
41423 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41424
41425         Work around bug in Solaris 10 /proc file system:
41426         /proc/self/fd/NNN/.. isn't the parent directory of
41427         the directory whose file descriptor is NNN.  This needs to
41428         be worked around at run time, not compile time, since a
41429         program might be built on Solaris 8, where things work, and
41430         run on Solaris 10.
41431         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41432         to use the following interface instead:
41433         (OPENAT_BUFFER_SIZE): New macro.
41434         (openat_proc_name): New function.
41435         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41436         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41437         Likewise.
41438         * lib/openat-proc.c: New file.
41439         * modules/openat (Files): Add lib/openat-proc.c.
41440         (Depends-on): Add same-inode, stdbool.
41441         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41442
41443 2006-09-29  Bruno Haible  <bruno@clisp.org>
41444
41445         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41446         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41447         argument. Set stdout_closed before testing for ferror, not after.
41448         (fwriteerror, fwriteerror_no_ebadf): New functions.
41449
41450 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41451
41452         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41453
41454 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41455
41456         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41457         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41458
41459 2006-09-28  Jim Meyering  <jim@meyering.net>
41460
41461         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41462         Include <unistd.h>.
41463
41464 2006-09-28  Bruno Haible  <bruno@clisp.org>
41465
41466         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41467         * modules/linkedhash-list (Depends-on): Likewise.
41468         * modules/rbtreehash-list (Depends-on): Likewise.
41469
41470 2006-09-28  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/strndup.h: Simplify the redefinition of strndup.
41473         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41474         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41475
41476 2006-09-28  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41479         * lib/gl_linkedhash_list.c: Likewise.
41480         * lib/gl_rbtreehash_list.c: Likewise.
41481
41482 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41483
41484         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41485         getaddrinfo.
41486
41487         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41488         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41489         it causes <stdio_ext.h> to cause a compile-time error.
41490         Problem reported by Nelson H. F. Beebe.
41491         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41492         of HAVE_DECL___PENDING.
41493
41494         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41496         declaration.
41497
41498 2006-09-27  Jim Meyering  <jim@meyering.net>
41499
41500         This file could end up with a definition for a function
41501         named __strndup, rather than rpl_strndup on a system with
41502         incomplete weak_alias support.
41503         * lib/strndup.c (strndup): Rename from __strndup.
41504         Remove #defines that used to map __strndup to strndup.
41505         Don't use K&R prototypes.
41506         Remove LIBC-related code, since this file is not sync'd with glibc.
41507         * lib/strndup.h: Revamp, accordingly.
41508         * m4/strndup.m4: Modernize.
41509
41510 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         * modules/savewd (Depends-on): Add 'raise'.
41513         * lib/savewd.c: Include <signal.h>, for 'raise'.
41514
41515 2006-09-26  Jim Meyering  <jim@meyering.net>
41516
41517         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41518         when we detect Darwin 8.7.0's acl_get_file bug.
41519         Rearrange to perform the new (below) run-test while $LIBS
41520         contains any acl-related library.  Set USE_ACL at the end.
41521         (gl_ACL_GET_FILE): New function.
41522
41523 2006-09-26  Eric Blake  <ebb9@byu.net>
41524
41525         * lib/verror.c: Include <config.h> unconditionally.
41526
41527 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41528
41529         * modules/clock-time (Maintainer): Add self.
41530         * modules/getlogin_r (Depends-on): Add extensions.
41531
41532 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41533
41534         * modules/clock-time: New module.
41535         * modules/nanosleep (Depends-on): Add clock-time.
41536         * modules/gethrxtime (Depends-on): Likewise.
41537         * modules/gettime (Depends-on): Likewise.
41538         * modules/settime (Depends-on): Likewise.
41539
41540         * modules/fts-lgpl: Depend on openat.
41541         * modules/mkancesdirs: Depend on savewd.
41542         * modules/mkdir-p: Likewise.
41543
41544 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41545
41546         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41547
41548         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41549         `gl_have_arbitrary_file_name_length_limit' to
41550         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41551         actually works between configure runs.
41552
41553 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41554             Bruno Haible  <bruno@clisp.org>
41555
41556         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41557
41558 2006-09-25  Jim Meyering  <jim@meyering.net>
41559
41560         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41561         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41562
41563 2006-09-25  Eric Blake  <ebb9@byu.net>
41564
41565         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41566         exec's in 2006-09-18 patch when shuffling fds.
41567
41568 2006-09-25  Bruno Haible  <bruno@clisp.org>
41569
41570         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41571         Reported by Jim Meyering.
41572
41573 2006-09-24  Jim Meyering  <jim@meyering.net>
41574
41575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41576         compare a pointer against a literal "0".  That caused failures with
41577         at least HP-UX's hpcc.
41578
41579 2006-09-22  Simon Josefsson  <jas@extundo.com>
41580
41581         * modules/gc-sha1:
41582         * modules/gc-md4:
41583         * modules/gc-hmac-sha1:
41584         * modules/gc-hmac-md5:
41585         * modules/gc-des:
41586         * modules/gc-arcfour: Distribute more files.
41587
41588 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41589
41590         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41591         (gl_linked_iterator_from_to): Initialize struct completely.
41592         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41593         (gl_tree_iterator_from_to): Likewise
41594         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41595         * lib/gl_array_list.c [lint] (gl_array_iterator)
41596         (gl_array_iterator_from_to): Likewise.
41597         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41598         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41599         (gl_carray_iterator_from_to): Likewise.
41600
41601         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41602         * lib/md4.c (md4_process_block): Remove unused variable.
41603         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41604         parentheses for clarity.
41605
41606 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41607
41608         * modules/bison-i18n (Depends-on): Add gettext.
41609
41610 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41611
41612         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41613         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41614         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41615         also add missing comma that caused broken test.
41616         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41617         stdlib.h, for `abort'.
41618         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41619         variables.
41620         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41621         include unistd.h if present, for `rmdir'.
41622         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41623         variables.
41624         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41625         in the process include standard headers for prototypes.
41626         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41627         gets declared on GNU/Linux.
41628         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41629         unistd.h, for `rmdir'.
41630         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41631
41632         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41633         always true.
41634         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41635
41636         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41637
41638 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41639
41640         * gnulib-tool (func_version): Create output all at once.  This
41641         may help avoid triggering unnecessary SIGPIPEs, and at any
41642         rate it doesn't hurt.
41643
41644 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41645             Bruno Haible  <bruno@clisp.org>
41646
41647         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41648         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41649         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41650
41651         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41652         (gl_FUNC_VASPRINTF): Invoke it.
41653
41654 2006-09-22  Bruno Haible  <bruno@clisp.org>
41655
41656         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41657         getloadavg.c as first argument.
41658
41659 2006-09-22  Bruno Haible  <bruno@clisp.org>
41660
41661         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41662         at the beginning of the gl_INIT macro.
41663         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41664         gl_GETLOADAVG.
41665
41666 2006-09-22  Bruno Haible  <bruno@clisp.org>
41667
41668         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41669         module.
41670         Suggested by Ralf Wildenhues.
41671
41672 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41673
41674         Import this patch from libc:
41675
41676         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41677
41678         * lib/regex_internal.c (re_string_reconstruct): Handle
41679         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41680         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41681         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41682         re_string_context_at.
41683
41684         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41685         now requires it.
41686         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41687         gl_REGEX now does it for us.
41688         (gl_REGEX): Add test taken from
41689         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41690
41691         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41692         Check that large offsets work.  Modernize Autoconf usages.
41693         Prefer "yes" to mean a good thing rather than a bad.
41694         Don't put "#define mkstemp" in config.h, as this might interfere
41695         with standard system headers that "#define mkstemp mkstemp64".
41696
41697         * modules/mkstemp (Depends-on): Add extensions, so that
41698         mkstemp is visible on some platforms.
41699         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41700         (Include): Change to "mkstemp.h" from <stdlib.h>.
41701         (Files): Add mkstemp.h.
41702
41703         * lib/mkstemp.h: New file, since some standard headers
41704         #define mkstemp.
41705         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41706         Include "mkstemp.h".
41707         Make the _LIBC code resemble glibc original more,
41708         e.g., use K&R style.
41709         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41710         (mkstemp): Remove, since mkstemp.h does this for us.
41711         * lib/stdlib--.h: Include mkstemp.h.
41712
41713         Import this patch from libc:
41714
41715         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41716
41717         * lib/tempname.c (__gen_tempname): Change attempts_min
41718         into a macro.  Use preprocessor to decide how to initialize
41719         attempts [Coverity CID 67].
41720
41721 2006-09-20  Bruno Haible  <bruno@clisp.org>
41722
41723         * lib/mkdtemp.c: Import from libc.
41724         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41725                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41726                 attempts_min into a macro.  Use preprocessor to decide how to
41727                 initialize attempts [Coverity CID 67].
41728         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41729                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41730                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41731
41732 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41733
41734         * gnulib-tool (func_exit): New function, to allow to pass the
41735         exit status portably through the trap.  Use everywhere.
41736         (--help, --version): Signal a write error.
41737         (trap): catch SIGPIPE, for write errors.
41738         Exit at the end of the trap, with the correct exit status.
41739
41740 2006-09-19  Karl Berry  <karl@gnu.org>
41741
41742         * doc/gnulib.texi: note about the license texinfo files.
41743
41744 2006-09-19  Eric Blake  <ebb9@byu.net>
41745
41746         * gnulib-tool: Avoid space-tab.
41747
41748 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41749
41750         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41751         that prevented coreutils 6.1 from building.  Problem reported
41752         by Petter Reinholdtsen.
41753
41754 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41755
41756         * gnulib-tool (avoidlist): Fix typo that broke options like
41757         --avoid=lock that are used by coreutils bootstrap.
41758
41759 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41760
41761         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41762         more systematically.
41763
41764 2006-09-18  Jim Meyering  <jim@meyering.net>
41765
41766         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41767
41768 2006-09-18  Bruno Haible  <bruno@clisp.org>
41769
41770         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41771
41772 2006-09-18  Bruno Haible  <bruno@clisp.org>
41773
41774         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41775         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41776         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41777         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41778         * m4/gettext.m4: Require autoconf >= 2.52.
41779         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41780         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41781         of gl_cv_header_inttypes_h.
41782
41783 2006-09-18  Bruno Haible  <bruno@clisp.org>
41784
41785         * lib/javaversion.c: Include configmake.h.
41786
41787 2006-09-18  Bruno Haible  <bruno@clisp.org>
41788
41789         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41790         avoid that the while loops be executed in a subshell.
41791
41792 2006-09-18  Bruno Haible  <bruno@clisp.org>
41793
41794         * MODULES.html.sh (func_module): Break long lines.
41795         Suggested by Bruce Korb <bkorb@gnu.org>.
41796
41797 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41798
41799         Speed up by a factor of 1.12.
41800         * gnulib-tool (nl): New variable.
41801         (func_import): Rewrite include directive extraction to only read each
41802         directive once.
41803
41804 2006-09-17  Bruno Haible  <bruno@clisp.org>
41805
41806         * modules/javaversion (Makefile.am): Remove DEFS setting.
41807         (Depends-on): Add configmake, for PKGDATADIR definition.
41808
41809 2006-09-17  Bruno Haible  <bruno@clisp.org>
41810
41811         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41812
41813 2006-09-17  Bruno Haible  <bruno@clisp.org>
41814
41815         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41816         (func_modules_transitive_closure, func_modules_add_dummy,
41817         func_modules_to_filelist, func_import, func_create_testdir,
41818         func_create_megatestdir, ...): Use it wherever possible.
41819         Suggested by Ralf Wildenhues.
41820
41821 2006-09-16  Karl Berry  <karl@gnu.org>
41822
41823         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41824         to avoid sectioning errors.
41825         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41826         [ifinfo]: blank line after @center-ed titles.
41827         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41828         Spell FSF address consistently with others.
41829         (These changes approved by rms.)
41830
41831 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41832
41833         Speed up by a factor of 1.61.
41834         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41835         already checked module names again.
41836
41837 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41838
41839         Speed up by a factor of 1.13.
41840         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41841         for new_files, and the input to func_add_or_update.
41842
41843 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41844
41845         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41846         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41847
41848 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41849
41850         * modules/mkancesdirs (Depends-on): Add fcntl.
41851         * modules/savewd: New file.
41852         * MODULES.html.sh (File system functions): Add savewd.
41853
41854         * modules/configmake (Makefile.am): Add support for the
41855         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41856
41857 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41858
41859         * m4/savewd.m4: New file.
41860
41861 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41862
41863         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41864         (dirchownmod): New arg FD.  All callers changed.
41865         Use FD rather than opening the directory ourself, as opening is
41866         now the caller's responsibility.
41867         * lib/dirchownmod.h: Likewise.
41868         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41869         hosts that require <sys/types.h> before <sys/stat.h>.  Include
41870         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41871         (test_dir): Remove.
41872         (mkancesdirs): Return length of prefix of FILE that has already
41873         been made, or -2 if there is a child doing the work.  Redo
41874         algorithm so that it is O(N) rather than O(N**2).  Optimize away
41875         ".", and treat ".." specially since it might stray back into
41876         already-created areas.  Use a subprocess if necessary.  New arg
41877         WD; all users changed.  MAKE_DIR function should now return 1
41878         if it creates a directory that is not readable.  Return -2 if
41879         a child process is spun off.
41880         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41881         Adjust signature to match code.
41882         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41883         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
41884         all users changed.
41885         * lib/savewd.c, lib/savewd.h: New files.
41886
41887 2006-09-15  Jim Meyering  <jim@meyering.net>
41888
41889         * modules/rename-dest-slash: New module.
41890         * MODULES.html.sh (posix_compat): Add it here.
41891
41892         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41893
41894 2006-09-15  Jim Meyering  <jim@meyering.net>
41895
41896         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41897         file.
41898
41899         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41900
41901 2006-09-15  Jim Meyering  <jim@meyering.net>
41902
41903         * lib/rename-dest-slash.c (has_trailing_slash): Use
41904         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41905         (rpl_rename_dest_slash): Perform the cheaper trailing slash
41906         test before testing whether SRC is a directory.
41907         Suggestions from Bruno Haible.
41908
41909         Avoid a warning about an unused variable.
41910         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41911         into the #ifdef block where it's used.
41912
41913         * lib/rename-dest-slash.c: New file.
41914
41915 2006-09-14  Bruno Haible  <bruno@clisp.org>
41916
41917         * lib/allocsa.c: Include <config.h> unconditionally.
41918         * lib/asnprintf.c: Likewise.
41919         * lib/asprintf.c: Likewise.
41920         * lib/c-strcasecmp.c: Likewise.
41921         * lib/c-strcasestr.c: Likewise.
41922         * lib/c-strncasecmp.c: Likewise.
41923         * lib/c-strstr.c: Likewise.
41924         * lib/classpath.c: Likewise.
41925         * lib/clean-temp.c: Likewise.
41926         * lib/concatpath.c: Likewise.
41927         * lib/copy-file.c: Likewise.
41928         * lib/csharpcomp.c: Likewise.
41929         * lib/csharpexec.c: Likewise.
41930         * lib/execute.c: Likewise.
41931         * lib/fatal-signal.c: Likewise.
41932         * lib/findprog.c: Likewise.
41933         * lib/fwriteerror.c: Likewise.
41934         * lib/gl_array_list.c: Likewise.
41935         * lib/gl_array_oset.c: Likewise.
41936         * lib/gl_avltree_list.c: Likewise.
41937         * lib/gl_avltree_oset.c: Likewise.
41938         * lib/gl_avltreehash_list.c: Likewise.
41939         * lib/gl_carray_list.c: Likewise.
41940         * lib/gl_linked_list.c: Likewise.
41941         * lib/gl_linkedhash_list.c: Likewise.
41942         * lib/gl_list.c: Likewise.
41943         * lib/gl_oset.c: Likewise.
41944         * lib/gl_rbtree_list.c: Likewise.
41945         * lib/gl_rbtree_oset.c: Likewise.
41946         * lib/gl_rbtreehash_list.c: Likewise.
41947         * lib/imaxabs.c: Likewise.
41948         * lib/imaxdiv.c: Likewise.
41949         * lib/javacomp.c: Likewise.
41950         * lib/javaexec.c: Likewise.
41951         * lib/javaversion.c: Likewise.
41952         * lib/linebreak.c: Likewise.
41953         * lib/localcharset.c: Likewise.
41954         * lib/lock.c: Likewise.
41955         * lib/mbchar.c: Likewise.
41956         * lib/mbswidth.c: Likewise.
41957         * lib/mkdtemp.c: Likewise.
41958         * lib/pipe.c: Likewise.
41959         * lib/printf-args.c: Likewise.
41960         * lib/printf-parse.c: Likewise.
41961         * lib/progname.c: Likewise.
41962         * lib/progreloc.c: Likewise.
41963         * lib/readlink.c: Likewise.
41964         * lib/sh-quote.c: Likewise.
41965         * lib/stpcpy.c: Likewise.
41966         * lib/stpncpy.c: Likewise.
41967         * lib/strcasecmp.c: Likewise.
41968         * lib/strcasestr.c: Likewise.
41969         * lib/strcspn.c: Likewise.
41970         * lib/striconv.c: Likewise.
41971         * lib/strncasecmp.c: Likewise.
41972         * lib/strnlen1.c: Likewise.
41973         * lib/strstr.c: Likewise.
41974         * lib/strtok_r.c: Likewise.
41975         * lib/tls.c: Likewise.
41976         * lib/tmpdir.c: Likewise.
41977         * lib/unicodeio.c: Likewise.
41978         * lib/unsetenv.c: Likewise.
41979         * lib/vasnprintf.c: Likewise.
41980         * lib/vasprintf.c: Likewise.
41981         * lib/wait-process.c: Likewise.
41982         * lib/xallocsa.c: Likewise.
41983         * lib/xsetenv.c: Likewise.
41984         * lib/xstriconv.c: Likewise.
41985
41986 2006-09-13  Simon Josefsson  <jas@extundo.com>
41987
41988         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41989         that internally, suggested by Ralf Wildenhues
41990         <Ralf.Wildenhues@gmx.de>.
41991
41992 2006-09-13  Simon Josefsson  <jas@extundo.com>
41993
41994         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41995         @LIBOBJS@.
41996         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41997
41998 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
41999
42000         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42001         longer worry about uses that don't define HAVE_CONFIG_H.
42002         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42003         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42004         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42005         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42006         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42007         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42008         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42009         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42010         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42011         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42012         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42013         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42014         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42015         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42016         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42017         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42018         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42019         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42020         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42021         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42022         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42023         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42024         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42025         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42026         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42027         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42028         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42029         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42030         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42031         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42032         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42033         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42034         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42035         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42036         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42037         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42038         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42039         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42040         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42041         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42042         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42043         Likewise.
42044
42045 2006-09-13  Eric Blake  <ebb9@byu.net>
42046
42047         * lib/getopt.c: Fix typo in last commit.
42048
42049 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42050
42051         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42052         dgettext.
42053
42054 2006-09-12  Jim Meyering  <jim@meyering.net>
42055
42056         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42057         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42058         Reported by Nelson H. F. Beebe.
42059
42060 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42061
42062         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42063         program_invocation_name and program_invocation_short_name are
42064         initialized.
42065         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42066         and program_invocation_short_name to argp.h, so they are visible
42067         to user programs.
42068         * lib/argp.h: Likewise
42069
42070 2006-09-10  Bruno Haible  <bruno@clisp.org>
42071
42072         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42073         m4/inttypes_h.m4, m4/uintmax_t.m4.
42074
42075 2006-09-10  Bruno Haible  <bruno@clisp.org>
42076
42077         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42078         gl_AC_TYPE_UINTMAX_T.
42079
42080 2006-09-10  Bruno Haible  <bruno@clisp.org>
42081
42082         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42083
42084 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42085
42086         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42087         convention.  Text proposed by Bruno Haible.
42088         (struct argp_option): Document the use of N_() wrappers.
42089
42090         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42091         '\v', and translate the two parts separately, instead of feeding
42092         the whole string to gettext.  This allows to exclude
42093         '\v' from the strings visible to the translator by writing doc
42094         strings as N_("..") "\v" N_("..").
42095
42096 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42097
42098         * config/srclist.txt: Undo latest change; the bug was fixed.
42099
42100 2006-09-09  Bruno Haible  <bruno@clisp.org>
42101
42102         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42103         assignments if building a library without libtool.
42104         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42105         in func_emit_lib_Makefile_am.
42106         (func_import): When building a static library libfoo.a, arrange to
42107         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42108         (func_create_testdir): Likewise.
42109         * modules/gc (configure.ac, Makefile.am): If building statically,
42110         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42111         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42112         * modules/striconv (configure.ac, Makefile.am): Likewise.
42113         Based on a suggestion by Ralf Wildenhues.
42114
42115 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42116
42117         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42118         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42119         Also:
42120
42121         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42122         Add year_2050_test to catch glibc bug 2821
42123         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42124
42125         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42126         Prefer #ifdef to #if.
42127
42128         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42129         Return from 'main' instead of calling 'exit'.
42130
42131 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42134         returned the maximum time_t value rather than (time_t) -1.
42135         Problem originally reported by William Bardwell
42136         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42137
42138         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42139         Moved to here ...
42140         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42141         ... from here.
42142
42143 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42144
42145         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42146         2821 is fixed.
42147
42148 2006-09-08  Jim Meyering  <jim@meyering.net>
42149
42150         Don't make generated files read-only.  That would bother too many
42151         people.  However, do retain the ability to work when targets are
42152         read-only: remove the destination and temporary files before writing
42153         them (when generated via sed or echo), or by using the -f option for
42154         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42155         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42156         * modules/byteswap, modules/configmake, modules/fcntl:
42157         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42158         * modules/localcharset, modules/netinet_in, modules/poll:
42159         * modules/stdbool, modules/stdint, modules/sys_select:
42160         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42161
42162 2006-09-08  Jim Meyering  <jim@meyering.net>
42163
42164         Avoid new build failure on FreeBSD 6.0.
42165         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42166         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42167         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42168
42169 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42170
42171         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42172
42173 2006-09-07  Jim Meyering  <jim@meyering.net>
42174
42175         Fix global typo in last change: use chmod u-w, not chmod u-x.
42176         Spotted by Paul Eggert and Bruce Korb.
42177         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42178         * modules/byteswap, modules/configmake, modules/fcntl:
42179         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42180         * modules/localcharset, modules/netinet_in, modules/poll:
42181         * modules/stdbool, modules/stdint, modules/sys_select:
42182         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42183
42184 2006-09-06  Jim Meyering  <jim@meyering.net>
42185
42186         Make generated files be read-only.
42187         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42188         Ensure that each generated file is now read-only.
42189         * modules/argz: Likewise.
42190         * modules/arpa_inet: Likewise.
42191         * modules/byteswap: Likewise.
42192         * modules/configmake: Likewise.
42193         * modules/fcntl: Likewise.
42194         * modules/fnmatch: Likewise.
42195         * modules/getopt: Likewise.
42196         * modules/glob: Likewise.
42197         * modules/inttypes: Likewise.
42198         * modules/netinet_in: Likewise.
42199         * modules/poll: Likewise.
42200         * modules/stdbool: Likewise.
42201         * modules/stdint: Likewise.
42202         * modules/sys_select: Likewise.
42203         * modules/sys_socket: Likewise.
42204         * modules/sys_stat: Likewise.
42205         * modules/sysexits: Likewise.
42206         * modules/localcharset: Same as above, but continue using temporary
42207         file named "t-$@" (why different?) rather than the "$@-t" used
42208         everywhere else.
42209
42210         * modules/sysexits (Makefile.am): Replace literal occurrences
42211         of "sysexit.h" more readable, and more consistent, "$@".
42212
42213 2006-09-06  Bruno Haible  <bruno@clisp.org>
42214
42215         * modules/striconv: New file.
42216         * modules/xstriconv: New file.
42217         * MODULES.html.sh (Internationalization functions): Add striconv,
42218         xstriconv.
42219
42220 2006-09-06  Bruno Haible  <bruno@clisp.org>
42221
42222         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42223         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42224         not using libtool correctly.
42225
42226 2006-09-06  Bruno Haible  <bruno@clisp.org>
42227
42228         * lib/striconv.h: New file.
42229         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42230         iconvstring.c.
42231         * lib/xstriconv.h: New file.
42232         * lib/xstriconv.c: New file.
42233
42234 2006-09-06  Bruno Haible  <bruno@clisp.org>
42235
42236         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42237         lib_..._LDFLAGS.
42238
42239 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42240
42241         * lib/argz_.h: Sync from Libtool.
42242
42243         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42244                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42245
42246         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42247
42248 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42249
42250         * modules/trim: New file.
42251
42252 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42253
42254         * lib/trim.h: New file.
42255         * lib/trim.c: New file.
42256
42257 2006-09-05  Bruno Haible  <bruno@clisp.org>
42258
42259         * MODULES.html.sh (String handling): Add trim.
42260
42261 2006-09-04  Karl Berry  <karl@gnu.org>
42262
42263         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42264         until next release.
42265
42266 2006-09-03  Bruno Haible  <bruno@clisp.org>
42267
42268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42269         correctly.
42270
42271 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42272
42273         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42274         not gl_GETLOADAVG.  Omit unneeded semicolons.
42275         Problems reported by Ralf Wildenhues in
42276         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42277         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42278         at the end, which is the usual gnulib style.
42279
42280         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42281         of doing all the work ourselves.
42282         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42283         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42284
42285 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42286
42287         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42288         Problem reported by Ralf Wildenhues in
42289         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42290
42291         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42292         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42293
42294 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42295
42296         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42297         yesterday's patch by changing test -n to test -z.
42298
42299 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42300
42301         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42302         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42303         the former is now obsolescent.
42304
42305         * modules/chdir-long (Depends-on): Add fcntl.
42306
42307 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42308
42309         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42310         obsolescent, and programs should use gnulib instead.
42311         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42312         but with prefixes changed.
42313
42314 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42315
42316         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42317         or stdbool.h, because they might not exist while configuring.
42318
42319         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42320         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42321         does that for us.
42322         (O_DIRECTORY): Remove.
42323
42324 2006-08-31  Eric Blake  <ebb9@byu.net>
42325
42326         * gnulib-tool: Don't let emacs change spaces to TAB.
42327
42328 2006-08-31  Bruno Haible  <bruno@clisp.org>
42329
42330         * gnulib-tool: When calling func_import more than once, do it in a
42331         subshell.
42332         Reported by Eric Blake <ebb9@byu.net>.
42333
42334 2006-08-31  Bruno Haible  <bruno@clisp.org>
42335
42336         * gnulib-tool (nl): Remove variable.
42337         (sed_transform_lib_file): Use more robust test for config-h module.
42338         (func_import): Fix typo in 2006-08-25 patch.
42339
42340 2006-08-31  Bruno Haible  <bruno@clisp.org>
42341
42342         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42343         specified, augment Makefile.am variables instead of assigning them.
42344
42345 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42346
42347         Work around a bug in both the Linux and SunOS 64-bit kernels:
42348         nanosleep mishandles sleeps for longer than 2**31 seconds.
42349         Problem reported by Frank v Waveren in
42350         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42352         Check for nanosleep bug.
42353         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42354
42355 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42356
42357         Work around a bug in both the Linux and SunOS 64-bit kernels:
42358         nanosleep mishandles sleeps for longer than 2**31 seconds.
42359         Problem reported by Frank v Waveren in
42360         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42361         * lib/nanosleep.c (BILLION): New constant.
42362         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42363         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42364         implementation.
42365
42366 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42367
42368         * modules/nanosleep (Depends-on): Add gettime.
42369
42370 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42371         and Simon Josefsson  <jas@extundo.com>
42372         and Oskar Liljeblad  <oskar@osk.mine.nu>
42373
42374         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42375         * gnulib-tool (func_import): New license type 'unmodifiable license
42376         text'.
42377         * modules/fdl: Use it.  Longer description.
42378         * module/gpl, module/lgpl: New files.
42379
42380 2006-08-30  Jim Meyering  <jim@meyering.net>
42381
42382         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42383         shadowing the parameter.
42384
42385 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42386
42387         Sync from Libtool:
42388
42389         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42390
42391         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42392         sharing with gnulib.  Report by Eric Blake.
42393
42394 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42395
42396         * modules/isapipe: New file.
42397         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42398
42399 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42400
42401         * modules/configmake (Makefile.am): Add a comment, and omit
42402         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42403         by Bruno Haible.
42404
42405 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42406
42407         * m4/isapipe.m4: New file.
42408
42409 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42410
42411         * lib/isapipe.c, lib/isapipe.h: New files.
42412
42413 2006-08-29  Jim Meyering  <jim@meyering.net>
42414
42415         * modules/configmake (Makefile.am): Make configmake.h depend on
42416         Makefile.  Otherwise, a stale configmake.h could hang around.
42417
42418 2006-08-29  Eric Blake  <ebb9@byu.net>
42419
42420         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42421         resolution of upstream bug 3044.
42422
42423 2006-08-29  Bruno Haible  <bruno@clisp.org>
42424
42425         * modules/localcharset (Depends-on): Add configmake.
42426         (Makefile.am): Remove setting of LIBDIR through DEFS.
42427
42428 2006-08-29  Bruno Haible  <bruno@clisp.org>
42429
42430         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42431         defined.
42432
42433 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42434
42435         * modules/fcntl: New file.
42436         * modules/chdir-safer (Depends-on): Add fcntl.
42437         * modules/fts: Likewise.
42438         * modules/mkdir-p: Likewise.
42439
42440         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42441         This undoes the most recent change, since we're now addressing the
42442         problem in a different way.
42443
42444         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42445         into output, since the output might be called Makefile.am even
42446         if $makefile_name is something different.
42447         (func_import): Use $makefile_am rather than
42448         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42449         empty.
42450
42451         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42452
42453 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42456         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42457         recent change to stdint.m4, since we're now addressing the problem in a
42458         different way.
42459
42460 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42461
42462         * m4/fcntl_h.m4: New file.
42463
42464 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42465
42466         * lib/fcntl_.h: New file.
42467         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42468         the fcntl module.
42469         * lib/dirchownmod.c: Likewise.
42470         * lib/fts.c: Likewise.
42471
42472         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42473         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42474         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42475         just before including <inttypes.h>, to avoid circular inclusion.
42476
42477 2006-08-28  Jim Meyering  <jim@meyering.net>
42478
42479         * doc/visibility.texi: Actually read and correct the grammar of the
42480         sentence affected by yesterday's change.
42481
42482 2006-08-28  Eric Blake  <ebb9@byu.net>
42483
42484         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42485         needs wrapper.
42486
42487 2006-08-28  Eric Blake  <ebb9@byu.net>
42488
42489         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42490
42491 2006-08-28  Eric Blake  <ebb9@byu.net>
42492
42493         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42494
42495 2006-08-28  Bruno Haible  <bruno@clisp.org>
42496
42497         * modules/c-strstr: New file, from GNU gettext.
42498         * MODULES.html.sh (String handling): Add c-strstr.
42499
42500 2006-08-28  Bruno Haible  <bruno@clisp.org>
42501
42502         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42503         macros.
42504         Reported by Eric Blake.
42505
42506 2006-08-28  Bruno Haible  <bruno@clisp.org>
42507
42508         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42509         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42510         * lib/vasprintf.c: Include errno.h, limits.h.
42511         (EOVERFLOW): New fallback definition.
42512         (vasprintf): Test here whether the string length is > INT_MAX.
42513         * lib/vsnprintf.c: Include errno.h, limits.h.
42514         (EOVERFLOW): New fallback definition.
42515         (vsnprintf): Fix bug when generated string was too long for the buffer.
42516         Test here whether the string length is > INT_MAX.
42517
42518 2006-08-28  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/inttypes_.h (SCNX*): Remove definitions.
42521         Reported by Eric Blake.
42522
42523 2006-08-28  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/c-strstr.h: New file, from GNU gettext.
42526         * lib/c-strstr.c: New file, from GNU gettext.
42527
42528 2006-08-28  Bruno Haible  <bruno@clisp.org>
42529
42530         * gnulib-tool: Reorder some statements.
42531
42532 2006-08-28  Bruno Haible  <bruno@clisp.org>
42533
42534         * gnulib-tool: New option --makefile-name.
42535         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42536         $makefile_name.
42537         (func_import): Write $makefile_name to the cache file, and read it from
42538         there unless explicitly specified. Use $makefile_name as file name
42539         instead of Makefile.am. Adjust the recommendations accordingly.
42540
42541 2006-08-28  Bruno Haible  <bruno@clisp.org>
42542
42543         * gnulib-tool (func_verify_module): Check against misapplying patch.
42544
42545 2006-08-28  Bruno Haible  <bruno@clisp.org>
42546
42547         * gnulib-tool (func_relativize, func_relconcat): New functions.
42548         Give an error if --local-dir is given with --update.
42549         Remove trailing slashes from $local_gnulib_dir.
42550         (func_import): Store the relativized $local_gnulib_dir in
42551         gnulib-cache.m4, and read it from there if not specified explicitly.
42552
42553 2006-08-28  Bruno Haible  <bruno@clisp.org>
42554
42555         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42556         is the current directory. Respect also $local_gnulib_dir.
42557
42558 2006-08-28  Bruno Haible  <bruno@clisp.org>
42559             Simon Josefsson  <jas@extundo.com>
42560
42561         BeOS portability.
42562         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42563
42564 2006-08-27  Jim Meyering  <jim@meyering.net>
42565
42566         * doc/visibility.texi: Remove duplicate word: "pointer".
42567
42568 2006-08-26  Bruno Haible  <bruno@clisp.org>
42569
42570         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42571         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42572         (Makefile.am): Create inttypes.h from inttypes_.h.
42573         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42574
42575         * modules/imaxabs: New file.
42576
42577         * modules/imaxdiv: New file.
42578
42579 2006-08-26  Bruno Haible  <bruno@clisp.org>
42580
42581         * m4/inttypes.m4: New file.
42582         * m4/_inttypes_h.m4: Remove file.
42583         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42584         PRI_MACROS_BROKEN.
42585         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42586
42587         * m4/imaxabs.m4: New file.
42588
42589         * m4/imaxdiv.m4: New file.
42590
42591 2006-08-26  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/inttypes_.h: New file.
42594         * lib/inttypes.h: Remove file.
42595         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42596
42597         * lib/imaxabs.c: New file.
42598
42599         * lib/imaxdiv.c: New file.
42600
42601 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42602
42603         New config-h module, so that "make" output needn't be cluttered
42604         by -DHAVE_CONFIG_H.
42605         * MODULES.html.sh (Support for building libraries and executables):
42606         Add config-h.
42607         * modules/config-h: New file.
42608         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42609         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42610         the config-h module is used.
42611
42612         New configmake module, so that "make" output needn't be cluttered
42613         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42614         * MODULES.html.sh (Support for building libraries and executables):
42615         Add configmake.
42616         * modules/configmake: New file.
42617
42618 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42619
42620         * m4/config-h.m4: New file.
42621
42622 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42623
42624         * config/srclist.txt: Add elisp-comp.
42625
42626 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * MODULES.html.sh (Support for building libraries and executables):
42629         Add elisp-comp.
42630         * build-aux/elisp-comp: New file.
42631         * modules/elisp-comp: New file.
42632
42633 2006-08-24  Bruno Haible  <bruno@clisp.org>
42634
42635         * gnulib-tool (func_create_testdir): Use non-default values of
42636         sourcebase and m4base.
42637
42638 2006-08-24  Bruno Haible  <bruno@clisp.org>
42639
42640         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42641         HTML structure.
42642
42643 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42644
42645         * modules/openat (Depends-on): Add lchown.
42646
42647 2006-08-23  Bruno Haible  <bruno@clisp.org>
42648
42649         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42650         of gl_LOCK_EARLY instead of gl_LOCK.
42651
42652 2006-08-23  Bruno Haible  <bruno@clisp.org>
42653
42654         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42655         on OSF/1 to no.
42656         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42657
42658 2006-08-23  Bruno Haible  <bruno@clisp.org>
42659
42660         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42661         as unusable.
42662
42663         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42664         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42665         (gl_LOCK): New macro.
42666
42667 2006-08-22  Simon Josefsson  <jas@extundo.com>
42668
42669         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42670         to md5 module.
42671
42672 2006-08-22  Simon Josefsson  <jas@extundo.com>
42673
42674         * MODULES.html.sh: Add "Support for maintaining and release
42675         projects".
42676
42677         * build-aux/gnupload: New file, from coreutils.
42678
42679 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42680
42681         Avoid the need for AC_LIBSOURCES in m4 macros.
42682         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42683         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42684         * modules/check-version (EXTRA_DIST): Add check-version.h.
42685         * modules/crc (EXTRA_DIST): Add crc.h.
42686         * modules/des (EXTRA_DIST): Add des.h.
42687         * modules/gc (EXTRA_DIST): Add gc.h.
42688         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42689         * modules/getline (EXTRA_DIST): Add getline.h.
42690         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42691         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42692         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42693         * modules/md2 (EXTRA_DIST): Add md2.h.
42694         * modules/md4 (EXTRA_DIST): Add md4.h.
42695         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42696         * modules/read-file (EXTRA_DIST): Add read-file.h.
42697         * modules/readline (EXTRA_DIST): Add readline.h.
42698         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42699         rijndael-api-fst.h.
42700
42701 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42702
42703         * m4/rijndael.m4 (gl_ARCFOUR):
42704         * m4/arctwo.m4 (gl_ARCTWO):
42705         * m4/check-version.m4 (gl_CHECK_VERSION):
42706         * m4/crc.m4 (gl_CRC):
42707         * m4/des.m4 (gl_DES):
42708         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42709         * m4/gc.m4 (gl_GC):
42710         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42711         * m4/getline.m4 (gl_FUNC_GETLINE):
42712         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42713         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42714         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42715         * m4/md2.m4 (gl_MD2):
42716         * m4/md4.m4 (gl_MD4):
42717         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42718         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42719         * m4/readline.m4 (gl_FUNC_READLINE):
42720         * m4/rijndael.m4 (gl_RIJNDAEL):
42721         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42722         to get the necessary .h files and whatnot.
42723
42724 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42725
42726         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42727         gnulib rather than the other way around.
42728         * config/srclistvars.sh (COREUTILS): Remove.
42729
42730 2006-08-22  Jim Meyering  <jim@meyering.net>
42731
42732         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42733
42734         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42735
42736 2006-08-22  Eric Blake  <ebb9@byu.net>
42737
42738         * modules/regexprops-generic: New file.
42739         * MODULES.html.sh (Support for building documentation): List it.
42740
42741 2006-08-22  Eric Blake  <ebb9@byu.net>
42742
42743         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42744         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42745         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42746         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42747
42748 2006-08-22  Bruno Haible  <bruno@clisp.org>
42749
42750         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42751         and lib_LTLIBRARIES like the other lib_* variables.
42752
42753 2006-08-22  Bruno Haible  <bruno@clisp.org>
42754
42755         * build-aux/x-to-1.in: New file, from GNU gettext.
42756
42757 2006-08-22  Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42760         <utmpx.h> exists.
42761
42762 2006-08-22  Bruno Haible  <bruno@clisp.org>
42763
42764         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42765         <utmpx.h> exists.
42766
42767 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42768
42769         BeOS portability.
42770         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42771         exist.
42772         Problem reported by Bruno Haible.
42773
42774 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42775
42776         Avoid the need for AC_LIBSOURCES in m4 macros.
42777         * modules/acl (EXTRA_DIST): Add acl.h.
42778         * modules/argmatch (Files): Add m4/argmatch.m4.
42779         (configure.ac): Add gl_ARGMATCH.
42780         (EXTRA_DIST): Renamed from lib_SOURCES, for
42781         consistency with the other modules.  Remove argmatch.c.
42782         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42783         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42784         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42785         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42786         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42787         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42788         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42789         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42790         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42791         * modules/closeout (EXTRA_DIST): Add closeout.h.
42792         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42793         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42794         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42795         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42796         dirname.h; remove basename.c and stripslash.c.
42797         * modules/exclude (EXTRA_DIST): Add exclude.h.
42798         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42799         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42800         * modules/file-type (EXTRA_DIST): Add file-type.h.
42801         * modules/filemode (EXTRA_DIST): Add filemode.h.
42802         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42803         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42804         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42805         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42806         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42807         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42808         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42809         * modules/getdate (EXTRA_DIST): Add getdate.c.
42810         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42811         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42812         * modules/getpass (EXTRA_DIST): Add getpass.h.
42813         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42814         * modules/group-member (EXTRA_DIST): Add group-member.h.
42815         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42816         * modules/hash (EXTRA_DIST): Add hash.h.
42817         * modules/human (EXTRA_DIST): Add human.h.
42818         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42819         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42820         * modules/lchown (EXTRA_DIST): Add lchown.h.
42821         * modules/long-options (EXTRA_DIST): Add long-options.h.
42822         * modules/lstat (EXTRA_DIST): Add lstat.h.
42823         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42824         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42825         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42826         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42827         * modules/memxor (EXTRA_DIST): Add memxor.h.
42828         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42829         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42830         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42831         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42832         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42833         * modules/physmem (EXTRA_DIST): Add physmem.h.
42834         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42835         * modules/posixver (EXTRA_DIST): Add posixver.h.
42836         * modules/quote (EXTRA_DIST): Add quote.h.
42837         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42838         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42839         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42840         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42841         regex_internal.h regexec.c.
42842         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42843         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42844         * modules/same (EXTRA_DIST): Add same.h.
42845         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42846         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42847         * modules/savedir (EXTRA_DIST): Add savedir.h.
42848         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42849         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42850         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42851         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42852         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42853         * modules/strdup (EXTRA_DIST): Add strdup.h.
42854         * modules/strftime (EXTRA_DIST): Add strftime.h.
42855         * modules/strndup (EXTRA_DIST): Add strndup.h.
42856         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42857         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42858         * modules/time_r (EXTRA_DIST): Add time_r.h.
42859         * modules/timespec (EXTRA_DIST): Add timespec.h.
42860         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42861         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42862         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42863         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42864         * modules/userspec (EXTRA_DIST): Add userspec.h.
42865         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42866         * modules/utimens (EXTRA_DIST): Add utimens.h.
42867         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42868         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42869         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42870         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42871         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42872         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42873         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42874         * modules/yesno (EXTRA_DIST): Add yesno.h.
42875
42876 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42877
42878         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42879
42880         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42881         * m4/dev-ino.m4, same-inode.m4: Remove.
42882
42883         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42884         * m4/acl.m4 (AC_FUNC_ACL):
42885         * m4/backupfile.m4 (gl_BACKUPFILE):
42886         * m4/c-strtod.m4 (gl_C99_STRTOLD):
42887         * m4/canon-host.m4 (gl_CANON_HOST):
42888         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42890         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42891         * m4/cloexec.m4 (gl_CLOEXEC):
42892         * m4/close-stream.m4 (gl_CLOSE_STREAM):
42893         * m4/closeout.m4 (gl_CLOSEOUT):
42894         * m4/dirfd.m4 (gl_FUNC_DIRFD):
42895         * m4/dirname.m4 (gl_DIRNAME):
42896         * m4/exclude.m4 (gl_EXCLUDE):
42897         * m4/exitfail.m4 (gl_EXITFAIL):
42898         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42899         * m4/file-type.m4 (gl_FILE_TYPE):
42900         * m4/filemode.m4 (gl_FILEMODE):
42901         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42902         * m4/fpending.m4 (gl_FUNC_FPENDING):
42903         * m4/fprintftime.m4 (gl_FPRINTFTIME):
42904         * m4/fts.m4 (gl_FUNC_FTS):
42905         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42906         * m4/getdate.m4 (gl_GETDATE):
42907         * m4/gethrxtime.m4 (gl_GETHRXTIME):
42908         * m4/getpagesize.m4 (gl_GETPAGESIZE):
42909         * m4/getpass.m4 (gl_FUNC_GETPASS):
42910         * m4/gettime.m4 (gl_GETTIME):
42911         * m4/getugroups.m4 (gl_GETUGROUPS):
42912         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42913         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42914         * m4/hard-locale.m4 (gl_HARD_LOCALE):
42915         * m4/hash.m4 (gl_HASH):
42916         * m4/idcache.m4 (gl_IDCACHE):
42917         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42918         * m4/lchown.m4 (gl_FUNC_LCHOWN):
42919         * m4/long-options.m4 (gl_LONG_OPTIONS):
42920         * m4/lstat.m4 (gl_FUNC_LSTAT):
42921         * m4/md5.m4 (gl_MD5):
42922         * m4/memcasecmp.m4 (gl_MEMCASECMP):
42923         * m4/memcoll.m4 (gl_MEMCOLL):
42924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42926         * m4/memxor.m4 (gl_MEMXOR):
42927         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42928         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42929         * m4/modechange.m4 (gl_MODECHANGE):
42930         * m4/mountlist.m4 (gl_MOUNTLIST):
42931         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42932         * m4/openat.m4 (gl_FUNC_OPENAT):
42933         * m4/pathmax.m4 (gl_PATHMAX):
42934         * m4/physmem.m4 (gl_PHYSMEM):
42935         * m4/posixtm.m4 (gl_POSIXTM):
42936         * m4/posixver.m4 (gl_POSIXVER):
42937         * m4/quote.m4 (gl_QUOTE):
42938         * m4/quotearg.m4 (gl_QUOTEARG):
42939         * m4/readtokens.m4 (gl_READTOKENS):
42940         * m4/readutmp.m4 (gl_READUTMP):
42941         * m4/regex.m4 (gl_REGEX):
42942         * m4/safe-read.m4 (gl_SAFE_READ):
42943         * m4/safe-write.m4 (gl_SAFE_WRITE):
42944         * m4/same.m4 (gl_SAME):
42945         * m4/save-cwd.m4 (gl_SAVE_CWD):
42946         * m4/savedir.m4 (gl_SAVEDIR):
42947         * m4/settime.m4 (gl_SETTIME):
42948         * m4/sha1.m4 (gl_SHA1):
42949         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42950         * m4/stat-macros.m4 (gl_STAT_MACROS):
42951         * m4/stat-time.m4 (gl_STAT_TIME):
42952         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42953         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42954         * m4/strdup.m4 (gl_FUNC_STRDUP):
42955         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42956         * m4/strndup.m4 (gl_FUNC_STRNDUP):
42957         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42958         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42959         * m4/time_r.m4 (gl_TIME_R):
42960         * m4/timespec.m4 (gl_TIMESPEC):
42961         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42962         * m4/unlinkdir.m4 (gl_UNLINKDIR):
42963         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42964         * m4/userspec.m4 (gl_USERSPEC):
42965         * m4/utimecmp.m4 (gl_UTIMECMP):
42966         * m4/utimens.m4 (gl_UTIMENS):
42967         * m4/xalloc.m4 (gl_XALLOC):
42968         * m4/xgetcwd.m4 (gl_XGETCWD):
42969         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42970         * m4/xreadlink.m4 (gl_XREADLINK):
42971         * m4/xstrtod.m4 (gl_XSTRTOD):
42972         * m4/yesno.m4 (gl_YESNO):
42973         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42974         to get the necessary .h files and whatnot.
42975
42976 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
42977             Bruno Haible  <bruno@clisp.org>
42978
42979         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42980         /bin/sh understanding of '!' conditional negation.
42981
42982 2006-08-21  Jim Meyering  <jim@meyering.net>
42983
42984         * modules/openat (Depends-on): Really alphabetize.
42985
42986         * modules/acl (Depends-on): Add error and quote.
42987
42988         * check-module (find_included_lib_files): Add at-func.c to the
42989         ok-to-include-more-than-once white list.
42990
42991         * modules/openat (Depends-on): Add lstat.  Alphabetize.
42992
42993 2006-08-21  Bruno Haible  <bruno@clisp.org>
42994
42995         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42996         Emit a pkgdata_DATA variable only if some snippets add contents to it.
42997         Reported by Martin Lambers <marlam@marlam.de>.
42998
42999 2006-08-21  Bruno Haible  <bruno@clisp.org>
43000
43001         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43002         specify an installation location, don't emit a noinst_LIBRARIES or
43003         noinst_LTLIBRARIES assignment.
43004
43005 2006-08-21  Bruno Haible  <bruno@clisp.org>
43006
43007         BeOS portability.
43008         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43009         BeOS has mbrtowc() but no <wctype.h>.
43010
43011 2006-08-21  Bruno Haible  <bruno@clisp.org>
43012
43013         BeOS portability.
43014         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43015         exist.
43016
43017 2006-08-21  Bruno Haible  <bruno@clisp.org>
43018
43019         BeOS portability.
43020         * lib/mbchar.h: Include <wctype.h> only if it exists.
43021
43022 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43023
43024         Remove files that are no longer needed by their respective modules.
43025         * m4/obstack.m4: Remove.
43026         * m4/strerror_r.m4: Remove.
43027         * m4/uint32_t.m4: Remove.
43028         * m4/uintptr_t.m4: Remove.
43029         * m4/ullong_max.m4: Remove.
43030         * m4/xstrtoimax.m4: Remove.
43031         * m4/xstrtoumax.m4: Remove.
43032
43033         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43034         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43035         dependencies now capture this.
43036
43037         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43038         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43039         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43040         * m4/human.m4 (gl_HUMAN): Likewise.
43041         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43042         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43043
43044         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43045
43046         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43047         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43048         stdint.
43049         * m4/human.m4 (gl_HUMAN): Likewise.
43050         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43051         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43052         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43053         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43054         * m4/xstrtol (gl_XSTRTOL): Likewise.
43055
43056         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43057         AC_TYPE_LONG_LONG_INT.
43058         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43059         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43060         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43061         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43062
43063         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43064         on stdbool.
43065
43066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43067         (gl_PREREQ_XSTRTOUL): Remove.
43068
43069         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43070
43071         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43072         mode.
43073
43074 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43075
43076         Add and change modules to make it easier for coreutils to use
43077         gnulib-tool.
43078         * modules/backupfile (Files): Remove m4/d-ino.m4.
43079         (Depends-on): Add d-ino.
43080         * modules/cycle-check (Depends-on): Add stdint.
43081         (lib_SOURCES): Add cycle-check.h.
43082         * modules/d-ino: New module.
43083         * modules/d-type: New module.
43084         * modules/error (Files): Remove m4/strerror_r.m4.
43085         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43086         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43087         m4/inttypes_h.m4, m4/uintmax_t.m4.
43088         (Depends-on): Add stdint.
43089         (lib_SOURCES): Add fsusage.h.
43090         * modules/getcwd (Files): Remove d-ino.m4.
43091         (Depends-on): Add d-ino.
43092         * modules/getndelim2 (Depends-on): Add stdint.
43093         * modules/glob (Files): Remove m4/d-type.m4.
43094         (Depends-on): Add d-type.
43095         * modules/host-os: New module.
43096         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43097         m4/inttypes_h.m4, m4/uintmax_t.m4.
43098         * Depends-on: Add stdint.
43099         (lib_SOURCES): Add human.h.
43100         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43101         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43102         m4/uintmax_t.m4, m4/ulonglong.m4.
43103         (Depends-on): Add stdint.
43104         (EXTRA_DIST): Add inttostr.h.
43105         * modules/lchmod: New module.
43106         * modules/link-follow: New module.
43107         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43108         (Depends-on): Add lchmod.
43109         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43110         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43111         (Depends-on): Add stdint.
43112         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43113         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43114         (Depends-on): Add stdint.
43115         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43116         * modules/perl: New module.
43117         * modules/regex (Depends-on): Add stdint.
43118         * modules/rmdir-errno: New module.
43119         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43120         m4/intmax_t.m4.
43121         (Depends-on): Add stdint.
43122         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43123         m4/uintmax_t.m4.
43124         (Depends-on): Add stdint.
43125         * modules/unlink-busy: New module.
43126         * modules/utimecmp (Depends-on): Add stdint.
43127         * modules/uptime: New module.
43128         * modules/winsz-ioctl: New module.
43129         * modules/winsz-termios: New module.
43130         * modules/xnanosleep (Depends-on): Add nanosleep.
43131         * modules/ullong_max: Remove.
43132         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43133         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43134         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43135         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43136         (Depends-on): Add inttypes.
43137         (lib_SOURCES): Add xstrtol.h.
43138         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43139         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43140         * MODULES.html.sh: Move 'assert' into the assert section.
43141         Move 'dummy' into the linking section.
43142         Remove ullong_max.
43143         Add section for compatibility checks for POSIX:2001 functions,
43144         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43145         winsz-ioctl, and winsz-termios into it.
43146         Add lchmod.
43147         Add top-level Misc section and put host-os, perl, and uptime
43148         into it.
43149
43150 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43151
43152         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43153         now assume the stdint module.  Do not include inttypes.h.
43154         * lib/fsusage.h: Likewise.
43155         * lib/getndelim2.c: Likewise.
43156         * lib/human.h: Likewise.
43157         * lib/inttostr.h: Likewise.
43158         * lib/obstack.c: Likewise.
43159         * lib/regex_internal.h: Likewise.
43160         * lib/tempname.c: Likewise.
43161         * lib/utimecmp.c: Likewise.
43162         * lib/xstrtol.h: Likewise.
43163
43164         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43165
43166         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43167         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43168         * lib/xtime.h: Likewise.
43169
43170 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43171
43172         * modules/openat (Files): Add lib/fchmodat.c.
43173         Fixes problem reported by Jay Youngman.
43174
43175 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43176
43177         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43178         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43179
43180 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43181             Bruno Haible  <bruno@clisp.org>
43182
43183         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43184         and is a script that invokes bison. Tighten the code. Add comments.
43185
43186 2006-08-18  Jim Meyering  <jim@meyering.net>
43187
43188         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43189         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43190         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43191         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43192
43193 2006-08-18  Bruno Haible  <bruno@clisp.org>
43194
43195         * modules/bison-i18n: New file.
43196         * MODULES.html.sh (Internationalization functions): Add it.
43197
43198 2006-08-18  Bruno Haible  <bruno@clisp.org>
43199
43200         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43201         sys/statvfs.h. When getmntinfo was found, check its declaration and
43202         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43203
43204 2006-08-18  Bruno Haible  <bruno@clisp.org>
43205
43206         * m4/bison-i18n.m4: New file, from bison.
43207
43208 2006-08-18  Bruno Haible  <bruno@clisp.org>
43209
43210         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43211         (ME_DUMMY): Treat "kernfs" as a dummy.
43212         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43213
43214 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43215
43216         Update from coreutils.
43217
43218         2006-08-15  Jim Meyering  <jim@meyering.net>
43219
43220         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43221
43222         2006-01-17  Jim Meyering  <jim@meyering.net>
43223
43224         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43225
43226         2006-01-11  Jim Meyering  <jim@meyering.net>
43227
43228         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43229         Check for the lchmod function.
43230
43231 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43232
43233         Update from coreutils.
43234
43235         * lib/__fpending.h: Add copyright notice.
43236         * lib/fprintftime.h: Likewise.
43237         * lib/savedir.c: Use (C) in copyright notice.
43238         * lib/savedir.h: Likewise.
43239
43240         2006-08-15  Jim Meyering  <jim@meyering.net>
43241
43242         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43243         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43244         in support of the EXPECTED_ERRNO macro.
43245         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43246         definitions.  Instead, define the appropriate symbols and include
43247         "at-func.c".
43248         * lib/mkdirat.c (mkdirat): Likewise.
43249         * lib/fchmodat.c (fchmodat): Likewise.
43250         (ENOSYS): Remove definition.
43251         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43252         it.  Don't include "unistd--.h" -- it wasn't ever used.
43253
43254         2006-01-17  Jim Meyering  <jim@meyering.net>
43255
43256         Rewrite fts.c not to change the current working directory,
43257         by using openat, fstatat, fdopendir, etc..
43258
43259         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43260         (HAVE_OPENAT_SUPPORT): Define.
43261         [_LIBC] (fchdir): Don't undef or define; no longer used.
43262         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43263         Now, this `function' always succeeds, and consumes its file descriptor
43264         parameter -- so callers must not close such FDs.  Update callers.
43265         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43266         (diropen): Add parameter, SP.  Adjust all callers.
43267         Implement using diropen_fd, rather than open.
43268         (fts_open): Initialize new member, fts_cwd_fd.
43269         Remove fts_rft-setting code.
43270         (fts_close): Close fts_cwd_fd, if necessary.
43271         (__opendir2): Define in terms of opendir or opendirat,
43272         depending on whether the FST_NOCHDIR flag is set.
43273         (fts_build): Since fts_safe_changedir consumes its FD, and since
43274         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43275         and close the dup'd file descriptor upon failure.
43276         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43277         (fts_safe_changedir): Tweak semantics to reflect that this function
43278         now calls cwd_advance_fd and hence consumes its FD argument.
43279         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43280         [struct FTS] (fts_rft): Remove now-unused member.
43281         [struct FTS] (fts_cycle.state): Improve comment.
43282
43283         * lib/openat.c (openat_needs_fchdir): New function.
43284         * lib/openat.h (openat_needs_fchdir): Declare it.
43285
43286 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43287
43288         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43289         Problem and fix reported by Pádraig Brady in
43290         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43291
43292 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43293
43294         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43295
43296 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43297
43298         * lib/memcoll.c (memcoll): Optimize for the common case where the
43299         arguments are bytewise equal.
43300
43301 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43302
43303         * doc/regexprops-generic.texi: Add a copyright notice.
43304
43305 2006-08-15  Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/tmpdir (License): Change to LGPL.
43308
43309 2006-08-15  Bruno Haible  <bruno@clisp.org>
43310
43311         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43312         module.
43313
43314 2006-08-14  Simon Josefsson  <jas@extundo.com>
43315
43316         * config/srclist.txt: Add gnupload.
43317
43318 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43319
43320         Change copyright notice from LGPL 2 to GPL 2, since that's the
43321         standard form used in the gnulib repository.
43322         * tests/test-lock.c: Likewise.
43323         * tests/test-stdint.c: Likewise.
43324         * tests/test-tls.c: Likewise.
43325
43326         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43327         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43328         Add copyright notice.
43329
43330         * check-module: Add copyright notice.  Output a copyright
43331         notice if "--version" is specified.
43332         * modules/COPYING: New file.
43333         * tests/test-getaddrinfo.c: Add copyright notice.
43334         * tests/test-verify.c: Likewise.
43335
43336 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43337
43338         Change copyright notice from LGPL 2 to GPL 2, since that's the
43339         standard form used in the gnulib repository.
43340         * lib/lock.c: LGPL -> GPL.
43341         * lib/lock.h: Likewise.
43342         * lib/strnlen1.c: Likewise.
43343         * lib/strnlen1.h: Likewise.
43344         * lib/tls.c: Likewise.
43345         * lib/tls.h: Likewise.
43346         * lib/tmpdir.c: Likewise.
43347
43348         * lib/TODO: Remove; this belongs only in coreutils.
43349
43350 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         Add copyright notices to long-enough files that lack them, since
43353         otherwise the files aren't clearly free.  Use the same notice that
43354         getdate.texi already uses.
43355         * doc/alloca-opt.texi: Add copyright notice.
43356         * doc/alloca.texi: Likewise.
43357         * doc/ctime.texi: Likewise.
43358         * doc/functions.texi: Likewise.
43359         * doc/gcd.texi: Likewise.
43360         * doc/gnulib-tool.texi: Likewise.
43361         * doc/inet_ntoa.texi: Likewise.
43362         * doc/visibility.texi: Likewise.
43363
43364         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43365         * doc/quote.texi: Add copyright notice.
43366
43367         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43368         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43369         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43370         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43371         is now obsolete, and give a pointer to the Sun list.
43372         Add copyright notice.
43373
43374 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43375
43376         * config/srclistvars.sh: Add copyright notice.
43377
43378 2006-08-14  Eric Blake  <ebb9@byu.net>
43379
43380         Import the following change from libc:
43381
43382         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43383
43384         Upstream bug 2997.
43385         * lib/misc/error.c: Add space between program name and message if file
43386         name is missing.
43387
43388 2006-08-12  Karl Berry  <karl@gnu.org>
43389
43390         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43391         remove, these originate in gnulib now.
43392
43393 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43394
43395         * doc/Makefile (standards.info standards.html standards.dvi):
43396         Also depend on make-stds.texi.
43397
43398 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43399
43400         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43401         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43402
43403         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43404         in wchar_t.  Problem reported by Eric Blake.
43405
43406         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43407         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43408         Also, help the compiler to keep LEN in a register.
43409
43410 2006-08-11  Eric Blake  <ebb9@byu.net>
43411
43412         * users.txt: Sort.  Add tar.
43413
43414 2006-08-11  Bruno Haible  <bruno@clisp.org>
43415
43416         * users.txt: New file.
43417
43418 2006-08-11  Bruno Haible  <bruno@clisp.org>
43419
43420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43421         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43422
43423 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43424
43425         * modules/snprintf (Depends-on): Remove minmax.
43426         (Maintainer): Add self and Bruno.
43427
43428 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43429
43430         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43431         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43432         (EOVERFLOW): Define if the system does not.
43433         Do not include "minmax.h"; it wasn't used.
43434         (snprintf): Don't assume size_t promotes to an unsigned type.
43435         Fix bug when generated string was too long for the buffer: the
43436         buffer's contents are supposed to be the initial prefix of the
43437         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43438         exceeds INT_MAX; do the check ourselves.
43439
43440         Import the following changes from libc:
43441
43442         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43443
43444         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43445         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43446         set wc to the byte which couldn't be converted.
43447         (re_string_reconstruct): Don't clear valid_raw_len before calling
43448         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43449         tip_context using re_string_context_at.
43450
43451         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43452
43453         * lib/posix/regex.h: g++ still cannot handled [restrict].
43454
43455         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43456
43457         * lib/posix/regex.h: Remove special handling for VMS.
43458
43459 2006-08-10  Jim Meyering  <jim@meyering.net>
43460
43461         * modules/same-inode: New module.
43462         * modules/dev-ino: New module.
43463         * modules/cycle-check: Depend on these modules, rather than simply
43464         including their .h files.
43465         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43466         required via m4/cycle-check.m4.
43467         * modules/same: Depend on new same-inode module, rather than
43468         including same-inode.h.
43469         * modules/chdir-safer: New file.
43470
43471         * modules/chown (Depends-on): Add stat-macros.
43472
43473 2006-08-10  Jim Meyering  <jim@meyering.net>
43474
43475         * m4/cycle-check.m4: New file.
43476         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43477         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43478
43479 2006-08-10  Eric Blake  <ebb9@byu.net>
43480
43481         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43482         in from original proposal.
43483
43484 2006-08-10  Eric Blake  <ebb9@byu.net>
43485         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43486
43487         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43488         namespace.
43489
43490 2006-08-10  Bruno Haible  <bruno@clisp.org>
43491
43492         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43493         as well.
43494
43495 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43496
43497         Sync from coreutils.
43498
43499         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43500
43501         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43502         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43503
43504 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43505
43506         * modules/restrict: Remove; no longer needed now that we assume
43507         Autoconf 2.59 or later.
43508         * MODULES.html.sh: Remove 'restrict'.
43509         * modules/argp (Depends-on): Remove 'restrict'.
43510         * modules/base64 (Depends-on): Likewise.
43511         * modules/gc (Depends-on): Likewise.
43512         * modules/getaddrinfo (Depends-on): Likewise.
43513         * modules/glob (Depends-on): Likewise.
43514         * modules/inet_ntop (Depends-on): Likewise.
43515         * modules/inet_pton (Depends-on): Likewise.
43516         * modules/memxor (Depends-on): Likewise.
43517         * modules/regex (Depends-on): Likewise.
43518         * modules/strtok_r (Depends-on): Likewise.
43519         * modules/time_r (Depends-on): Likewise.
43520
43521 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43522
43523         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43524         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43525         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43526         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43527         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43528         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43529         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43530         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43531
43532         Merge from coreutils.
43533         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43534         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43535         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43536         * m4/time_r.m4 (gl_TIME_R): Likewise.
43537
43538 2006-08-09  Karl Berry  <karl@gnu.org>
43539
43540         * config/srclist.txt: no more gettext-tools, per Bruno.
43541
43542 2006-08-08  Eric Blake  <ebb9@byu.net>
43543
43544         * modules/verror: New module.
43545         * MODULES.html.sh: Document it.
43546
43547 2006-08-08  Eric Blake  <ebb9@byu.net>
43548
43549         * lib/verror.h, lib/verror.c: New files.
43550
43551 2006-08-08  Eric Blake  <ebb9@byu.net>
43552
43553         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43554         verror_at_line output complies with GNU Coding Standards even when
43555         file is NULL.
43556
43557 2006-08-07  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43560         versions of AIX.
43561         Reported by Ralf Wildenhues.
43562
43563 2006-08-07  Bruno Haible  <bruno@clisp.org>
43564
43565         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43566         in an AC_DEFUN. Needed so that the autoconf snippets can use
43567         AC_REQUIRE.
43568
43569 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43570
43571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43572         Initialize pkgdata_DATA.
43573         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43574         overriding it.
43575
43576 2006-08-06  Eric Blake  <ebb9@byu.net>
43577
43578         * lib/error.h: Fold in some upstream changes from glibc.
43579         * lib/error.c: Likewise.
43580
43581 2006-08-04  Bruno Haible  <bruno@clisp.org>
43582
43583         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43584         Make the mostlyclean-local rule depend on mostlyclean-generic.
43585         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43586
43587 2006-07-31  Bruno Haible  <bruno@clisp.org>
43588
43589         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43590         <stdlib.h>, <string.h>.
43591
43592 2006-07-30  Bruno Haible  <bruno@clisp.org>
43593
43594         * modules/readlink (License): Change to LGPL.
43595
43596 2006-07-30  Bruno Haible  <bruno@clisp.org>
43597
43598         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43599         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43600         set PKGDATADIR to point to it.
43601
43602 2006-07-30  Bruno Haible  <bruno@clisp.org>
43603
43604         * modules/csharpexec (configure.ac): Comment out macro invocation.
43605         * modules/javaexec (configure.ac): Likewise.
43606         * modules/javacomp-script (configure.ac): Likewise.
43607
43608         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43609
43610 2006-07-30  Bruno Haible  <bruno@clisp.org>
43611
43612         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43613         linked-list.
43614
43615 2006-07-30  Bruno Haible  <bruno@clisp.org>
43616
43617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43618
43619 2006-07-30  Bruno Haible  <bruno@clisp.org>
43620
43621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43622         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43623         get removed.
43624
43625 2006-07-29  Bruno Haible  <bruno@clisp.org>
43626
43627         Make it possible for gnulib-tool to work with locally modified or
43628         augmented gnulib repositories.
43629         * gnulib-tool (func_usage): Document --local-dir option.
43630         (local_gnulib_dir): New variable.
43631         Handle --local-dir option.
43632         (func_lookup_file): New function.
43633         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43634         (func_get_description, func_get_filelist, func_get_description,
43635         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43636         func_get_automake_snippet, func_get_include_directive,
43637         func_get_license, func_get_maintainer): Use func_lookup_file.
43638         (func_import, func_create_testdir): Use func_lookup_file.
43639
43640 2006-07-29  Bruno Haible  <bruno@clisp.org>
43641
43642         * modules/setenv (Depends-on): Add unistd.
43643
43644 2006-07-29  Bruno Haible  <bruno@clisp.org>
43645
43646         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43647
43648 2006-07-29  Bruno Haible  <bruno@clisp.org>
43649
43650         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43651
43652 2006-07-29  Bruno Haible  <bruno@clisp.org>
43653
43654         * gnulib-tool (import, update): If there is no Makefile.am, look at
43655         aclocal.m4, instead of bailing out.
43656
43657 2006-07-29  Bruno Haible  <bruno@clisp.org>
43658
43659         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43660         Categorize the options by when they are useful.
43661
43662 2006-07-29  Bruno Haible  <bruno@clisp.org>
43663
43664         * gnulib-tool (func_usage): Document option --no-libtool.
43665         Handle option --no-libtool.
43666         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43667         for changed semantics of $libtool variable.
43668         (func_import): Likewise. If libtool is not used, show this through
43669         an option --no-libtool.
43670         (func_create_testdir): Update.
43671
43672 2006-07-29  Bruno Haible  <bruno@clisp.org>
43673
43674         * gnulib-tool (func_import): Extend error message about missing
43675         --doc-base.
43676
43677 2006-07-29  Bruno Haible  <bruno@clisp.org>
43678
43679         * gnulib-tool (func_import): Don't create the $docbase directory if
43680         there is no file to store there.
43681
43682 2006-07-29  Bruno Haible  <bruno@clisp.org>
43683
43684         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43685         relevant, look for configure.ac there, not in the current directory.
43686         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43687
43688 2006-07-29  Bruno Haible  <bruno@clisp.org>
43689
43690         * gnulib-tool (SORT): New variable.
43691         (func_usage): Undocument --assume-autoconf option.
43692         Remove --assume-autoconf option handling.
43693         (autoconf_minversion): Determine from the contents of configure.ac.
43694         (func_import): Remove autoconf_minversion handling.
43695         Suggested by Eric Blake.
43696
43697 2006-07-29  Bruno Haible  <bruno@clisp.org>
43698
43699         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43700
43701 2006-07-29  Bruno Haible  <bruno@clisp.org>
43702
43703         * config/srclist.txt (*setenv.[ch]): Remove rules.
43704
43705 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43706
43707         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43708
43709 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43710
43711         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43712         arpa/inet.h.
43713
43714 2006-07-28  Simon Josefsson  <jas@extundo.com>
43715
43716         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43717         * modules/inet_pton (Depends-on): Likewise.
43718
43719 2006-07-28  Simon Josefsson  <jas@extundo.com>
43720
43721         * m4/netinet_in_h.m4: New file.
43722
43723 2006-07-28  Simon Josefsson  <jas@extundo.com>
43724
43725         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43726         #include's.
43727
43728 2006-07-28  Simon Josefsson  <jas@extundo.com>
43729
43730         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43731         #include's.
43732
43733 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43736         setgid on directories only if they set these bits.
43737         * lib/modechange.h: Remove obsolete comment about masks.
43738
43739 2006-07-28  Eric Blake  <ebb9@byu.net>
43740
43741         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43742         macro expansion.
43743
43744 2006-07-28  Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43747
43748 2006-07-28  Bruno Haible  <bruno@clisp.org>
43749
43750         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43751
43752 2006-07-28  Bruno Haible  <bruno@clisp.org>
43753
43754         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43755         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43756         Define fallbacks.
43757         Avoids link error on FreeBSD 4.x.
43758         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43759
43760         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43761         encoding.
43762         * lib/mbswidth.c (iswcntrl): Likewise.
43763
43764 2006-07-27  Bruno Haible  <bruno@clisp.org>
43765
43766         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43767         test.
43768
43769 2006-07-27  Bruno Haible  <bruno@clisp.org>
43770
43771         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43772         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43773         defined.
43774
43775 2006-07-26  Eric Blake  <ebb9@byu.net>
43776
43777         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43778
43779 2006-07-26  Eric Blake  <ebb9@byu.net>
43780
43781         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43782         like mingw that lack mkstemp.
43783         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43784         avoid compilation warning on mingw.
43785
43786 2006-07-26  Bruno Haible  <bruno@clisp.org>
43787
43788         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43789         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43790         INT_FAST*_MIN, INTPTR_MIN.
43791
43792 2006-07-25  Bruno Haible  <bruno@clisp.org>
43793
43794         * modules/version-etc (Depends-on): Add stdarg.
43795
43796 2006-07-25  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43799         complex commands.
43800
43801 2006-07-25  Bruno Haible  <bruno@clisp.org>
43802
43803         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43804         defined in <stdarg.h> or config.h.
43805
43806 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43807
43808         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43809         (gl_STDIO_SAFER): Remove.
43810
43811 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43812
43813         * MODULES.html.sh (File stream based Input/Output):
43814         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43815         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43816         * modules/fopen-safer, modules/tmpfile-safer: New files.
43817         * modules/stdio-safer: Remove.
43818
43819 2006-07-24  Bruno Haible  <bruno@clisp.org>
43820
43821         * modules/tmpdir: New file.
43822         * MODULES.html.sh (File system functions): Add it.
43823
43824 2006-07-24  Bruno Haible  <bruno@clisp.org>
43825
43826         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43827         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43828
43829 2006-07-24  Bruno Haible  <bruno@clisp.org>
43830
43831         * modules/clean-temp: New file.
43832
43833 2006-07-24  Bruno Haible  <bruno@clisp.org>
43834
43835         * m4/tmpdir.m4: New file, from GNU gettext.
43836
43837 2006-07-24  Bruno Haible  <bruno@clisp.org>
43838
43839         * lib/tmpdir.h: New file, from GNU gettext.
43840         * lib/tmpdir.c: New file, from GNU gettext.
43841
43842 2006-07-24  Bruno Haible  <bruno@clisp.org>
43843
43844         * lib/clean-temp.h: New file, from GNU gettext.
43845         * lib/clean-temp.c: New file, from GNU gettext.
43846
43847 2006-07-23  Eric Blake  <ebb9@byu.net>
43848
43849         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43850         (Depends-on): Add binary-io.
43851
43852 2006-07-23  Eric Blake  <ebb9@byu.net>
43853
43854         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43855
43856 2006-07-23  Eric Blake  <ebb9@byu.net>
43857
43858         * lib/tmpfile-safer.c: New file.
43859         * lib/stdio-safer.h (fopen_safer): Add prototype.
43860         * lib/stdio--.h (tmpfile): Make safer.
43861
43862 2006-07-23  Bruno Haible  <bruno@clisp.org>
43863
43864         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43865         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43866         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43867         gl_linked_remove_at): Use it.
43868
43869 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43870         and Simon Josefsson <jas@extundo.com>
43871
43872         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43873
43874         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43875
43876 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43877
43878         * modules/close-stream: New file.
43879         * modules/closeout (Description): Make it clear that it exits
43880         with a diagnostic on error.
43881         (Depends-on): Add close-stream.  Remove fpending, stdbool.
43882         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43883
43884 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43885
43886         * m4/close-stream.m4: New file.
43887
43888 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
43889
43890         * lib/close-stream.c, lib/close-stream.h: New files.
43891
43892 2006-07-22  Bruno Haible  <bruno@clisp.org>
43893
43894         Merge from GNU gettext 0.15.
43895
43896         2006-05-01  Bruno Haible  <bruno@clisp.org>
43897
43898                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43899
43900         2006-07-22  Bruno Haible  <bruno@clisp.org>
43901
43902                 * modules/javaversion: New file.
43903                 * MODULES.html.sh (Java): Add javaversion.
43904
43905         2006-03-12  Bruno Haible  <bruno@clisp.org>
43906
43907                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43908
43909         2005-12-04  Bruno Haible  <bruno@clisp.org>
43910
43911                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43912                 (untested).
43913
43914         2006-06-21  Bruno Haible  <bruno@clisp.org>
43915
43916                 Avoid warnings from recent versions of mcs.
43917                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43918                 -o, -L, -r any more. Use options documented since mcs-1.0
43919                 instead. Similarly for -g.
43920
43921         2005-12-04  Bruno Haible  <bruno@clisp.org>
43922
43923                 * build-aux/csharpcomp.sh.in: Suffix for resources is
43924                 .resources, not .resource.
43925
43926         2005-07-09  Bruno Haible  <bruno@clisp.org>
43927
43928                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43929                 add a .dll suffix.
43930                 Reported by Mark Junker <mjscod@gmx.de>.
43931
43932         2006-07-22  Bruno Haible  <bruno@clisp.org>
43933
43934                 * modules/gettext: Upgrade to gettext-0.15.
43935                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43936                 m4/visibility.m4.
43937                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43938
43939 2006-07-22  Bruno Haible  <bruno@clisp.org>
43940
43941         Merge from GNU gettext 0.15.
43942
43943         2006-03-25  Bruno Haible  <bruno@clisp.org>
43944
43945                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43946
43947         2006-07-21  Bruno Haible  <bruno@clisp.org>
43948
43949                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43950                 "1.1".
43951
43952         2006-05-09  Bruno Haible  <bruno@clisp.org>
43953
43954                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43955                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43956                 for the conftestver execution.
43957
43958         2006-05-01  Bruno Haible  <bruno@clisp.org>
43959
43960                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43961                 optional target-version argument. Verify that the compiler
43962                 groks source of the specified source-version, or add -source
43963                 option as necessary. Verify that the compiler produces
43964                 bytecode in the specified target-version, or add -target and
43965                 -source options as necessary. Make the result of the test
43966                 available as variable CONF_JAVAC. Also log error output in
43967                 config.log.
43968
43969         2006-03-11  Bruno Haible  <bruno@clisp.org>
43970
43971                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43972
43973         2006-05-09  Bruno Haible  <bruno@clisp.org>
43974
43975                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43976                 CLASSPATH_SEPARATOR to a semicolon.
43977
43978         2006-03-12  Bruno Haible  <bruno@clisp.org>
43979
43980                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43981                 available as variable CONF_JAVA, for subsequent autoconf
43982                 tests. Also log error output in config.log.
43983
43984         2006-07-19  Bruno Haible  <bruno@clisp.org>
43985
43986                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43987                 that getline works on glibc2 systems. Needed to avoid trouble
43988                 in relocatable.c.
43989                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43990
43991         2005-12-04  Bruno Haible  <bruno@clisp.org>
43992
43993                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43994                 launcher (untested).
43995
43996         2005-12-04  Bruno Haible  <bruno@clisp.org>
43997
43998                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43999
44000         2006-07-22  Bruno Haible  <bruno@clisp.org>
44001
44002                 * gettext.m4: Update from GNU gettext-0.15.
44003                 * nls.m4: Likewise.
44004                 * po.m4: Likewise.
44005                 * inttypes-pri.m4: Likewise.
44006                 * inttypes-h.m4: Renamed from inttypes.m4.
44007                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44008
44009 2006-07-22  Bruno Haible  <bruno@clisp.org>
44010
44011         Merge from GNU gettext 0.15.
44012
44013         2005-07-05  Bruno Haible  <bruno@clisp.org>
44014
44015                 * printf-args.c (printf_fetchargs): Work around broken
44016                 definition of wint_t on mingw.
44017
44018         2005-02-12  Bruno Haible  <bruno@clisp.org>
44019
44020                 * xallocsa.h: Add extern "C" for C++.
44021
44022         2006-05-17  Bruno Haible  <bruno@clisp.org>
44023
44024                 Cygwin portability.
44025                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44026
44027         2006-04-30  Bruno Haible  <bruno@clisp.org>
44028
44029                 * progreloc.c: Include <mach-o/dyld.h> if available.
44030                 (find_executable): Use _NSGetExecutablePath when possible.
44031
44032         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44033
44034                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44035                 function.
44036
44037         2005-12-29  Bruno Haible  <bruno@clisp.org>
44038
44039                 * progreloc.c (set_program_name_and_installdir): Fix
44040                 compilation error.
44041
44042         2005-12-04  Bruno Haible  <bruno@clisp.org>
44043
44044                 Cygwin portability.
44045                 * progreloc.c: Include <windows.h> also on Cygwin.
44046                 (find_executable): Add support for Cygwin.
44047                 (set_program_name_and_installdir): Handle also platforms with
44048                 nonempty EXEEXT.
44049
44050         2006-07-11  Bruno Haible  <bruno@clisp.org>
44051
44052                 * javacomp.c: Fix a comment.
44053                 Reported by Jim Meyering.
44054
44055         2006-04-30  Bruno Haible  <bruno@clisp.org>
44056
44057                 * javacomp.h (compile_java_class): Add source_version,
44058                 target_version arguments.
44059                 * javacomp.c: Rewritten to choose only a compiler that
44060                 respects the specified source_version and target_version.
44061
44062         2006-06-27  Bruno Haible  <bruno@clisp.org>
44063
44064                 Assume correct S_ISDIR macro.
44065                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44066
44067         2006-07-22  Bruno Haible  <bruno@clisp.org>
44068
44069                 * javaversion.h: New file, from GNU gettext.
44070                 * javaversion.c: New file, from GNU gettext.
44071                 * javaversion.java: New file, from GNU gettext.
44072                 * javaversion.class: New file, from GNU gettext.
44073
44074         2006-05-17  Bruno Haible  <bruno@clisp.org>
44075
44076                 Cygwin portability.
44077                 * javaexec.c (execute_java_class): Test for jview program
44078                 also on Cygwin.
44079
44080         2006-04-09  Bruno Haible  <bruno@clisp.org>
44081
44082                 * fatal-signal.c: Don't include string.h.
44083                 (at_fatal_signal): Use a copying loop instead of memcpy.
44084
44085         2005-12-04  Bruno Haible  <bruno@clisp.org>
44086
44087                 * csharpexec.c: Add support for 'clix' launcher (untested).
44088                 (execute_csharp_using_sscli): New function.
44089                 (execute_csharp_program): Call it.
44090
44091         2006-06-21  Bruno Haible  <bruno@clisp.org>
44092
44093                 Avoid warnings from recent versions of mcs.
44094                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44095                 -o, -L, -r any more. Use options documented since mcs-1.0
44096                 instead. Similarly for -g.
44097
44098         2005-07-09  Bruno Haible  <bruno@clisp.org>
44099
44100                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44101                 add a .dll suffix.
44102                 Reported by Mark Junker <mjscod@gmx.de>.
44103
44104         2006-06-17  Bruno Haible  <bruno@clisp.org>
44105
44106                 * config.charset: Update for NetBSD 3.0.
44107
44108         2006-05-17  Bruno Haible  <bruno@clisp.org>
44109
44110                 Cygwin portability.
44111                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44112
44113         2006-05-16  Bruno Haible  <bruno@clisp.org>
44114
44115                 * localcharset.c [CYGWIN]: Include <windows.h>.
44116                 (get_charset_aliases): For Cygwin, return the same CPxxx
44117                 aliases list as under WIN32.
44118                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44119                 the environment variables. Fall back to GetACP().
44120
44121         2006-04-05  Bruno Haible  <bruno@clisp.org>
44122
44123                 * config.charset: Update Juan Manuel Guerrero's address.
44124
44125         2005-02-12  Bruno Haible  <bruno@clisp.org>
44126
44127                 * allocsa.h: Add extern "C" for C++.
44128
44129         2005-02-10  Bruno Haible  <bruno@clisp.org>
44130
44131                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44132                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44133
44134         2006-07-22  Bruno Haible  <bruno@clisp.org>
44135
44136                 * gettext.h: Update to GNU gettext-0.15.
44137
44138 2006-07-22  Bruno Haible  <bruno@clisp.org>
44139
44140         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44141         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44142         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44143
44144 2006-07-21  Eric Blake  <ebb9@byu.net>
44145
44146         * modules/stdlib-safer: New file.
44147         * MODULES.html.sh (File stream based Input/Output): Add
44148         stdlib-safer.
44149
44150 2006-07-21  Eric Blake  <ebb9@byu.net>
44151
44152         * lib/stdlib-safer.h: New file from coreutils, required by
44153         stdlib--.h.
44154
44155 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44156
44157         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44158
44159 2006-07-20  Bruno Haible  <bruno@clisp.org>
44160
44161         * gnulib-tool: Recognize new option --assume-autoconf.
44162         (autoconf_minversion): New variable.
44163         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44164
44165 2006-07-20  Bruno Haible  <bruno@clisp.org>
44166
44167         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44168
44169 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44170
44171         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44172         Reindent and repaginate.
44173
44174 2006-07-19  Derek Price  <derek@ximbiot.com>
44175
44176         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44177         Correct grammar.
44178
44179 2006-07-17  Bruno Haible  <bruno@clisp.org>
44180
44181         * modules/list: New file.
44182         * modules/array-list: New file.
44183         * modules/carray-list, modules/carray-list-tests: New files.
44184         * modules/linked-list, modules/linked-list-tests: New files.
44185         * modules/avltree-list, modules/avltree-list-tests: New files.
44186         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44187         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44188         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44189         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44190         * modules/oset: New file.
44191         * modules/array-oset: New file.
44192         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44193         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44194         * tests/test-carray_list.c: New file.
44195         * tests/test-linked_list.c: New file.
44196         * tests/test-avltree_list.c: New file.
44197         * tests/test-rbtree_list.c: New file.
44198         * tests/test-linkedhash_list.c: New file.
44199         * tests/test-avltreehash_list.c: New file.
44200         * tests/test-rbtreehash_list.c: New file.
44201         * tests/test-avltree_oset.c: New file.
44202         * tests/test-rbtree_oset.c: New file.
44203         * MODULES.html.sh (Container data structures): New section.
44204
44205 2006-07-17  Bruno Haible  <bruno@clisp.org>
44206
44207         * m4/gl_list.m4: New file.
44208
44209 2006-07-17  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/gl_list.h: New file.
44212         * lib/gl_list.c: New file.
44213         * lib/gl_array_list.h: New file.
44214         * lib/gl_array_list.c: New file.
44215         * lib/gl_carray_list.h: New file.
44216         * lib/gl_carray_list.c: New file.
44217         * lib/gl_linked_list.h: New file.
44218         * lib/gl_linked_list.c: New file.
44219         * lib/gl_anylinked_list1.h: New file.
44220         * lib/gl_anylinked_list2.h: New file.
44221         * lib/gl_avltree_list.h: New file.
44222         * lib/gl_avltree_list.c: New file.
44223         * lib/gl_anyavltree_list1.h: New file.
44224         * lib/gl_anyavltree_list2.h: New file.
44225         * lib/gl_rbtree_list.h: New file.
44226         * lib/gl_rbtree_list.c: New file.
44227         * lib/gl_anyrbtree_list1.h: New file.
44228         * lib/gl_anyrbtree_list2.h: New file.
44229         * lib/gl_anytree_list1.h: New file.
44230         * lib/gl_anytree_list2.h: New file.
44231         * lib/gl_linkedhash_list.h: New file.
44232         * lib/gl_linkedhash_list.c: New file.
44233         * lib/gl_anyhash_list1.h: New file.
44234         * lib/gl_anyhash_list2.h: New file.
44235         * lib/gl_avltreehash_list.h: New file.
44236         * lib/gl_avltreehash_list.c: New file.
44237         * lib/gl_rbtreehash_list.h: New file.
44238         * lib/gl_rbtreehash_list.c: New file.
44239         * lib/gl_anytreehash_list1.h: New file.
44240         * lib/gl_anytreehash_list2.h: New file.
44241
44242         * lib/gl_oset.h: New file.
44243         * lib/gl_oset.c: New file.
44244         * lib/gl_array_oset.h: New file.
44245         * lib/gl_array_oset.c: New file.
44246         * lib/gl_avltree_oset.h: New file.
44247         * lib/gl_avltree_oset.c: New file.
44248         * lib/gl_rbtree_oset.h: New file.
44249         * lib/gl_rbtree_oset.c: New file.
44250         * lib/gl_anytree_oset.h: New file.
44251
44252 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44253
44254         * m4/mkancesdirs.m4: New file.
44255         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44256         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44257         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44258         it.
44259
44260 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44261
44262         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44263         * lib/mkancesdirs.h: New files.
44264         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44265         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44266         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44267         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44268         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44269         callers changed.  Revamp internals significantly, by not
44270         attempting to create directories that are temporarily more
44271         permissive than the final results.  Do not attempt to use
44272         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44273         This removes some race conditions, fixes some bugs, and simplifies
44274         things.  Use new dirchownmod function to do owner and mode changes.
44275         * lib/mkdir-p.h: Likewise.
44276         * lib/modechange.c (octal_to_mode): New function.
44277         (struct mode_change): New member mentioned.
44278         (make_node_op_equals): New arg mentioned.  All callers changed.
44279         (mode_compile): Keep track of which mode bits the user has explicitly
44280         mentioned.
44281         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44282         New arg PMODE_BITS, to keep track of which mode bits the user
44283         mentioned; it treats S_ISUID and S_ISGID speciall.
44284         All callers changed.
44285         * lib/modechange.h: Likewise.
44286
44287 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * MODULES.html.sh: Add mkancestors.
44290         * modules/mkancesdirs: New module.
44291         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44292         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44293         The chdir-safer and afs files are now orphans; I'll remove them
44294         unless someone speaks up.
44295         Add lib/dirchownmod.c, lib/dirchownmod.h.
44296         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44297         Add lchown, mkancesdirs.
44298         (Maintainer): Add self.
44299
44300 2006-07-15  Karl Berry  <karl@gnu.org>
44301
44302         * gnulib-tool: help message wording/arrangement.
44303
44304 2006-07-14  Simon Josefsson  <jas@extundo.com>
44305
44306         * doc/gnulib.texi (Libtool and Windows): New section.
44307
44308 2006-07-12  Simon Josefsson  <jas@extundo.com>
44309
44310         * modules/gendocs (License): Fix license, approved by Karl.
44311
44312 2006-07-12  Eric Blake  <ebb9@byu.net>
44313
44314         * MODULES.html.sh: Add gendocs.
44315
44316 2006-07-11  Eric Blake  <ebb9@byu.net>
44317
44318         * modules/fdl: New module, to install doc/fdl.texi.
44319         * MODULES.html.sh: Add new section for documentation modules.
44320         * gnulib-tool: Avoid space-tab.
44321         (--doc-base): New option, to manage files from doc.
44322
44323 2006-07-11  Eric Blake  <ebb9@byu.net>
44324
44325         * m4/absolute-header.m4: Fix comments to match recent change.
44326
44327 2006-07-11  Eric Blake  <ebb9@byu.net>
44328
44329         * gnulib-tool: List --doc-base before --tests-base.
44330
44331 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44332
44333         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44334
44335 2006-07-11  Bruno Haible  <bruno@clisp.org>
44336
44337         * README: Mention where to put documentation.
44338
44339 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44340
44341         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44342
44343 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44344
44345         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44346         to stdint.m4.
44347
44348 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44349
44350         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44351         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44352         "no/such/file/stdint.h" when there is no such file, so that
44353         the resulting C code can be parsed by dodgy compilers.
44354         Problems reported by Bob Proulx.
44355
44356 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44357
44358         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44359         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44360         macros into the GNU _D_EXACT_NAMLEN.
44361         * lib/savedir.c:  Likewise.
44362         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44363
44364 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44365         and Paul Eggert  <eggert@cs.ucla.edu>
44366
44367         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44368         * m4/savedir.m4:
44369         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44370         macros into the GNU _D_EXACT_NAMLEN.
44371
44372 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44373
44374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44375         around the absolute name, to work around a problem with the HP-UX
44376         11.23 native C compiler, reported by Bob Proulx.
44377
44378 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44379
44380         * doc/maintain.texi, make-stds.texi: Sync from
44381         <http://savannah.gnu.org/projects/gnustandards>.
44382
44383 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44384
44385         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44386
44387 2006-07-09  Jim Meyering  <jim@meyering.net>
44388
44389         * m4/glob.m4: Remove a doubled word in a comment.
44390
44391 2006-07-09  Jim Meyering  <jim@meyering.net>
44392
44393         * lib/argp-pv.c: Remove a doubled word in a comment.
44394         * lib/check-version.c (check_version): Likewise.
44395         * lib/javacomp.c (compile_java_class): Likewise.
44396
44397 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44398
44399         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44400         for the benefit of people using Autoconf 2.60.  If you want to
44401         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44402         (or m4/onceonly.m4, if pre-2.57) manually.
44403
44404 2006-07-08  Jim Meyering  <jim@meyering.net>
44405
44406         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44407         comment.
44408         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44409         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44410         comment.
44411
44412 2006-07-08  Jim Meyering  <jim@meyering.net>
44413
44414         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44415
44416 2006-07-07  Simon Josefsson  <jas@extundo.com>
44417
44418         * tests/test-crc.c: Change expected crc value, the test vector
44419         were probably computed using the old broken crc.c?
44420
44421 2006-07-06  Simon Josefsson  <jas@extundo.com>
44422
44423         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44424         now the canonical place for the M4 file).
44425
44426         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44427         from the sys_socket dependency now.
44428
44429         * modules/inet_pton (Files): Ditto.
44430
44431         * modules/inet_ntop (Files): Ditto.
44432
44433 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44434
44435         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44436         not gl_PREREQ_GETUSERSHELL.
44437
44438 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44439
44440         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44441         with only one argument, for Autoconf 2.60.
44442         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44443         expand to nothing, so add a shell command to avoid syntax error.
44444         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44445
44446 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44447
44448         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44449
44450 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44453         no longer needed.  Check for isblank decl.
44454         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44455         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44456         of existence.
44457
44458 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * lib/getloadavg.c: Use __VMS, not VMS.
44461         * lib/getopt.c: Likewise.
44462         * lib/getpagesize.h: Likewise.
44463         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44464         and probably does not work.
44465
44466 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44467
44468         * lib/.cppi-disable: Add wcwidth.
44469         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44470         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44471         (ISGRAPH): Remove.  All uses changed to isgraph.
44472         (FOLD) [!defined _LIBC]: Remove special case.
44473         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44474         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44475         HAVE_ISBLANK.
44476         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44477         case.
44478
44479 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44480
44481         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44482         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44483         brackets.  Other minor changes to suppress some compiler
44484         warnings.
44485
44486 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44487         and Paul Eggert  <eggert@cs.ucla.edu>
44488
44489         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44490         of invoking obsolescent AC_HEADER_DIRENT macro.
44491         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44492         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44493         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44495         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44496         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44497         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44498         * m4/readdir.m4: Remove; no longer needed.
44499
44500 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44501         and Paul Eggert  <eggert@cs.ucla.edu>
44502
44503         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44504         Don't worry about this obsolete case any more.
44505         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44506         directories.
44507         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44508         worry about this obsolete case any more.
44509         * lib/fts.c: Likewise.
44510         * lib/getcwd.c: Likewise.
44511         * lib/glob.h: Likewise.
44512         * lib/savedir.c: Likewise.
44513
44514 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44515
44516         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44517         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44518         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44519         needed.
44520         All uses removed.
44521         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44522         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44523         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44524         needed.
44525         * m4/getdate.m4 (gl_GETDATE): Likewise.
44526         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44527         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44528         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44529         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44530         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44531         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44532         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44533         needed.
44534
44535 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44536
44537         * lib/memcasecmp.c: Include <limits.h>.
44538         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44539         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44540         Don't assume isdigit succeeds only on '0' through '9'.
44541
44542 2006-07-05  Eric Blake  <ebb9@byu.net>
44543
44544         * modules/getaddrinfo (Depends-on): Add snprintf.
44545
44546 2006-07-05  Eric Blake  <ebb9@byu.net>
44547
44548         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44549         to avoid 'header present but could not be compiled' on cygwin.
44550
44551 2006-07-05  Eric Blake  <ebb9@byu.net>
44552
44553         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44554         missing from netdb.h.
44555         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44556
44557 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44558
44559         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44560         no longer needed.
44561         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44562         * m4/getdate.m4 (gl_GETDATE): Likewise.
44563         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44564         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44565         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44566         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44567         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44568
44569 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44570
44571         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44572         All uses of is_space replaced by isspace.
44573         * lib/exit.h: Don't talk about STDC_HEADERS.
44574         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44575         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44576         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44577         replaced by isprint etc.
44578         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44579         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44580         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44581         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44582         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44583         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44584
44585 2006-07-05  Bruno Haible  <bruno@clisp.org>
44586
44587         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44588         the function exists, before testing against AIX.
44589         Reported by Martin Lambers <marlam@marlam.de>.
44590
44591 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44592
44593         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44594         From Mark D. Baushke.
44595
44596 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44597
44598         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44599         to the absolute name, not just one, to bypass Sun C 5.8's
44600         "warning: #include of /usr/include/... may be non-portable".
44601
44602 2006-07-04  Eric Blake  <ebb9@byu.net>
44603
44604         * modules/dirname-tests: New test module.
44605         * tests/test-dirname.c: New file, replacing dirname.c
44606         TEST_DIRNAME section that was recently deleted.
44607
44608 2006-07-04  Bruno Haible  <bruno@clisp.org>
44609
44610         Assume ANSI C header files and <ctype.h> functions.
44611         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44612         (mbsnwidth): Use isprint, iscntrl instead.
44613
44614 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44615
44616         Merge from coreutils.
44617         * MODULES.html.sh: Add xstrtold.
44618         * modules/xstrtold: New file.
44619         * modules/cycle-check (Files): Add lib/same-inode.h.
44620         * modules/dirname (Files): Add m4/double-slash-root.m4.
44621         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44622         * modules/mkdir-p (Files): Add lib/same-inode.h.
44623         * modules/same (Files): Add lib/same-inode.h.
44624
44625 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44626
44627         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44628         This is to keep the terminology clean; POSIX talks about
44629         "absolute pathnames", not "full pathnames", but the GNU
44630         Coding Standards say to use "path" for something else;
44631         so use "absolute" to keep both sides happy.
44632         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44633         Set gl_absolute_header, not gl_full_header_path.
44634         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44635         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44636         All uses changed.
44637
44638         Merge from coreutils.
44639
44640         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44641
44642         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44643         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44644         want to require the building of c-strtod.o.
44645         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44646         needs -lm directly.
44647         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44648
44649         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44650
44651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44652         --as-needed option if available.  Problem reported by Albert Chin in
44653         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44654         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44655         cc merely issues a bunch of annoying warnings for --as-needed
44656         (this problem was reported by Bob Proulx).  Also, try linking with
44657         -lm to detect a bug in binutils 2.16 (this problem was reported
44658         by Ralf Wildenhues).
44659
44660         2006-06-18  Jim Meyering  <jim@meyering.net>
44661
44662         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44663         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44664         macro.
44665         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44666         also check for glibc-2.4's abort-inducing bug.
44667
44668         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44669         Low-probability clean-up should be to use rmdir to get rid of
44670         the just-created directory, not unlink.
44671
44672         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44673         configure fail, and request a bug report to inform us about it.
44674         Add a comment that, barring reports to the contrary, in 2007 we'll
44675         assume ftruncate is universally available.
44676
44677         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44678
44679         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44680
44681         2006-03-12  Jim Meyering  <jim@meyering.net>
44682
44683         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44685         * m4/same.m4 (gl_SAME): Likewise.
44686         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44687
44688         2006-03-11  Eric Blake  <ebb9@byu.net>
44689
44690         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44691         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44692         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44693         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44694
44695 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44698         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44699         reported by Mark D. Baushke, one in
44700         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44701
44702         Merge from coreutils.
44703
44704         * lib/.cppi-disable: Add stdint_.h.
44705         * lib/.cvsignore: Add stdint.h.
44706
44707         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44708
44709         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44710         both double and long double versions.
44711         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44712         * lib/xstrtold.c: New file.
44713         * lib/xstrtod.h (xstrtold): New decl.
44714
44715         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44716
44717         * lib/filemode.c (setst): Remove.
44718         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44719         (arguably) clearer, and the generated code is a bit smaller on my
44720         Debian GNU/Linux stable x86 host.
44721
44722         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44723
44724         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44725         Assume that filemode.h includes sys/types.h and sys/stat.h.
44726         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44727         (ftypelet): Reorder to put common cases first, for efficiency.
44728         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44729         to do 'M'.
44730         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44731         of 10, for compatibility with FreeBSD.  All callers changed.
44732         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44733         types that can't be deduced solely from st_mode.  First arg is now a
44734         const pointer.
44735         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44736         (strmode): Renamed from mode_string.
44737         (filemodestring): New decl.
44738         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44739         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44740         needed.
44741         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44742
44743         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44744
44745         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44746         fsusage.h now does that.  Include fsusage.h first, to test interface.
44747         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44748         at most one method (the old code could have generated decls that
44749         didn't conform to C89, not that this was ever exercised).
44750         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44751
44752         2006-03-19  Jim Meyering  <jim@meyering.net>
44753
44754         Work even in a chroot where d_ino values for entries in "/"
44755         don't match the stat.st_ino values for the same names.
44756         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44757         number, iterate through all entries again, using lstat instead.
44758         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44759         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44760
44761         * lib/getcwd.c (__getcwd): Clarify a comment.
44762         Use memcpy in place of a call to strcpy.
44763
44764         2006-03-12  Jim Meyering  <jim@meyering.net>
44765
44766         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44767         matches that of the current directory (which we're about to chdir ".."
44768         out of), then save the dev-ino of the parent, instead.
44769
44770         * lib/same-inode.h (SAME_INODE): New file/macro.
44771         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44772         Include "same-inode.h", instead.
44773         * lib/same.c: Likewise.
44774         * lib/cycle-check.h: Include "same-inode.h".
44775         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44776         * lib/cycle-check.c (SAME_INODE): Remove definition.
44777         * lib/root-dev-ino.h: Include "same-inode.h".
44778
44779         2006-03-11  Eric Blake  <ebb9@byu.net>
44780
44781         * lib/same.c (same_name): s/base_name/last_component/
44782         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44783         * lib/filenamecat.c (file_name_concat): Likewise.
44784
44785         2006-03-11  Eric Blake  <ebb9@byu.net>,
44786                     Paul Eggert  <eggert@cs.ucla.edu>
44787
44788         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44789         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44790         drive prefix.
44791         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44792         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44793         (last_component): New method.
44794         * lib/dirname.c (dir_len): Determine when drive letters need a
44795         subsequent slash.  Preserve // when it is special.
44796         (dir_name): Don't append dot when drive letter is absolute.
44797         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44798         * lib/basename.c (base_name): New semantics - malloc the result.
44799         Preserve // when it is special.  Preserve relative files that look
44800         like drive letters.
44801         (base_len): Preserve // when it is special.
44802         (last_component): New method, similar to old base_name semantics.
44803         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44804         base_name.  Strip redundant slashes from ///.
44805
44806 2006-07-03  Jim Meyering  <jim@meyering.net>
44807
44808         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44809         macro is used before the first cycle_check call.
44810
44811 2006-07-03  Eric Blake  <ebb9@byu.net>
44812
44813         * modules/dirname (Depends-on): Add xstrndup.
44814
44815 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44816
44817         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44818         test cases, so that config.log is a bit easier to follow.
44819
44820 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44821
44822         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44823         both are 64 bits, since this seems to be the tradition, and this
44824         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44825         we ever run into a host that prefers long long to long in this
44826         case, we'll need another configure-time test.  Problem reported by
44827         Jim Meyering.
44828
44829 2006-07-02  Eric Blake  <ebb9@byu.net>
44830
44831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44832
44833 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44834
44835         * modules/inttypes (Depends-on): No longer depends on stdint.
44836         * modules/stdint (Description): Say more about assumptions.
44837         Say that the fast types might differ.  Say macros are used.
44838         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44839         (Makefile.am): Revise list of substituted symbols to match
44840         new stdint.m4.
44841         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44842         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44843         * tests/test-stdint.c (verify_same_types)
44844         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44845         the code conforms to C99/C89.
44846         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44847         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44848
44849 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44850
44851         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44852         but fix a bug, by requiring at least 64 bits.
44853         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44854         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44855         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44856         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44857
44858         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44859         changes.  Make 2.59 a prerequisite.  Check and substitute for
44860         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
44861         inttypes.h.  Do not use special include files; just use the
44862         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
44863         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
44864         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44865         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44866         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44867         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44868         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44869         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44870         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44871         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44872         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44873         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44874         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44875         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44876         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44877         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44878         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44879         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44880         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44881         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44882         WINT_MAX.  Check for C99 conformance more strictly, by detecting
44883         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
44884         not check for things that C99 does not require, e.g., int8_t.  If
44885         a test isn't needed unless <stdint.h> isn't working, and is
44886         unlikely to be needed for any other reason, then don't do it
44887         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
44888         size_t, since we assume C89 freestanding at least.  Do not check
44889         for sig_atomic_t, wchar_t, or wint_t, since the code now does
44890         the right thing even if the types are not defined.  Instead use:
44891         (gl_STDINT_TYPE_PROPERTIES): New macro.
44892         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
44893         testing whether <sys/types.h> clashes, as Autoconf does this for
44894         us now.  All uses removed.
44895         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44896         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44897         (gl_CHECK_TYPE_SAME):
44898         Remove; no longer needed.
44899         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44900         exists, since we'll return 0 anyway in that case.
44901         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44902
44903 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44904
44905         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44906         possible collision with system files.
44907         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44908         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44909         WCHAR_MIN and WCHAR_MAX in this case.
44910         (<stddef.h>): Do not include; no longer needed.
44911         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44912         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44913         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44914         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44915         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44916         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44917         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44918         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44919         !defined(__c99))]: Include in this case too, since it's harmless
44920         now.
44921         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44922         dangerous to do so.
44923         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44924         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44925         (_STDINT_MIN, _STDINT_MAX): New macros.
44926         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44927         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44928         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44929         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44930         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44931         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44932         macros, not typedefs; this simplifies things quite a bit.
44933         Use long int for all types narrower than int64_t.
44934         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44935         Define in terms of long long int or int64_t or long int,
44936         not int64_t or int32_t.  This saves some compile-time testing.
44937         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44938         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44939         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44940         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44941         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44942         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44943         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44944         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44945         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44946         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44947         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44948         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44949         undef any previous version and define our own version, for
44950         simplicity and consistency with the new macros for types.
44951         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44952         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44953         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44954         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
44955         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44956         @WINT_T_SUFFIX@ to keep things simple here.
44957         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44958         Simplify by assuming typical 8/16/32/64 host, since we're
44959         already doing that elsewhere anyway.
44960         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44961         and assume long long int is 64 bits if available.  This
44962         speeds up 'configure'.
44963
44964 2006-07-01  Eric Blake  <ebb9@byu.net>
44965
44966         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44967         Reported by Andreas Buening.
44968
44969 2006-07-01  Eric Blake  <ebb9@byu.net>
44970
44971         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44972
44973 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44974
44975         * lib/getaddrinfo.c: fixed typo
44976
44977 2006-06-29  Jim Meyering  <jim@meyering.net>
44978
44979         * modules/strftime (Maintainer): Add my name, since with the
44980         FPRINTFTIME changes strftime.c has forked from glibc.
44981
44982 2006-06-29  Eric Blake  <ebb9@byu.net>
44983
44984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44985
44986 2006-06-29  Eric Blake  <ebb9@byu.net>
44987
44988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44989
44990 2006-06-29  Eric Blake  <ebb9@byu.net>
44991
44992         * lib/stat_.h: New file.
44993
44994 2006-06-29  Eric Blake  <ebb9@byu.net>
44995
44996         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44997         unused static function.
44998
44999 2006-06-29  Eric Blake  <ebb9@byu.net>
45000
45001         * doc/functions.texi (Function Portability): Document missing lstat
45002         on mingw.
45003
45004 2006-06-29  Eric Blake  <ebb9@byu.net>
45005
45006         * MODULES.html.sh: Add sys_stat.
45007         * modules/sys_stat: New module.
45008         * modules/mkstemp (Depends-on): Add sys_stat.
45009
45010 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45011
45012         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45013
45014 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45015
45016         * m4/c-bs-a.m4: Removed.
45017
45018 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45019
45020         * lib/strftime.c: Assume strftime() exists.
45021
45022 2006-06-29  Derek Price  <derek@ximbiot.com>
45023
45024         * modules/c-bs-a: Removed - \a is C89.
45025         * MODULES.html.sh: Remove c-bs-a.
45026
45027 2006-06-29  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/wcwidth (License): Change to LGPL.
45030
45031 2006-06-28  Simon Josefsson  <jas@extundo.com>
45032
45033         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45034         on _WIN32.
45035
45036         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45037         getnameinfo.
45038
45039 2006-06-28  Simon Josefsson  <jas@extundo.com>
45040
45041         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45042
45043 2006-06-28  Simon Josefsson  <jas@extundo.com>
45044
45045         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45046         functions there.  It will succeed on Windows XP, but on Windows
45047         2000 and (presumably) earlier, it will fail, and use the internal
45048         re-implementation.
45049         (use_win32_p): New function.
45050         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45051         Support AI_NUMERICSERV to disable getservbyname.
45052         (getnameinfo): New function, only supports
45053         NI_NUMERICHOST|NI_NUMERICSERV for now.
45054
45055         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45056         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45057         getnameinfo.
45058
45059 2006-06-28  Eric Blake  <ebb9@byu.net>
45060
45061         * modules/wcwidth: New file.
45062         * modules/mbchar (Depends-on): Add wcwidth.
45063         * modules/mbswidth (Depends-on): Add wcwidth.
45064         * MODULES.html.sh: Add wcwidth.
45065
45066 2006-06-28  Eric Blake  <ebb9@byu.net>
45067
45068         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45070
45071 2006-06-28  Eric Blake  <ebb9@byu.net>
45072
45073         * lib/xvasprintf.h: Fix comments.
45074
45075 2006-06-28  Eric Blake  <ebb9@byu.net>
45076
45077         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45078         * lib/mbswidth.c (wcwidth): Move from here...
45079         * lib/wcwidth.h: ...to this new file.
45080
45081 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45082
45083         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45084
45085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45086         it's obsolete.
45087         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45088
45089 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45090
45091         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45092         Autoconf 2.60 says this stuff was obsolete.
45093
45094 2006-06-28  Bruno Haible  <bruno@clisp.org>
45095
45096         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45097
45098 2006-06-28  Bruno Haible  <bruno@clisp.org>
45099
45100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45101         gt_TYPE_WCHAR_T.
45102
45103 2006-06-28  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45106         declaration for wcwidth.
45107         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45108
45109 2006-06-28  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45112         (mkdir): Define using _mkdir.
45113
45114 2006-06-28  Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/getaddrinfo.h: Fix POSIX URL.
45117         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45118         _WIN32.
45119         (use_win32_p): Make static.
45120         (getaddrinfo): Reject service name if it is empty or does not consist
45121         solely of decimal digits, or if its value is > 65535.
45122         (getnameinfo): Remove useless casts.
45123
45124 2006-06-27  Simon Josefsson  <jas@extundo.com>
45125
45126         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45127         Eggert and Martin Lambers.
45128
45129 2006-06-27  Simon Josefsson  <jas@extundo.com>
45130
45131         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45132         Eggert and Martin Lambers.
45133
45134 2006-06-27  Bruno Haible  <bruno@clisp.org>
45135
45136         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45137         result to 0, not to empty.
45138         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45139
45140 2006-06-27  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45143
45144 2006-06-26  Simon Josefsson  <jas@extundo.com>
45145
45146         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45147         present.
45148
45149 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45150
45151         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45152         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45154
45155 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45156
45157         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45158
45159 2006-06-26  Bruno Haible  <bruno@clisp.org>
45160
45161         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45162
45163 2006-06-26  Bruno Haible  <bruno@clisp.org>
45164
45165         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45166
45167 2006-06-26  Bruno Haible  <bruno@clisp.org>
45168
45169         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45170         SGI C compiler in pre-C99 mode.
45171         Suggested by Mark D. Baushke and Larry Jones.
45172
45173 2006-06-26  Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45176         WCHAR_MAX.
45177         Reported by Mark D. Baushke and Larry Jones.
45178
45179 2006-06-26  Bruno Haible  <bruno@clisp.org>
45180
45181         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45182         in pre-C99 mode.
45183         Suggested by Mark D. Baushke and Larry Jones.
45184
45185 2006-06-23  Simon Josefsson  <jas@extundo.com>
45186             Bruno Haible  <bruno@clisp.org>
45187
45188         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45189         Emit mostlyclean-local rule.
45190         (func_emit_tests_Makefile_am): Likewise.
45191         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45192
45193 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45194
45195         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45196
45197 2006-06-23  Bruno Haible  <bruno@clisp.org>
45198
45199         * tests/test-stdint.c: Update to match ISO C 99 Technical
45200         Corrigendum 1.
45201
45202 2006-06-23  Bruno Haible  <bruno@clisp.org>
45203
45204         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45205
45206 2006-06-23  Bruno Haible  <bruno@clisp.org>
45207
45208         * lib/stdint_.h: Treat IRIX like OpenBSD.
45209
45210 2006-06-23  Bruno Haible  <bruno@clisp.org>
45211
45212         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45213         ISO C 99 Technical Corrigendum 1.
45214
45215 2006-06-22  Simon Josefsson  <jas@extundo.com>
45216
45217         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45218         MinGW.
45219
45220 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45221
45222         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45223         needed.  Some compiler complained about some of them.  Problem reported
45224         by Larry Jones in
45225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45226
45227 2006-06-21  Simon Josefsson  <jas@extundo.com>
45228
45229         * tests/test-getaddrinfo.c: New file.
45230
45231         * modules/getaddrinfo-tests: New file.
45232
45233         * MODULES.html.sh: Add inet_pton.
45234
45235         * modules/inet_pton: New file.
45236
45237 2006-06-21  Simon Josefsson  <jas@extundo.com>
45238
45239         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45240         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45241         of using the (limited) gnulib implementation on Windows XP.
45242
45243         * m4/inet_pton.m4: New file.
45244
45245 2006-06-21  Simon Josefsson  <jas@extundo.com>
45246
45247         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45248         variable.
45249
45250         * lib/socket_.h: Don't define WINVER.
45251
45252         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45253         slightly modified to work in gnulib.
45254
45255 2006-06-21  Simon Josefsson  <jas@extundo.com>
45256
45257         * doc/gnulib.texi (Windows sockets): Add.
45258
45259 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45260
45261         * lib/read-file.c (fread_file): Start with buffer allocation of
45262         0 bytes rather than 1 byte; this simplifies the code.
45263         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45264         code to free buffer and save/restore errno.
45265         (internal_read_file): Remove unused local.
45266
45267 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45268
45269         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45270         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45271         Problem reported by Denis Excoffier in
45272         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45273
45274 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45275
45276         * modules/sys_socket, modules/socklen: Include sys/types since
45277         FreeBSD 4.x's sys/socket.h needs it.
45278
45279 2006-06-19  Simon Josefsson  <jas@extundo.com>
45280
45281         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45282
45283 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45284
45285         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45286
45287 2006-06-19  Bruno Haible  <bruno@clisp.org>
45288
45289         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45290         and FULL_PATH_INTTYPES_H in angle brackets.
45291         Reported by Mark D. Baushke <mdb@gnu.org>.
45292
45293 2006-06-17  Eric Blake  <ebb9@byu.net>
45294
45295         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45296         errno.
45297
45298 2006-06-17  Bruno Haible  <bruno@clisp.org>
45299
45300         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45301         <sys/inttypes.h>.
45302
45303 2006-06-17  Bruno Haible  <bruno@clisp.org>
45304
45305         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45306         whether errno is declared. Assume <errno.h> declares errno.
45307
45308 2006-06-17  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45311
45312 2006-06-17  Bruno Haible  <bruno@clisp.org>
45313
45314         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45315         problem on Solaris 2.5.1.
45316
45317 2006-06-16  Eric Blake  <ebb9@byu.net>
45318
45319         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45320         * lib/unicodeio.c [!defined errno]: Likewise.
45321         * lib/strtol.c [!defined errno]: Likewise.
45322         * lib/strtod.c [!defined errno]: Likewise.
45323
45324 2006-06-15  Eric Blake  <ebb9@byu.net>
45325
45326         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45327
45328 2006-06-15  Eric Blake  <ebb9@byu.net>
45329
45330         * config/srclist.txt (ssize_t.m4): Lose sync.
45331
45332 2006-06-15  Bruno Haible  <bruno@clisp.org>
45333
45334         * modules/stdint (Files): Include m4/full-header-path.m4,
45335         m4/size_max.m4, m4/wchar_t.m4.
45336         (Makefile.am): Many more substitutions.
45337         * modules/stdint-tests: New file.
45338         * tests/test-stdint.c: New file.
45339
45340 2006-06-15  Bruno Haible  <bruno@clisp.org>
45341
45342         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45343         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45344         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45345         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45346         gl_CHECK_TYPE_SAME): New macros.
45347
45348 2006-06-15  Bruno Haible  <bruno@clisp.org>
45349
45350         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45351
45352 2006-06-15  Bruno Haible  <bruno@clisp.org>
45353
45354         * lib/stdint_.h: Rewritten to be fully auto-configured.
45355         Fixes bug on HP-UX/IA64.
45356
45357 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45358
45359         * lib/getdate.y (__attribute__): Don't define if already defined.
45360         Problem reported by Larry Jones.
45361         * lib/utimens.c (__attribute__): Likewise.
45362
45363 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45364
45365         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45366         reported by Andreas Schwab.
45367
45368 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45369             Bruno Haible  <bruno@clisp.org>
45370
45371         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45372         check for the declaration of strnlen and a run test that exposes the
45373         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45374         rpl_strndup.
45375
45376 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45377             Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45380
45381 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45382
45383         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45384         compile test, for Tru64 4.0D.
45385
45386 2006-05-28  Karl Berry  <karl@gnu.org>
45387
45388         * config/srclist.txt (printf-args.c): lose sync.
45389
45390 2006-05-26  Martin Lambers  <marlam@marlam.de>
45391
45392         * lib/getpass.c: Updates the test for the native W32 API, and adds
45393         missing includes, thus fixing compilation warnings.
45394
45395 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45396
45397         * lib/exclude.c (exclude_fnmatch): New function.
45398         (excluded_file_name): Call exclude_fnmatch.
45399         * lib/exclude.h (excluded_file_name): New prototype
45400
45401 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * lib/tempname.c (small_open, large_open): New macros.
45404         (__open, __open64) [!_LIBC]: Remove.
45405         (__gen_tempname): Use small_open and large_open instead of __open
45406         and __open64.  This fixes a portability bug on HP-UX 11.11i
45407         reported by Simon Wing-Tang in
45408         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45409
45410 2006-05-24  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45413         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45414         Reported by Thorsten Maerz <torte@netztorte.de> via
45415         Aaron Stone <aaron@serendipity.cx>.
45416
45417 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45420         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45421         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45422         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45423         not really conditional on the cache.
45424         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45425
45426 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45427
45428         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45429         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45430         (my_usleep): Don't mishandle maximum value.
45431
45432 2006-05-19  Jim Meyering  <jim@meyering.net>
45433
45434         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45435
45436 2006-05-17  Bruno Haible  <bruno@clisp.org>
45437
45438         Cygwin portability.
45439         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45440
45441 2006-05-17  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/stdint_.h: Fix recognition of Cygwin.
45444
45445 2006-05-15  Bruno Haible  <bruno@clisp.org>
45446
45447         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45448         on libtool patch by Ralf Wildenhues.
45449
45450 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45453         test for C99 conformance; (bool) 0.5 is an integer constant
45454         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45455         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45456
45457 2006-05-11  Simon Josefsson  <jas@extundo.com>
45458
45459         * m4/xvasprintf.m4: Fix obvious typo.
45460
45461 2006-05-11  Jim Meyering  <jim@meyering.net>
45462
45463         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45464         James Lemley.
45465
45466 2006-05-10  Simon Josefsson  <jas@extundo.com>
45467
45468         * lib/md4.c: Typo fix, update copyright years.
45469         (K1, K2): Don't use L because it turn computations into 64-bit on
45470         64-bit platforms.
45471
45472 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45473
45474         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45475         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45476         unwanted sign propagation, e.g., on hosts with 64-bit int.
45477         There still are some problems with reeelly weird theoretical hosts
45478         (e.g., 33-bit int) but it's not worth worrying about now.
45479         * lib/sha1.c (rol): Likewise.
45480         (K1, K2, K3, K4): Remove unnecessary L suffix.
45481
45482 2006-05-10  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/des.c: Cast to avoid warnings.
45485
45486 2006-05-09  Bruno Haible  <bruno@clisp.org>
45487
45488         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45489         (Depends-on): Depend also on xsize, stdarg.
45490         (configure.ac): Add gl_XVASPRINTF.
45491
45492 2006-05-09  Bruno Haible  <bruno@clisp.org>
45493
45494         * m4/xvasprintf.m4: New file.
45495
45496 2006-05-09  Bruno Haible  <bruno@clisp.org>
45497
45498         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45499         (EOVERFLOW): Define fallback value.
45500         (xstrcat): New function.
45501         (xvasprintf): Recognize the special case of a string concatenation.
45502
45503 2006-05-08  Eric Blake  <ebb9@byu.net>
45504
45505         * gnulib-tool (func_version): Base copyright year on CVS date.
45506         (func_emit_copyright_notice): New function.
45507         (func_emit_lib_Makefile_am): Use it.
45508         (func_emit_tests_Makefile_am): Likewise.
45509         (func_import): Likewise.
45510
45511 2006-05-08  Bruno Haible  <bruno@clisp.org>
45512
45513         * modules/stdarg: New file.
45514         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45515
45516 2006-05-08  Bruno Haible  <bruno@clisp.org>
45517
45518         * m4/stdarg.m4: New file, from GNU gettext.
45519
45520 2006-05-08  Bruno Haible  <bruno@clisp.org>
45521
45522         * config/srclist.txt (build-aux/config.rpath): different from latest
45523         release.
45524
45525 2006-05-08  Bruno Haible  <bruno@clisp.org>
45526
45527         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45528
45529 2006-05-05  Jim Meyering  <jim@meyering.net>
45530
45531         * m4/warning.m4: New file, derived from bison's file by the same name.
45532
45533 2006-05-03  Bruno Haible  <bruno@clisp.org>
45534
45535         * lib/stdint_.h: Shorter URL.
45536         * lib/inttypes.h: Likewise.
45537
45538 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45539
45540         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45541
45542 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45543
45544         * lib/verify.h: Document the internals better.  Most of this change
45545         was written by Bruno Haible.
45546
45547 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45548
45549         * doc/verify.texi: New file, partly based on a proposal by
45550         Bruno Haible.
45551
45552 2006-05-02  Bruno Haible  <bruno@clisp.org>
45553
45554         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45555         test from here...
45556         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45557
45558 2006-04-29  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45561         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45562
45563 2006-04-29  Bruno Haible  <bruno@clisp.org>
45564
45565         * gnulib-tool: Make --update option actually work.
45566
45567 2006-04-29  Bruno Haible  <bruno@clisp.org>
45568
45569         * doc/gcd.texi: New file.
45570         * doc/gnulib.texi: Include it.
45571
45572 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45573
45574         * lib/getdate.y (get_date): When adding relative date, start with the
45575         initial time, not with the result of the first mktime call.
45576
45577 2006-04-25  Bruno Haible  <bruno@clisp.org>
45578
45579         * gnulib-tool (func_import): Output the include directives in three
45580         blocks, sorted separately.
45581         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45582
45583 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45584
45585         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45586         to define main with arguments, for C++.  Reported by Eric Blake.
45587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45588         Prefer 'int main ()' to 'int main (void)', for C++.
45589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45591         for 'main', for C99 and C++.
45592
45593 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45594
45595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45596         Don't assume that exit status -1 is valid.
45597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45598         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45599         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45600         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45601         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45602         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45603         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45604         functions can be used without declaring them, or that you can
45605         exit with status -1.
45606         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45607
45608 2006-04-24  Karl Berry  <karl@gnu.org>
45609
45610         * config/srclist.txt (longdouble.m4): sync lost.
45611
45612 2006-04-24  Eric Blake  <ebb9@byu.net>
45613
45614         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45615
45616 2006-04-24  Bruno Haible  <bruno@clisp.org>
45617
45618         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45619         poll() implementation in AIX.
45620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45621
45622 2006-04-24  Bruno Haible  <bruno@clisp.org>
45623
45624         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45625         assigned exactly once.
45626
45627 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45628             Bruno Haible  <bruno@clisp.org>
45629
45630         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45631         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45632         for AM_CPPFLAGS.
45633
45634 2006-04-23  Bruno Haible  <bruno@clisp.org>
45635
45636         * modules/copy-file: Depend on unistd.
45637         * modules/execute: Likewise.
45638         * modules/fatal-signal: Likewise.
45639         * modules/findprog: Likewise.
45640         * modules/mkdtemp : Likewise.
45641         * modules/pipe: Likewise.
45642         * modules/wait-process: Likewise.
45643
45644 2006-04-23  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45647         condition was already detected.
45648         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45649
45650 2006-04-23  Bruno Haible  <bruno@clisp.org>
45651
45652         * lib/copy-file.c: Include <unistd.h> unconditionally.
45653         * lib/execute.c: Likewise.
45654         * lib/fatal-signal.c: Likewise.
45655         * lib/findprog.c: Likewise.
45656         * lib/mkdtemp.c: Likewise.
45657         * lib/pipe.h: Likewise.
45658         * lib/pipe.c: Likewise.
45659         * lib/wait-process.h: Likewise.
45660
45661 2006-04-23  Bruno Haible  <bruno@clisp.org>
45662
45663         * gnulib-tool (func_usage): Fix --import description. Document
45664         --update.
45665         (func_import): Create temporary file in a temporary directory, if
45666         --dry-run is specified. Silence errors from 'grep' when there are no
45667         m4 files in $m4dir.
45668         (func_create_testdir): Silence errors from 'grep' when there are no
45669         m4 files in $m4dir.
45670         Reported by Karl Berry <karl@freefriends.org>.
45671
45672 2006-04-20  Bruno Haible  <bruno@clisp.org>
45673
45674         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45675         one argument, so that the code will be portable to Autoconf 2.60.
45676         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45677         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45678         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45679
45680 2006-04-19  Derek Price  <derek@ximbiot.com>
45681             Eric Blake  <ebb9@byu.net>
45682
45683         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45684         rather than "/full/path.h".  Update comment to match.  Shorten &
45685         generalize m4_translit call via AS_TR_CPP.
45686
45687 2006-04-19  Derek Price  <derek@ximbiot.com>
45688             Eric Blake  <ebb9@byu.net>
45689
45690         * lib/inttypes.h: Correct grammar in comment.
45691
45692 2006-04-18  Derek Price  <derek@ximbiot.com>
45693             Paul Eggert  <eggert@cs.ucla.edu>
45694
45695         * modules/inttypes: New file.
45696         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45697
45698 2006-04-18  Derek Price  <derek@ximbiot.com>
45699             Paul Eggert  <eggert@cs.ucla.edu>
45700
45701         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45702         New files.
45703
45704 2006-04-18  Derek Price  <derek@ximbiot.com>
45705             Paul Eggert  <eggert@cs.ucla.edu>
45706
45707         * lib/inttypes.h: New file.
45708         * lib/strtoimax.c: Assume <inttypes.h>.
45709
45710 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45711
45712         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45713         isn't mounted.  Problem reported by Kir Kolyshkin.
45714
45715 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45716
45717         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45718         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45719         Derek R. Price.
45720         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45721         implementation.
45722
45723 2006-04-12  Eric Blake  <ebb9@byu.net>
45724
45725         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45726         is now done automatically by the corresponding Autoconf macro.
45727
45728 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45729
45730         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45731         time_r.h.
45732
45733 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45734
45735         Merge regex changes from libc, removing some of our
45736         POSIX-conformance changes that were rejected and redoing them in a
45737         less-intrusive way.
45738
45739         * lib/regcomp.c (re_compile_internal, init_dfa):
45740         Length arg is now size_t, not Idx.  All uses changed.
45741         (peek_token): Forward decl now says internal_function.
45742         (__re_error_msgid, __re_error_msgid_idx):
45743         Now static rather than extern with attribute_hidden.
45744         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45745         For some reason libc prefers K&R style defns for external functions.
45746         (regerror) [!defined _LIBC]: Likewise.
45747         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45748         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45749         (build_range_exp, build_collating_symbol):
45750         Use K&R-style defn.
45751         (re_compile_fastmap): Use '\0' to memset, not 0.
45752         (utf8_sb_map): Make the calculations more obvious.
45753         (init_dfa, parse_bracket_exp, build_charclass_op):
45754         Call calloc and cast result, as glibc does.
45755         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45756         (build_range_exp, build_collating_symbol):
45757         Now internal functions.
45758
45759         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45760
45761         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45762         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45763         Don't depend on VMS; depend on __VMS instead, for POSIX
45764         namespace cleanness.
45765         (regoff_t): Define to ssize_t, not long int.
45766
45767         Remove the REG_ macros named below.  Instead, make the old names
45768         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45769         __USE_GNU_REGEX.
45770         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45771         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45772         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45773         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45774         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45775         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45776         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45777         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45778         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45779         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45780         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45781         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45782         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45783         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45784         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45785         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45786         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45787         (REG_NREGS):
45788         Remove.  All uses replaced by the old RE_* names.
45789         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45790         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45791         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45792         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45793         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45794         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45795         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45796         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45797         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45798         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45799         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45800         Don't bother having these macros be independent of each others'
45801         values, since they no longer exist in the POSIX name space.
45802
45803         Rename the following member names back to their old names,
45804         unless !__USE_GNU_REGEX.  All uses changed back.
45805         (buffer): Renamed from re_buffer.
45806         (allocated): Renamed from re_allocated.
45807         (used): Renamed from re_used.
45808         (syntax): Renamed from re_syntax.
45809         (fastmap): Renamed from re_fastmap.
45810         (translate): Renamed from re_translate.
45811         (can_be_null): Renamed from re_can_be_null.
45812         (regs_allocated): Renamed from re_regs_allocated.
45813         (fastmap_accurate): Renamed from re_fastmap_accurate.
45814         (no_sub): Renamed from re_no_sub.
45815         (not_bol): Renamed from re_not_bol.
45816         (not_eol): Renamed from re_not_eol.
45817         (newline_anchor): Renamed from re_newline_anchor.
45818         (num_regs): Renamed from rm_num_regs.
45819         (start): Renamed from rm_start.
45820         (end): Renamed from rm_end.
45821
45822         (free_state): Move up a bit.
45823
45824         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45825         #define to be empty.
45826         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45827         when that is what is intended.
45828         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45829         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45830         (MAX): New macro.
45831         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45832         All uses changed back to re_malloc, etc.  It's now the caller's
45833         responsibility to check for overflow; all callers changed.
45834         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45835         (re_x2nrealloc): Remove.
45836         (free_state): Remove decl.
45837
45838         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45839         (re_set_registers, re_exec):
45840         Use K&R-style defn.
45841
45842         2006-01-31  Roland McGrath  <roland@redhat.com>
45843
45844         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45845         Reported by Mike Frysinger <vapier@gentoo.org>.
45846
45847         2006-01-15  Andreas Jaeger  <aj@suse.de>
45848
45849         [BZ #1950]
45850         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45851         build_wcs_upper_buffer change.
45852         (build_wcs_upper_buffer): Change return type.
45853
45854         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45855
45856         * lib/regex_internal.h: Include <stdint.h> if available.
45857
45858         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45859
45860         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45861
45862         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45863
45864         * lib/regcomp.c: Adjust for changed secondary hash function.
45865
45866         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
45867
45868         * lib/regex.h: Pretty printing.
45869         Clean up namespace a bit.
45870
45871         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
45872
45873         * lib/regexec.c (update_cur_sifted_state, check_arrival,
45874         check_arrival_add_next_nodes): Avoid using uninitialized variable.
45875
45876         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45877                     Ulrich Drepper  <drepper@redhat.com>
45878
45879         [BZ #1302]
45880         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
45881         changed.
45882         (bitset_word_t): Renamed from bitset_word.  All uses changed.
45883
45884         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
45885
45886         [BZ #281]
45887         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45888         * lib/regcomp.c: Remove unnecessary uses of
45889         unsigned RE_TRANSLATE_TYPE.
45890         * lib/regex_internal.h: Likewise.
45891         * lib/regex_internal.c: Likewise.
45892         * lib/regexec.c: Likewise.
45893         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45894
45895         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
45896
45897         * lib/regexec.c (find_recover_state): Remove unnecessary
45898         initialization.
45899         (transit_state_bkref): Make DFA a const pointer.
45900         (get_subexp): Likewise.
45901         (check_arrival): Likewise.
45902         (update_cur_sifted_state): Likewise.
45903         (re_search_internal): Likewise.
45904         (prune_impossible_nodes): Likewise.
45905         (acquire_init_state_context): Likewise.
45906         (proceed_next_node): Likewise.
45907         (set_regs): Likewise.
45908         (free_fail_stack_return): Likewise.
45909         (check_arrival_expand_ecl): Mark DFA parameter as const.
45910         (check_arrival_expand_ecl_sub): Likewise.
45911         (check_subexp_limits): Likewise.
45912         (sub_epsilon_src_nodes):  Likewise.
45913         (add_epsilon_src_nodes):  Likewise.
45914         (merge_state_array): Likewise.
45915         (update_regs): Likewise.
45916         (build_trtable): Likewise.
45917         (sift_states_backward): Mark MCTX parameter as const.
45918         (build_sifted_states): Likewise.
45919         (update_cur_sifted_state): Likewise.
45920         (sift_states_mkref): Likewise.
45921         (check_arrival_expand_ecl): Mark eclosure as const.
45922         (check_dst_limits_calc_pos_1): Likewise.
45923         * lib/regex_internal.h (re_match_context_t): Make dfa a const
45924         pointer.
45925
45926         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
45927
45928         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45929         (transit_state_sb): Likewise.
45930         (transit_state_mb): Likewise.
45931         (sift_states_iter_mb): Likewise.
45932         (check_arrival_add_next_nodes): Likewise.
45933         (check_node_accept_bytes): Change first parameter to pointer-to-const.
45934         [_LIBC] (re_search_2_stub): Use mempcpy.
45935
45936         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45937         mbrtowc for very simple UTF-8 case.
45938
45939         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45940         a pointer-to-const.
45941         (re_acquire_state_context): Likewise.
45942         * lib/regex_internal.h: Adjust prototypes.
45943
45944         * lib/regex.c: Prevent using C++ compilers.
45945
45946         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45947         (re_acquire_state_context): Likewise.
45948
45949 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45950
45951         * modules/regex (Depends-on): Add ssize_t.
45952
45953 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45954
45955         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45956         translation table.
45957
45958 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45959
45960         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45961
45962 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
45963             Bruno Haible  <bruno@clisp.org>
45964
45965         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45966         <sys/types.h> and <inttypes.h>.
45967
45968 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45969
45970         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45971         `__error_t_defined', so argp.h will not typedef the former.
45972
45973 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45974
45975         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45976         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
45977         glibc names.  Even if glibc is changed to conform to POSIX, the
45978         traditional names will be available anyway, since regex depends on
45979         the extensions module.  Also, fix a longstanding typo in the
45980         implementation of Spencer ERE test #75 from grep 2.3.  Problems
45981         reported by Emanuele Giaquinta.  Also, change sense of cached
45982         variable, so that the message makes sense.
45983
45984 2006-03-24  Simon Josefsson  <jas@extundo.com>
45985
45986         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45987         including some doc fixes.
45988         (base64_encode_alloc): Fix +1 bug on allocation failures.
45989
45990 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45991
45992         * lib/base64.c (base64_encode): Do not read past end of array with
45993         unsanitized input on systems with CHAR_BIT > 8.
45994
45995 2006-03-24  Eric Blake  <ebb9@byu.net>
45996
45997         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45998
45999 2006-03-22  Karl Berry  <karl@gnu.org>
46000
46001         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46002         * config/srclistvars.sh (COREUTILS): new var.
46003
46004 2006-03-17  Jim Meyering  <jim@meyering.net>
46005
46006         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46007         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46008
46009 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46010
46011         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46012         no longer needs it.  Instead, check that regoff_t is as least
46013         as wide as ptrdiff_t.
46014
46015         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46016         so that our regex.h stays compatible with the installed regex.
46017         This is helpful for installers who configure --without-included-regex.
46018         Problem reported by Emanuele Giaquinta.
46019
46020 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46021
46022         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46023         Typedef to long int, not to off_, as POSIX will likely change
46024         in that direction.
46025
46026 2006-03-15  Eric Blake  <ebb9@byu.net>
46027
46028         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46029
46030 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46031
46032         * lib/argp-help.c (validate_uparams): Fix typo
46033         * lib/argp-parse.c (argp_default_options): Consistently begin help
46034         messages with a lowercase letter.
46035
46036 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46037
46038         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46039         overrun buffers and shouldn't be used (much as gets shouldn't be
46040         used).
46041         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46042
46043 2006-03-08  Simon Josefsson  <jas@extundo.com>
46044
46045         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46046         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46047
46048 2006-03-08  Simon Josefsson  <jas@extundo.com>
46049
46050         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46051         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46052
46053 2006-03-08  Simon Josefsson  <jas@extundo.com>
46054
46055         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46056         signal that configure disabled the device.
46057
46058 2006-03-08  Simon Josefsson  <jas@extundo.com>
46059
46060         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46061         languages.
46062
46063 2006-03-07  Simon Josefsson  <jas@extundo.com>
46064
46065         * modules/getopt (Depends-on): Add unistd.
46066
46067         * modules/unistd: New file.
46068
46069 2006-03-07  Simon Josefsson  <jas@extundo.com>
46070
46071         * modules/gc-random: New file.
46072
46073 2006-03-07  Simon Josefsson  <jas@extundo.com>
46074
46075         * m4/unistd_h.m4: New file.
46076
46077 2006-03-07  Simon Josefsson  <jas@extundo.com>
46078
46079         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46080         test to be side-effect free by storing the result in the cache
46081         variable gl_cv_lib_readline, and moving the assignment of
46082         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46083         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46084
46085 2006-03-07  Simon Josefsson  <jas@extundo.com>
46086
46087         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46088         error on missing devices (the functions will return an error).
46089
46090         * m4/gc.m4: Move random stuff to gc-random.m4
46091
46092 2006-03-07  Simon Josefsson  <jas@extundo.com>
46093
46094         * lib/unistd_.h: New file.
46095
46096 2006-03-07  Simon Josefsson  <jas@extundo.com>
46097
46098         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46099
46100 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46103         Problem reported by Juan Manuel Guerrero.
46104
46105 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46106
46107         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46108         the unistd module.
46109         * lib/getlogin_r.c: Likewise.
46110         * lib/getlogin_r.h: Likewise.
46111         * lib/glob.c: Likewise.
46112         * lib/pagealign_alloc.c: Likewise.
46113         * lib/unistd_.h: Remove; no longer needed.
46114
46115 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46116
46117         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46118         Add unistd.
46119         * modules/c-stack (Depends-on): Add unistd.
46120         * modules/getlogin_r: Likewise.
46121         * modules/glob: Likewise.
46122         * modules/pagealign_alloc: Likewise.
46123         * modules/unistd (Files): Remove lib/unistd_.h.
46124         (EXTRA_DIST): Remove.
46125         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46126         need unistd_.h.
46127         (MOSTLYCLEANFILES): Remove unistd.h-t.
46128
46129 2006-03-03  Simon Josefsson  <jas@extundo.com>
46130
46131         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46132
46133 2006-03-03  Simon Josefsson  <jas@extundo.com>
46134
46135         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46136         libidn and bison.
46137
46138 2006-03-03  Simon Josefsson  <jas@extundo.com>
46139
46140         * build-aux/maint.mk: Add indent target.
46141
46142 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46143
46144         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46145         our replacement poll.h in any case, to avoid a differing
46146         declaration from a system header.  Seen on AIX.
46147
46148 2006-03-01  Simon Josefsson  <jas@extundo.com>
46149
46150         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46151         <kasal@ucw.cz>.
46152
46153 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46154
46155         * modules/gettime (Depends-on): Add extensions module.
46156         * modules/nanosleep (Depends-on): Likewise.
46157         * modules/settime (Depends-on): Likewise.
46158
46159 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46160
46161         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46162         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46163         pedantically.
46164         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46165         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46166
46167         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46168         not "==".  Reported by Ralf Wildenhues.
46169
46170 2006-03-01  Karl Berry  <karl@gnu.org>
46171
46172         * doc/Copyright/request-*: new files, synced from gnuorg.
46173
46174 2006-03-01  Karl Berry  <karl@gnu.org>
46175
46176         * config/srclist.txt (Copyright/*): new entries.
46177
46178 2006-02-28  Simon Josefsson  <jas@extundo.com>
46179
46180         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46181
46182 2006-02-27  Simon Josefsson  <jas@extundo.com>
46183
46184         * lib/base64.h: Indent #define's.  From Jim Meyering
46185         <jim@meyering.net>.
46186
46187 2006-02-27  Jim Meyering  <jim@meyering.net>
46188
46189         Revert the change of 2006-02-24, so these files can continue
46190         to be sync'd from gettext.
46191         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46192         of `config.h'.
46193
46194 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * modules/intprops: New file.
46197         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46198         Add intprops.
46199         * modules/getloadavg (Files): Remove lib/intprops.h.
46200         (Depends-on): Add intprops.
46201         * modules/human: Likewise.
46202         * modules/inttostr: Likewise.
46203         * modules/openat: Likewise.
46204         * modules/sig2str: Likewise.
46205         * modules/userspec: Likewise.
46206         * modules/utimecmp: Likewise.
46207         * modules/xnanosleep: Likewise.
46208         * modules/xstrtol: Likewise.
46209
46210 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46211
46212         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46213         * modules/lock-tests (TESTS): Use $(EXEEXT).
46214         * modules/tls-tests: Likewise.
46215         * modules/argp-tests: Likewise.
46216         (check_PROGRAMS): New var, replacing...
46217         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46218
46219 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46220
46221         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46222         `config.h'.
46223
46224 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46225
46226         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46227
46228 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46229
46230         Sync from coreutils.
46231         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46232         gl_CHDIR_SAFER.
46233
46234 2006-02-22  Jim Meyering  <jim@meyering.net>
46235
46236         Sync from coreutils.
46237         * m4/chdir-safer.m4: New file.
46238
46239 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46240
46241         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46242         AT_FDCWD exceeds INT_MAX.
46243         * lib/openat.h (AT_FDCWD): Likewise.
46244
46245 2006-02-17  Eric Blake  <address@hidden>
46246
46247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46248
46249 2006-02-16  Simon Josefsson  <jas@extundo.com>
46250
46251         * modules/getaddrinfo (Depends-on): Add sys_socket.
46252
46253 2006-02-15  Simon Josefsson  <jas@extundo.com>
46254
46255         * build-aux/maint.mk: Add dsyntax-check rule.
46256
46257 2006-02-15  Eric Blake  <ebb9@byu.net>
46258
46259         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46260         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46261         'present but cannot compile' warnings on cygwin.
46262         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46263         use ws2tcpip.h if sys/socket.h works.
46264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46265         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46266
46267 2006-02-14  Simon Josefsson  <jas@extundo.com>
46268
46269         * modules/maintainer-makefile (Files): Rename.
46270
46271         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46272         and (the local) Makefile.cfg to maint-cfg.mk.
46273
46274         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46275         to the latter.
46276
46277         * modules/maintainer-makefile: New module.
46278
46279         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46280         severaly stripped to make it possible to build it up from scratch
46281         with reliable tests.
46282
46283         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46284         fixes to permit overriding the default actions when configure and
46285         makefile are not available.
46286
46287 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46288
46289         Sync from coreutils.
46290         * modules/lstat (Depends-on): Don't depend on xalloc.
46291         (License): Change from GPL to LGPL, since this is now simply a
46292         replacement for a libc function.
46293
46294 2006-02-14  Jim Meyering  <jim@meyering.net>
46295
46296         Sync from coreutils.
46297
46298         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46299         failure on deficient systems, and simplify gnulib lgpl dependencies.
46300         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46301         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46302
46303         * lib/xalloc-die.c: Remove unused definition of N_.
46304
46305 2006-02-14  Jim Meyering  <jim@meyering.net>
46306
46307         Sync from coreutils.
46308         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46309         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46310         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46311         double-quote uses of that variable, to accommodate the rare case in
46312         which getmntent is available in none of the libraries checked.  This
46313         happens at least on FreeBSD 5.0.
46314
46315 2006-02-13  Simon Josefsson  <jas@extundo.com>
46316
46317         * gnulib-tool (Usage): Fix --import, from
46318         karl@freefriends.org (Karl Berry).
46319
46320 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46321
46322         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46323
46324 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46325
46326         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46327         "autoupdate" on 2005-12-12.
46328
46329 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46330
46331         * modules/closeout (Depends-on): Remove atexit.
46332
46333 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46334
46335         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46336         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46337
46338 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46339
46340         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46341         __EXTENSIONS__ if this causes compilation to fail.  Problem
46342         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46343         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46344
46345 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46346
46347         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46348         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46350         All uses changed.
46351
46352 2006-01-26  Simon Josefsson  <jas@extundo.com>
46353
46354         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46355         prototype is visible on mingw32.
46356
46357         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46358         for mingw32.
46359
46360         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46361         mingw32).
46362
46363 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46366         attempt to open for write; this always fails, at least on POSIX
46367         hosts.  This reinstates the 2006-01-09 change, which was
46368         inadvertently removed.
46369
46370 2006-01-26  Bruno Haible  <bruno@clisp.org>
46371
46372         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46373         Reported by Paul Eggert.
46374
46375 2006-01-26  Bruno Haible  <bruno@clisp.org>
46376             Paul Eggert  <eggert@cs.ucla.edu>
46377
46378         * lib/stdbool_.h (_Bool)
46379         [(! (defined __cplusplus || defined __BEOS__)
46380           && !defined __GNUC__
46381           && !(defined __HP_cc || defined __xlc__
46382                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46383                || defined __sgi))]:
46384         #define to signed char in these cases too; this simplifies
46385         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46386         etc., separately) and makes it more conservative.
46387
46388 2006-01-25  Simon Josefsson  <jas@extundo.com>
46389
46390         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46391         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46392         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46393
46394 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46395
46396         * lib/argp-namefrob.h: Bugfix. Remove stray #
46397
46398 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46399
46400         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46401         so that we test the test.
46402         Check for yet another HP-UX cc bug involving *bool |= bool.
46403
46404 2006-01-25  Karl Berry  <karl@gnu.org>
46405
46406         * config/srclist.txt (vasnprintf.c): sync lost.
46407
46408 2006-01-25  Jim Meyering  <jim@meyering.net>
46409
46410         Sync from the stable (b5) branch of coreutils:
46411
46412         * lib/fts.c (fts_children): Don't let close() clobber errno from
46413         failed fchdir().
46414
46415         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46416         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46417         a dangling symlink.  That can also happen at least for ELOOP.
46418         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46419         FYI, this bug predates the inclusion of fts.c in coreutils.
46420
46421         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46422         in their own block, so pre-c99 compilers don't object.
46423
46424         Avoid the double-free (first in fts_read, second in fts_close) that
46425         would occur when an `active' directory is made inaccessible (e.g.,
46426         via chmod a-x) during a traversal.
46427         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46428         before returning.  Reproduce this failure by
46429         mkdir -p a/b; cd a; chmod a-x . b
46430         Reported by Stavros Passas.
46431
46432 2006-01-25  Jim Meyering  <jim@meyering.net>
46433
46434         * lib/fileblocks.c: Remove more useless parentheses.
46435         * lib/readutmp.h: Likewise.
46436
46437 2006-01-25  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46440         warnings.
46441         Reported by Paul Eggert.
46442
46443 2006-01-25  Bruno Haible  <bruno@clisp.org>
46444
46445         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46446         rid of a trap command. For Solaris sh.
46447         Reported by Mark D. Baushke <mdb@gnu.org>.
46448
46449 2006-01-24  Simon Josefsson  <jas@extundo.com>
46450
46451         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46452         Bruno.
46453
46454 2006-01-24  Karl Berry  <karl@gnu.org>
46455
46456         * config/srclist.txt (argp-namefrob.h): sync lost.
46457
46458 2006-01-24  Jim Meyering  <jim@meyering.net>
46459
46460         * modules/openat (Files): Add lib/intprops.h.
46461         From Mark D. Baushke.
46462
46463 2006-01-24  Jim Meyering  <jim@meyering.net>
46464
46465         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46466         Reported by Mark D. Baushke.
46467
46468 2006-01-24  Jim Meyering  <jim@meyering.net>
46469
46470         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46471
46472 2006-01-24  Bruno Haible  <bruno@clisp.org>
46473
46474         * modules/strnlen (Maintainer): Change from glibc to all.
46475
46476 2006-01-24  Bruno Haible  <bruno@clisp.org>
46477
46478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46479         Patch by Paul Eggert.
46480
46481 2006-01-24  Bruno Haible  <bruno@clisp.org>
46482
46483         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46484         already has it.
46485         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46486         2005-11-26.
46487
46488         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46489         'signed char' to avoid problems with the built-in _Bool type.
46490         Reported by Paul Eggert on 2005-11-26.
46491
46492 2006-01-24  Bruno Haible  <bruno@clisp.org>
46493
46494         * gnulib-tool (func_import): Avoid constructing complicated sed
46495         expressions inside backquote.
46496         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46497
46498 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46499
46500         These changes imported from libc.
46501         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46502         test and two separate function calls.
46503         * lib/strndup.c (__strndup): Add libc_hidden_def.
46504
46505 2006-01-23  Simon Josefsson  <jas@extundo.com>
46506
46507         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46508         Remove the test_*_SOURCES variable: automake infers it by default.
46509         * modules/tls-tests: Likewise.
46510
46511 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46512
46513         Work around porting bugs reported by Dieter in
46514         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46515         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46516         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46517         Include "getopt.h" first, to check interface.
46518         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46519         !HAVE_DECL_GETENV.
46520         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46521         (__strndup): Revert to K&R-style function dfns, the glibc style.
46522         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46523         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46524         Include strnlen.h first, to get prototype properly.
46525         (strnlen): Renamed from __strnlen.
46526         Remove weak alias.
46527
46528 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46529
46530         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46531
46532 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46533
46534         * config/srclist.txt: Adjust to reflect glibc reorganization.
46535         This affects only comments.
46536
46537 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46538
46539          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46540          Reported by Bruce Korb <bkorb@gnu.org>.
46541
46542 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46543
46544         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46545         to pacify gcc -Wswitch-default.
46546
46547 2006-01-22  Bruno Haible  <bruno@clisp.org>
46548
46549         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46550         temporary buffer for sprintf, take into account the precision also
46551         for 'd', 'i', 'u', 'o', 'x', 'X'.
46552
46553 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46554
46555         * modules/argp-tests: New module
46556         * tests/test-argp.c: New file
46557         * tests/test-argp-2.sh: New file
46558
46559 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46560
46561         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46562         (__argp_base_name): Removed
46563         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46564         typo.
46565         (__argp_base_name): Provide macro definition or extern declaration
46566         depending on the configuration
46567
46568 2006-01-20  Simon Josefsson  <jas@extundo.com>
46569
46570         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46571
46572 2006-01-20  Simon Josefsson  <jas@extundo.com>
46573
46574         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46575
46576 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46577
46578         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46579         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46580         Suggested by Bruno Haible.
46581
46582 2006-01-20  Karl Berry  <karl@gnu.org>
46583
46584         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46585         until changes propagate, I guess.
46586
46587 2006-01-19  Simon Josefsson  <jas@extundo.com>
46588
46589         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46590
46591 2006-01-19  Simon Josefsson  <jas@extundo.com>
46592
46593         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46594
46595 2006-01-19  Simon Josefsson  <jas@extundo.com>
46596
46597         * gnulib-tool: Set check_PROGRAMS.
46598
46599         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46600         modules/des-tests, modules/gc-arcfour-tests,
46601         modules/gc-arctwo-tests, modules/gc-des-tests,
46602         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46603         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46604         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46605         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46606         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46607         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46608         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46609         test_*_SOURCES.
46610
46611 2006-01-18  Simon Josefsson  <jas@extundo.com>
46612
46613         * modules/socklen (Depends-on): Depend on sys_socket.
46614
46615 2006-01-18  Simon Josefsson  <jas@extundo.com>
46616
46617         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46618         modules/des-tests, modules/gc-arcfour-tests,
46619         modules/gc-arctwo-tests, modules/gc-des-tests,
46620         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46621         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46622         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46623         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46624         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46625         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46626         $(EXEEXT) to automake TESTS variable, for mingw32.
46627
46628 2006-01-17  Simon Josefsson  <jas@extundo.com>
46629
46630         * modules/socklen (Include): Need sys/socket.h.
46631
46632 2006-01-17  Bruno Haible  <bruno@clisp.org>
46633
46634         * modules/ssize_t (Include): Add <sys/types.h>.
46635
46636 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46637
46638         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46639         it's not portable and it doesn't work with cross-compiles.
46640         Problem reported by Bruno Haible.  Fix missing-$ typo in
46641         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46642         -zignore from being used with Sun's C compiler.
46643
46644 2006-01-12  Simon Josefsson  <jas@extundo.com>
46645
46646         * lib/base64.c: Fix warning, reported by Bruno Haible
46647         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46648
46649 2006-01-12  Bruno Haible  <bruno@clisp.org>
46650
46651         * modules/ldd: New file.
46652         * build-aux/ldd.sh.in: New file.
46653         * MODULES.html.sh (Support for building libraries and executables): Add
46654         ldd.
46655
46656 2006-01-12  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/ldd.m4: New file.
46659
46660 2006-01-12  Bruno Haible  <bruno@clisp.org>
46661
46662         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46663         endless loop while replacing $auxdir with build-aux.
46664
46665 2006-01-11  Simon Josefsson  <jas@extundo.com>
46666
46667         * lib/stdint_.h (SIZE_MAX): Add missing (.
46668
46669 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46670
46671         Sync from coreutils.
46672         * lib/md5.c: Fix commentary typos.
46673         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46674         * lib/md5.h (__attribute__): Remove; unused.
46675         * lib/sha1.c: Fix commentary to match md5 better.
46676         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46677         so that we don't need to worry about alignment.  All uses changed.
46678         This merges the 2005-10-28 md5 change into sha1.
46679
46680 2006-01-11  Jim Meyering  <jim@meyering.net>
46681
46682         Sync from coreutils.
46683         * lib/md5.c (OP): Fix spacing.
46684
46685 2006-01-11  Bruno Haible  <bruno@clisp.org>
46686
46687         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46688         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46689         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46690
46691 2006-01-11  Bruno Haible  <bruno@clisp.org>
46692
46693         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46694         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46695         the "early" section as well.
46696
46697 2006-01-11  Bruno Haible  <bruno@clisp.org>
46698
46699         Avoid "ar: no archive members specified" error on MacOS X.
46700         * gnulib-tool (func_modules_add_dummy): New function.
46701         (func_import, func_create_testdir): Invoke it.
46702
46703 2006-01-11  Bruno Haible  <bruno@clisp.org>
46704
46705         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46706         with $auxdir in AC_CONFIG_FILES statements.
46707
46708 2006-01-11  Bruno Haible  <bruno@clisp.org>
46709
46710         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46711         Initialize also noinst_HEADERS to empty.
46712
46713 2006-01-11  Bruno Haible  <bruno@clisp.org>
46714
46715         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46716         variables.
46717         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46718         autoreconf.
46719
46720 2006-01-11  Bruno Haible  <bruno@clisp.org>
46721
46722         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46723         overridable by the user.
46724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46725
46726 2006-01-10  Simon Josefsson  <jas@extundo.com>
46727
46728         * modules/sys_socket: New file.
46729
46730 2006-01-10  Simon Josefsson  <jas@extundo.com>
46731
46732         * m4/sys_socket_h.m4: New file.
46733
46734 2006-01-10  Simon Josefsson  <jas@extundo.com>
46735
46736         * lib/socket_.h: New file.
46737
46738 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46739
46740         * modules/readutmp (Maintainer): Add myself.
46741
46742 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46743
46744         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46745         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46746         People who are still concerned with buggy memcmp implementations
46747         can invoke gl_FUNC_MEMCMP themselves.
46748
46749 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46750
46751         * lib/regex_internal.h (BITSET_WORD_BITS):
46752         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46753         preprocessor mishandles large unsigned values as if they were signed.
46754         Problem reported by Claudio Fontana in
46755         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46756
46757 2006-01-10  Jim Meyering  <jim@meyering.net>
46758
46759         Avoid the double-free (first in fts_read, second in fts_close) that
46760         would occur when an `active' directory is made inaccessible (e.g.,
46761         via chmod a-x) during a traversal.
46762         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46763         before returning.  Reproduce this failure by
46764         mkdir -p a/b; cd a; chmod a-x . b
46765         Reported by Stavros Passas.
46766
46767         Sync from coreutils.
46768         * lib/sha1.c: Tweak grammar in a comment.
46769
46770 2006-01-10  Jim Meyering  <jim@meyering.net>
46771
46772         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46773         Patch by Joerg Sonnenberger.
46774
46775 2006-01-10  Bruno Haible  <bruno@clisp.org>
46776
46777         * modules/readutmp: Depend on module free.
46778         * modules/strtok_r: Depend on module restrict.
46779
46780 2006-01-10  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/gettext (configure.ac): Add an invocation of
46783         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46784
46785 2006-01-10  Bruno Haible  <bruno@clisp.org>
46786
46787         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46788         Reported by Werner Lemberg <wl@gnu.org>.
46789
46790 2006-01-10  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/localcharset.c: Update from GNU gettext.
46793
46794 2006-01-10  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/argp.h (__const): Remove macro. Use const instead.
46797         * lib/argp-fmtstream.h (__const): Likewise.
46798         * lib/glob_.h (__const): Remove macro.
46799         * lib/glob-libc.h: Use const instead of __const.
46800
46801 2006-01-10  Bruno Haible  <bruno@clisp.org>
46802
46803         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46804         variable.
46805         Needed to avoid an automake error regarding the 'gettext' module.
46806
46807 2006-01-09  Simon Josefsson  <jas@extundo.com>
46808
46809         * modules/inet_ntop (Depends-on): Add restrict.
46810
46811 2006-01-09  Simon Josefsson  <jas@extundo.com>
46812
46813         * modules/gc-rijndael-tests (License): Put under LGPL.
46814
46815         * modules/gc-des-tests (License): Likewise.
46816
46817         * modules/gc-arcfour-tests (License): Likewise.
46818
46819         * modules/gc-arctwo-tests (License): Likewise.
46820
46821         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46822
46823         * modules/gc-hmac-sha1-tests (Files): Likewise.
46824
46825         * modules/gc-hmac-md5-tests (License): Likewise.
46826
46827         * modules/gc-sha1-tests (License): Likewise.
46828
46829         * modules/gc-md5-tests (License): Likewise.
46830
46831         * modules/gc-md4-tests (License): Likewise.
46832
46833         * modules/gc-md2-tests (License): Likewise.
46834
46835         * modules/gc-tests (License): Likewise.
46836
46837         * modules/des-tests (License): Likewise.
46838
46839         * modules/md4-tests (License): Likewise.
46840
46841         * modules/md2-tests (License): Likewise.
46842
46843 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         Sync from coreutils:
46846
46847         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46848         * modules/lib-ignore: New file.
46849         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46850         chdir-safer.m4, lchmod.m4.
46851         * modules/openat: Add mkdirat.c, openat-priv.h.
46852
46853 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46854
46855         Sync from coreutils.
46856         * m4/lib-ignore.m4: New file.
46857         * m4/lchmod.m4: New file.
46858
46859 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46860
46861         Sync from coreutils.
46862         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46863         for write access: POSIX says that must fail.
46864         * lib/fts.c (diropen): Likewise.
46865         * lib/save-cwd.c (save_cwd): Likewise.
46866         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46867         well, for minor improvements on hosts that lack O_DIRECTORY.
46868         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46869         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46870         Fall back on chown if open failed with EACCES.
46871
46872         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46873         Report an error at compile-time if only a 1-second nominal clock
46874         resolution is found.
46875
46876         * lib/lchmod.h: New file.
46877         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46878         (make_dir_parents): Use lchown rather than chown, and
46879         lchmod rather than chmod.
46880
46881         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46882         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
46883         "proc" reported by n0dalus.
46884
46885         * lib/mountlist.c: Include <limits.h>.
46886         (dev_from_mount_options)
46887         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46888         New function.  It no longer assumes "dev=" has the System V meaning
46889         on Linux (since it doesn't).  It also parses "dev=" more carefully.
46890         (read_file_system_list)
46891         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46892         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46893         dev= in that case.
46894
46895         * lib/posixtm.h (PDS_PRE_2000): New macro.
46896         * lib/posixtm.c (year): Arg is now syntax_bits rather than
46897         allow_century.  All usages changed.  Reject dates outside the range
46898         1969-1999 if PDS_PRE_2000 is used.
46899
46900 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46901
46902         Sync from coreutils.
46903         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46904         (Time of day items): Mention the possibility of leap seconds.
46905         Problem reported by Dr. David Alan Gilbert.
46906
46907 2006-01-09  Jim Meyering  <jim@meyering.net>
46908
46909         Sync from coreutils.
46910
46911         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46912
46913         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46914
46915         * lib/modechange.c (mode_compile): Reject an invalid mode string
46916         that starts with an octal digit.  From Andreas Gruenbacher.
46917
46918         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46919         and dup to open_safer and dup_safer, respectively.
46920         (openat_permissive): Fix typo in comment.
46921
46922         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46923         "gettext.h"; either no longer needed or are guaranteed by openat.h.
46924         (_): Remove; no longer needed.
46925         (openat): Renamed from rpl_openat; no need for rpl_openat
46926         since openat.h renames openat for us.
46927         Replace most of the body with a call to openat_permissive,
46928         to avoid duplicate code.
46929         Port to (probably hypothetical) environments were mode_t is
46930         wider than int.
46931         (openat_permissive): Require mode arg, so that we can check
46932         types better.  Put it just after flags.  Change cwd failure
46933         indicator from pointer-to-bool to pointer-to-errno-value.
46934         All callers changed.
46935         Invoke openat_save_fail and/or openat_restore_fail if
46936         cwd_errno is null, so that openat can call us.
46937         (openat_permissive, fdopendir, fstatat, unlinkat):
46938         Simplify errno handling to avoid some duplicate code,
46939         as it's OK to set errno on success.
46940         * lib/openat.h: Revamp code so that function macros depend on
46941         __OPENAT_PREFIX only, not also on AT_FDCWD.
46942         (openat_ro): Remove.  Caller changed to use openat_permissive.
46943         (openat_permissive): Now a macro, if not a function.
46944         (openat_restore_fail, openat_save_fail): Now always functions,
46945         since mkdirat needs them even if __OPENAT_PREFIX is defined.
46946
46947         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46948         and openat.c.
46949         * lib/mkdirat.c: Include openat-priv.h.
46950         Remove definitions of macros defined therein.
46951         * lib/openat.c: Likewise.
46952
46953         * lib/mkdirat.c (mkdirat): New file and function.
46954         * lib/openat.h (mkdirat): Declare.
46955
46956         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46957
46958         * lib/openat.h (openat_permissive): Declare.
46959         (openat_ro): Define.
46960
46961         * lib/openat.c (EXPECTED_ERRNO): New macro.
46962         (openat_permissive): New function -- used in remove.c rewrite.
46963         (all functions): Set errno just before returning, only if there
46964         was an actual failure.
46965         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46966
46967         Emulate openat-family functions using Linux's procfs, if possible.
46968         Idea and some code based on Ulrich Drepper's glibc changes.
46969
46970         * lib/openat.c: (BUILD_PROC_NAME): New macro.
46971         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46972         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46973         before falling back on save_cwd and restore_cwd.
46974         (fdopendir, fstatat, unlinkat): Likewise.
46975
46976         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46977         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46978
46979         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46980         as second argument to va_arg.  Otherwise, some versions of gcc
46981         warn that `if this code is reached, the program will abort'.
46982
46983 2006-01-09  Jim Meyering  <jim@meyering.net>
46984
46985         Sync from coreutils.
46986         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46987         Require openat-priv.h.
46988
46989 2006-01-09  Bruno Haible  <bruno@clisp.org>
46990
46991         * modules/strnlen (Include): Use strnlen.h.
46992
46993 2006-01-09  Bruno Haible  <bruno@clisp.org>
46994
46995         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46996
46997 2006-01-09  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/sysexit_.h (EX_OK): New macro.
47000         Suggested by Martin Lambers <marlam@marlam.de>.
47001
47002 2006-01-09  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47005         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47006
47007 2006-01-09  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47010         numbers.
47011
47012 2006-01-09  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47015         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47016         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47017         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47018
47019 2006-01-09  Bruno Haible  <bruno@clisp.org>
47020
47021         * build-aux/javacomp.sh.in: New file, moved from lib/.
47022         * modules/javacomp-script (Files): Update.
47023         (configure.ac): Add AC_CONFIG_FILES invocation.
47024         (EXTRA_DIST): Remove variable.
47025
47026         * build-aux/javaexec.sh.in: New file, moved from lib/.
47027         * modules/javaexec (Files): Update.
47028         (configure.ac): Add AC_CONFIG_FILES invocation.
47029         (EXTRA_DIST): Remove javaexec.sh.in.
47030
47031         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47032         * modules/csharpcomp-script (Files): Update.
47033         (configure.ac): Add AC_CONFIG_FILES invocation.
47034         (EXTRA_DIST): Remove variable.
47035
47036         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47037         * modules/csharpexec (Files): Update.
47038         (configure.ac): Add AC_CONFIG_FILES invocation.
47039         (EXTRA_DIST): Remove csharpexec.sh.in.
47040
47041 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47042
47043         Sync from coreutils.
47044
47045         Add POSIX ACL support
47046         * lib/acl.h (copy_acl, set_acl): Add declarations.
47047         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47048         systems other than Linux.
47049         (chmod_or_fchmod): New function: use fchmod when possible,
47050         and chmod otherwise.
47051         (file_has_acl): Add a POSIX ACL implementation, with a
47052         Linux-specific subcase.
47053         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47054         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47055         acls are unsupported.
47056         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47057         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47058         are unsupported.
47059
47060 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47061
47062         Sync from coreutils.
47063         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47064
47065 2006-01-07  Bruno Haible  <bruno@clisp.org>
47066
47067         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47068         gl_EARLY.
47069
47070 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47071
47072         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47073         Problem reported for Mingw by Mark Junker.
47074
47075 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47076
47077         * README: Gnulib normally doesn't generate a tarball.
47078
47079 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47080
47081         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47082         long int, not int, for nanosecond counts, so that people who are
47083         used to POSIX struct timespec won't be surprised.  Reported by Jim
47084         Meyering.
47085
47086 2005-12-28  Bruno Haible  <bruno@clisp.org>
47087
47088         * build-aux/config.rpath: Update from GNU gettext.
47089
47090 2005-12-16  Jim Meyering  <jim@meyering.net>
47091
47092         * modules/fprintftime: New module.
47093         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47094
47095 2005-12-16  Jim Meyering  <jim@meyering.net>
47096
47097         * m4/fprintftime.m4: New file.
47098
47099 2005-12-16  Jim Meyering  <jim@meyering.net>
47100
47101         * lib/fprintftime.c, lib/fprintftime.h: New files.
47102
47103 2005-12-15  Simon Josefsson  <jas@extundo.com>
47104
47105         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47106         new m4/socklen.m4.
47107
47108 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47109
47110         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47111         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47112
47113 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47114
47115         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47116         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47117         struct uparams is valid. Fall back to the default values if it is
47118         not.
47119
47120 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47121
47122         * modules/argp (Files): Add argp-pin.c
47123         (Depends-on): dirname
47124         (lib_SOURCES): Add argp-pin.c
47125
47126 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47127
47128         * m4/argp.m4:  Check if program_invocation_name and
47129         program_invocation_short_name are declared and define appropriate
47130         macros if they are not.
47131
47132 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47133
47134         * lib/argp-help.c (__argp_base_name): New function
47135         (__argp_short_program_name): Rewrite using __argp_base_name
47136         * lib/argp-namefrob.h: Define program_invocation_name and
47137         program_invocation_short_name if requested
47138         (__argp_base_name): Add prototype
47139         * lib/argp-parse.c (argp_def): Use gettext wrappers
47140         (argp_default_parser): Use __argp_base_name
47141         * lib/argp-pin.c: New file. Defines program_invocation_name and
47142         program_invocation_short_name on systems that lack them.
47143
47144 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47145
47146         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47147         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47148         porting problem reported by Georg Schwarz in
47149         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47150
47151 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47152
47153         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47154         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47155         porting problem reported by Georg Schwarz in
47156         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47157
47158 2005-12-05  Bruno Haible  <bruno@clisp.org>
47159
47160         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47161         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47162         Reported by Mark Junker <mjscod@gmx.de>.
47163
47164 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47165
47166         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47167         Use implementation from Albert Chin, with some
47168         comments/corrections by Stepan Kasal and myself.
47169
47170 2005-12-02  Bruno Haible  <bruno@clisp.org>
47171
47172         * gnulib-tool (func_import): Accept GPLed build tool modules when
47173         --lgpl is given.
47174         * modules/csharpcomp-script: New file.
47175         * modules/csharpcomp: Depend on it.
47176         * modules/javacomp-script: New file.
47177         * modules/javacomp: Depend on it.
47178         Suggested by Simon Josefsson.
47179
47180 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47181
47182         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47183         statement, to work around an HP-UX 10.20 compiler bug reported by
47184         Peter O'Gorman.
47185
47186 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47187
47188         * modules/savedir (Depends-on): Add openat.
47189
47190 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47191
47192         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47193         (uintmax_t) [defined uintmax_t]: Do not declare.
47194         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47195         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47196         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47197         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47198         sake of portability to weird hosts that C allows (though we don't
47199         know of any practical examples).
47200
47201         * lib/savedir.h (fdsavedir): New decl.
47202         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47203         contains most of the former guts of savedir.
47204         (savedir): Use savedirstream.
47205         Include "openat.h".
47206
47207 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * modules/obstack (Files): Add m4/ulonglong.m4.
47210         Problem reported by Davide Angelocola.
47211
47212 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47213
47214         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47215         coreutils no longer futzes with rounding modes.
47216
47217 2005-11-14  Jim Meyering  <jim@meyering.net>
47218
47219         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47220         replacement of mkstemp.
47221
47222 2005-11-10  Simon Josefsson  <jas@extundo.com>
47223
47224         * lib/readline.c: Remove EOL.
47225
47226 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47227
47228         * modules/gethrxtime (Depends-on): Add gettime.
47229
47230 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47231
47232         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47233         or gettimeofday; no longer needed.
47234
47235 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47236
47237         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47238         time business.
47239         (gethrxtime) [! (HAVE_NANOUPTIME
47240         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47241         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47242         our own approximation.
47243
47244 2005-11-08  Eric Blake  <ebb9@byu.net>
47245
47246         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47247
47248 2005-11-08  Eric Blake  <ebb9@byu.net>
47249
47250         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47251
47252 2005-11-04  Bruno Haible  <bruno@clisp.org>
47253
47254         * gnulib-tool: Implement --update mode.
47255
47256 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47257
47258         Fix porting problem reported by Theodoros V. Kalamatianos.
47259         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47260         Don't assume that futimes failing means we must fail.
47261
47262 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47263
47264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47265         variables to suggest the intended function of the PATH_MAX check.
47266
47267 2005-10-30  Kean Johnston  <jkj@sco.com>
47268
47269         Trivial changes to support SCO systems.
47270         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47271         as PATH_MAX.
47272         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47273         where __ptr is null when no I/O is pending.
47274
47275 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47276
47277         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47278         leave errno alone.  Problem reported by Dmitry V. Levin.
47279
47280 2005-10-28  Simon Josefsson  <jas@extundo.com>
47281
47282         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47283         Test more.
47284
47285         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47286
47287         * modules/md2, modules/md2-tests: New files.
47288
47289 2005-10-28  Simon Josefsson  <jas@extundo.com>
47290
47291         * m4/inet_ntop.m4: More tests.
47292
47293         * m4/gc-md2.m4, md2.m4: New file.
47294
47295 2005-10-28  Simon Josefsson  <jas@extundo.com>
47296
47297         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47298         "restrict" keywords, as per POSIX.  Protect the function
47299         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47300         Don't use K&R prototypes.  Check the sprintf return values.
47301         Re-define EAFNOSUPPORT if not present.  Indent.
47302
47303         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47304         suggested by Bruno Haible <bruno@clisp.org>.
47305
47306         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47307
47308         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47309
47310         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47311         libgcrypt).
47312
47313         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47314
47315         * lib/md2.h, lib/md2.c: New files.
47316
47317 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47318
47319         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47320         errno alone.  Problem reported by Frederic Jolliton.
47321
47322 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47323
47324         * modules/verify (License): Change from GPL to LGPL.  This is a
47325         tiny module and there are apparently near-equivalents that are
47326         under the BSD license.
47327
47328 2005-10-24  Simon Josefsson  <jas@extundo.com>
47329
47330         * modules/sha1: Relicense to LGPL.
47331
47332 2005-10-24  Simon Josefsson  <jas@extundo.com>
47333
47334         * lib/md4.h: Shrink buffer size, now that we changed the type.
47335
47336 2005-10-23  Simon Josefsson  <jas@extundo.com>
47337
47338         * gnulib-tool (func_import): Fix --tests-base.
47339
47340 2005-10-22  Simon Josefsson  <jas@extundo.com>
47341
47342         * modules/arcfour (Depends-on): Need stdint.
47343
47344 2005-10-22  Simon Josefsson  <jas@extundo.com>
47345
47346         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47347         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47348
47349 2005-10-22  Simon Josefsson  <jas@extundo.com>
47350
47351         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47352         suggested by Bruno Haible <bruno@clisp.org>.
47353
47354 2005-10-22  Simon Josefsson  <jas@extundo.com>
47355
47356         * lib/crc.h: Include stddef.h, for size_t.
47357
47358 2005-10-22  Simon Josefsson  <jas@extundo.com>
47359
47360         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47361         arcfour_context struct (simplify test vector testing in GNU
47362         Shishi).
47363
47364 2005-10-21  Simon Josefsson  <jas@extundo.com>
47365
47366         * modules/des, modules/des-tests: New files.
47367
47368         * modules/gc-des, modules/gc-des-tests: New files.
47369
47370         * tests/test-des.c, tests/test-gc-des.c: New file.
47371
47372 2005-10-21  Simon Josefsson  <jas@extundo.com>
47373
47374         * modules/arctwo, modules/arctwo-tests: New files.
47375
47376         * tests/test-arctwo.c: New file.
47377
47378         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47379
47380         * tests/test-gc-arctwo.c: New file.
47381
47382 2005-10-21  Simon Josefsson  <jas@extundo.com>
47383
47384         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47385         Bruno Haible <bruno@clisp.org>.
47386
47387         * m4/gc-des.m4: New file.
47388
47389 2005-10-21  Simon Josefsson  <jas@extundo.com>
47390
47391         * m4/arctwo.m4: New file.
47392
47393         * m4/gc-arctwo.m4: New file.
47394
47395 2005-10-21  Simon Josefsson  <jas@extundo.com>
47396
47397         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47398         block.
47399
47400 2005-10-21  Simon Josefsson  <jas@extundo.com>
47401
47402         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47403         <bruno@clisp.org>.
47404
47405         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47406
47407         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47408         Bruno Haible <bruno@clisp.org>.
47409
47410         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47411         <bruno@clisp.org>.
47412
47413 2005-10-21  Simon Josefsson  <jas@extundo.com>
47414
47415         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47416
47417 2005-10-21  Simon Josefsson  <jas@extundo.com>
47418
47419         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47420
47421 2005-10-21  Simon Josefsson  <jas@extundo.com>
47422
47423         * lib/des.h, lib/des.c: New files.
47424
47425         * lib/gc-gnulib.c: Support DES.c
47426
47427 2005-10-21  Simon Josefsson  <jas@extundo.com>
47428
47429         * lib/arctwo.h, lib/arctwo.c: New files.
47430
47431         * lib/gc-gnulib.c: Support ARCTWO.
47432
47433 2005-10-21  Simon Josefsson  <jas@extundo.com>
47434
47435         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47436         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47437
47438 2005-10-21  Simon Josefsson  <jas@extundo.com>
47439
47440         * gnulib-tool (func_import, func_create_testdir): Define automake
47441         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47442         Makefile.am snippet),
47443         suggested by Bruno Haible <bruno@clisp.org>.
47444
47445         * modules/gc (Makefile.am): Use it.
47446
47447 2005-10-21  Bruno Haible  <bruno@clisp.org>
47448
47449         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47450         patch.
47451
47452 2005-10-19  Simon Josefsson  <jas@extundo.com>
47453
47454         * tests/test-gc-rijndael.c: New file.
47455
47456         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47457
47458 2005-10-19  Simon Josefsson  <jas@extundo.com>
47459
47460         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47461         interface too.
47462
47463 2005-10-19  Simon Josefsson  <jas@extundo.com>
47464
47465         * tests/test-gc-arcfour.c: New file.
47466
47467         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47468
47469 2005-10-19  Simon Josefsson  <jas@extundo.com>
47470
47471         * modules/gc-md4, modules/gc-md4-tests: New file.
47472
47473         * tests/test-gc-md4.c: New file.
47474
47475 2005-10-19  Simon Josefsson  <jas@extundo.com>
47476
47477         * m4/gc-md4.m4: New file.
47478
47479 2005-10-19  Simon Josefsson  <jas@extundo.com>
47480
47481         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47482         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47483         <kasal@ucw.cz>.
47484
47485 2005-10-19  Simon Josefsson  <jas@extundo.com>
47486
47487         * m4/gc-arcfour.m4: New file.
47488
47489         * m4/gc-rijndael.m4: New file.
47490
47491 2005-10-19  Simon Josefsson  <jas@extundo.com>
47492
47493         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47494
47495 2005-10-19  Simon Josefsson  <jas@extundo.com>
47496
47497         * lib/gc-gnulib.c: Support ARCFOUR.
47498
47499 2005-10-19  Simon Josefsson  <jas@extundo.com>
47500
47501         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47502         support.
47503
47504         * lib/gc.h: Add ECB enum type.
47505
47506         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47507
47508 2005-10-18  Simon Josefsson  <jas@extundo.com>
47509
47510         * tests/test-md5.c: New file.
47511
47512         * modules/md5-tests: New file.
47513
47514 2005-10-18  Simon Josefsson  <jas@extundo.com>
47515
47516         * tests/test-md4.c: New file.
47517
47518         * modules/md4, modules/md4-tests: New files.
47519
47520 2005-10-18  Simon Josefsson  <jas@extundo.com>
47521
47522         * m4/md4.m4: New file.
47523
47524 2005-10-18  Simon Josefsson  <jas@extundo.com>
47525
47526         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47527
47528 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47529
47530         * gnulib-tool (func_create_testdir): Omit the second check whether
47531         BUILT_SOURCES in nonempty.
47532
47533 2005-10-17  Simon Josefsson  <jas@extundo.com>
47534
47535         * tests/test-rijndael.c: New file.
47536
47537 2005-10-17  Simon Josefsson  <jas@extundo.com>
47538
47539         * modules/sha1: Depend on stdint instead of md5.
47540
47541         * modules/md5: Depend on stdint, remove uint32_t.
47542
47543 2005-10-17  Simon Josefsson  <jas@extundo.com>
47544
47545         * modules/gc-sha1-tests: New file.
47546
47547         * tests/test-gc-sha1.c: New file.
47548
47549 2005-10-17  Simon Josefsson  <jas@extundo.com>
47550
47551         * m4/md5.m4: Remove call to uint32_t.m4.
47552
47553 2005-10-17  Simon Josefsson  <jas@extundo.com>
47554
47555         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47556
47557         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47558         md5.h.
47559
47560         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47561
47562         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47563
47564 2005-10-17  Simon Josefsson  <jas@extundo.com>
47565
47566         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47567
47568 2005-10-17  Simon Josefsson  <jas@extundo.com>
47569
47570         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47571
47572 2005-10-17  Simon Josefsson  <jas@extundo.com>
47573
47574         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47575
47576         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47577
47578 2005-10-17  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47581         that it can also be used in a test.
47582
47583 2005-10-16  Bruno Haible  <bruno@clisp.org>
47584
47585         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47586         TESTS_ENVIRONMENT, so that individual tests can augment it.
47587
47588         * gnulib-tool (func_create_testdir): Use an intermediate target for
47589         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47590         macros, like $(ALLOCA_H), which cannot be passed through the command
47591         line.
47592
47593 2005-10-15  Simon Josefsson  <jas@extundo.com>
47594
47595         * modules/rijndael-tests: New file.
47596
47597         * modules/rijndael: New file.
47598
47599 2005-10-15  Simon Josefsson  <jas@extundo.com>
47600
47601         * m4/rijndael.m4: New file.
47602
47603 2005-10-15  Simon Josefsson  <jas@extundo.com>
47604
47605         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47606
47607         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47608
47609 2005-10-14  Simon Josefsson  <jas@extundo.com>
47610
47611         * tests/test-arcfour.c: New file.
47612
47613         * modules/arcfour, modules/arcfour-tests: New files.
47614
47615 2005-10-14  Simon Josefsson  <jas@extundo.com>
47616
47617         * m4/arcfour.m4: New file.
47618
47619 2005-10-14  Simon Josefsson  <jas@extundo.com>
47620
47621         * lib/arcfour.h, lib/arcfour.c: New files.
47622
47623 2005-10-14  Roland McGrath  <roland@redhat.com>
47624
47625         Import from libc.  [BZ #1331]
47626         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47627         macro argument.
47628         Reported by Matej Vela <vela@debian.org>.
47629
47630 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47631
47632         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47633         include <wchar.h>; no longer needed.
47634
47635 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47636
47637         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47638
47639 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47640         and  Ulrich Drepper  <drepper@redhat.com>
47641
47642         Import from libc.
47643         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47644         instead of inline stream orientation test and two separate
47645         function calls.  Pay no attention to USE_IN_LIBIO.
47646
47647 2005-10-13  Simon Josefsson  <jas@extundo.com>
47648
47649         * modules/gc-hmac-md5-tests: New file.
47650
47651         * tests/test-gc-hmac-sha1.c: New file.
47652
47653         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47654
47655         * modules/gc-hmac-md5-tests: New file.
47656
47657         * tests/test-gc-md5.c: New file.
47658
47659         * modules/gc-md5-tests: New file.
47660
47661 2005-10-13  Simon Josefsson  <jas@extundo.com>
47662
47663         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47664         Move memory allocation outside of loop.
47665
47666 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47667
47668         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47669         intermediate directory is in a read-only file system.  Problem
47670         reported by Eric Blake.
47671
47672 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47673
47674         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47675
47676 2005-10-12  Simon Josefsson  <jas@extundo.com>
47677
47678         * tests/test-hmac-sha1.c: New file.
47679
47680         * modules/hmac-sha1-tests: New file.
47681
47682         * modules/hmac-sha1: New file.
47683
47684 2005-10-12  Simon Josefsson  <jas@extundo.com>
47685
47686         * modules/gc-sha1: New file.
47687
47688 2005-10-12  Simon Josefsson  <jas@extundo.com>
47689
47690         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47691
47692         * tests/test-gc-pbkdf2-sha1.c: New file.
47693
47694 2005-10-12  Simon Josefsson  <jas@extundo.com>
47695
47696         * modules/gc-md5, modules/gc-hmac-md5: New files.
47697
47698         * modules/gc (Files): Remove md5, memxor and hmac files.
47699
47700 2005-10-12  Simon Josefsson  <jas@extundo.com>
47701
47702         * m4/gc-pbkdf2-sha1.m4: New file.
47703
47704         * m4/gc-hmac-sha1.m4: New file.
47705
47706         * m4/gc-sha1: New file.
47707
47708         * m4/hmac-sha1.m4: New file.
47709
47710 2005-10-12  Simon Josefsson  <jas@extundo.com>
47711
47712         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47713
47714         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47715
47716 2005-10-12  Simon Josefsson  <jas@extundo.com>
47717
47718         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47719         suggested by Bruno Haible <bruno@clisp.org>.
47720
47721 2005-10-12  Simon Josefsson  <jas@extundo.com>
47722
47723         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47724
47725 2005-10-12  Simon Josefsson  <jas@extundo.com>
47726
47727         * lib/gc-pbkdf2-sha1.c: New file.
47728
47729         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47730
47731 2005-10-12  Simon Josefsson  <jas@extundo.com>
47732
47733         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47734
47735         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47736
47737 2005-10-12  Simon Josefsson  <jas@extundo.com>
47738
47739         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47740         GC_USE_HMAC_MD5, respectively.
47741
47742         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47743         (gc_md5): Fix typo.
47744
47745         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47746
47747         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47748
47749         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47750
47751 2005-10-12  Bruno Haible  <bruno@clisp.org>
47752
47753         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47754         Reported by Stepan Kasal <kasal@ucw.cz>.
47755
47756 2005-10-11  Simon Josefsson  <jas@extundo.com>
47757
47758         * tests/test-crc.c: New file.
47759
47760         * modules/crc, modules/crc-tests: New files.
47761
47762 2005-10-11  Simon Josefsson  <jas@extundo.com>
47763
47764         * m4/crc.m4: New file.
47765
47766 2005-10-11  Simon Josefsson  <jas@extundo.com>
47767
47768         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47769
47770         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47771
47772         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47773
47774 2005-10-11  Simon Josefsson  <jas@extundo.com>
47775
47776         * lib/crc.h, lib/crc.c: New files.
47777
47778         * lib/gc.h (gc_hash_buffer): Add doc.
47779
47780 2005-10-11  Bruno Haible  <bruno@clisp.org>
47781
47782         * modules/c-strcasestr: New file.
47783         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47784
47785 2005-10-11  Bruno Haible  <bruno@clisp.org>
47786
47787         * modules/c-strcase: New file.
47788         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47789
47790 2005-10-11  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/strcasecmp.c: Include limits.h.
47793         (strcasecmp): Avoid integer overflow on exotic platforms.
47794         * lib/strncasecmp.c: Include limits.h.
47795         (strncasecmp): Avoid integer overflow on exotic platforms.
47796         Reported by Paul Eggert.
47797
47798 2005-10-11  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/c-strcasestr.h: New file, from GNU gettext.
47801         * lib/c-strcasestr.c: New file, from GNU gettext.
47802
47803 2005-10-11  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/c-strcase.h: New file, from GNU gettext.
47806         * lib/c-strcasecmp.c: New file, from GNU gettext.
47807         * lib/c-strncasecmp.c: New file, from GNU gettext.
47808
47809 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         * modules/mempcpy (License): GPL -> LGPL.
47812         * modules/strchrnul (License): Likewise.
47813         * modules/sysexits (License): Likewise.
47814
47815 2005-10-08  Simon Josefsson  <jas@extundo.com>
47816
47817         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47818
47819 2005-10-07  Simon Josefsson  <jas@extundo.com>
47820
47821         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47822
47823 2005-10-06  Simon Josefsson  <jas@extundo.com>
47824
47825         * tests/test-hmac-md5.c: New file.
47826
47827         * modules/hmac-md5-tests: New file.
47828
47829         * modules/hmac-md5: New file.
47830
47831 2005-10-06  Simon Josefsson  <jas@extundo.com>
47832
47833         * m4/hmac-md5.m4: New file.
47834
47835         * m4/memxor.m4: Require gl_C_RESTRICT.
47836
47837 2005-10-06  Simon Josefsson  <jas@extundo.com>
47838
47839         * lib/memxor.c (memxor): Avoid casts and warnings.
47840
47841 2005-10-06  Simon Josefsson  <jas@extundo.com>
47842
47843         * lib/hmac-md5.c: New file.
47844
47845         * lib/hmac.h: New file.
47846
47847 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47848
47849         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47850         promotes to int, not unsigned int, to catch the AIX 5.3
47851         compiler bug.
47852
47853 2005-10-05  Simon Josefsson  <jas@extundo.com>
47854
47855         * modules/memxor: New file.
47856
47857         * modules/iconv (Files): Move config.rpath to havelib, it is used
47858         there.
47859
47860         * modules/havelib (Files): Add config.rpath.
47861
47862 2005-10-05  Simon Josefsson  <jas@extundo.com>
47863
47864         * m4/memxor.m4: New file.
47865
47866 2005-10-05  Simon Josefsson  <jas@extundo.com>
47867
47868         * lib/memxor.c (memxor): Fix compiler error.
47869
47870         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47871         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47872
47873         * lib/memxor.h, lib/memxor.c: New files.
47874
47875         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47876         we assume all systems have it, suggested by Jim Meyering
47877         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
47878         any systems lack sys/socket.h; mingw32 is known to lack it, but we
47879         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
47880         same reasons.
47881
47882 2005-10-05  Simon Josefsson  <jas@extundo.com>
47883
47884         * config/srclist.txt: Add glibc bug 1423 for md5.h.
47885
47886 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47889         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47890         needed, since the source code now assumes these .h files.
47891
47892 2005-10-05  Derek Price  <derek@ximbiot.com>
47893
47894         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47895
47896 2005-10-05  Bruno Haible  <bruno@clisp.org>
47897
47898         * modules/stdint (License): Change to LGPL.
47899
47900 2005-10-04  Simon Josefsson  <jas@extundo.com>
47901
47902         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47903         D. Baushke" <mdb@gnu.org>.
47904
47905 2005-10-04  Bruno Haible  <bruno@clisp.org>
47906
47907         * lib/verify.h (verify_true): Provide alternative definition for C++.
47908
47909 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
47910
47911         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
47912         (SSIZE_MAX): New macro, if not already defined.
47913         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47914         than 2 GiB.
47915
47916 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47917
47918         Sync from coreutils.
47919         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47920         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47921         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
47922         ULLONG_MAX doesn't work with 2.7.2.1.
47923
47924 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47925
47926         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47927         From Ben Pfaff.
47928
47929         * modules/exclude (Depends-on): Depend on verify.
47930         * modules/strtoimax (Depends-on): Likewise.
47931         * modules/utimecmp (Depends-on): Likewise.
47932
47933 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
47934
47935         * lib/exclude.c: Include verify.h.
47936         (verify): Remove.  All callers changed to use verify.h's version.
47937         * lib/strtoimax.c: Likewise.
47938         * lib/utimecmp.c: Likewis.e
47939
47940         Sync from coreutils.
47941         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47942         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47943         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47944         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
47945         bother returning ENOSYS if settimeofday or stime fails; just let
47946         them return whatever errno they want to return.
47947         * lib/utimens.c: Include unistd.h, for dup2.
47948         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47949         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47950
47951 2005-10-02  Jim Meyering  <jim@meyering.net>
47952
47953         Sync from coreutils.
47954         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47955         from glibc-2.2.5 that fails for read-only files.
47956
47957 2005-10-02  Jim Meyering  <jim@meyering.net>
47958
47959         Sync from coreutils.
47960         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47961         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47962         `#if HAVE_CONFIG_H'.
47963         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47964         Remove AT_FDCWD test.
47965         Do not consume the fd unless successful.
47966         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47967         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47968         block, so that we don't even try to compile it if settimeofday is
47969         available.  This works around a compilation failure on OSF1 V5.1,
47970         due to stime requiring a `long int*' while tv_sec is `int'.
47971
47972 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
47973
47974         Sync from coreutils.
47975         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47976         against `yes', rather than just testing for nonempty.
47977
47978 2005-10-01  Simon Josefsson  <jas@extundo.com>
47979
47980         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47981         and Darwin.
47982
47983         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47984         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
47985         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
47986         freeaddrinfo and gai_strerror are declared by the POSIX headers.
47987         Check if struct addrinfo is declared.
47988
47989 2005-10-01  Simon Josefsson  <jas@extundo.com>
47990
47991         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47992         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
47993         AI_* and EAI_* definitions.  Protect function declarations.
47994
47995 2005-10-01  Jim Meyering  <jim@meyering.net>
47996
47997         Sync from coreutils.
47998
47999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48000         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48001         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48002         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48003         in the inet and nsl libraries.  Required on Solaris 5.7.
48004
48005 2005-10-01  Jim Meyering  <jim@meyering.net>
48006
48007         Sync from coreutils.
48008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48009         in the inet and nsl libraries.  Required on Solaris 5.7.
48010
48011 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
48012
48013         * lib/getdelim.c (getdelim): Remove unused variables.
48014
48015 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48016
48017         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48018         so that the code works even with ancient cpp.  Portability problem
48019         with GCC 2.7.2.1 reported by Thomas M.Ott.
48020
48021 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48022
48023         * modules/regex (Depends-on): Add strcase.
48024
48025         * modules/gethostname (Licence): Change from GPL to LGPL, since
48026         gethostname.c is a trivial implementation of a standard library
48027         function.
48028         * modules/poll (License): Change from GPL to LGPL, since it's
48029         derived from LGPL code.
48030
48031 2005-09-27  Jim Meyering  <jim@meyering.net>
48032
48033         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48034         HAVE_CONFIG_H.
48035
48036         * lib/intprops.h (signed_type_or_expr__): Define.
48037         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48038         for unsigned types.
48039
48040 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48041
48042         * lib/verify.h (verify_expr): Remove, replacing with:
48043         (verify_true): New macro that returns true instead of void.
48044         (verify_type__): Remove.
48045         (verify): Use verify_true rather than verify_type__.
48046
48047 2005-09-26  Bruno Haible  <bruno@clisp.org>
48048
48049         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48050         is necessary.
48051         (lib_SOURCES): Remove mbchar.c.
48052         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48053         (Files): Add m4/mbrtowc.m4.
48054         * modules/mbiter: Likewise.
48055         * modules/mbuiter: Likewise.
48056
48057 2005-09-26  Bruno Haible  <bruno@clisp.org>
48058
48059         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48060         compile mbchar.c if they are not both present.
48061         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48062         * m4/mbiter.m4 (gl_MBITER): Likewise.
48063         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48064         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48065         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48066
48067 2005-09-25  Jim Meyering  <jim@meyering.net>
48068
48069         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48070         also uses socklen_t.
48071
48072 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48073
48074         * lib/utimens.c (ENOSYS): Define if not already defined.
48075         (futimens): Support having a null PATH if the file descriptor
48076         is nonnegative.
48077
48078         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48079         Remove.
48080         (__attribute): Define to empty unless GCC 3.1 or later.
48081         This works around a core dump on OpenBSD 3.4, which has GCC
48082         2.95.3, which dumps core when given __attribute__(()).  It also
48083         simplifies other tests, since we really don't want to bother with
48084         worrying about which ancient version of GCC supported what.
48085         Original problem reported by Yoann Vandoorselaere, with part of
48086         the fix suggested by Derek Price.
48087
48088 2005-09-24  Jim Meyering  <jim@meyering.net>
48089
48090         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48091         so we can once again use a positive bitfield width of 1 -- now we
48092         don't have to explain why we were using a bitfield width of 2.
48093
48094 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48095
48096         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48097         and similarly for the other external symbols.  Problem reported
48098         by James Gallager.
48099
48100         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48101         bug reported by Jim Meyering.
48102
48103         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48105         not needed, since socklen is a prerequisite module.
48106
48107 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48108
48109         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48110         Problem reported by Eric Blake.
48111         (getaddrinfo): Initialize se so that it's not garbage.
48112         Redo internal storage allocation so that it doesn't make unportable
48113         assumptions about alignment.
48114         Fix a memory leak.
48115
48116         * lib/utimens.c (futimens): Use futimesat if available.
48117         Prefer it to futimes since it doesn't have the futimes bug.
48118
48119         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48120         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48121         Instead, declare a function that returns a pointer to an array,
48122         and use verify_type__ to declare the size of the array.
48123         Problem and germ of a solution reported by Bruno Haible.
48124         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48125         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48126
48127 2005-09-23  Jim Meyering  <jim@meyering.net>
48128
48129         Sync from coreutils.
48130         Correct build failure (socklen_t not defined) on at least
48131         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48132         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48133
48134 2005-09-23  Jim Meyering  <jim@meyering.net>
48135
48136         * modules/getaddrinfo (Depends-on): Add socklen.
48137
48138 2005-09-23  Bruno Haible  <bruno@clisp.org>
48139
48140         * tests/test-verify.c: New file.
48141
48142 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48143
48144         Sync from coreutils.
48145
48146         * modules/argmatch (Depends-on): Add verify.
48147         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48148         unistd-safer.
48149         * modules/save-cwd (Depends-on): Likewise.
48150
48151         * modules/openat (Files): Add lib/openat-die.c.
48152         (Depends-on): Remove error, exitfail.
48153         Add dirname.
48154
48155         * modules/verify: New file.
48156         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48157         with "verify" module.
48158
48159 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48160
48161         Sync from coreutils.
48162
48163         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48164         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48165         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48166         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48167         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48168         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48169         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48170         Don't bother checking for string.h, stdlib.h, unistd.h.
48171         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48172         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48173         module's job.
48174         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48175         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48176
48177         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48178         (gl_GETDATE): Use it.
48179
48180         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48181
48182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48183
48184         Sync from coreutils.
48185
48186         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48187         stat-time.h.
48188         * lib/argmatch.h: Include verify.h
48189         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48190         (ARGMATCH_ASSERT): Remove; unused.
48191         * lib/canonicalize.c: Assume STDC_HEADERS.
48192         * lib/exclude.c: Include "strcase.h".
48193         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48194         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48195         and stdio-safer.h.
48196         (getusershell): Call fopen, not fopen_safer.
48197         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48198         Do not include unistd-safer.h.
48199         (save_cwd): Don't call fd_safer; no longer needed
48200         now that we include fcntl--.h.
48201
48202         * lib/getdate.y (relative_time): New type.
48203         (RELATIVE_TIME_0): New constant.
48204         (parser_control): Use relative_time instead of doing it ourselves.
48205         (%union): Add new relative_time rel member.
48206         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48207         Now typeless.
48208         (relunit, relunit_snumber): Now of type rel.
48209         (zone, rel, relunit, get_date): Adjust to above changes.
48210
48211         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48212         Do not include unistd-safer.h.
48213         (getloadavg): Don't call fd_safer; no longer needed
48214         now that we include fcntl--.h.
48215
48216         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48217         (make_dir_parents): Treat ENOSYS like EEXIST.
48218
48219         Improve quality of diagnostics on restore_cwd failure.
48220         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48221         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48222         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48223         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48224         each time through the loop.  Do not diagnose restore_cwd failure;
48225         that is the caller's job (and perhaps the caller does not care).
48226
48227         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48228         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48229         If the file already exists but is not a directory, don't bother
48230         to try to make its parents.
48231         Close potential file descriptor leak if we can't chdir("/") (!).
48232         Don't always return true if chdir($PWD) fails; return true only
48233         if the requested action was done successfully (except for the
48234         chdir($PWD)).
48235         Don't log final directory unless we actually made it.
48236         Refactor to avoid duplicate code to fix up permissions.
48237         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48238
48239         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48240         to make it a bit faster and (I hope) clearer.
48241         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48242         Fix bug in formats like %2N.
48243
48244         * lib/verify.h: New file.
48245
48246 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         Sync from coreutils.
48249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48250
48251 2005-09-22  Jim Meyering  <jim@meyering.net>
48252
48253         Sync from coreutils.
48254
48255         * m4/lstat.m4 (gl_FUNC_LSTAT):
48256         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48257         Remove obsolete comment.
48258         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48259         * m4/xstrtod.m4: Likewise.
48260
48261         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48262
48263 2005-09-22  Jim Meyering  <jim@meyering.net>
48264
48265         Sync from coreutils.
48266
48267         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48268
48269         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48270         the .tm_year member, since otherwise gcc-4.0 would now warn about
48271         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48272
48273         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48274         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48275
48276         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48277         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48278         when run in a time zone for which daylight savings time is in effect
48279         for the starting date.
48280
48281         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48282         stop us from restricting permissions of just-created absolute-named
48283         directories.
48284         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48285         to restore initial working directory.
48286         * lib/mkdir-p.c (make_dir_parents): New parameter:
48287         different_working_dir, to tell caller if/when we change the working
48288         directory and are unable to return to the initial one.
48289         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48290         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48291         `return false'.  This fixes a bug introduced on 2004-07-30.
48292
48293         * lib/openat.c (fdopendir): Be sure to close the supplied
48294         file descriptor before returning.  This makes our replacement
48295         implementation a little closer to Solaris's, where fdopendir
48296         ties the file descriptor to the returned DIR* pointer.
48297         * lib/openat.c (unlinkat): New function.
48298         * lib/openat.h (unlinkat): Add prototype.
48299         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48300         (openat_restore_fail): Rename from openat_restore_die.
48301         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48302
48303         Provide an alternative to exiting immediately upon save_cwd or
48304         restore_cwd failure.  Now, an application can arrange e.g.,
48305         to perform a longjump in that case.
48306         * lib/openat.c: Include dirname.h.
48307         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48308         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48309         and openat_restore_die rather than calling error directly.
48310         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48311
48312         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48313         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48314         define.
48315
48316         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48317         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48318                             int utc, int nanoseconds);
48319         Background:
48320         date should not have to allocate a megabyte of virtual memory to
48321         handle a format argument like +%1048575T.  When implemented with
48322         strftime, it must allocate such a buffer, use strftime to fill it
48323         in, print it, then free it.
48324         With fprintftime, it simply prints everything and exits.
48325         With no need for memory allocation, that's one fewer way to fail.
48326         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48327         optional field width, not before, so we accept %9:z, not %:9z.
48328         (my_strftime): Be sure to use L_('x') for literals.
48329
48330         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48331         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48332         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48333         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48334         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48335         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48336         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48337         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48338         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48339         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48340         * lib/xgethostname.c, lib/xreadlink.c:
48341         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48342
48343         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48344         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48345         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48346         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48347         and don't include <sys/file.h>).
48348
48349 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48350
48351         Sync from coreutils.
48352
48353         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48354         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48355         [!LDAV_DONE]: Avoid unused variable warning.
48356
48357 2005-09-21  Bruno Haible  <bruno@clisp.org>
48358
48359         * lib/unicodeio.h (unicode_to_mb): New declaration.
48360
48361 2005-09-20  Derek Price  <derek@ximbiot.com>
48362
48363         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48364         getaddrinfo.h.
48365
48366 2005-09-20  Bruno Haible  <bruno@clisp.org>
48367
48368         * gnulib-tool: Remove trailing slashes from the values specified for
48369         --source-base, --m4-base, --tests-base, --aux-dir.
48370         Suggested by Simon Josefsson <jas@extundo.com>.
48371
48372 2005-09-20  Bruno Haible  <bruno@clisp.org>
48373
48374         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48375         func_modules_to_filelist, func_import, func_create_testdir): Make all
48376         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48377         change when gnulib-tool is invoked in a different locale.
48378
48379 2005-09-19  Simon Josefsson  <jas@extundo.com>
48380
48381         * m4/socklen.m4: Fix typo.
48382
48383 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48384
48385         Use a consistent style for including <config.h>.
48386         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48387         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48388         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48389         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48390         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48391         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48392         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48393         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48394         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48395         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48396         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48397         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48398         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48399         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48400         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48401         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48402         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48403         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48404         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48405         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48406         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48407         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48408         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48409         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48410         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48411         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48412         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48413         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48414         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48415         lib/xstrtoumax.c, lib/yesno.c:
48416         Standardize inclusion of config.h.
48417         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48418         lib/inttostr.h:  Removed inclusion of config.h from header files.
48419         * lib/inttostr.c:  Adjusted in-tree users.
48420         * lib/timespec.h: Remove superfluous warning to include config.h.
48421         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48422         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48423         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48424         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48425         config.h with HAVE_CONFIG_H.
48426
48427 2005-09-19  Jim Meyering  <jim@meyering.net>
48428
48429         * modules/pathmax (License): Change to LGPL.
48430
48431 2005-09-19  Derek Price  <derek@ximbiot.com>
48432
48433         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48434
48435 2005-09-19  Bruno Haible  <bruno@clisp.org>
48436
48437         * gnulib-tool (import): Provide default for --tests-base.
48438
48439 2005-09-19  Bruno Haible  <bruno@clisp.org>
48440
48441         * doc/quote.texi: New file, extracted from gnulib.texi.
48442         * doc/ctime.texi: New file, extracted from gnulib.texi.
48443         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48444         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48445         * doc/gnulib.texi: Include them.
48446
48447 2005-09-18  Bruno Haible  <bruno@clisp.org>
48448
48449         Portability fix.
48450         * gnulib-tool (func_readlink): New function.
48451         (func_ln_if_changed): Use it.
48452
48453 2005-09-18  Bruno Haible  <bruno@clisp.org>
48454
48455         * gnulib-tool: Support --with-tests also with --import.
48456         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48457         (func_import): Use variables $testsbase and $inctests. Emit a
48458         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48459         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48460         SUBDIRS += $testsdir.
48461         (func_create_testdir): Update.
48462
48463 2005-09-18  Bruno Haible  <bruno@clisp.org>
48464
48465         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48466         instead of $dry_run.
48467         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48468         (func_ln_if_changed): Don't handle dry-run here.
48469         (func_import): In dry-run mode, detect more precisely which actions
48470         would be performed, and don't use "...ing" verbs.
48471
48472 2005-09-18  Bruno Haible  <bruno@clisp.org>
48473
48474         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48475         (func_import): Use join on two temporary files instead of three nested
48476         loops, in order to determine which files are new or old.
48477
48478 2005-09-18  Bruno Haible  <bruno@clisp.org>
48479
48480         * gnulib-tool (func_import): Comment out code that spits out the
48481         new files with --dry-run.
48482
48483 2005-09-18  Bruno Haible  <bruno@clisp.org>
48484
48485         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48486
48487 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48488
48489         * lib/stat-time.h: New file.
48490         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48491         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48492         in a different way.
48493         (timespec_cmp): New function.
48494         * lib/utimecmp.c: Include stat-time.h.
48495         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48496         members exist, not on the obsolescent ST_MTIM_NSEC.
48497         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48498
48499 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48500
48501         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48502
48503 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48504
48505         * MODULES.html.sh (File system functions): Add stat-time.
48506         * modules/stat-time: New file.
48507         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48508         is now done in a different way, by the stat-time module.
48509         * modules/utimecmp (Depends-on): Add stat-time.
48510
48511 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48512
48513         * m4/st_mtim.m4: Remove.  Superseded by...
48514         * m4/stat-time.m4: New file.
48515         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48516         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48517
48518 2005-09-15  Derek Price  <derek@ximbiot.com>
48519
48520         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48521
48522 2005-09-15  Derek Price  <derek@ximbiot.com>
48523
48524         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48525         * lib/regex_internal.c: Ditto, using this...
48526         (__GNUC_PREREQ): ...new macro.
48527         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48528         using...
48529         (__GNUC_PREREQ): ...this new macro.
48530
48531         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48532
48533 2005-09-15  Derek Price  <derek@ximbiot.com>
48534             Paul Eggert  <eggert@cs.ucla.edu>
48535
48536         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48537         changes, consolidating in...
48538         * lib/regex_internal.h: ...this file.
48539
48540 2005-09-13  Jim Meyering  <jim@meyering.net>
48541
48542         * lib/canon-host.c: Filter through gnu indent and reword comments
48543         slightly.
48544         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48545
48546 2005-09-13  Derek Price  <derek@ximbiot.com>
48547
48548         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48549         failure.
48550         Reported by Jim Meyering  <jim@meyering.net>.
48551
48552 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48553
48554         * lib/base64.c: Typo.
48555         (base64_encode): Put b64str in initialized data section.
48556
48557 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48558
48559         Merge glibc and coreutils changes into gnulib, plus a few
48560         extra fixes.
48561         * lib/md5.c: Use #error rather than a string.
48562         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48563         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48564         (__attribute__): Define to empty for non recent-GCC.
48565         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48566         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48567         Renamed from their non-__ counterparts, with new macros replacing
48568         them if not _LIBC.  Add __THROW attribute.
48569         (rol): Remove.
48570         (struct md5_ctx): Align buffer if using GCC.
48571         * lib/sha1.h (struct sha1_ctx): Likewise.
48572         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48573         The old name was backwards.
48574         (NOTSWAP): Remove; not used.
48575         (rol): New macro, moved here from md5.h.
48576         (sha1_process_block): Remove a FIXME that doesn't make sense.
48577
48578 2005-09-12  Derek Price  <derek@ximbiot.com>
48579
48580         Return usable errors from canon-host.
48581         * lib/canon-host.h: New file.
48582         * lib/canon-host.c (canon_host): Wrap...
48583         (canon_host_r): ...this new function, which now relies exclusively on
48584         getaddrinfo.
48585         (ch_strerror): New function.
48586         (last_cherror): New global.
48587         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48588         interface.
48589         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48590         void *.
48591         (freeaddrinfo): Free ai->ai_canonname when set.
48592
48593 2005-09-12  Derek Price  <derek@ximbiot.com>
48594
48595         Make canon-host require getaddrinfo.
48596         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48597         AC_LIBSOURCE canon-host.h.  Call...
48598         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48599         gl_GETADDRINFO.
48600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48601
48602 2005-09-12  Derek Price  <derek@ximbiot.com>
48603
48604         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48605         LGPL.
48606         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48607
48608 2005-09-12  Derek Price  <derek@ximbiot.com>
48609
48610         * lib/gai_strerror.c: Include config.h when available.  Include
48611         getaddrinfo.h before other headers to test interface.
48612         Reported by Larry Jones <lawrence.jones@ugs.com>.
48613
48614 2005-09-12  Derek Price  <derek@ximbiot.com>
48615             Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         * modules/glob (Files): Add glob-libc.h.
48618
48619 2005-09-12  Derek Price  <derek@ximbiot.com>
48620             Paul Eggert  <eggert@cs.ucla.edu>
48621
48622         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48623         glob_.h, glob-libc.h.
48624         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48625
48626 2005-09-12  Derek Price  <derek@ximbiot.com>
48627             Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48630         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48631         protecting things that should be done only in gnulib contexts.
48632         * lib/glob_.h: New file, containing only the glob things needed for
48633         gnulib.
48634         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48635         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48636         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48637         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48638         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48639         and to respect the namespace rules better.
48640
48641 2005-09-08  Simon Josefsson  <jas@extundo.com>
48642
48643         * modules/socklen: New file.
48644
48645 2005-09-08  Simon Josefsson  <jas@extundo.com>
48646
48647         * m4/socklen.m4: New file.
48648
48649 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         * modules/utimens (Files): Add m4/utimbuf.m4, since
48652         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48653         Reported by Sergey Poznyakoff.
48654
48655 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48656
48657         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48658         definitions, since that's the preferred style in glibc.
48659         Fix a minor spacing issue, and update copyright notice to match
48660         glibc's.
48661
48662 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48665
48666 2005-09-06  Simon Josefsson  <jas@extundo.com>
48667
48668         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48669         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48670
48671 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48674         warning.
48675
48676 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48677
48678         * config/srclist.txt: Add glibc bug 1302.
48679
48680 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48681
48682         Change bitset word type from unsigned int to unsigned long int,
48683         as this has better performance on typical 64-bit hosts.
48684         Port bitset code to hosts with unusual word sizes.
48685         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48686         (build_collating_symbol):
48687         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48688         argument is a bitset.  This is merely a style issue, but it makes
48689         it clearer that an entire array is expected.
48690         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48691         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48692         Port to the case where bitset_word is not the same as unsigned int.
48693         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48694         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48695         Likewise.
48696         * lib/regexec.c (check_dst_limits_calc_pos_1,
48697         check_subexp_matching_top):
48698         (build_trtable, group_nodes_into_DFAstates):
48699         Likewise.
48700         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48701         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48702         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48703         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48704         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48705         * lib/regcomp.c (optimize_subexps, lower_subexp):
48706         Work even if bitset_word has holes in its bitwise representation.
48707         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48708         * lib/regexec.c (check_dst_limits_calc_pos_1,
48709         check_subexp_matching_top):
48710         Likewise.
48711         * lib/regex_internal.c (re_string_reconstruct):
48712         Don't assume UCHAR_MAX == 255.
48713         * lib/regex_internal.h (bitset_set_all): Likewise.
48714         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48715         All uses changed.
48716         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48717         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48718         All uses changed.
48719         (BITSET_WORD_MAX): New macro.
48720         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48721         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48722         (bitset_empty, bitset_copy):
48723         Prefer sizeof (bitset) to multiplying it out ourselves.
48724         (bitset_not_merge): Remove; unused.
48725         (bitset_contain): Return bool, not unsigned int with one bit on.
48726         All callers changed.
48727         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48728         alignment than re_node_set; do this by defining a new internal
48729         type struct dests_alloc and using it to allocate memory.
48730
48731 2005-09-05  Bruno Haible  <bruno@clisp.org>
48732
48733         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48734         links.
48735
48736 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48737
48738         * modules/size_max (Makefile.am): Add size_max.h
48739
48740 2005-09-04  Derek Price  <derek@ximbiot.com>
48741
48742         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48743
48744 2005-09-03  Simon Josefsson  <jas@extundo.com>
48745
48746         * gnulib-tool: Fix typo.
48747
48748 2005-09-03  Simon Josefsson  <jas@extundo.com>
48749
48750         * config/srclist.txt: Add glibc bug 1293.
48751
48752 2005-09-03  Derek Price  <derek@ximbiot.com>
48753
48754         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48755         From Larry Jones <lawrence.jones@ugs.com>.
48756
48757 2005-09-02  Simon Josefsson  <jas@extundo.com>
48758
48759         * modules/socklen: New file.
48760
48761 2005-09-02  Simon Josefsson  <jas@extundo.com>
48762
48763         * modules/havelib: New module.
48764
48765         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48766         Use havelib.
48767
48768 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48769
48770         Check for arithmetic overflow when calculating sizes, to prevent
48771         some buffer-overflow issues.  These patches are conservative, in the
48772         sense that when I couldn't determine whether an overflow was possible,
48773         I inserted a run-time check.
48774         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48775         macros.
48776         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48777         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48778         (re_xnrealloc, re_x2nrealloc): New inline functions.
48779         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48780         parse_bracket_exp):
48781         (build_equiv_class, build_charclass): Check for arithmetic overflow
48782         in size expression calculations.
48783         * lib/regex_internal.c (re_string_realloc_buffers):
48784         (build_wcs_upper_buffer, re_node_set_add_intersect):
48785         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48786         (re_dfa_add_node, register_state): Likewise.
48787         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48788         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48789         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48790         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48791
48792 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48793
48794         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48795         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48796
48797 2005-09-02  Bruno Haible  <bruno@clisp.org>
48798
48799         Support for lib vs. lib64 distinction on biarch platforms.
48800         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48801         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48802         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48803
48804 2005-09-02  Bruno Haible  <bruno@clisp.org>
48805
48806         * gnulib-tool (import): In the other first-use case, provide defaults
48807         as well.
48808
48809 2005-09-02  Bruno Haible  <bruno@clisp.org>
48810
48811         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48812         patches not yet found in the latest gettext release.
48813
48814 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48815
48816         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48817         to avoid a collision with bits/local_lim.h in glibc.
48818         All uses changed.  Problem reported by Dmitry V. Levin in
48819         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48820
48821         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48822         bugs in int versus size_t comparisons.
48823         (re_string_context_at): Fix bug where the code assumed that
48824         Idx is signed.
48825
48826         Use bool where appropriate.
48827         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48828         All callers changed.
48829         (calc_eclosure_iter): Likewise, for ROOT arg.
48830         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48831         (build_charclass_op): Likewise, for NON_MATCH arg.
48832         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48833         (re_string_construct_common): Likewise, for ICASE arg.
48834         * lib/regexec.c (re_search_2_stub, re_search_stub):
48835         Likewise, for RET_LEN arg.
48836         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48837         (set_regs): Likewise, for FL_BACKTRACK arg.
48838         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48839         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48840         (calc_eclosure_iter, parse_bracket_exp):
48841         Use bool for internal variables that are booleans.
48842         * lib/regexec.c (re_search_internal, check_matching,
48843         proceed_next_node):
48844         (set_regs, build_sifted_states, sift_states_bkref):
48845         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48846         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48847         (find_collation_sequence_value):
48848         Likewise.
48849         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48850         (re_node_set_compare):
48851         Return bool, not int. All callers changed.
48852         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48853         (build_trtable, check_node_accept): Likewise.
48854         * lib/regex_internal.h: Include stdbool.h.
48855
48856         Fix bugs uncovered when converting to bool.
48857         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48858         failure instead of charging ahead blindly.
48859         * lib/regex_internal.c (register_state): Likewise.
48860         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48861         for freeing internal storage.
48862         (group_nodes_into_DFA_states): Use unsigned int, not int, for
48863         bitset pieces used as boolean, to avoid undefined behavior
48864         on hosts that do int overflow checking.
48865
48866 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48867
48868         * config/srclist.txt: Add glibc bugs 1285-1287.
48869
48870 2005-09-01  Jim Meyering  <jim@meyering.net>
48871
48872         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48873         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48874         Require gl_STAT_MACROS, too.
48875
48876 2005-09-01  Bruno Haible  <bruno@clisp.org>
48877
48878         * gnulib-tool (import): In the first-use case, provide defaults.
48879
48880 2005-09-01  Bruno Haible  <bruno@clisp.org>
48881
48882         * gnulib-tool (func_import): Remove the .tmp files.
48883
48884 2005-09-01  Bruno Haible  <bruno@clisp.org>
48885
48886         * gnulib-tool (func_import): Fix handling of symbolic links.
48887
48888 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
48889
48890         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48891         old glibc regex code mishandles strings longer than 2**31 bytes.
48892         This patch fixes this when the regex code is used in gnulib
48893         (i.e., outside glibc).
48894
48895         This patch should not affect the use of the regex code inside
48896         glibc.  No doubt this problem also needs to be handled for glibc
48897         as well, but the result will be an incompatible change to the
48898         glibc ABI, and the old ABI will have to be supported too.  That
48899         can be the the subject for another patch.
48900
48901         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48902         governing whether the rest of this patch is active.  By default,
48903         the macro is disabled and the patch has no effect.
48904         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48905         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48906         (struct re_pattern_buffer, re_search, re_search_2, re_match):
48907         (re_match_2, re_set_registers): Use the new types.
48908         * lib/regex_internal.h (Idx, re_hashval_t): New types.
48909         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48910         New macros.
48911         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48912         (re_string_context_at, bin_tree_t, re_dfastate_t):
48913         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48914         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48915         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48916         (re_string_char_size_at, re_string_wchar_at):
48917         (re_string_elem_size_at):
48918         Use the new types and macros to port to 64-bit hosts.
48919         Use unsigned types for internal values, so that the code
48920         mostly works even for arrays larger than SSIZE_MAX.
48921         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48922         (search_duplicated_node, calc_eclosure_iter, fetch_number):
48923         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48924         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48925         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48926         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48927         (calc_inveclosure, parse_dup_op, build_range_exp):
48928         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48929         (fetch_number, create_token_tree, mark_opt_subexp):
48930         Likewise.
48931         * lib/regex_internal.c (re_string_construct_common,
48932         create_ci_newstate):
48933         (create_cd_newstate, re_string_allocate, re_string_construct):
48934         (re_string_realloc_buffers, build_wcs_upper_buffer):
48935         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48936         (re_string_reconstruct, re_string_peek_byte_case):
48937         (re_string_fetch_byte_case, re_string_context_at):
48938         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48939         (re_node_set_init_copy, re_node_set_add_intersect):
48940         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48941         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48942         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48943         (re_acquire_state, re_acquire_state_context, register_state):
48944         Likewise.
48945         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48946         search_cur_bkref_entry):
48947         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48948         (re_search_internal, re_search_2_stub, re_search_stub)
48949         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48950         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48951         (update_cur_sifted_state, check_dst_limits):
48952         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48953         (check_subexp_limits, sift_states_bkref, merge_state_array):
48954         (check_subexp_matching_top, get_subexp, get_subexp_sub):
48955         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48956         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48957         (expand_bkref_cache, check_node_accept_bytes):
48958         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48959         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48960         (acquire_init_state_context, check_halt_node_context):
48961         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48962         (sift_states_backward, clean_state_log_if_needed):
48963         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48964         (find_recover_state, transit_state_sb, transit_state_mb):
48965         (transit_state_bkref, build_trtable, match_ctx_clean):
48966         Likewise.
48967         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48968         to work around an assumption that REG_MISSING is negative.
48969
48970         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48971         (seek_collating_symbol_entry) [defined _LIBC]:
48972         (lookup_collation_sequence_value) [defined _LIBC]:
48973         (build_range_exp, build_collating_symbol) [defined _LIBC]:
48974         Use prototypes rather than old-style function definitions.
48975         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48976         (transit_state_sb) [0]:
48977         (find_collation_sequence_value) [defined _LIBC]: Likewise.
48978
48979         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48980         rm_eo.
48981
48982         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48983         (optimize_subexps, lower_subexp):
48984         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48985         since the signed shift might overflow.  Use 1u<<31 instead.
48986         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48987         Likewise.
48988         * lib/regexec.c (check_dst_limits_calc_pos_1,
48989         check_subexp_matching_top): Likewise.
48990
48991         * lib/regcomp.c (optimize_subexps, lower_subexp):
48992         Use CHAR_BIT rather than 8, for clarity.
48993         * lib/regexec.c (check_dst_limits_calc_pos_1):
48994         (check_subexp_matching_top): Likewise.
48995         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48996         have to worry about portability issues when shifting it left.
48997         Remove no-longer-needed test for table_size > 0.
48998         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48999         in a word, as the resulting behavior is undefined.
49000         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49001         in one case, a <= should have been an <, and in another case the
49002         whole test was missing.
49003         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49004         the standard name CHAR_BIT.
49005         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49006         this is not true on one's complement and signed-magnitude hosts.
49007
49008         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49009         next_last_offset.
49010         (struct re_dfa_t): Remove unused member states_alloc.
49011         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49012
49013 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49014
49015         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49016         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49017         and large-file glibc and in 32-bit large-file Solaris.
49018
49019 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49020
49021         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49022         lengths fit in regoff_t; this isn't true if regoff_t is the same
49023         width as size_t.
49024         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49025         (= START + RANGE) instead of RANGE.  This avoids overflow
49026         problems when regoff_t is the same width as size_t.
49027         All callers changed.
49028         (re_search_2_stub): Check for overflow when adding the
49029         sizes of the two strings.
49030         (re_search_stub): Check for overflow when adding START
49031         to RANGE; if it occurs, substitute the extreme value.
49032
49033 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49034
49035         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49036
49037 2005-08-31  Jim Meyering  <jim@meyering.net>
49038
49039         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49040         a pointer-to-const.
49041         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49042         (register_state): Likewise.
49043         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49044         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49045         (group_nodes_into_DFAstates): Likewise.
49046
49047 2005-08-31  Jim Meyering  <jim@meyering.net>
49048
49049         * check-module: Add a FIXME comment.
49050
49051 2005-08-31  Eric Blake  <ebb9@byu.net>
49052
49053         * modules/unistd-safer (Files): Add unistd--.h.
49054         * modules/stdio-safer (Files): Add stdio--.h.
49055
49056 2005-08-31  Derek Price  <derek@ximbiot.com>
49057
49058         * lib/getdelim.c (getdelim): Return EOF on EOF.
49059         Reported by Larry Jones <lawrence.jones@ugs.com>.
49060
49061 2005-08-31  Bruno Haible  <bruno@clisp.org>
49062
49063         Avoid unnecessary diffs in the generated lib/Makefile.am.
49064         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49065         the generated files.
49066         (func_import): Don't set cmd.
49067
49068 2005-08-31  Bruno Haible  <bruno@clisp.org>
49069
49070         * lib/strstr.c: Include <stddef.h>, for NULL.
49071         * lib/strcasestr.c: Likewise.
49072         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49073
49074 2005-08-31  Bruno Haible  <bruno@clisp.org>
49075
49076         * gnulib-tool: New option --macro-prefix.
49077         (func_import): Use macro_prefix.
49078         (import): Handle option --macro-prefix.
49079
49080 2005-08-31  Bruno Haible  <bruno@clisp.org>
49081
49082         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49083         Also use new variables cached_lgpl, cached_libtool.
49084
49085 2005-08-31  Bruno Haible  <bruno@clisp.org>
49086
49087         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49088         always instantiating them.
49089
49090 2005-08-31  Bruno Haible  <bruno@clisp.org>
49091
49092         * gnulib-tool (func_import): Read the previous cached settings
49093         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49094         earlier added by gnulib but are now dropped. Warn when a gnulib file
49095         overwrites a non-gnulib file.
49096
49097 2005-08-31  Bruno Haible  <bruno@clisp.org>
49098
49099         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49100         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49101         projects that don't keep autogenerated files in CVS. Put into
49102         actioncmd only the specified modules, not the transitive closure.
49103
49104 2005-08-31  Bruno Haible  <bruno@clisp.org>
49105
49106         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49107         Create directories that shall be filled.
49108         (import): Don't look for gl_* macros in configure.ac. Recurse across
49109         all directories containing a gnulib-cache.m4 files, if meaningful.
49110
49111 2005-08-31  Bruno Haible  <bruno@clisp.org>
49112
49113         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49114         (import): Set seen_libtool when we see gl_LIBTOOL.
49115
49116 2005-08-31  Bruno Haible  <bruno@clisp.org>
49117
49118         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49119         declaration macro definitions from generated gnulib.m4.
49120
49121 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49122
49123         * lib/iconvme.h: Add prototype for iconv_alloc.
49124
49125 2005-08-29  Simon Josefsson  <jas@extundo.com>
49126
49127         * lib/iconvme.c: Fix errno.
49128
49129 2005-08-29  Bruno Haible  <bruno@clisp.org>
49130
49131         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49132         that it works when the directory contains spaces.
49133
49134 2005-08-29  Bruno Haible  <bruno@clisp.org>
49135
49136         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49137
49138 2005-08-29  Bruno Haible  <bruno@clisp.org>
49139
49140         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49141         Emit more advice.
49142
49143 2005-08-29  Bruno Haible  <bruno@clisp.org>
49144         and Stepan Kasal  <kasal@ucw.cz>
49145
49146         * check-module: If more parameters are given, check each of them
49147         separately; add more exceptions, as noted by Jim Meyering.
49148         (check_module): New procedure.
49149         (%exempt_header): Now contains all exceptions.
49150
49151 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49152
49153         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49154
49155 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49156
49157         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49158
49159 2005-08-28  Bruno Haible  <bruno@clisp.org>
49160
49161         * m4/gnulib-tool.m4: New file.
49162
49163 2005-08-27  Jim Meyering  <jim@meyering.net>
49164
49165         * modules/unistd-safer (Files): Add pipe-safer.c.
49166         * modules/fcntl-safer (Files): Add creat-safer.c.
49167
49168 2005-08-27  Jim Meyering  <jim@meyering.net>
49169
49170         * m4/stdlib-safer.m4: New file.  From coreutils.
49171         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49172         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49173         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49174         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49175         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49176
49177 2005-08-27  Jim Meyering  <jim@meyering.net>
49178
49179         * lib/fopen-safer.c: Merge minor changes from coreutils.
49180         * lib/dup-safer.c: Likewise.
49181         * lib/fd-safer.c: Likewise.
49182
49183         Merge from coreutils.
49184         * lib/stdio--.h: New file.
49185         * lib/stdlib--.h: New file.
49186         * lib/mkstemp-safer.c: New file.
49187
49188         GNU tar needs these.
49189         * lib/pipe-safer.c: New file.
49190         * lib/creat-safer.c: New file.
49191         * lib/fcntl--.h (creat): Define to creat_safer.
49192         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49193         * lib/unistd--.h (pipe): Define to pipe_safer.
49194         * lib/unistd-safer.h: Declare pipe_safer.
49195
49196 2005-08-26  Simon Josefsson  <jas@extundo.com>
49197
49198         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49199         Haible <bruno@clisp.org>.
49200
49201 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49202
49203         * lib/regex_internal.h: Remove all references to
49204         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49205         or better.
49206         (bitset_not, bitset_merge, bitset_not_merge):
49207         (bitset_mask, re_string_allocate, re_string_construct):
49208         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49209         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49210         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49211         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49212         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49213         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49214         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49215         (re_acquire_state_context):
49216         Remove unnecessary forward decls.
49217         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49218         Put __attribute at function definition,
49219         now that the function decl has been removed.
49220         * lib/regex_internal.c (re_string_peek_byte_case):
49221         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49222         Likewise.
49223
49224 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49225
49226         * m4/regex.m4: Add AC_PREREQ(2.50).
49227         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49228
49229 2005-08-25  Simon Josefsson  <jas@extundo.com>
49230
49231         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49232         __fsetlocking.
49233
49234 2005-08-25  Simon Josefsson  <jas@extundo.com>
49235
49236         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49237         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49238         GLIBC specific code.
49239
49240 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49241
49242         Make regex safe for g++.  This fixes one real bug (an "err"
49243         that should have been "*err").  g++ problem reported by
49244         Sam Steingold.
49245         * lib/regex_internal.h (re_calloc): New macro, consistent with
49246         re_malloc etc.  All callers of calloc changed to use re_calloc.
49247         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49248         not int.  All callers changed.
49249         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49250         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49251         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49252         (find_recover_state): Change "err" to "*err"; this fixes what
49253         appears to be a real bug.
49254         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49255         versus int.
49256
49257 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49258
49259         * modules/regex (Depends-on): Add malloc, since the code
49260         assumes that !malloc(0) means failure.
49261
49262 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49263
49264         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49265
49266         alloca modernization/simplification for regex.
49267         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49268         needs to be at the start of the file, and can be moved into
49269         regex_internal.h and simplified.
49270         * lib/regex_internal.h: Include <alloca.h>.
49271         (__libc_use_alloca) [!defined _LIBC]: New macro.
49272         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49273         now works outside glibc.
49274
49275 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49276
49277         * config/srclist.txt: Add glibc bugs 1241, 1245.
49278
49279 2005-08-25  Jim Meyering  <jim@meyering.net>
49280
49281         * lib/open-safer.c: Include <config.h>.
49282         Otherwise, we'd lose LARGEFILE support in any file using
49283         e.g. "fcntl--.h"
49284
49285 2005-08-25  Bruno Haible  <bruno@clisp.org>
49286
49287         * m4/minmax.m4: Require autoconf 2.52.
49288         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49289         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49290         alternatives of translit over the alphabet.
49291         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49292
49293 2005-08-24  Simon Josefsson  <jas@extundo.com>
49294
49295         * tests/test-getpass.c: New file.
49296
49297 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49298
49299         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49300         for GNU regex features.
49301
49302 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49303
49304         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49305         * lib/regex.h (regerror): Likewise.
49306
49307         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49308         requires this.  (The code never needed it.)
49309
49310         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49311         All uses of recently-renamed identifiers changed to use the new,
49312         POSIX-compliant names.  The code will build and run just fine
49313         without these changes, but it's better to eat our own dog food
49314         and use the standard-conforming names.
49315
49316         * lib/regex.h: Fix a multitude of POSIX name space violations.
49317         These changes have an effect only for programs that define
49318         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49319         do not change anything for programs compiled in the normal way.
49320         Also, there is no effect on the ABI.
49321
49322         (_REGEX_SOURCE): New macro.
49323         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49324         defined and _GNU_SOURCE is not; this fixes a name space violation.
49325
49326         Rename the following macros to obey POSIX requirements.
49327         The old names are still visible as macros if _REGEX_SOURCE is defined.
49328         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49329         RE_BACKSLASH_ESCAPE_IN_LISTS.
49330         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49331         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49332         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49333         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49334         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49335         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49336         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49337         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49338         (REG_INTERVALS): renamed from RE_INTERVALS.
49339         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49340         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49341         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49342         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49343         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49344         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49345         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49346         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49347         RE_UNMATCHED_RIGHT_PAREN_ORD.
49348         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49349         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49350         (REG_DEBUG): renamed from RE_DEBUG.
49351         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49352         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49353         unusual, since we can't clash with the POSIX REG_ICASE.
49354         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49355         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49356         (REG_NO_SUB): renamed from RE_NO_SUB.
49357         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49358         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49359         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49360         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49361         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49362         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49363         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49364         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49365         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49366         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49367         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49368         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49369         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49370         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49371         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49372         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49373         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49374         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49375         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49376         (REG_FIXED): Renamed from REGS_FIXED.
49377         (REG_NREGS): Renamed from RE_NREGS.
49378
49379         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49380         of other REG_* macros, since POSIX says the user is allowed to
49381         #undef these macros selectively.
49382
49383         (reg_errcode_t): Update comment stating what other tables need
49384         to be consistent.
49385
49386         Rename the following enum values to obey POSIX requirements.
49387         The old names are still visible as macros.
49388         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49389         is not defined, since GNU is supposed to be a superset of POSIX as
49390         much as possible, and since we want reg_errcode_t to be a signed
49391         type for implementation consistency.
49392         (_REG_NOERROR): Renamed from REG_NOERROR.
49393         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49394         (_REG_BADPAT): Renamed from REG_BADPAT.
49395         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49396         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49397         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49398         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49399         (_REG_EBRACK): Renamed from REG_EBRACK.
49400         (_REG_EPAREN): Renamed from REG_EPAREN.
49401         (_REG_EBRACE): Renamed from REG_EBRACE.
49402         (_REG_BADBR): Renamed from REG_BADBR.
49403         (_REG_ERANGE): Renamed from REG_ERANGE.
49404         (_REG_ESPACE): Renamed from REG_ESPACE.
49405         (_REG_BADRPT): Renamed from REG_BADRPT.
49406         (_REG_EEND): Renamed from REG_EEND.
49407         (_REG_ESIZE): Renamed from REG_ESIZE.
49408         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49409         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49410         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49411         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49412         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49413
49414         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49415         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49416         changed.  But support the old name if the new one is not defined
49417         and if _REGEX_SOURCE.
49418
49419         Change the following member names in struct re_pattern_buffer.
49420         The old names are still supported if !_REGEX_SOURCE.
49421         The new names are always supported, regardless of _REGEX_SOURCE.
49422         (re_buffer): Renamed from buffer.
49423         (re_allocated): Renamed from allocated.
49424         (re_used): Renamed from used.
49425         (re_syntax): Renamed from syntax.
49426         (re_fastmap): Renamed from fastmap.
49427         (re_translate): Renamed from translate.
49428         (re_can_be_null): Renamed from can_be_null.
49429         (re_regs_allocated): Renamed from regs_allocated.
49430         (re_fastmap_accurate): Renamed from fastmap_accurate.
49431         (re_no_sub): Renamed from no_sub.
49432         (re_not_bol): Renamed from not_bol.
49433         (re_not_eol): Renamed from not_eol.
49434         (re_newline_anchor): Renamed from newline_anchor.
49435
49436         Change the following member names in struct re_registers.
49437         The old names are still supported if !_REGEX_SOURCE.
49438         The new names are always supported, regardless of _REGEX_SOURCE.
49439         (rm_num_regs): Renamed from num_regs.
49440         (rm_start): Renamed from start.
49441         (rm_end): Renamed from end.
49442
49443         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49444         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49445         Prepend __ to parameter names.
49446
49447         Undo yesterday's changes.
49448
49449 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49450
49451         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49452         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49453         lib/regex.c.
49454
49455 2005-08-24  Jim Meyering  <jim@meyering.net>
49456
49457         Sync from coreutils.
49458         * m4/fcntl-safer.m4: New file.
49459
49460         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49461         and object files for this module.
49462
49463 2005-08-24  Jim Meyering  <jim@meyering.net>
49464
49465         Sync from coreutils.
49466         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49467
49468 2005-08-24  Jim Meyering  <jim@meyering.net>
49469
49470         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49471         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49472
49473 2005-08-24  Jim Meyering  <jim@meyering.net>
49474
49475         * modules/fcntl-safer: New module.
49476         * modules/fts (Depends-on): Add fcntl-safer.
49477         * MODULES.html.sh (File descriptor based Input/Output):
49478         Add fcntl-safer.
49479
49480 2005-08-24  Bruno Haible  <bruno@clisp.org>
49481
49482         Support for unit test modules.
49483         * modules/README: Mention tests modules.
49484         * modules/TEMPLATE-TESTS: New file.
49485         * gnulib-tool: New options --extract-tests-module, --with-tests and
49486         --tests-base (unused for the moment).
49487         (testsbase, inctests): New variables.
49488         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49489         (func_verify_module): Exclude TEMPLATE-TESTS.
49490         (func_verify_nontests_module, func_verify_tests_module): New functions.
49491         (func_get_dependencies): Add implicit dependency for tests modules.
49492         (func_get_tests_module): New function.
49493         (func_modules_transitive_closure): When --with-tests was specified,
49494         include the unit tests as well, unless explicitly avoided.
49495         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49496         (func_emit_tests_Makefile_am): New function.
49497         (func_create_testdir): When --with-tests was specified, emit a
49498         tests/ directory.
49499         * MODULES.html.sh (Future developments): Update.
49500
49501 2005-08-24  Bruno Haible  <bruno@clisp.org>
49502
49503         * modules/tls-tests: New file.
49504         * tests/test-tls.c: New file, from GNU gettext.
49505
49506 2005-08-24  Bruno Haible  <bruno@clisp.org>
49507
49508         * modules/lock-tests: New file.
49509         * tests/test-lock.c: New file, from GNU gettext.
49510
49511 2005-08-24  Bruno Haible  <bruno@clisp.org>
49512
49513         * lib/lock.h: Add multiple inclusion guard.
49514         * lib/tls.h: Add multiple inclusion guard.
49515
49516 2005-08-24  Bruno Haible  <bruno@clisp.org>
49517
49518         * gnulib-tool: Add support for the --aux-dir option to
49519         --create-testdir, --create-megatestdir, --test, --megatest.
49520         (func_create_testdir, func_create_megatestdir): Optionally emit a
49521         AC_CONFIG_AUX_DIR directive.
49522         (create-testdir, create-megatestdir, test, megatest): Provide a
49523         default value for $auxdir.
49524
49525 2005-08-24  Bruno Haible  <bruno@clisp.org>
49526
49527         * gnulib-tool (import): Use compound statement instead of subshell
49528         where possible.
49529
49530 2005-08-24  Bruno Haible  <bruno@clisp.org>
49531
49532         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49533
49534 2005-08-24  Bruno Haible  <bruno@clisp.org>
49535
49536         * gnulib-tool (func_version): Update.
49537
49538 2005-08-24  Bruno Haible  <bruno@clisp.org>
49539
49540         * gnulib-tool (func_import, func_create_testdir,
49541         func_create_megatestdir): Quote all autoconf macro arguments.
49542
49543 2005-08-24  Bruno Haible  <bruno@clisp.org>
49544
49545         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49546         option --force, because --force causes the aclocal.m4 of each
49547         subdirectory to be newer than the corresponding config.h.in.
49548
49549 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49550
49551         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49552         All contents moved to gl_REGEX.
49553         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49554         assume that it does.
49555
49556 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49557
49558         * lib/regex.h (REG_NOSYS)
49559         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49560         Define, since POSIX requires it as of 2001.
49561         (_REG_ENOSYS)
49562         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49563         New private symbol, used to keep the enum signed in all cases.
49564         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49565         Youngman in
49566         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49567
49568         * lib/regex_internal.c (re_string_skip_chars, register_state):
49569         (calc_state_hash):
49570         Remove forward decls; no longer needed now that we use prototypes.
49571         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49572         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49573         (clean_state_log_if_needed): Likewise.
49574
49575 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49576
49577         * config/srclist.txt: Add glibc bugs 1231-1233.
49578
49579 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49580
49581         Fix problems reported by Sam Steingold in
49582         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49583         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49584         assumed that reg_errcode_t is a signed type, which is not
49585         necessarily true if _XOPEN_SOURCE is not defined.
49586         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49587         since some compilers warn about it otherwise.
49588
49589 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49590
49591         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49592         (init_word_char, create_initial_state, duplicate_node_closure):
49593         (fetch_token, peek_token_bracket, build_range_exp):
49594         (build_collating_symbol): Remove forward decls; no longer needed
49595         now that we use prototypes.
49596
49597         * lib/regcomp.c:
49598         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49599         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49600         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49601         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49602         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49603         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49604         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49605         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49606         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49607         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49608         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49609         (build_charclass, build_charclass_op, fetch_number, create_tree):
49610         (create_token_tree, mark_opt_subexp, duplicate_tree):
49611         Use prototypes rather than old-style definitions.
49612
49613         * lib/regex_internal.c:
49614         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49615         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49616         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49617         (re_string_reconstruct, re_string_peek_byte_case):
49618         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49619         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49620         (re_node_set_init_copy, re_node_set_add_intersect):
49621         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49622         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49623         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49624         (re_acquire_state, re_acquire_state_context, register_state):
49625         (create_ci_newstate, create_cd_newstate, free_state):
49626         Likewise.
49627         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49628         re_search_2):
49629         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49630         (re_search_internal, prune_impossible_nodes):
49631         (acquire_init_state_context, check_matching, static):
49632         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49633         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49634         (update_regs, sift_states_backward, build_sifted_states):
49635         (clean_state_log_if_needed, merge_state_array):
49636         (update_cur_sifted_state, add_epsilon_src_nodes):
49637         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49638         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49639         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49640         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49641         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49642         (check_arrival, check_arrival_add_next_nodes):
49643         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49644         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49645         (check_node_accept_bytes, check_node_accept, extend_buffers):
49646         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49647         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49648         (sift_ctx_init):
49649         Likewise.
49650
49651         * lib/regex_internal.h:
49652         (re_string_allocate, re_string_construct, re_string_reconstruct):
49653         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49654         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49655         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49656         (re_string_context_at, re_string_peek_byte_case):
49657         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49658         is defined, since we now use prototypes always.
49659
49660         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49661         C89 or better.  All uses removed.
49662
49663 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         * config/srclist.txt: Add glibc bugs 1220-1227.
49666
49667 2005-08-20  Jim Meyering  <jim@meyering.net>
49668
49669         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49670         of unused local, dfa.
49671
49672 2005-08-20  Bruno Haible  <bruno@clisp.org>
49673
49674         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49675
49676 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49677
49678         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49679         (re_node_set_insert_last, re_dfa_add_node):
49680         Rename local variables to avoid GCC shadowing warnings.
49681
49682 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49683
49684         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49685         [defined lint]: Suppress bogus uninitialized-variable warnings.
49686
49687         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49688         and let the caller return REG_ESPACE if out of space.  This
49689         removes an uninitialied-variable warning with GCC 4.0.1, and also
49690         avoids taking the address of a local variable.  All callers
49691         changed.
49692
49693 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49694
49695         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49696         $LIBCSRC/posix/regexec.c.
49697         Add glibc bug 1217 for regcomp.c.
49698
49699 2005-08-19  Jim Meyering  <jim@meyering.net>
49700
49701         * lib/regexec.c (proceed_next_node): Redo local variables to
49702         avoid GCC shadowing warnings.
49703
49704 2005-08-18  Bruno Haible  <bruno@clisp.org>
49705
49706         * lib/strstr.c (strstr): Fix return value in multibyte case.
49707         * lib/strcasestr.c (strcasestr): Likewise.
49708
49709 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49712
49713 2005-08-17  Jim Meyering  <jim@meyering.net>
49714
49715         Make the %s format (seconds since the epoch) work for a negative
49716         number and when used with a zero-padded field width, e.g. %015s.
49717
49718         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49719         label so that it precedes the code to set `digits'.  Otherwise,
49720         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49721         print `00-22'.  Now, it prints `-0022', as it should.
49722
49723 2005-08-17  Bruno Haible  <bruno@clisp.org>
49724
49725         * modules/strstr (Files): Add m4/mbrtowc.m4.
49726         (Depends-on): Add mbuiter.
49727
49728 2005-08-17  Bruno Haible  <bruno@clisp.org>
49729
49730         * modules/strcasestr: New file.
49731         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49732         strcasestr.
49733
49734 2005-08-17  Bruno Haible  <bruno@clisp.org>
49735
49736         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49737
49738 2005-08-17  Bruno Haible  <bruno@clisp.org>
49739
49740         * modules/mbuiter: New file.
49741         * MODULES.html.sh (Extended multibyte and wide character utilities):
49742         Add mbuiter.
49743
49744 2005-08-17  Bruno Haible  <bruno@clisp.org>
49745
49746         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49747         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49748
49749 2005-08-17  Bruno Haible  <bruno@clisp.org>
49750
49751         * m4/strcasestr.m4: New file.
49752
49753 2005-08-17  Bruno Haible  <bruno@clisp.org>
49754
49755         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49756         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49757
49758 2005-08-17  Bruno Haible  <bruno@clisp.org>
49759
49760         * lib/strcasestr.h: New file.
49761         * lib/strcasestr.c: New file.
49762
49763 2005-08-17  Bruno Haible  <bruno@clisp.org>
49764
49765         * lib/strcasecmp.c: Use mbuiter.h.
49766
49767 2005-08-17  Bruno Haible  <bruno@clisp.org>
49768
49769         * lib/mbuiter.h: New file.
49770
49771 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49772
49773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49774         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49775         and gl_GETOPT are both invoked via different paths (as happens
49776         with GNU tar CVS because it uses both argp and getopt), the former
49777         wins.
49778
49779 2005-08-16  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/tls: New file.
49782         * MODULES.html.sh (Multithreading): Add tls.
49783
49784 2005-08-16  Bruno Haible  <bruno@clisp.org>
49785
49786         * modules/strnlen1: New file.
49787         * MODULES.html.sh (String handling): Add strnlen1.
49788
49789 2005-08-16  Bruno Haible  <bruno@clisp.org>
49790
49791         * modules/strcase (Files): Add m4/mbrtowc.m4.
49792         (Depends-on): Add strnlen1, mbchar.
49793
49794 2005-08-16  Bruno Haible  <bruno@clisp.org>
49795
49796         * modules/mbiter: New file.
49797         * MODULES.html.sh (Extended multibyte and wide character utilities):
49798         Add mbiter.
49799
49800 2005-08-16  Bruno Haible  <bruno@clisp.org>
49801
49802         * modules/mbfile: New file.
49803         * MODULES.html.sh (Extended multibyte and wide character utilities):
49804         Add mbfile.
49805
49806 2005-08-16  Bruno Haible  <bruno@clisp.org>
49807
49808         * modules/mbchar: New file.
49809         * MODULES.html.sh (Extended multibyte and wide character utilities):
49810         New section.
49811
49812 2005-08-16  Bruno Haible  <bruno@clisp.org>
49813
49814         * m4/tls.m4: New file, from GNU gettext.
49815
49816 2005-08-16  Bruno Haible  <bruno@clisp.org>
49817
49818         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49819         always.
49820         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49821
49822 2005-08-16  Bruno Haible  <bruno@clisp.org>
49823
49824         * m4/mbiter.m4: New file.
49825
49826 2005-08-16  Bruno Haible  <bruno@clisp.org>
49827
49828         * m4/mbfile.m4: New file.
49829
49830 2005-08-16  Bruno Haible  <bruno@clisp.org>
49831
49832         * m4/mbchar.m4: New file.
49833
49834 2005-08-16  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/tls.h: New file, from GNU gettext.
49837         * lib/tls.c: New file, from GNU gettext.
49838
49839 2005-08-16  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/strnlen1.h: New file.
49842         * lib/strnlen1.c: New file.
49843
49844 2005-08-16  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49847         (mbi_init): Update.
49848         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49849         NUL byte, not after it.
49850
49851 2005-08-16  Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/strcase.h (strcasecmp): Add note in comments.
49854         * lib/strncasecmp.c: Use code from strcasecmp.c.
49855         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49856         (strcasecmp): Work correctly in multibyte locales.
49857
49858 2005-08-16  Bruno Haible  <bruno@clisp.org>
49859
49860         * lib/mbiter.h: New file.
49861
49862 2005-08-16  Bruno Haible  <bruno@clisp.org>
49863
49864         * lib/mbfile.h: New file.
49865
49866 2005-08-16  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/mbchar.h: New file.
49869         * lib/mbchar.c: New file.
49870
49871 2005-08-16  Bruno Haible  <bruno@clisp.org>
49872
49873         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49874         the valid ones. Makes the comparison operations transitive:
49875         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49876         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49877
49878 2005-08-15  Simon Josefsson  <jas@extundo.com>
49879
49880         * modules/ssize_t (License): Change to 'unlimited'.
49881
49882         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49883
49884 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49885
49886         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49887         Add comments for each pending glibc patch.
49888
49889 2005-08-15  Bruno Haible  <bruno@clisp.org>
49890
49891         * lib/regex.h (__restrict_arr): Don't define to __restrict if
49892         __cplusplus is defined.
49893
49894 2005-08-14  Jim Meyering  <jim@meyering.net>
49895
49896         Sync from coreutils.
49897
49898         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49899         Use the hash-table-based cycle-detection code not just when
49900         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49901         Reported by James Youngman in
49902         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49903         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49904         FTS_TIGHT_CYCLE_CHECK.
49905         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49906         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49907         once again.
49908         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49909         * lib/fts.c (fd_safer): Remove decl.
49910         Include fcntl--.h rather than unistd-safer.h
49911         (fts_safe_changedir): Don't call fd_safer; no longer needed
49912         now that we include fcntl--.h.
49913
49914 2005-08-12  Simon Josefsson  <jas@extundo.com>
49915
49916         * modules/getndelim2: Use ssize_t module.
49917         * modules/getnline: Likewise.
49918         * modules/safe-read: Likewise.
49919         * modules/xreadlink: Likewise.
49920
49921         * modules/ssize_t: New file.
49922
49923 2005-08-12  Simon Josefsson  <jas@extundo.com>
49924
49925         * m4/readline.m4: Look for termcap, curses or ncurses if required.
49926
49927 2005-08-12  Simon Josefsson  <jas@extundo.com>
49928
49929         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49930         ssize_t.
49931
49932 2005-08-12  Simon Josefsson  <jas@extundo.com>
49933
49934         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49935         readline, getdelim and check_version.
49936         (Support for systems lacking ISO C 99: Sizes of integer types):
49937         Add size_max.
49938
49939 2005-08-12  Bruno Haible  <bruno@clisp.org>
49940
49941         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49942
49943 2005-08-11  Simon Josefsson  <jas@extundo.com>
49944
49945         * modules/readline: New file.
49946
49947         * modules/strnlen (Files): Add strnlen.h.
49948
49949 2005-08-11  Simon Josefsson  <jas@extundo.com>
49950
49951         * m4/readline.m4: New file.
49952
49953 2005-08-11  Simon Josefsson  <jas@extundo.com>
49954
49955         * lib/readline.h, readline.c: New file.
49956
49957 2005-08-11  Simon Josefsson  <jas@extundo.com>
49958
49959         * doc/gnulib.texi (Initial import, Finishing touches): Mention
49960         gl_AVOID.
49961
49962 2005-08-11  Bruno Haible  <bruno@clisp.org>
49963
49964         * lib/strnlen.h (strnlen): Change parameter name to match comment.
49965
49966 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
49967
49968         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49969
49970 2005-08-10  Simon Josefsson  <jas@extundo.com>
49971
49972         * tests/test-iconvme.c: New file.
49973
49974 2005-08-10  Simon Josefsson  <jas@extundo.com>
49975
49976         * m4/strnlen.m4: New file.
49977
49978         * m4/strndup.m4: Don't check for strnlen declaration, done in
49979         strnlen.m4.
49980
49981 2005-08-10  Simon Josefsson  <jas@extundo.com>
49982
49983         * lib/strndup.c: Use strnlen.h.
49984
49985         * lib/strnlen.h: New file.
49986
49987 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49988
49989         * README: Typos.
49990
49991 2005-08-02  Simon Josefsson  <jas@extundo.com>
49992
49993         * modules/readline: New file.
49994
49995 2005-08-02  Simon Josefsson  <jas@extundo.com>
49996
49997         * modules/getdelim: New file.
49998
49999         * modules/getline: Rewrite, don't use getndelim2.
50000
50001 2005-08-02  Simon Josefsson  <jas@extundo.com>
50002
50003         * m4/getline.m4: Separate out getdelim stuff into separate module.
50004
50005         * m4/getdelim.m4: New file.
50006
50007 2005-08-02  Simon Josefsson  <jas@extundo.com>
50008
50009         * lib/getline.h, getline.c: Rewrite.
50010
50011         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50012
50013 2005-07-31  Bruno Haible  <bruno@clisp.org>
50014
50015         * lib/lock.h (gl_lock_initializer): New macro.
50016         (gl_lock_define_initialized): Use it.
50017         (gl_rwlock_initializer): New macro.
50018         (gl_rwlock_define_initialized): Use it.
50019         (gl_recursive_lock_initializer): New macro.
50020         (gl_recursive_lock_define_initialized): Use it.
50021
50022 2005-07-30  Karl Berry  <karl@gnu.org>
50023
50024         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50025         Report from Ben Pfaff, regarding getopt.
50026
50027 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50028
50029         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50030         normal way.
50031         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50032         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50033         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50034         (gl_GETOPT): Use the new macros.  Most of the implementation
50035         is moved to the new macros.  This is for programs like Emacs
50036         that don't want all the functionality of gl_GETOPT.
50037
50038 2005-07-26  Bruno Haible  <bruno@clisp.org>
50039
50040         * m4/lock.m4: Update from GNU gettext.
50041
50042 2005-07-26  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/lock.h: Update from GNU gettext.
50045         * lib/lock.c: Update from GNU gettext.
50046
50047 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50050         obsolescent AC_TRY_RUN.  Include the default includes files, for
50051         'exit'.
50052
50053 2005-07-24  Bruno Haible  <bruno@clisp.org>
50054
50055         * modules/visibility: New file.
50056         * MODULES.html.sh (Misc): Add visibility.
50057
50058 2005-07-24  Bruno Haible  <bruno@clisp.org>
50059
50060         * m4/visibility.m4: New file.
50061
50062 2005-07-24  Bruno Haible  <bruno@clisp.org>
50063
50064         * doc/visibility.texi: New file.
50065
50066 2005-07-22  Bruno Haible  <bruno@clisp.org>
50067
50068         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50069         $(ALLOCA_H), redundant through BUILT_SOURCES.
50070         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50071         redundant through BUILT_SOURCES.
50072         * modules/byteswap (Makefile.am): Remove explicit dependency on
50073         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50074         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50075         $(FNMATCH_H), redundant through BUILT_SOURCES.
50076         * modules/getopt (Makefile.am): Remove explicit dependency on
50077         $(GETOPT_H), redundant through BUILT_SOURCES.
50078         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50079         redundant through BUILT_SOURCES.
50080         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50081         redundant through BUILT_SOURCES.
50082         * modules/stdbool (Makefile.am): Remove explicit dependency on
50083         $(STDBOOL_H), redundant through BUILT_SOURCES.
50084         * modules/stdint (Makefile.am): Remove explicit dependency on
50085         $(STDINT_H), redundant through BUILT_SOURCES.
50086         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50087         Remove explicit dependency on $(SYSEXITS_H).
50088         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50089
50090 2005-07-18  Simon Josefsson  <jas@extundo.com>
50091
50092         * lib/check-version.c (check_version): Accept identical versions too.
50093
50094 2005-07-18  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/lock: New file.
50097         * MODULES.html.sh (Multithreading): New section.
50098
50099 2005-07-18  Bruno Haible  <bruno@clisp.org>
50100
50101         * m4/lock.m4: New file, from GNU gettext.
50102
50103 2005-07-18  Bruno Haible  <bruno@clisp.org>
50104
50105         * lib/lock.h: New file, from GNU gettext.
50106         * lib/lock.c: New file, from GNU gettext.
50107
50108 2005-07-18  Bruno Haible  <bruno@clisp.org>
50109
50110         * lib/lock.h (gl_once_t): New type.
50111         (gl_once_define, gl_once): New macros.
50112         * lib/lock.c (fresh_once): New variable.
50113         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50114         functions.
50115
50116 2005-07-16  Simon Josefsson  <jas@extundo.com>
50117
50118         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50119         workaround, suggested by Bruno.
50120
50121 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50122
50123         * modules/xalloc (Depends-on): Add xalloc-die.
50124         * modules/xvasprintf (Depends-on): Add xalloc-die.
50125
50126 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50127
50128         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50129         with a minor change.
50130
50131 2005-07-15  Bruno Haible  <bruno@clisp.org>
50132
50133         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50134         When using lib/poll.c, define poll as rpl_poll.
50135
50136 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50137
50138         * modules/argp (Depends-on): Remove unlocked-io.
50139
50140 2005-07-14  Derek Price  <derek@ximbiot.com>
50141
50142         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50143         for glob symlink bug.
50144
50145 2005-07-14  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50148         Instead, test for *_unlocked function declarations directly.
50149
50150 2005-07-11  Simon Josefsson  <jas@extundo.com>
50151
50152         * modules/size_max: New file.
50153
50154         * modules/xsize: Depend on size_max module for size_max.m4.
50155
50156 2005-07-11  Simon Josefsson  <jas@extundo.com>
50157
50158         * lib/size_max.h: New file.
50159
50160 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50163         copyright symbol and the year.
50164         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50165         (version_etc_va): Use parameterized copyright notice.
50166         Reword to conform to the current GNU coding standards.
50167
50168 2005-07-11  Karl Berry  <karl@gnu.org>
50169
50170         * doc/gnulib.texi (Quoting): new node.
50171         (Initial import): more info, from Patrice.
50172
50173 2005-07-11  Bruno Haible  <bruno@clisp.org>
50174
50175         * gnulib-tool (func_usage): Document option --avoid.
50176         (Command line options): Handle --avoid.
50177         (func_acceptable): New function.
50178         (func_modules_transitive_closure): Use it.
50179
50180 2005-07-11  Bruno Haible  <bruno@clisp.org>
50181
50182         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50183         Reported by Jim Meyering.
50184
50185 2005-07-10  Bruno Haible  <bruno@clisp.org>
50186
50187         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50188         Needed when size_t is smaller than 'unsigned int'.
50189         Reported by Paul Eggert.
50190
50191 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50192
50193         * modules/argp (Depends-on): Add unlocked-io
50194
50195 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50196
50197         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50198         block of defines.
50199
50200 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50201
50202         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50203         fix now.
50204
50205 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50206         and Paul Eggert  <eggert@cs.ucla.edu>
50207
50208         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50209         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50210
50211 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * modules/regex (Files): Add lib/regex_internal.c,
50214         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50215         (Depends-on): Add extensions.
50216         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50217
50218 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50219
50220         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50221         pathconf.
50222         * m4/same.m4 (gl_SAME): Likewise.
50223         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50224
50225         * m4/regex.m4: Adjust to new libc regex implementation.
50226         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50227         all the .c and .h parts of (the new) regex.
50228         Quote the m4 stuff better.
50229         Check for RE_ICASE bug of old gnulib.
50230         Check for REG_STARTEND of recent libc.
50231         Rename local variables from jm_* to gl_*.
50232         Quote operand of "test -f".
50233         Say "recent enough" version of libc, not "version 2".
50234         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50235         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50236         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50237         Remove check for btowc, isascii.
50238         Require AM_LANGINFO_CODESET.
50239
50240 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50241
50242         * lib/regex.c, regex.h: Sync from libc.
50243         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50244         * lib/regexec.c:
50245         New files, synced from libc, except that regex_internal.h
50246         currently has a small porting fix.
50247
50248 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50249
50250         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50251         regex_internal.c, regexec.c.
50252         Add regex_internal.h too, but as a comment, since the libc version
50253         is currently broken in gnulib mode.
50254
50255 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         Support programs like Emacs that use gnulib but not gettext.
50258         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50259         * modules/gettext-h: New file.
50260         * modules/gettext (Files): Remove lib/gettext.h.
50261         (Depends-on): Add gettext-h.
50262         (Makefile.am): Remove lib_SOURCES.
50263         * modules/argmatch, modules/c-stack, modules/closeout:
50264         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50265         * modules/execute, modules/file-type, modules/getaddrinfo:
50266         * modules/getopt, modules/human, modules/javacomp:
50267         * modules/javaexec, modules/mkdir-p, modules/obstack:
50268         * modules/openat, modules/pagealign_alloc, modules/pipe:
50269         * modules/quotearg, modules/regex, modules/rpmatch:
50270         * modules/unicodeio, modules/userspec, modules/version-etc:
50271         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50272         * modules/xsetenv:
50273         Depend on gettext-h, not gettext.
50274
50275 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50276
50277         * gnulib-tool (func_import): Add support for 'public domain' license.
50278         * modules/alloca, modules/atexit, modules/memmove:
50279         Now public domain, not GPL.
50280         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50281         * modules/realloc, modules/strerror, modules/strtod:
50282         Now LGPL, not GPL.
50283
50284 2005-07-05  Bruno Haible  <bruno@clisp.org>
50285
50286         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50287         autoconf CVS. Needed for mingw.
50288
50289 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50290
50291         Remove the dependency of the strftime module on the tzset module.
50292         * modules/strftime (Depends-on): Remove dependency on tzset.
50293
50294 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50295
50296         Remove the dependency of the strftime module on the tzset module.
50297         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50298         gl_FUNC_TZSET_CLOBBER.
50299
50300 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         Remove the dependency of the strftime module on the tzset module.
50303         * lib/strftime.c (my_strftime)
50304         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50305         Copy the input structure, to work around some of the bug with
50306         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50307         Solaris releases, you should also use the tzset module, but we won't
50308         require it as a dependency any more since we don't want LGPLed code
50309         to depend on GPLed code.
50310
50311 2005-07-02  Jim Meyering  <jim@meyering.net>
50312
50313         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50314         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50315         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50316         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50317
50318 2005-07-02  Jim Meyering  <jim@meyering.net>
50319
50320         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50321
50322 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50323
50324         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50325         declares only 'struct timespec;' (!).
50326
50327 2005-07-01  Jim Meyering  <jim@meyering.net>
50328
50329         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50330         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50331         * lib/save-cwd.c, tempname.c:
50332         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50333         and don't include <sys/file.h>).
50334
50335 2005-06-29  Jim Meyering  <jim@meyering.net>
50336
50337         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50338         type name.  Use the variable name instead.
50339         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50340         Likewise.
50341
50342 2005-06-28  Simon Josefsson  <jas@extundo.com>
50343
50344         * modules/check-version (Files): Add check-version.m4.
50345
50346 2005-06-28  Simon Josefsson  <jas@extundo.com>
50347
50348         * m4/check-version.m4: New file, suggested by Jim Meyering
50349         <jim@meyering.net>.
50350
50351 2005-06-28  Simon Josefsson  <jas@extundo.com>
50352
50353         * lib/check-version.h, lib/check-version.c: New files.
50354
50355 2005-06-28  Simon Josefsson  <jas@extundo.com>
50356
50357         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50358         collision with global variable.  Better indentation.  Don't
50359         increment buffer pointer beyond buffer end.  Based on comments
50360         from Paul Eggert <eggert@cs.ucla.edu>.
50361
50362         * lib/base64.h: Indent.
50363
50364 2005-06-28  Simon Josefsson  <jas@extundo.com>
50365
50366         * doc/gnulib.texi (Library version handling): New section.
50367
50368 2005-06-28  Jim Meyering  <jim@meyering.net>
50369
50370         * check-module (find_included_lib_files): Hard-code another
50371         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50372         but modules/fts-lgpl (correctly) does not list those files.
50373
50374         * modules/canonicalize (Files): Add lib/pathmax.h.
50375
50376 2005-06-25  Simon Josefsson  <jas@extundo.com>
50377
50378         * modules/check-version: New file.
50379
50380 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50381
50382         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50383         initializer of struct addrinfo, as an indication that we don't
50384         care how many members the structure has.
50385
50386 2005-06-24  Derek Price  <derek@ximbiot.com>
50387         and Bruno Haible  <bruno@clisp.org>
50388
50389         Remove stat module & update lstat.
50390         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50391         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50392         * m4/stat.m4: Remove this file.
50393
50394 2005-06-24  Derek Price  <derek@ximbiot.com>
50395         and Bruno Haible  <bruno@clisp.org>
50396
50397         Remove stat module & update lstat.
50398         * lib/stat.c: Remove this file...
50399         (slash_aware_lstat): ...moving this content and its support...
50400         * lib/lstat.c (rpl_lstat): ...into here.
50401         * lib/lstat.h: New file.
50402
50403 2005-06-24  Derek Price  <derek@ximbiot.com>
50404         and Bruno Haible  <bruno@clisp.org>
50405
50406         Remove stat module & update lstat.
50407         * config/srclist.txt (libc sources): Remove stat.
50408
50409 2005-06-24  Derek Price  <derek@ximbiot.com>
50410         and Bruno Haible  <bruno@clisp.org>
50411
50412         Remove stat module & update lstat.
50413         * MODULES.html.sh (stat): Remove.
50414         * MODULES.html: Regenerated.
50415         * modules/lstat (Description): Correct function name.
50416         (Files): Add "lstat.h".
50417         (Depends-on): Remove stat, add xalloc, stat-macros.
50418         * modules/stat: Remove this file.
50419         (Include): Add "lstat.h", remove <sys/stat.h>.
50420
50421 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50422
50423         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50424         (ranged_convert): Don't save conversion in a temporary struct.
50425         This causes a warning with GCC 4.0.0, and anyway in the typical
50426         case it's not worth the extra 100 bytes or so of code.
50427         (ranged_convert, __mktime_internal): When calling a function via a
50428         pointer P, use P () rather than (*P) (), as we now assume C89 or
50429         better.
50430
50431 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50432
50433         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50434         "who -r" failed to give output.  Problem reported by Tim Waugh.
50435
50436         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50437         (xcalloc): Use it to avoid needless tests.
50438         Problem reported by Jim Meyering.
50439
50440 2005-06-20  Derek Price  <derek@ximbiot.com>
50441
50442         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50443         unnecessary for Autoconfs > 2.59c.
50444
50445 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50446
50447         * lib/argp.h (__option_is_short): Check upper limit of
50448         __key. Isprint() requires its argument to have the value
50449         of an unsigned char or EOF.
50450
50451 2005-06-16  Jim Meyering  <jim@meyering.net>
50452
50453         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50454         when either N or S is zero.
50455
50456 2005-06-16  Derek Price  <derek@ximbiot.com>
50457
50458         * m4/bison.m4: Declare YACC & YFLAGS precious.
50459
50460 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50461
50462         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50463         multibyte string or pattern, fall back on unibyte matching.
50464         Problem reported by James Youngman.
50465
50466 2005-06-08  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/csharpcomp: New file.
50469         * MODULES.html.sh (C#): Add csharpcomp.
50470
50471 2005-06-08  Bruno Haible  <bruno@clisp.org>
50472
50473         * m4/csharpcomp.m4: New file, from GNU gettext.
50474
50475 2005-06-08  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/csharpcomp.h: New file, from GNU gettext.
50478         * lib/csharpcomp.c: New file, from GNU gettext.
50479         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50480
50481 2005-06-08  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50484         warning on mingw.
50485
50486 2005-06-07  Derek Price  <derek@ximbiot.com>
50487
50488         Sync from CVS.
50489         * lib/glob_.h: Indent nested #ifdef.
50490
50491 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         Sync from coreutils.
50494         Use "file name" when talking about file names, instead of "filename"
50495         or "path", as per the GNU coding standards.
50496         * lib/mkdir-p.c: Renamed from makepath.c.
50497         (make_dir_parents): Renamed from make_path.  All callers changed.
50498         * lib/mkdir-p.h: Likewise.  All includers changed.
50499         * lib/filenamecat.c: Renamed from path-concat.c.
50500         (file_name_concat): Renamed from path_concat.  All callers changed.
50501         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50502         * lib/filenamecat.h: Likewise.  All includers changed.
50503         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50504         in comments or local variable names.
50505         * lib/basename.c: Likewise.
50506         * lib/canonicalize.c, canonicalize.h: Likewise.
50507         * lib/dirname.c, dirname.h: Likewise.
50508         * lib/euidaccess.c: Likewise.
50509         * lib/exclude.c: Likewise
50510         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50511         * lib/fsusage.c, fsuage.h: Likewise.
50512         * lib/fts.c, fts_.h: Likewise.
50513         * lib/getcwd.c: Likewise.
50514         * lib/getloadavg.c: Likewise.
50515         * lib/mkstemp.c: Likewise.
50516         * lib/mountlist.c, mountlist.h: Likewise.
50517         * lib/openat.c, openat.h: Likewise.
50518         * lib/readlink-stub.c: Likewise.
50519         * lib/readutmp.c, readutmp.h: Likewise.
50520         * lib/rename.c: Likewise.
50521         * lib/rmdir.c: Likewise.
50522         * lib/same.c: Likewise.
50523         * lib/savedir.c: Likewise.
50524         * lib/stripslash.c: Likewise.
50525         * lib/tempname.c: Likewise.
50526         * lib/xreadlink.c: Likewise.
50527         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50528         All uses changed.
50529         * lib/exclude.h: Likewise.
50530
50531         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50532         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50533         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50534         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50535         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50536         files have been getting away with it for years (MORE/BSD 4.3
50537         is extinct now).
50538         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50539         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50540
50541         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50542         Define to 256, not 255, as per modern POSIX.
50543
50544 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         Sync from coreutils.
50547         Use "file name" when talking about file names, instead of "filename"
50548         or "path", as per the GNU coding standards.
50549         * MODULES.html.sh: mkdir-p renamed from makepath.
50550         filenamecat renamed from path-concat.
50551         * modules/filenamecat: Renamed from modules/path-concat.
50552         (Files): filenamecat.h and filenamecat.c renamed from
50553         path-concat.h and path-concat.c.
50554         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50555         (Include): filenamecat.h, not path-concat.h.
50556         * modules/mkdir-p: Renamed from modules/makepath.
50557         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50558         makepath.c.
50559         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50560         (Include): mkdir-p.h, not makepath.h.
50561
50562 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50563
50564         Sync from coreutils.
50565         * m4/mkdir-p.m4: Renamed from makepath.m4.
50566         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50567         Rename files from makepath.c to mkdir-p.c, and from
50568         makepath.h to mkdir-p.h.
50569         * m4/filenamecat.m4: Renamed from path-concat.m4.
50570         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50571         Rename files from path-concat.c to filenamecat.c,
50572         and from path-concat.h to filenamecat.h.
50573         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50574         "file name" in local variables or comments.
50575         * m4/rename.m4: Likewise.
50576
50577 2005-06-01  Bruno Haible  <bruno@clisp.org>
50578
50579         * modules/csharpexec: New file.
50580         * MODULES.html.sh (C#): New section.
50581
50582 2005-06-01  Bruno Haible  <bruno@clisp.org>
50583
50584         * m4/csharp.m4: New file, from GNU gettext.
50585         * m4/csharpexec.m4: New file, from GNU gettext.
50586
50587 2005-06-01  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/csharpexec.h: New file, from GNU gettext.
50590         * lib/csharpexec.c: New file, from GNU gettext.
50591         * lib/csharpexec.sh.in: New file, from GNU gettext.
50592
50593 2005-05-31  Derek Price  <derek@ximbiot.com>
50594             Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         Sync from cvs.
50597         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50598
50599 2005-05-31  Derek Price  <derek@ximbiot.com>
50600             Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         Sync from cvs.
50603         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50604
50605 2005-05-29  Derek Price  <derek@ximbiot.com>
50606
50607         * config/srclist.txt (glob_.h, glob.c): Add these files.
50608
50609 2005-05-29  Derek Price  <derek@ximbiot.com>
50610
50611         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50612         * modules/glob: New file.
50613         * modules/getlogin_r: Add link to POSIX spec in description.
50614
50615 2005-05-29  Derek Price  <derek@ximbiot.com>
50616             Paul Eggert  <eggert@cs.ucla.edu>
50617
50618         * m4/glob.m4: New file.
50619
50620 2005-05-29  Derek Price  <derek@ximbiot.com>
50621             Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * lib/glob_.h, lib/glob.c: New files.
50624
50625 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50626
50627         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50628         * modules/fts-lgpl (Depends-on): Remove gettext.
50629
50630 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50631
50632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50633         and don't require gt_INTTYPES_PRI.
50634
50635 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50638
50639         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50640         the configuration hassle isn't worth it.
50641         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50642         (LONGEST_MODIFIER, PRIuMAX): Remove.
50643
50644 2005-05-27  Bruno Haible  <bruno@clisp.org>
50645
50646         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50647
50648 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50649
50650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50651         _POSIX_PTHREAD_SEMANTICS for Solaris.
50652
50653 2005-05-25  Derek Price  <derek@ximbiot.com>
50654
50655         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50656
50657 2005-05-25  Derek Price  <derek@ximbiot.com>
50658             Paul Eggert  <eggert@cs.ucla.edu>
50659
50660         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50661         * lib/getlogin_r.c, getlogin_r.h: New files.
50662
50663 2005-05-25  Bruno Haible  <bruno@clisp.org>
50664             Derek Price  <derek@ximbiot.com>
50665
50666         * lib/getlogin_r.h: Simplify API documentation.
50667
50668 2005-05-23  Derek Price  <derek@ximbiot.com>
50669
50670         * modules/minmax (Files): Add m4/minmax.m4.
50671         (configure.ac): Add gl_MINMAX.
50672
50673 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50674
50675         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50676         so that unistd-safer.h (GPL'ed code) need not be included.
50677
50678 2005-05-22  Bruno Haible  <bruno@clisp.org>
50679
50680         * m4/minmax.m4: New file.
50681         Based on a patch by Derek Price <derek@ximbiot.com>.
50682
50683 2005-05-22  Bruno Haible  <bruno@clisp.org>
50684
50685         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50686         (INT64_MIN): Fix definition.
50687         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50688
50689         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50690         NEED_SIGNED_INT_TYPES.
50691
50692         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50693         HAVE_SYSTEM_INTTYPES.
50694
50695 2005-05-22  Bruno Haible  <bruno@clisp.org>
50696
50697         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50698         Also include <sys/param.h> if it defines MIN, MAX.
50699         Based on a patch by Derek Price <derek@ximbiot.com>.
50700
50701 2005-05-21  Jim Meyering  <jim@meyering.net>
50702
50703         * modules/fts (Files): Add m4/inttypes-pri.m4.
50704         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50705
50706 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50707
50708         New fts module.
50709         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50710         (setup_dir, free_dir): New functions.
50711         (enter_dir, leave_dir): Define trivial
50712         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50713         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50714         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50715         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50716         Move to fts-cycle.c.
50717         (fts_open): Use setup_dir.
50718         (fts_close): Use free_dir.
50719         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50720         This adds a label and some gotos, but the alternatives were messier.
50721         Check for memory allocation failure when entering a dir.
50722         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50723         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50724         (FTS): New member fts_cycle, that is a union that contains the
50725         old active_dir_ht and cycle_state.  All uses changed to mention
50726         fts_cycle.ht and fts_cycle.state.
50727         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50728         fts.c, with the following changes:
50729         (setup_dir, free_dir): New functions.
50730         (enter_dir): Now returns bool.  Return true if successful, false
50731         if memory exhausted.  All callers changed.
50732         Do not bother partly cleaning up on
50733         memory allocation failure; that is free_dir's job.
50734         However, free ad if hash_insert fails, to avoid memory leak.
50735         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50736         fts->fts_options to see which union member to use.
50737
50738 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50739
50740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50741         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50742
50743 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50746
50747 2005-05-20  Jim Meyering  <jim@meyering.net>
50748
50749         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50750         Now a macro, to pacify GCC.
50751
50752 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50753
50754         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50755         of -1.
50756
50757 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50758
50759         * lib/chown.c (rpl_chown): Return -1 on failure.
50760
50761 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50764         Don't check for stddef.h.
50765         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50766         don't use its results.
50767         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50768         since we include them unconditionally.  Don't require
50769         AM_STDBOOL_H, since stdbool is a prerequisite.
50770         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50771         since we assume C89 or better.
50772         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50773         as we don't use their results.
50774         Don't check for fchdir, memmove, memset, strrchr, as we use
50775         them unconditionally.
50776         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50777         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50778
50779 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50780
50781         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50782         Include <stddef.h> unconditionally, since we assume C89 now.
50783         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50784         * lib/fts.c: Include fts_.h first, to check interface.
50785         Do not include intprops.h; no longer needed.
50786         Include cycle-check.h and hash.h, since fts_.h no longer does.
50787         Remove unnecessary casts of closedir to void.
50788         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50789         decide whether to decrement nlinks.
50790         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50791         (FTS): Use struct hash_table * instead of Hash_table, so that
50792         we no longer need to include hash.h here.
50793
50794 2005-05-18  Jim Meyering  <jim@meyering.net>
50795
50796         * modules/dirfd (License): Change to LGPL.  Most of the code
50797         is already in the public domain.
50798
50799 2005-05-18  Jim Meyering  <jim@meyering.net>
50800
50801         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50802         Reported by Yoann Vandoorselaere.
50803
50804 2005-05-17  Jim Meyering  <jim@meyering.net>
50805
50806         * m4/fts.m4: New file, from coreutils.
50807
50808 2005-05-17  Jim Meyering  <jim@meyering.net>
50809
50810         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50811
50812 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50813
50814         Sync from coreutils.
50815         * m4/unlinkdir.m4: New file.
50816
50817 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50818
50819         Sync from coreutils.
50820         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50821         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50822         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50823         White space changes only.
50824         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50825         special.
50826         * lib/yesno.c: Include getline.h, not ctype.h.
50827         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50828         Use getline to remove arbitrary restriction on response length.
50829
50830 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50831
50832         * config/srclist-update: Spell out "Street" in FSF postal
50833         mail address; this is the style the FSF seems to prefer.
50834
50835         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50836         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50837         this updates FSF postal mail address.
50838
50839         Sync from coreutils.
50840         * modules/unlinkdir: New file.
50841         * modules/yesno (Depends-on): Add getline.
50842         * MODULES.html.sh (File system functions): Add unlinkdir.
50843
50844 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50845
50846         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50847         lib/strsep.h:
50848         Change the initial comment to refer to GPL, not LGPL.
50849         gnulib-tool will change it to LGPL as needed.
50850
50851         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50852         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50853         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50854         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50855         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50856         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50857         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50858         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50859         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50860         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50861         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50862         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50863         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50864         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50865         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50866         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50867         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50868         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50869         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50870         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50871         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50872         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50873         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50874         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50875         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50876         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50877         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50878         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50879         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50880         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50881         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50882         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50883         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50884         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50885         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50886         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50887         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50888         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50889         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50890         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50891         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50892         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50893         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50894         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50895         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50896         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50897         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50898         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50899         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50900         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50901         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50902         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50903         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50904         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50905         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50906         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50907         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50908         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50909         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50910         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50911         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50912         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50913         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50914         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50915         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50916         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50917         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50918         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50919         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50920         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50921         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50922         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50923         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50924         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50925         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50926         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50927         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50928         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50929         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50930         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50931         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50932         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50933         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50934         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50935         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50936         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50937         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50938         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50939         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50940         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50941         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50942         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50943         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50944         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50945         lib/yesno.c, lib/yesno.h:
50946         Update FSF postal mail address.
50947
50948 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50949
50950         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50951         tests/test-memmem.c, tests/test-stpncpy.c:
50952         Update FSF postal mail address.
50953
50954 2005-05-13  Bruno Haible  <bruno@clisp.org>
50955
50956         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50957         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50958         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50959         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50960         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50961         Add support for 64-bit integers in the MSVC compiler.
50962
50963 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50964
50965         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50966
50967 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
50968
50969         * gnulib-tool (func_import): Sort and uniquify recommended includes.
50970
50971 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
50972
50973         * doc/getdate.texi (General date syntax): Don't say that date
50974         date --iso-8601=ns generates acceptable dates; it doesn't yet.
50975         Problem reported by Nic Ferrier.
50976
50977 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50978
50979         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50980         specified in ai_socktype. Fix invalid ai_protocol
50981         check. ai_protocol is usually set to 0 or depending on
50982         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
50983         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
50984         ai_socktype / ai_protocol in the returned addrinfo structure.
50985
50986 2005-05-10  Simon Josefsson  <jas@extundo.com>
50987
50988         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50989         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50990
50991 2005-05-10  Karl Berry  <karl@gnu.org>
50992
50993         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50994         (from http://www.gnu.org/licenses).
50995         * doc/COPYING.LIB: also rename to COPYING.LESSER.
50996         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50997         fdl.texi suffices.
50998
50999 2005-05-10  Karl Berry  <karl@gnu.org>
51000
51001         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51002         (COPYING.DOC): remove.
51003
51004         * config/srclist-update: new FSF address.
51005
51006 2005-05-10  Derek Price  <derek@ximbiot.com>
51007
51008         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51009         possible.
51010
51011 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51012             Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/inet_ntop: New file.
51015         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51016         inet_ntop.
51017
51018 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51019             Bruno Haible  <bruno@clisp.org>
51020
51021         * m4/inet_ntop.m4: New file.
51022
51023 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51024             Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/inet_ntop.h: New file.
51027         * lib/inet_ntop.c: New file, from glibc with modifications.
51028
51029 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51030
51031         * modules/time_r (License): Change to LGPL.
51032         * modules/extensions (License): Change to LGPL.  Actually,
51033         the license is more permissive than that, but currently gnulib-tool
51034         doesn't know how to handle more-permissive licenses.
51035
51036         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51037         Problem reported by Dave Love.
51038
51039 2005-05-08  Jim Meyering  <jim@meyering.net>
51040
51041         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51042         blank.
51043
51044 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         * modules/argmatch (Depends-on): Add stdbool.
51047         * modules/backupfile (Depends-on): Likewise.
51048         * modules/chdir-long (Depends-on): Likewise.
51049         * modules/closeout (Depends-on): Likewise.
51050         * modules/cycle-check (Depends-on): Likewise.
51051         * modules/dirname (Depends-on): Likewise.
51052         * modules/fnmatch (Depends-on): Likewise.
51053         * modules/fsusage (Depends-on): Likewise.
51054         * modules/fwriteerror (Depends-on): Likewise.
51055         * modules/getcwd (Depends-on): Likewise.
51056         * modules/getloadavg (Depends-on): Likewise.
51057         * modules/hard-locale (Depends-on): Likewise.
51058         * modules/makepath (Depends-on): Likewise.
51059         * modules/mountlist (Depends-on): Likewise.
51060         * modules/nanosleep (Depends-on): Likewise.
51061         * modules/posixtm (Depends-on): Likewise.
51062         * modules/quotearg (Depends-on): Likewise.
51063         * modules/readtokens (Depends-on): Likewise.
51064         * modules/readtokens0 (Depends-on): Likewise.
51065         * modules/readutmp (Depends-on): Likewise.
51066         * modules/save-cwd (Depends-on): Likewise.
51067         * modules/strftime (Depends-on): Likewise.
51068         * modules/userspec (Depends-on): Likewise.
51069         * modules/utimecmp (Depends-on): Likewise.
51070         * modules/xgetcwd (Depends-on): Likewise.
51071         * modules/xnanosleep (Depends-on): Likewise.
51072         * modules/xstrtod (Depends-on): Likewise.
51073         * modules/yesno (Depends-on): Likewise.
51074
51075 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51076
51077         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51078         needless checks.
51079
51080 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51081
51082         Merge from coreutils.  Among other things,
51083         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51084         * lib/fd-safer.c: New file.
51085         * lib/fcntl-safer.h, open-safer.c: Remove.
51086         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51087         * lib/dup-safer.c: Include unistd-safer.h first.
51088         Don't include errno.h.
51089         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51090         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51091         * lib/file-type.c: Rely on file-type.h change.
51092         * lib/getloadavg.c: Include unistd-safer.h.
51093         (getloadavg): Use safer open.
51094         * lib/getusershell.c: Include "stdio-safer.h".
51095         (getusershell): Use safer fopen.
51096         * lib/long-options.c (long_options): Use NULL rather than 0.
51097         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51098         'free'.
51099         * lib/modechange.c: Likewise.
51100         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51101         (MODE_DONE): New constant.
51102         (struct mode_change): Remove 'next' member.
51103         (make_node_op_equals): New function; like the old one of the
51104         same name, except it allocates an array.
51105         (mode_compile, mode_create_from_ref): Use it.
51106         (mode_compile): Allocate result as an array, not a linked list.
51107         Parse octal string ourself, so that we catch mistakes like "+0".
51108         (mode_adjust): Arg is an array, not a linked list.
51109         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51110         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51111         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51112         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51113         Remove.  This is now stat-macros.h's job.
51114         (talloc): Remove.  All callers replaced by xalloc, so that
51115         our invokers don't have to worry about reporting memory failures.
51116         (make_node_op_equals): Remove.
51117         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51118         New constants.
51119         (struct mode_change): Moved here from modechange.h.
51120         (mode_append_entry): Remove.
51121         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51122         apps to have incorrect behavior.  Use simpler algorithm for head
51123         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51124         Detect more invalid usages rather than having somewhat-random behavior.
51125         Don't insert an "a=" action, as that leads to incorrect behavior.
51126         (mode_compile, mode_create_from_ref): Return NULL on error instead
51127         of an enum, since now there's only one way to have an error.  All
51128         callers changed.
51129         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51130         at the correct time.  Simplify calculation of "+u" and its ilk.
51131         Don't mishandle "+X".
51132         (mode_free): Remove "register" and localize decls.
51133         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51134         (struct mode_change): Move to modechange.c; callers don't
51135         need to see this stuff.
51136         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51137         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51138         (mode_change, mode_adjust): Reflect the new signatures noted above.
51139         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51140         that might redefine system include files.
51141         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51142         (my_usleep): Use NULL rather than (void *) 0.
51143         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51144         Use siginterrupt to specify that system calls should be interrupted.
51145         (rpl_nanosleep): Move initialization of suspended closer to call of
51146         my_usleep.
51147         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51148         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51149         (desirable_utmp_entry): New function.
51150         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51151         using x2nrealloc, to simplify logic.
51152         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51153         size calculation.  Do not assume utmp file is a regular file.
51154         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51155         (READ_UTMP_CHECK_PIDS): New constant.
51156         * lib/save-cwd.c: Include unistd-safer.h.
51157         (save_cwd): Use fd_safer.
51158         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51159         [!_LIBC] Include "stat-macros.h" instead.
51160         * lib/unistd-safer.h (fd_safer): New decl.
51161
51162 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * modules/getloadavg (Depends-on): Add unistd-safer.
51165         * modules/getusershell (Depends-on): Add stdio-safer.
51166         * modules/lstat (Depends-on): Remove xalloc.
51167         * modules/mkstemp (Depends-on): Add stat-macros.
51168         * modules/modechange (Depends-on): Remove xstrtol.
51169         Add stat-macros, xalloc.
51170         * modules/save-cwd (Depends-on): Add unistd-safer.
51171         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51172         * modules/unistd-safer (Files): Add lib/fd-safer.c
51173         (Makefile.am): Remove lib_SOURCES.
51174
51175         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51176         Remove fcntl-safer; unistd-safer supersedes it.
51177
51178 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51179
51180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51181         AC_HEADER_STAT.
51182         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51183         (gl_PREREQ_CHOWN): Remove.
51184         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51185         it.  Don't require AC_HEADER_STAT.
51186         (gl_PREREQ_LSTAT): Remove.
51187         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51188         Don't require AC_HEADER_STAT.
51189         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51190         (gl_PREREQ_RMDIR): Remove.
51191         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51192         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51193         the stat-macros module a prerequisite.
51194         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51195         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51196         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51197         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51198         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51199         variable names.
51200         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51201         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51202         variable prefixes.
51203         * m4/fcntl-safer.m4: Remove.
51204         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51205         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51206         Invoke gl_PREREQ_FD_SAFER.
51207         (gl_PREREQ_FD_SAFER): New macro.
51208         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51209         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51210         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51211         Remove duplicate call to AC_LIBOBJ(readutmp).
51212         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51213
51214         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51215         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51216
51217 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51218
51219         * MODULES.html.sh (Misc): Add byteswap.
51220
51221 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51222
51223         * modules/getcwd (Depends-on): Add extensions.
51224         * modules/openat (Depends-on): Likewise.
51225
51226 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51227
51228         * modules/byteswap: New file.
51229
51230 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51231
51232         * m4/byteswap.m4: New file.
51233
51234 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51235
51236         * lib/byteswap_.h: New file.
51237
51238 2005-04-25  Karl Berry  <karl@gnu.org>
51239
51240         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51241
51242 2005-04-25  Albert Chin  <china@thewrittenword.com>
51243
51244         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51245         Toolkit C bug.
51246
51247 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51248
51249         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51250         (func_ln_if_changed) Remove forcibly for no error message
51251         in case file does not exist.
51252
51253 2005-04-19  Simon Josefsson  <jas@extundo.com>
51254
51255         * gnulib-tool (Options): Make --symlink mean --symbolic.
51256
51257 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51258
51259         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51260
51261 2005-04-16  Simon Josefsson  <jas@extundo.com>
51262
51263         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51264
51265 2005-04-15  Simon Josefsson  <jas@extundo.com>
51266
51267         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51268
51269 2005-04-15  Simon Josefsson  <jas@extundo.com>
51270
51271         * gnulib-tool: Rename --symlink to --symbolic.
51272
51273 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51274
51275         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51276         symbolic links to files instead of copying/moving.  Add --aux-dir,
51277         specifying directory relative --dir where auxiliary build tools
51278         are placed.
51279
51280 2005-04-14  Bruno Haible  <bruno@clisp.org>
51281
51282         * modules/allocsa (License): Change to LGPL.
51283         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51284
51285 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51288         that "UTC +1 second" continues to work.  Problem reported
51289         by Dmitry V. Levin.
51290         (relunit_snumber): New rule.
51291         (relunit): Use it.
51292
51293 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * lib/getdate.y (universal_time_zone_table): New constant.
51296         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51297         universal_time_zone_table.
51298         (lookup_zone): Prefer universal_time_zone_table to
51299         local_time_zone_table, so that "GMT" time stamps are allowed in
51300         London during the summer.  Problem reported by Ian Abbott.
51301
51302 2005-04-12  Jim Meyering  <jim@meyering.net>
51303
51304         * lib/human.c (humblock): Set *options even when returning due to
51305         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51306         warning from gcc-4.
51307
51308 2005-04-09  Jim Meyering  <jim@meyering.net>
51309
51310         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51311         -Wuninitialized: initialize tm0.tm_year.
51312
51313 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51314
51315         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51316         count, since there's no maximum.  All uses changed.
51317         Add member dsts_seen.
51318         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51319         not being INT_MAX.
51320         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51321         Use pc_rels_seen to decide whther a date is absolute.
51322
51323         * lib/getdate.y (number): Don't overwrite year.
51324         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51325         check.
51326
51327 2005-04-02  Simon Josefsson  <jas@extundo.com>
51328
51329         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51330         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51331
51332 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51333
51334         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51335         where no absolute path name can be longer than PATH_MAX.
51336
51337 2005-03-27  Jim Meyering  <jim@meyering.net>
51338
51339         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51340
51341 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51342
51343         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51344         "one's complement" -> "ones' complement" in comment, as per Knuth.
51345         "value of type" -> "type or expression" in comment.
51346         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51347
51348 2005-03-26  Jim Meyering  <jim@meyering.net>
51349
51350         Comment nits.
51351         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51352         Correct typos: s/or/of/.
51353
51354 2005-03-26  Jim Meyering  <jim@meyering.net>
51355
51356         * modules/check-include-files: Move to ../ and rename to...
51357         * check-module: ...this.
51358
51359 2005-03-25  Jim Meyering  <jim@meyering.net>
51360
51361         * modules/xvasprintf (Files): Add xalloc.h.
51362
51363 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * modules/gettext (Files): config/config.rpath ->
51366         build-aux/config.rpath
51367         * modules/iconv (Files): Likewise.
51368         Problem reported by Oskar Liljeblad.
51369
51370 2005-03-23  Jim Meyering  <jim@meyering.net>
51371
51372         * modules/check-include-files: New script to check for
51373         missing dependencies, multiple includes, etc.
51374
51375         * modules/c-strtold (Depends-on): Add xalloc.
51376         * modules/c-strtod (Depends-on): Add xalloc.
51377         * modules/hash (Depends-on): Add xalloc.
51378         (Files): Remove lib/xalloc.h.
51379
51380         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51381         * modules/userspec (Files): Add lib/inttostr.h.
51382
51383 2005-03-23  Jim Meyering  <jim@meyering.net>
51384
51385         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51386
51387 2005-03-22  Jim Meyering  <jim@meyering.net>
51388
51389         * modules/stat-macros: New module.
51390         * modules/canonicalize, modules/euidaccess, modules/file-type,
51391         * modules/filemode, modules/lchown, modules/makepath,
51392         * modules/rmdir, modules/stat: Depend on new stat-macros module
51393         rather than listing lib/stat-macros.h manually.
51394         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51395
51396 2005-03-22  Jim Meyering  <jim@meyering.net>
51397
51398         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51399
51400 2005-03-22  Bruno Haible  <bruno@clisp.org>
51401
51402         * config/srclist.txt: Replace target directory 'config' with
51403         'build-aux'.
51404         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51405         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51406         ../build-aux/.
51407
51408 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51409
51410         * modules/chdir-long (Depends-on): Add mempcpy.
51411
51412         * modules/acl, modules/backupfile, modules/c-strtod,
51413         modules/c-strtold, modules/canon-host, modules/canonicalize,
51414         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51415         modules/exclude, modules/exitfail, modules/file-type,
51416         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51417         modules/getdate, modules/getline, modules/getpagesize,
51418         modules/getpass, modules/getugroups, modules/group-member,
51419         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51420         modules/inttostr, modules/long-options, modules/makepath,
51421         modules/md5, modules/memcasecmp, modules/memcoll,
51422         modules/modechange, modules/mountlist, modules/path-concat,
51423         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51424         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51425         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51426         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51427         modules/strftime, modules/strndup, modules/strverscmp,
51428         modules/timespec, modules/unlocked-io, modules/userspec,
51429         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51430         modules/yesno:
51431         Remove lib_SOURCES line from Makefile.am section, as this is now
51432         done automatically by the corresponding Autoconf macro.
51433
51434 2005-03-21  Jim Meyering  <jim@meyering.net>
51435
51436         Changes imported from coreutils.
51437
51438         * lib/cycle-check.c: Don't include xalloc.h.
51439
51440         * lib/path-concat.c: Don't include assert.h.
51441         (path_concat): Remove assertion that would have triggered
51442         for ABASE starting with more than one slash.
51443         Reported by Andreas Schwab.
51444
51445         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51446         properly when ABASE is an absolute file name.
51447         Correct the description of this function.
51448         Include <assert.h>.
51449         Add an assertion and a test driver.
51450         This fixes a bug introduced on 2004-07-02.
51451         Andreas Schwab reported the resulting failure of cp --parents:
51452         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51453
51454 2005-03-21  Jim Meyering  <jim@meyering.net>
51455
51456         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51458
51459 2005-03-21  Jim Meyering  <jim@meyering.net>
51460         and  Paul Eggert  <eggert@cs.ucla.edu>
51461
51462         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51463         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51464         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51465         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51466         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51467         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51468         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51469         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51470         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51471         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51472         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51473         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51474         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51475         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51476         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51477         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51478         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51479         for these modules.
51480
51481 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51484         (which shouldn't happen), generate nothing instead of returning 0
51485         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51486
51487 2005-03-16  Bruno Haible  <bruno@clisp.org>
51488
51489         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51490         HAVE_LONGLONG_64BIT.
51491
51492 2005-03-16  Bruno Haible  <bruno@clisp.org>
51493
51494         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51495         HAVE_LONGLONG_64BIT.
51496
51497 2005-03-16  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51500         HAVE_LONGLONG_64BIT.
51501
51502 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51503
51504         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51505         reliably distinguish strftime failure from empty output on POSIX
51506         hosts.
51507
51508 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51511         (iconv_string): Don't guess a size-zero buffer, as that might cause
51512         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51513         result would be 'too large', where 'too large' is (heuristically)
51514         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51515         overflow concerns.  This will prevent some unwanted malloc failures
51516         when the inputs are very large.
51517
51518 2005-03-15  Karl Berry  <karl@gnu.org>
51519
51520         * config/srclist.txt (config.rpath): from gettext.
51521         * config/config.rpath: update.
51522
51523 2005-03-15  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51526         to 'negate'.
51527
51528         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51529         variable.
51530
51531         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51532         results.
51533
51534 2005-03-14  Simon Josefsson  <jas@extundo.com>
51535
51536         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51537         <fx@gnu.org>.
51538
51539 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51540
51541         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51542         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51543         intprops.h.
51544         * lib/strtol.c: Likewise.
51545
51546 2005-03-14  Jim Meyering  <jim@meyering.net>
51547
51548         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51549         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51550         to be nonzero so that we (and caller) can detect the difference
51551         between a valid zero-length expansion and an error return, even
51552         when the underlying strftime fails before writing anything into
51553         that location.
51554
51555 2005-03-14  Bruno Haible  <bruno@clisp.org>
51556
51557         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51558         Update from GNU gettext 0.14.3.
51559
51560 2005-03-10  Jim Meyering  <jim@meyering.net>
51561
51562         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51563
51564 2005-03-10  Jim Meyering  <jim@meyering.net>
51565
51566         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51567         so that this module works on systems without fchdir.
51568
51569 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51570
51571         Factor int-properties macros into a single file, except for
51572         glibc-related files.
51573         * lib/intprops.h: New file.
51574         * lib/getloadavg.c: Include it instead of limits.h.
51575         (INT_STRLEN_BOUND): Remove.
51576         * lib/human.c: Include intprops.h.
51577         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51578         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51579         302/1000.
51580         * lib/inttostr.h: Include intprops.h instead of limits.h.
51581         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51582         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51583         for consistency with intprops.h.
51584         (time_t_is_integer, twos_complement_arithmetic): Use them.
51585         * lib/sig2str.h: Include <signal.h>, intprops.h.
51586         (INT_STRLEN_BOUND): Remove.
51587         * lib/strftime.c (TYPE_SIGNED): Remove.
51588         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51589         * lib/strtol.c: Adjust comments to match intprops.h.
51590         * lib/userspec.c: Include intprops.h.
51591         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51592         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51593         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51594         instead of rolling our own expressions.
51595         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51596
51597         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51598         instead of int.
51599         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51600         the right thing even if adding 1900 would overflow.  Similarly
51601         for tm_mon + 1 and tm_yday + 1.
51602         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51603         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51604         (DO_SIGNED_NUMBER): New macro.
51605         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51606
51607 2005-03-07  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51610
51611 2005-03-07  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51614
51615 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51616
51617         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51618         (func_import): Only replace files via --import when they have actually
51619         changed.
51620
51621 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51622
51623         * m4/mmap-anon.m4: New file.
51624         * m4/pagealign_alloc.m4: New file.
51625
51626 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51627             Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/pagealign_alloc: New file.
51630         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51631
51632 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51633             Bruno Haible  <bruno@clisp.org>
51634
51635         * lib/pagealign_alloc.h: New file.
51636         * lib/pagealign_alloc.c: New file.
51637
51638 2005-03-03  Bruno Haible  <bruno@clisp.org>
51639
51640         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51641         Use an all-permissive copyright notice, recommended by RMS.
51642
51643 2005-03-02  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51646         of AIX, the replacement has to be done only after <string.h> is
51647         included, therefore not in config.h. stpncpy.h does the replacement,
51648         and stpncpy.c uses it.
51649
51650 2005-03-02  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51653         stpncpy.c uses it.
51654
51655 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51658         The workaround isn't strictly needed for POSIX conformance, and
51659         it's too much of a pain to configure and maintain.  We'll ask
51660         people to fix their kernels instead.
51661         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51662         (NANOSLEEP_BUG_WORKAROUND): Remove.
51663         (xnanosleep): Remove the workaround.
51664
51665 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51666
51667         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51668         Reported by Derek Price.
51669         (Include): Add "timespec.h".
51670
51671         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51672
51673 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51674
51675         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51676         to detect nanosleep bug.
51677
51678 2005-03-01  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51681
51682 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51683
51684         * modules/gethrxtime: New file.
51685         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51686         (Depends-on): Add gethrxtime.
51687         (configure.ac): Add gl_XNANOSLEEP.
51688         (Makefile.am): Remove lib_SOURCES line.
51689
51690 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51691
51692         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51693         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51694
51695 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51698         * lib/timespec.h (gettime): Return void, since it always
51699         succeeds now.  All uses changed.
51700         * lib/gettime.c (gettime) Likewise.
51701         [HAVE_NANOTIME]: Prefer nanotime.
51702         Assume gettimeofday succeeds, as POSIX requires.
51703         Assime time () succeeds, since other code already does.
51704         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51705         (timespec_subtract): Remove.
51706         (NANOSLEEP_BUG_WORKAROUND): New constant.
51707         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51708         things considerably.  Use it only on GNU/Linux hosts, since the
51709         workaround shouldn't be needed elsewhere.
51710
51711 2005-02-24  Bruno Haible  <bruno@clisp.org>
51712
51713         * modules/gettext (Files): Add m4/glibc2.m4.
51714
51715 2005-02-24  Bruno Haible  <bruno@clisp.org>
51716
51717         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51718         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51719         * m4/progtest.m4:
51720         Update from GNU gettext 0.14.2.
51721         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51722
51723 2005-02-24  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51726         * lib/config.charset: Update from GNU gettext 0.14.2.
51727
51728 2005-02-24  Bruno Haible  <bruno@clisp.org>
51729
51730         * lib/gettext.h: Update from GNU gettext 0.14.2.
51731
51732 2005-02-23  Simon Josefsson  <jas@extundo.com>
51733
51734         * m4/iconvme.m4: New file.
51735
51736 2005-02-23  Jim Meyering  <jim@meyering.net>
51737
51738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51739         change.
51740         Thanks to Bruno Haible for catching it.
51741
51742 2005-02-22  Simon Josefsson  <jas@extundo.com>
51743
51744         * modules/iconvme: New file.
51745
51746         * MODULES.html.sh: Add iconvme.
51747
51748 2005-02-22  Simon Josefsson  <jas@extundo.com>
51749
51750         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51751
51752 2005-02-22  Simon Josefsson  <jas@extundo.com>
51753
51754         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51755
51756 2005-02-22  Jim Meyering  <jim@meyering.net>
51757
51758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51759         s/ifndef/ifdef/.
51760
51761 2005-02-20  Neil Conway  <neilc@samurai.com>
51762
51763         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51764         returned by OSX/Darwin if the specified buffer is not large
51765         enough for the hostname.
51766
51767 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51768
51769         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51770         pass it to _help, otherwise the latter coredumps trying to
51771         dereference state.root_argp.
51772
51773 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51774
51775         * modules/chdir-long (Depends-on): Add memrchr.
51776         * modules/memrchr (Files): Add lib/memrchr.h.
51777         (Include): "memrchr.h".
51778
51779 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51780
51781         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51782
51783 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * lib/memrchr.h: New file.
51786         * lib/chdir-long.c: Include it.
51787         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51788         Don't bother including stddef.h.
51789
51790 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51791
51792         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51793         inclusion.
51794         Include <sys/types.h>, for dev_t.
51795         (ME_DUMMY, ME_REMOTE): Move from here....
51796         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51797         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51798         Dmitry V. Levin.
51799         Include mountlist.h first, to test the interface.
51800
51801 2005-01-29  Bruno Haible  <bruno@clisp.org>
51802
51803         * lib/progname.c (program_name): Initialize.
51804         Needed when linking statically on MacOS X.
51805
51806 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51807
51808         Sync from coreutils.
51809         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51810         (Depends-on): Add c-strtod.
51811         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51812
51813 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         Sync from coreutils.
51816         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51817
51818         Remove files that are specific to coreutils.
51819         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51820
51821 2005-01-28  Bruno Haible  <bruno@clisp.org>
51822
51823         * modules/javacomp: New file.
51824         * MODULES.html.sh (Java): Add javacomp.
51825
51826 2005-01-28  Bruno Haible  <bruno@clisp.org>
51827
51828         * m4/javacomp.m4: New file, from GNU gettext.
51829
51830 2005-01-28  Bruno Haible  <bruno@clisp.org>
51831
51832         * lib/javacomp.sh.in: New file, from GNU gettext.
51833         * lib/javacomp.h: New file, from GNU gettext.
51834         * lib/javacomp.c: New file, from GNU gettext.
51835
51836 2005-01-26  Simon Josefsson  <jas@extundo.com>
51837
51838         * lib/gai_strerror.c: Use GPL in header.
51839
51840 2005-01-26  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/javaexec: New file.
51843         * MODULES.html.sh (Java): Add javaexec.
51844
51845 2005-01-26  Bruno Haible  <bruno@clisp.org>
51846
51847         * m4/javaexec.m4: New file, from GNU gettext.
51848
51849 2005-01-26  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/javaexec.sh.in: New file, from GNU gettext.
51852         * lib/javaexec.h: New file, from GNU gettext.
51853         * lib/javaexec.c: New file, from GNU gettext.
51854
51855 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51856
51857         * modules/lchown (Depends-on): Remove lchown.h
51858
51859 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51860
51861         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51862         must be defined if the header file was not found, in order
51863         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51864
51865 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51866
51867         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51868         initializers for struct pentry_state.
51869         (__argp_error): Check return value of __asprintf
51870         (__argp_failure): Translate error message
51871
51872         * lib/argp-parse.c: Removed braces around the expansion of N_()
51873
51874 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51875
51876         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51877         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51878         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51879         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51880         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51881         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51882         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51883         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51884         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51885         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51886         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51887         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51888         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51889         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51890         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51891         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51892         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51893         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51894         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51895         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51896         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51897         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51898         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51899         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51900         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51901         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51902         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51903         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51904         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51905         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51906         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51907         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51908         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51909         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51910         xstrtol.m4, xstrtoumax.m4, yesno.m4:
51911         Use an all-permissive copyright notice, recommended by RMS.
51912
51913 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * modules/chdir-long (Depends-on): Remove mempcpy.
51916
51917 2005-01-21  Jim Meyering  <jim@meyering.net>
51918
51919         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51920         same value as for Solaris 9.
51921
51922         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51923         component length.  This included changing the parameter to be
51924         of type `char *' rather than `char const *'.
51925         * lib/chdir-long.h (chdir_long): Update prototype.
51926
51927         * lib/openat.c (fdopendir, fstatat): New functions.
51928         * lib/openat.h: Include headers required for use of DIR and struct
51929         stat.
51930         [AT_SYMLINK_NOFOLLOW]: Define.
51931         (fdopendir, fstatat): Add prototypes.
51932
51933 2005-01-21  Bruno Haible  <bruno@clisp.org>
51934
51935         * modules/classpath: New file.
51936         * MODULES.html.sh (Java): Add classpath.
51937
51938 2005-01-21  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/classpath.h: New file, from GNU gettext.
51941         * lib/classpath.c: New file, from GNU gettext.
51942
51943 2005-01-20  Simon Josefsson  <jas@extundo.com>
51944
51945         * modules/version-etc-fsf: New file.
51946
51947 2005-01-20  Simon Josefsson  <jas@extundo.com>
51948
51949         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51950         * lib/version-etc.c: Remove version_etc_copyright.
51951         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51952         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51953
51954 2005-01-20  Simon Josefsson  <jas@extundo.com>
51955
51956         * lib/base64.h (isbase64): Add.
51957
51958         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51959         using a unsigned prototype, don't inline.
51960         (base64_decode): Use it.
51961
51962 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51963
51964         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51965         it.
51966
51967 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51968
51969         * lib/save-cwd.c (save_cwd): Remove code to support the case
51970         where fchdir is missing or flaky.
51971
51972 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51973
51974         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51975
51976 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
51977
51978         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51979         AC_LIBSOURCES now does this.
51980         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51981         with new ullong_max module.
51982
51983 2005-01-19  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/sh-quote: New file.
51986         * MODULES.html.sh (Executing programs): Add sh-quote.
51987
51988 2005-01-19  Bruno Haible  <bruno@clisp.org>
51989
51990         * lib/sh-quote.h: New file, from GNU gettext.
51991         * lib/sh-quote.c: New file, from GNU gettext.
51992
51993 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
51994
51995         Merge from coreutils.
51996         * m4/ullong_max.m4: New file.
51997         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51998         (gl_MACROS): Assume localeconv exists.
51999
52000 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52001
52002         Merge changes from coreutils, as described below in several
52003         changelogs dated today.
52004
52005         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52006         (O_DIRECTORY): Remove; not needed here, since "." must be
52007         a directory.  All uses removed.
52008         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52009         universal on Suns, and we also need to test for IRIX.
52010         Revamp code to use 'if' rather than '#if'.
52011         Avoid unnecessary comparison of cwd->desc to 0.
52012
52013         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52014         for known valid error numbers rather than observed invalid ones.
52015
52016 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52017
52018         * modules/ullong_max: New file.
52019
52020         * modules/chdir-long, modules/openat: New files.
52021         * modules/save-cwd (Depends-on): Depend on chdir-long.
52022         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52023
52024 2005-01-18  Jim Meyering  <jim@meyering.net>
52025
52026         Merge from coreutils.
52027         * m4/chdir-long.m4, m4/openat.m4: New files.
52028         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52029         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52030         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52031         is sane and DOES follow symlinks.  Besides, testing 20 different
52032         systems found no broken chown implementations.
52033         Prompted by a change in rsync's copy of this macro.
52034         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52035
52036         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52037
52038         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52039         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52040         NULL-means-set-to-current-time semantics.
52041         Remove temporary file immediately, rather than waiting
52042         for configure's at-exit trap code to do it.
52043
52044 2005-01-18  Jim Meyering  <jim@meyering.net>
52045
52046         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52047
52048         * lib/utimens.c (futimens): Account for the fact that futimes
52049         can also fail with errno == ENOSYS or errno == ENOENT.
52050         Patch from Dmitry V. Levin.
52051
52052         Change the name of the robust chdir function from chdir to chdir_long.
52053         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52054         (restore_cwd): Use chdir_long, not chdir.
52055         * lib/chdir-long.c: Renamed from chdir.c.
52056         * lib/chdir-long.h: Renamed from chdir.h.
52057         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52058         Hurd.
52059
52060 2005-01-18  Bruno Haible  <bruno@clisp.org>
52061
52062         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52063         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52064         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52065         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52066         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52067         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52068         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52069         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52070         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52071         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52072         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52073         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52074         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52075         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52076         Use an all-permissive copyright notice, recommended by RMS.
52077
52078 2005-01-18  Bob Proulx  <bob@proulx.com>
52079
52080         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52081         simplify offsetof() macro construct to avoid compile failure with
52082         native HP-UX 11.0 ANSI C compiler.
52083
52084 2005-01-17  Bruno Haible  <bruno@clisp.org>
52085
52086         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52087         redundant because stpncpy.m4 takes care of it.
52088
52089 2005-01-17  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52092
52093 2005-01-17  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52096         used.
52097
52098 2005-01-17  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/fwriteerror.h (fwriteerror): Change specification to include
52101         fclose.
52102         * lib/fwriteerror.c: Include <stdbool.h>.
52103         (fwriteerror): At the end, close the file stream. Record whether
52104         stdout was already closed.
52105
52106 2005-01-17  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/execute.c (environ): Declare if needed.
52109         * lib/pipe.c (environ): Likewise.
52110         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52111
52112 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52113
52114         * modules/argp: Depend on vsnprintf
52115
52116 2005-01-10  Jim Meyering  <jim@meyering.net>
52117
52118         * modules/closeout (Depends-on): Add atexit.
52119
52120 2005-01-06  Bruno Haible  <bruno@clisp.org>
52121
52122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52123
52124 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52125
52126         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52127         definitions to be after all include files, to avoid collisions.
52128         Problem reported by Bob Proulx.
52129
52130 2005-01-04  Jim Meyering  <jim@meyering.net>
52131
52132         Changes imported from coreutils.
52133         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52134         as the mkstemp template, use a temporary directory and an
52135         8.3-friendly template to avoid trouble on systems like DJGPP.
52136         Reported by Juan M. Guerrero via Stepan Kasal.
52137         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52138         close. Remove the temporary directory right away, rather than waiting
52139         for configure's at-exit trap code to do it.
52140         Suggestion from Stepan Kasal.
52141
52142 2005-01-01  Simon Josefsson  <jas@extundo.com>
52143
52144         * gnulib-tool: Print #include directives when --import'ing.
52145
52146 2004-12-28  Simon Josefsson  <jas@extundo.com>
52147
52148         * tests/test-base64.c: Include required header files.  Remove
52149         unused variables.
52150
52151 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * modules/error (Depends-on): Remove gettext.
52154
52155 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52156
52157         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52158         not needed.  This removes a dependency on the gettext module.
52159         [defined _LIBC]: Do not include <libintl.h>; not needed.
52160
52161 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52162
52163         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52164         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52165
52166 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52167
52168         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52169         HAVE_DECL_STRTOLD.
52170
52171 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52172
52173         * modules/getdate (Depends-on): Remove alloca-opt.
52174
52175 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52178
52179 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52180
52181         * lib/argp-parse.c: Include <stddef.h>.
52182         (alignof, alignto): New macros.
52183         (parser_init): Don't assume that void * is aligned sufficiently
52184         for struct option.
52185
52186         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52187         need to extend the stack.
52188         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52189         large.
52190
52191 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52192
52193         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52194
52195 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52196
52197         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52198         (2004-10-24) change.  Apparently this was a false alarm.
52199
52200         * modules/getdate: Depend on alloca-opt, not alloca.
52201
52202 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52205         Remove now-obsolete comment about AIX.
52206         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52207         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52208         (YYMAXDEPTH): New macro.
52209
52210 2004-12-18  Simon Josefsson  <jas@extundo.com>
52211
52212         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52213
52214 2004-12-18  Bruno Haible  <bruno@clisp.org>
52215
52216         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52217
52218 2004-12-18  Bruno Haible  <bruno@clisp.org>
52219
52220         * lib/fatal-signal.c (fatal_signals): Make non-const.
52221         (init_fatal_signals): New function.
52222         (uninstall_handlers, install_handlers): Ignore signals that were set to
52223         SIG_IGN.
52224         (at_fatal_signal): Call init_fatal_signals.
52225         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52226         SIG_IGN.
52227         Reported by Paul Eggert.
52228
52229 2004-12-18  Bruno Haible  <bruno@clisp.org>
52230
52231         * doc/alloca.texi: New file.
52232         * doc/alloca-opt.texi: New file.
52233
52234 2004-12-17  Jim Meyering  <jim@meyering.net>
52235
52236         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52237         Otherwise, install-sh could exit with improper exit status when
52238         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52239
52240 2004-12-16  Simon Josefsson  <jas@extundo.com>
52241
52242         * tests/test-base64.c: Add license.
52243
52244 2004-12-15  Stepan Kasal  <address@hidden>
52245
52246         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52247
52248 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * modules/getcwd (Files): Add m4/d-ino.m4.
52251         Suggested by Mark D. Baushke.
52252
52253 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * lib/getdate.y (textint): New member "negative".
52256         (time_zone_hhmm): New function.
52257         Expect 14 shift-reduce conflicts, not 13.
52258         (o_colon_minutes): New rule.
52259         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52260         (yylex): Set the "negative" member of signed numbers.
52261
52262 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52263
52264         * doc/getdate.texi (Time of day items, Time zone items):
52265         Describe new formats +00:00, UTC+00:00.
52266
52267 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52268
52269         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52270         spurious "-l"s.  Problem reported by Stepan Kasal.
52271
52272 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52275         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52276
52277 2004-12-04  Simon Josefsson  <jas@extundo.com>
52278
52279         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52280         Vandoorselaere <yoann@prelude-ids.org>.
52281
52282 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         Changes imported from coreutils.
52285         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52286         exist.
52287         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52288
52289 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52290
52291         Changes imported from coreutils.
52292         * lib/hard-locale.c: Assume <locale.h> exists.
52293         Include "strdup.h".
52294         (GLIBC_VERSION): New macro.
52295         (hard_locale): Assume setlocale exists.
52296         Rewrite to avoid #ifdef.
52297         Use strdup rather than malloc + strcpy.
52298         * lib/human.c: Assume <locale.h> exists.
52299         (human_readable): Assume localeconv exists.
52300
52301 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * modules/hard-locale (Depends-on): Add strdup.
52304
52305 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52306
52307         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52308         convert T2, not T.  (Imported from libc.)
52309
52310 2004-11-30  Simon Josefsson  <jas@extundo.com>
52311
52312         * modules/restrict (License): Change to LGPL.
52313
52314 2004-11-30  Simon Josefsson  <jas@extundo.com>
52315
52316         * m4/restrict.m4: Add copyright and copying conditions.
52317
52318 2004-11-30  Simon Josefsson  <jas@extundo.com>
52319
52320         * m4/base64.m4: New file.
52321
52322 2004-11-30  Simon Josefsson  <jas@extundo.com>
52323
52324         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52325         base64.
52326
52327         * tests/test-base64.c: New file.
52328
52329         * modules/base64: New file.
52330
52331 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52332
52333         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52334         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52335
52336         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52337
52338 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52341         (__getcwd.c): Don't restore errno; glibc doesn't.
52342         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52343         first, falling back to our code only if its results look suspicious.
52344         Ensure that the resulting buffer is only as large as necessary.
52345
52346         * lib/readutmp.c: Include readutmp.h first.
52347         Include <errno.h>, since readutmp.h no longer does that.
52348         * lib/readutmp.h: Don't include <errno.h>,
52349         <sys/param.h>, <time.h>; not needed to establish interface.
52350         (errno): Remove decl.
52351         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52352         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52353         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52354
52355 2004-11-28  Simon Josefsson  <jas@extundo.com>
52356
52357         * lib/base64.h, base64.c: New file.
52358
52359 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52362
52363 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52364
52365         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52366         (Depends-on): Remove pathmax, same.  Add mempcpy.
52367         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52368         (Makefile.am): Append getcwd.h to lib_SOURCES.
52369         (Include): Add getcwd.h.
52370         (Maintainer): Change from Jim Meyering to "all, glibc",
52371         since getdate now uses intended-for-glibc code.
52372         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52373         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52374
52375 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52378         HP's ANSI C compiler.
52379         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52380         Declaring int functions causes warnings on some modern systems and
52381         shouldn't be needed to compile on ancient ones.
52382         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52383         defined.
52384
52385         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52386         with the following changes.
52387         (__set_errno): Parenthesize properly.
52388         Include <stdbool.h>.
52389         (MIN, MAX, MATCHING_INO): New macros.
52390         (__getcwd): Define with prototype, not K&R form.
52391         Use heuristics to allocate default buffer on stack if possible.
52392         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52393         behavior, and to avoid the PATH_MAX limit when computing
52394         ../../../../...
52395         Use MATCHING_INO to compare inode number to file.
52396         Check for arithmetic overflow in size calculations.
52397         Fix bug in reallocation of dot array that caused getcwd to fail
52398         on directories nested deeper than 75.
52399         Be more careful about saving errno on error.
52400         Do not use realloc; use only free+malloc, as this is a bit
52401         more flexible and avoids a needless copy operation.
52402         Do not inspect st_dev and st_ino for symbolic links; POSIX
52403         doesn't specify the latter.
52404         Check for closedir errors.
52405         Avoid needless casts.
52406         Use "#ifdef weak_alias" around weak_alias, to be like other
52407         glibc code.
52408         The following changes to getcwd.c have effect only when used in
52409         gnulib; they have no effect inside glibc proper.
52410         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52411         as alloca isn't used.
52412         (alloca, __alloca): Likewise.
52413         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52414         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52415         unconditionally, as gnulib assumes C89 or better.
52416         Do not include <sys/param.h>.
52417         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52418         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52419         better.
52420         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52421         Include <dirent.h> in a way that is compatible with modern Autoconf.
52422         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52423         New macros, if not already defined.
52424         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52425         Use "_LIBC", not "defined _LIBC", for consistency.
52426         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52427         a mempcpy module.
52428         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52429         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52430         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52431         credit only to Jim Meyering and adjust the copyright dates.
52432         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52433         <stdlib.h>, <unistd.h>, "pathmax.h".
52434         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52435         (INITIAL_BUFFER_SIZE): Remove.
52436         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52437
52438 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52439
52440         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52441         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52442         Use the _ONCE methods, for efficiency.
52443         Check for fcntl.h.  In test program, include <errno.h>
52444         and <fcntl.h> if available.  Remove old K&R cruft from
52445         test program.  Check for common errors in GNU/Linux,
52446         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52447         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52448         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52449         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52450         name accordingly.
52451         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52452         accommodate new getcwd.c.
52453         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52454         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52455         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52456         that's all we need now.
52457
52458 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52459
52460         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52461         argp-parse.c depends on getopt internals, that means we should
52462         always use our getopt, to be on the safe side.
52463         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52464         order not to spoil the result of an eventual previous invocation
52465         of gl_GETOPT_SUBSTITUTE.
52466
52467 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52468
52469         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52470         redefinition warnings. To avoid them, include the defines
52471         in `#if !defined __need_getopt ... #endif'. The only place
52472         where __getopt_argv_const is used is in definitions
52473         of getopt_long and getopt_long_only below, which are as well
52474         protected by `#ifndef __need_getopt'.
52475         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52476         __need_getopt after including <stdio.h> and <unistd.h> These
52477         headers might have defined it.
52478
52479 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52482
52483 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52486         (futimens): New function, which uses futimes if available.
52487         (futimens, utimens): Support timespec==NULL, with same semantics
52488         as utime and utimens.
52489         * lib/utimens.h (futimens): New decl.
52490
52491 2004-11-23  Jim Meyering  <jim@meyering.net>
52492
52493         * lib/getopt_.h: Remove trailing blanks.
52494
52495 2004-11-23  Jim Meyering  <jim@meyering.net>
52496
52497         * lib/__fpending.c: Add comment.
52498
52499 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         * modules/canonicalize (Depends-on): Add xreadlink.
52502         Problem reported by James Youngman.
52503
52504 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52505
52506         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52507         New macros.
52508         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52509         optopt): Use them instead of invoking ## directly; otherwise, the
52510         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52511
52512 2004-11-19  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/strtok_r.c: Move comments from here...
52515         * lib/strtok_r.h: ... to here.
52516
52517 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52518
52519         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52520         implementations that mishandle size_t overflow.
52521
52522 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52523
52524         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52525         might fail.  Problem reported by Yoann Vandoorselaere.
52526         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52527         implementations that mishandle size_t overflow.
52528
52529 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52530
52531         * modules/canon-host (Depends-on): Add strdup.
52532
52533 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52534
52535         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52536
52537 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * lib/canon-host.c: Include "strdup.h".
52540         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52541         Use strdup instead of malloc/strcpy to duplicate strings.
52542
52543         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52544         (human_space_before_unit): New constant.
52545         * lib/human.c (human_readable): Support it.
52546
52547         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52548         (xgetcwd): Set errno correctly when failing.
52549         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52550         the failure is actually due to a PATH_MAX problem.
52551
52552         Further getopt changes to make it more likely that glibc will
52553         buy the changes back.
52554         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52555         (getopt): Use it, so to preserve glibc semantic
52556         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52557         when compiling for libc.
52558         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52559         (getopt_long, getopt_long_only): Use it.
52560
52561         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52562         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52563         (getopt): Argv is now char * const *, as per standard.
52564         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52565         not char *__getopt_argv_const *.
52566         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52567         _getopt_long_only_r): Likewise.
52568         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52569         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52570         _getopt_long_r, _getopt_long_only_r): Likewise.
52571         * lib/getopt_.h (__getopt_argv_const): Remove.
52572         (getopt): Argv is now char * const *, as per standard.
52573
52574         * lib/getdate.y (tORDINAL): New token.
52575         (day, relunit): Allow it for relative times.
52576         (relative_time_table): Use tORDINAL for ordinals.
52577
52578 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52581         Document that "second" isn't allowed as an ordinal number.
52582
52583 2004-11-16  Jim Meyering  <jim@meyering.net>
52584
52585         * modules/closeout (Depends-on): Add fpending.
52586
52587 2004-11-15  Jim Meyering  <jim@meyering.net>
52588
52589         * lib/closeout.c: Include "__fpending.h" once again.
52590         Include <stdbool.h>.
52591         (close_stdout): Don't fail just because stdout was closed initially,
52592         since some programs don't write to stdout in the normal course of
52593         operation (other than --version and --help), and we don't want this
52594         function to make e.g. `touch file >&-' fail.
52595         But do fail if it was closed and someone has tried to write to it.
52596         E.g., `printf foo >&-' must fail.
52597
52598 2004-11-13  Jim Meyering  <jim@meyering.net>
52599
52600         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52601
52602 2004-11-12  Simon Josefsson  <jas@extundo.com>
52603
52604         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52605         small doc fix is still pending.
52606
52607 2004-11-11  Simon Josefsson  <jas@extundo.com>
52608
52609         * modules/strtok_r: New file.
52610
52611         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52612         strtok_r.
52613
52614 2004-11-11  Simon Josefsson  <jas@extundo.com>
52615
52616         * m4/strtok_r.m4: New file.
52617
52618         * m4/getopt.m4: Replace opterr.
52619
52620 2004-11-11  Simon Josefsson  <jas@extundo.com>
52621
52622         * lib/strtok_r.h, strtok_r.c: New file.
52623
52624 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52625
52626         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52627         of replacing opterr, getopt, etc.  This should handle the
52628         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52629
52630 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52631
52632         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52633         we can stop lying to compilers about the constness of argv when we
52634         are compiled outside glibc.
52635         (getopt, getopt_long, getopt_long_only): Use it.
52636         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52637         _getopt_internal, getopt): Likewise.
52638         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52639         _getopt_long_only_r): Likewise.
52640         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52641         _getopt_long_r, _getopt_long_only_r): Likewise.
52642
52643         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52644         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52645         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52646         the other external symbols.
52647         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52648         declaration, since the above renaming now works around collisions.
52649
52650 2004-11-11  Jim Meyering  <jim@meyering.net>
52651
52652         * lib/linebreak.c: Remove trailing blanks.
52653         * lib/alloca_.h: Likewise.
52654         * lib/acosl.c: Likewise.
52655         * lib/euidaccess.c: Likewise.
52656         * lib/allocsa.h: Likewise.
52657
52658 2004-11-10  Simon Josefsson  <jas@extundo.com>
52659
52660         * m4/getaddrinfo.m4: New file.
52661
52662 2004-11-10  Simon Josefsson  <jas@extundo.com>
52663
52664         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52665
52666 2004-11-10  Simon Josefsson  <jas@extundo.com>
52667
52668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52669         getaddrinfo.
52670
52671         * modules/getaddrinfo: New file.
52672
52673 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52676
52677 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52678
52679         * lib/mktime.c (SHR): New macro, which is a portable
52680         substitute for >> that should work even on Crays.
52681         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52682         Problem reported by Mark D. Baushke in
52683         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52684         * lib/getdate.y (SHR): Likewise.
52685         (tm_diff): Use it.
52686         * lib/strftime.c (SHR): Likewise.
52687         (tm_diff): Use it.
52688         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52689         quote_these_too, so that right shifts are well defined.  All uses
52690         changed.
52691
52692 2004-11-10  Jim Meyering  <jim@meyering.net>
52693
52694         Ensure that no close failure goes unreported.
52695         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52696         return early when it seems there's nothing to flush.
52697         Don't include __fpending.h.
52698
52699 2004-11-10  Jim Meyering  <jim@meyering.net>
52700
52701         * modules/closeout (Depends-on): Remove fpending.
52702
52703 2004-11-10  Jim Meyering  <jim@meyering.net>
52704
52705         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52706
52707 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52708
52709         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52710         gl_FUNC_STRFTIME.
52711         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52712         and AC_REQUIRE when possible, to avoid duplicate checks.
52713         Check for <wchar.h>.
52714
52715 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52716
52717         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52718
52719 2004-11-09  Bruno Haible  <bruno@clisp.org>
52720
52721         * m4/sockpfaf.m4: New file.
52722
52723 2004-11-05  Bruno Haible  <bruno@clisp.org>
52724
52725         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52726         Reported by Mark D. Baushke <mdb@cvshome.org>.
52727
52728 2004-11-04  Bruno Haible  <bruno@clisp.org>
52729
52730         2004-09-11  Bruno Haible  <bruno@clisp.org>
52731                 * allocsa.valgrind: New file.
52732         2004-02-06  Bruno Haible  <bruno@clisp.org>
52733                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52734                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52735                 Reported by Christopher Seip <chris.seip@hp.com>.
52736
52737 2004-11-04  Bruno Haible  <bruno@clisp.org>
52738
52739         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52740         (Makefile.am): Distribute it.
52741
52742 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52745         with errno == ERANGE if the buffer is too small.
52746         Problem reported by Mark D. Baushke.
52747
52748 2004-11-03  Albert Chin  <china@thewrittenword.com>
52749             Paul Eggert  <eggert@cs.ucla.edu>
52750
52751         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52752         equivalent, substitute $ac_type for equivalent type rather than
52753         blindly using uint32_t *always* which won't work if uint32_t is not
52754         available.  Define _UINT32_T to work around typedef of uint32_t if
52755         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52756         2.5.1.
52757
52758 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         * m4/jm-macros.m4: Sync from coreutils.
52761         (gl_MACROS): Check for mbrlen, for pathchk.
52762         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52763
52764 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * lib/xreadlink.c (MAXSIZE): New macro.
52767         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52768         size does not exceed MAXSIZE.  Avoid cast.
52769         As suggested by Mark D. Baushke in
52770         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52771         if readlink fails with buffer size just under MAXSIZE, try again
52772         with MAXSIZE.
52773
52774 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52775
52776         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52777
52778 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52779         and  Paul Eggert  <eggert@cs.ucla.edu>
52780
52781         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52782         (get_date): Overparenthesize to avoid GCC warning.
52783
52784 2004-11-02  Bruno Haible  <bruno@clisp.org>
52785
52786         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52787         returns void.
52788
52789 2004-11-02  Bruno Haible  <bruno@clisp.org>
52790
52791         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52792         function returns void.
52793
52794 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52795
52796         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52797         fflush_unlocked, flockfile, funlockfile, funlockfile,
52798         fputs_unlocked, putc_unlocked.
52799
52800 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52801
52802         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52803         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52804         already declared.
52805
52806 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         * modules/getdate (Files): Add doc/getdate.texi.
52809         (Depends-on): Add setenv, xalloc.
52810
52811 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52812
52813         * lib/getdate.y: Add support for TZ="foo" within a date string.
52814         Fix some bugs near time_t boundaries.  Reject dates with
52815         out-of-range components, e.g., "Sept 31".
52816         Include <stdlib.h>, "setenv.h", "xalloc.h".
52817         (ISDIGIT_LOCALE): Remove; unused.
52818         Note that the TZ and time functions used here are not reentrant.
52819         (mktime_ok, get_tz): New functions.
52820         (TZBUFSIZE): New constant.
52821         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52822         This requires that we sometimes generate our own TZ="XXX..." setting.
52823
52824 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         * doc/getdate.texi: New file, from coreutils with modifications for
52827         the new TZ parsing.
52828
52829 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52830
52831         * lib/mktime.c (not_equal_tm): Remove redundant check.
52832
52833 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52834
52835         * modules/regex (lib_SOURCES): Add regex.c.
52836         Reported by James Youngman in
52837         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52838
52839 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * lib/getdate.y: Use Bison 1.875 features, and some minor
52842         code cleanups.  This change does not affect semantics.
52843         Don't include <stdlib.h>; no longer needed.
52844         Don't include unlocked-io.h; only the "#if TEST" code uses
52845         stdio, and performance isn't crucial there.
52846         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52847         Bison 1.875 features as described below.
52848         All uses of "PC." replaced by "pc->".
52849         (YYSTYPE): Add a forward declaration.
52850         (yylex, yyerror): Use full prototypes in forward decls.
52851         Use "%pure-parser" rather than obsolescent "%pure_parser".
52852         Use %parse-param and %lex-param instead of obsolescent
52853         YYPARSE_PARAM and YYLEX_PARAM.
52854         (meridian_table, month_and_day_table, time_units_table,
52855         relative_time_table, time_zone_table, military_table,
52856         lookup_zone, lookup_word, get_date):
52857         Use NULL instead of 0 where appropriate.
52858         (to_hour): Avoid abort (), to avoid a dependency on
52859         stdlib.h.
52860         (yyerror, yylex): Now accepts parser_control * arg.
52861         (main) [TEST]: Use '\0' rather than 0 for char.
52862
52863 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52864
52865         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52866
52867 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52870         It's now the caller's responsibility to handle the case where
52871         !HAVE_GETPAGESIZE && !defined getpagesize.
52872
52873         * lib/mktime.c (leapyear): Arg is long int, not int.
52874
52875 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
52876
52877         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52878
52879 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52882         missing.  Problem reported by James Youngman.
52883
52884 2004-10-16  Simon Josefsson  <jas@extundo.com>
52885
52886         * gnulib-tool: Fix comments.  Fix parse problem.
52887         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52888
52889 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52892         implementation of getopt_long.  Problem reported by Alexander Taler in:
52893         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52894
52895 2004-10-15  Bruno Haible  <bruno@clisp.org>
52896
52897         * gnulib-tool: Untabify. Initialize supplied_libname.
52898         (func_usage): More homogenous output.
52899         (func_modules_transitive_closure, func_modules_to_filelist,
52900         func_emit_lib_Makefile_am): New functions.
52901         (func_import): New function, extracted from big case statement. Use
52902         func_get_license, func_modules_transitive_closure,
52903         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52904         opt_lgpl. Don't use test -a, as it's not portable.
52905         (func_create_testdir): Use func_modules_transitive_closure,
52906         func_modules_to_filelist, func_emit_lib_Makefile_am.
52907
52908 2004-10-15  Bruno Haible  <bruno@clisp.org>
52909
52910         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52911
52912 2004-10-15  Bruno Haible  <bruno@clisp.org>
52913
52914         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52915         the portions belonging to each module.
52916         Suggested by Derek Robert Price <derek@ximbiot.com>.
52917
52918 2004-10-12  Simon Josefsson  <jas@extundo.com>
52919
52920         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52921         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52922         to real functions.
52923
52924 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52925
52926         * modules/vsnprintf: New file.
52927
52928 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52929
52930         * m4/vsnprintf.m4: New file.
52931
52932 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52933
52934         * lib/vsnprintf.h: New file.
52935         * lib/vsnprintf.c: New file.
52936
52937 2004-10-11  Bruno Haible  <bruno@clisp.org>
52938
52939         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52940         vsnprintf.
52941
52942 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
52943
52944         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52945
52946 2004-10-07  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52949         fits into the provided buffer.
52950
52951 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * lib/diacrit.c, diacrit.h: Add GPL notice.
52954
52955         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52956         notice.
52957         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52958         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52959         This avoids a potential constant-folding bug.
52960
52961 2004-10-05  Bruno Haible  <bruno@clisp.org>
52962
52963         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52964         for the declaration of strsep.
52965
52966 2004-10-05  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52969
52970 2004-10-04  Simon Josefsson  <jas@extundo.com>
52971
52972         * modules/memmem: New file.
52973         * tests/test-memmem.c: New file.
52974         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52975
52976 2004-10-04  Simon Josefsson  <jas@extundo.com>
52977
52978         * m4/memmem.m4: New file.
52979
52980 2004-10-04  Simon Josefsson  <jas@extundo.com>
52981
52982         * lib/memmem.h: New file.
52983         * lib/memmem.c: New file, taken from glibc.
52984
52985 2004-10-04  Simon Josefsson  <jas@extundo.com>
52986
52987         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52988         '#ifdef USE_UNLOCKED_IO'.
52989
52990 2004-10-04  Simon Josefsson  <jas@extundo.com>
52991
52992         * config/srclist.txt: Add memmem from glibc.
52993
52994 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
52995
52996         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52997
52998         * modules/argmatch, modules/argp, modules/closeout, modules/error,
52999         modules/exclude, modules/getdate, modules/getline,
53000         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53001         modules/getusershell, modules/linebuffer, modules/md5,
53002         modules/mountlist, modules/posixtm, modules/readtokens,
53003         modules/readutmp, modules/regex, modules/sha1,
53004         modules/version-etc, modules/yesno:
53005         Remove dependency on unlocked-io.
53006
53007 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53010
53011         * m4/unlocked-io.m4: Add copyright notice.
53012         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53013
53014 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53015
53016         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53017         * lib/xmalloc.c (xmemdup): Likewise.
53018         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53019         XFREE): Remove these long-obsolescent macros.
53020         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53021         * lib/xstrdup.c: Remove.
53022
53023         * lib/regex.c (re_comp): Cast gettext return value to char *,
53024         Problem reported by Martin Neitzel via Mark D. Baushke.
53025
53026 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53027
53028         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53029         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53030         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53031         regex.c, sha1.c, version-etc.c, yesno.c:
53032         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53033         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53034         the includer's responsibility.
53035
53036         Sync from coreutils.
53037
53038         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53039         points to the start of a string, as the C Standard says the
53040         resulting behavior is undefined.
53041
53042         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53043         simple -> simple_backups, numbered_existing ->
53044         numbered_existing_backups, numbered -> numbered_backups
53045         to avoid shadowing problems.  All uses changed.
53046         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53047         * lib/backupfile.c (check_extension, numbered_backup):
53048         Rename locals to avoid shadowing 'basename'.
53049         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53050         once.
53051
53052         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53053         * lib/.cvsignore: Add getopt.h.
53054
53055 2004-10-04  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/README: New file.
53058         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53059         not a module.
53060
53061 2004-10-02  Jim Meyering  <jim@meyering.net>
53062
53063         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53064
53065 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53066
53067         * modules/strsep: New file.
53068
53069 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53070
53071         * m4/strsep.m4: New file.
53072
53073 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53074
53075         * lib/strsep.h: New file.
53076         * lib/strsep.c: New file.
53077
53078 2004-10-01  Simon Josefsson  <jas@extundo.com>
53079
53080         * lib/snprintf.c (snprintf): Handle size==0.
53081
53082 2004-10-01  Simon Josefsson  <jas@extundo.com>
53083             Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53086         (snprintf): Declare 'args'.
53087
53088 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         * lib/snprintf.c: Remove comments as to why each header is needed.
53091
53092 2004-10-01  Bruno Haible  <bruno@clisp.org>
53093
53094         * MODULES.html.sh: Add strsep.
53095
53096 2004-09-30  Simon Josefsson  <jas@extundo.com>
53097
53098         * modules/snprintf: New file.
53099
53100 2004-09-30  Simon Josefsson  <jas@extundo.com>
53101
53102         * m4/snprintf.m4: New file.
53103
53104 2004-09-30  Simon Josefsson  <jas@extundo.com>
53105
53106         * lib/snprintf.h, lib/snprintf.c: New files.
53107
53108 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53109
53110         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53111         (hol_entry_help): Never translate an empty string.
53112         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53113         * lib/argp.h (OPTION_NO_TRANS): New option.
53114
53115 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53116
53117         * modules/argp (Maintainer): Replace Simon Josefsson
53118         by Sergey Poznyakoff.
53119
53120 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53121
53122         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53123         changes merged back into glibc.
53124
53125 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53128
53129 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53130
53131         * lib/xvasprintf.c: Include xalloc.h.
53132         (xvasprintf): Use xalloc_die, not xmalloc_die.
53133
53134 2004-09-29  Bruno Haible  <bruno@clisp.org>
53135
53136         * modules/alloca-opt: New file, derived from modules/alloca.
53137         * modules/allocsa: Depend on alloca-opt instead of alloca.
53138         * modules/setenv: Likewise.
53139         * modules/vasnprintf: Likewise.
53140         * MODULES.html.sh: Add alloca-opt.
53141
53142 2004-09-28  Simon Josefsson  <jas@extundo.com>
53143
53144         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53145         LGPL, and to replace license template from GPL to LGPL.
53146
53147 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         * modules/dummy: Change license to LGPL.
53150
53151 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53154
53155 2004-09-24  Simon Josefsson  <jas@extundo.com>
53156
53157         * modules/minmax (License): Change from GPL to LGPL.
53158
53159 2004-09-23  Simon Josefsson  <jas@extundo.com>
53160
53161         * gnulib-tool (--import): Typo.
53162
53163 2004-09-23  Simon Josefsson  <jas@extundo.com>
53164
53165         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53166
53167 2004-09-22  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/*: Add 'License' field.
53170         * gnulib-tool: Accept --extract-license option.
53171         (func_get_license): New function.
53172
53173 2004-09-21  Bruno Haible  <bruno@clisp.org>
53174
53175         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53176         Reported by Simon Josefsson.
53177
53178 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53179
53180         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53181         gl_AC_TYPE_LONG_LONG.
53182
53183 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53184
53185         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53186
53187 2004-09-18  Simon Josefsson  <jas@extundo.com>
53188         and  Paul Eggert  <eggert@cs.ucla.edu>
53189
53190         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53191         calls with autoreconf.  Define GL_LIB.
53192
53193 2004-09-14  Karl Berry  <karl@gnu.org>
53194
53195         * config/srclist.txt: unsync setenv.c, sigh.
53196
53197 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53200         Problem reported by Bruno Haible in:
53201         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53202
53203 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53204
53205         * config/srclist.txt: Comment out argp-pvh.c.
53206
53207 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53208
53209         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53210         in case some system header has #define'd it.  Problem reported by
53211         Soeren D. Schulze in
53212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53213
53214 2004-09-09  Karl Berry  <karl@gnu.org>
53215
53216         * regex.[ch]: delete from the root.  These were supposed to be
53217                 synced with emacs cvs, but this has not happened for about
53218                 a year, and anyway nothing else uses emacs regex.[ch].
53219                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53220                 lib/regex[.ch] is untouched.
53221
53222 2004-09-09  Bruno Haible  <bruno@clisp.org>
53223
53224         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53225
53226 2004-09-09  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53229         modifications.
53230         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53231
53232 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53233
53234         * modules/xvasprintf: New file.
53235         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53236
53237 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53238
53239         * lib/xvasprintf.h: New file.
53240         * lib/xvasprintf.c: New file.
53241         * lib/xasprintf.c: New file.
53242
53243 2004-09-08  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53246
53247 2004-09-08  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53250         length is > INT_MAX.
53251         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53252         more.
53253
53254 2004-09-08  Bruno Haible  <bruno@clisp.org>
53255
53256         * lib/stdint_.h: New file, taken from GNU clisp.
53257
53258 2004-09-08  Bruno Haible  <bruno@clisp.org>
53259             Oskar Liljeblad  <oskar@osk.mine.nu>
53260
53261         * modules/stdint: New file.
53262         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53263
53264 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53265
53266         Import from coreutils.
53267         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53268         strings on unbounded length.  alloca's performance benefits aren't
53269         that important here.
53270         (V_STRDUP): Remove.
53271         (parse_with_separator): New function, with most of the internals
53272         of the old parse_user_spec.  Allow user to omit both user and group,
53273         for compatibility with FreeBSD.
53274         Clone only the user name, not the entire spec.
53275         Do not set *uid, *gid unless entirely successful.
53276         Avoid memory leak in some failing cases.
53277         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53278         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53279         (parse_user_spec): Rewrite to use parse_with_separator.
53280
53281 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * modules/userspec: Don't depend on alloca.
53284
53285 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53286
53287         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53288
53289 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53292         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53293         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53294
53295 2004-08-16  Simon Josefsson  <jas@extundo.com>
53296
53297         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53298         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53299         Add --dry-run for --import.
53300         Let user provided command line parameters override configure.ac
53301         settings.
53302
53303 2004-08-12  Simon Josefsson  <jas@extundo.com>
53304
53305         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53306         as discussed with Paul Eggert in threads rooted at
53307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53308         and
53309         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53310         Before, the test was empty, and relied on ELIDE_CODE in source
53311         code.)
53312         (gl_PREREQ_GETOPT): New macro.
53313         (gl_GETOPT): Use them.
53314
53315 2004-08-12  Simon Josefsson  <jas@extundo.com>
53316
53317         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53318         * lib/getopt_.h: Renamed from getopt.h.
53319
53320 2004-08-12  Simon Josefsson  <jas@extundo.com>
53321
53322         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53323         Change default library name from libfoo to libgnu.
53324         Now, if you have a configure.ac that says:
53325                 gl_SOURCE_BASE(gl)
53326                 gl_M4_BASE(gl/m4)
53327                 gl_MODULES(error getopt etcetera)
53328                 gl_INIT
53329         you can import all you need by running:
53330                 ../gnulib/gnulib-tool --import
53331
53332         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53333         (Makefile.am): Rewrite, use logic from argz.
53334         (Include): Use <getopt.h> instead of "getopt.h".
53335
53336 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53337
53338         * modules/argp (Files): Add m4/unlocked-io.m4.
53339         (Depends-on): Add extensions.
53340
53341 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53342
53343         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53344         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53345         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53346         Check for program_invocation_name, program_invocation_short_name,
53347         flockfile, funlockfile, features.h, _getopt_long_only_r.
53348
53349 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53350
53351         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53352         its complicated substitute.
53353         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53354         and program_invocation_name.
53355         (__argp_basename) [!_LIBC]: Remove; the only use was
53356         replaced by its body.
53357         (__argp_short_program_name): Change condition from
53358         !defined __argp_short_program_name to
53359         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53360         to match argp-namefrob.h.
53361         (__argp_failure): Don't assume strerror_r returns char *.
53362         * lib/argp-parse.c (N_): Define unconditionally.
53363         (argp_default_options): Fill out initializers with 0 to avoid
53364         gcc warnings.
53365
53366 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53369         getopt1.c.
53370
53371 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53372
53373         Merge from coreutils.
53374
53375         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53376
53377         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53378         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53379
53380 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53381
53382         Merge from coreutils.
53383
53384         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53385         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53386         for Reliant Unix 5.43.
53387
53388         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53389         (union fooround): Use uintmax_t, not long int.
53390         The rest is a merge from libc:
53391         [defined _LIBC]: Include <shlib-compat.h>.
53392         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53393
53394         * lib/settime.c (settime): Recode to avoid warning with
53395         Sun Forte C 6U2.
53396
53397         * lib/strverscmp.c: Convert to UTF-8.
53398
53399 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53400
53401         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53402         m4/uintmax_t.m4.
53403
53404 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53405
53406         * modules/xalloc-die: New file.
53407         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53408
53409         * modules/md5 (Files): Add m4/uint32_t.m4.
53410         * modules/sha1: Renamed from modules/sha.
53411         (Files):
53412         Rename lib/sha.h to lib/sha1.h.
53413         Rename lib/sha.c to lib/sha1.c.
53414         Rename m4/sha.m4 to m4/sha1.m4.
53415         (lib_SOURCES): Likewise.
53416         (configure.ac): Rename gl_SHA to gl_SHA1.
53417         (Include): sha.h -> sha1.h.
53418
53419 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53422         * m4/sha1.m4: Renamed from sha.m4.
53423         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53424
53425 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * lib/obstack.h (obstack_empty_p):
53428         Don't assume that chunk->contents is suitably aligned.
53429         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53430         Likewise. Problem reported by Benno in
53431         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53432
53433         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53434         readable.  This could be improved further but it'd take some work.
53435
53436 2004-08-08  Simon Josefsson  <jas@extundo.com>
53437
53438         * modules/xgethostname (Depends-on): Remove exit and error (not
53439         used).
53440
53441         * modules/getpass-gnu: Add getpass.h.
53442         (Depends-on): Add stdbool.
53443         * modules/getpass: Add getpass.h.
53444
53445 2004-08-08  Simon Josefsson  <jas@extundo.com>
53446
53447         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53448         Check getpass declaration.
53449
53450 2004-08-08  Simon Josefsson  <jas@extundo.com>
53451
53452         * lib/xgethostname.c: Don't include error.h (not used).
53453
53454         * lib/getpass.h: Add.
53455         * lib/getpass.c: Include getpass.h first.
53456
53457 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53458
53459         * lib/xalloc-die.c: New file.
53460         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53461         All uses removed.
53462         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53463         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53464         xalloc-die.c.
53465         (_, N_, xalloc_die): Move to xalloc-die.c.
53466         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53467         so that we needn't mess with xalloc_msg_memory_exhausted.
53468
53469         * lib/sha1.h: Renamed from sha.h.
53470         (SHA1_H): Renamed from _SHA_H.
53471         (sha1_ctx): Renamed from sha_ctx.
53472         (sha1_init_ctx): Renamed from sha_init_ctx.
53473         (sha1_process_block): Renamed from sha_process_block.
53474         (sha1_process_bytes): Renamed from sha_process_bytes.
53475         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53476         (sha1_read_ctx): Renamed from sha_read_ctx.
53477         (sha1_stream): Renamed from sha_stream.
53478         (sha1_buffer): Renamed from sha_buffer.
53479         * lib/sha1.c: Likewise; renamed from sha.c.
53480         Do not include <sys/types.h>.
53481         Include <stddef.h> rather than <stdlib.h>.
53482
53483 2004-08-08  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53486         FILESYSTEM_PREFIX_LEN.
53487         * lib/progreloc.c: Likewise.
53488         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53489
53490 2004-08-06  Simon Josefsson  <jas@extundo.com>
53491
53492         * modules/progname (Depends-on): Don't depend on stdbool.
53493
53494 2004-08-06  Simon Josefsson  <jas@extundo.com>
53495
53496         * modules/getsubopt: New file.
53497         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53498         getsubopt.
53499
53500 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53501
53502         More merge from coreutils.
53503
53504         * m4/utimens.m4, m4/utimecmp.m4: New files.
53505         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53506         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53507         prereq.m4, sha.m4: Import changes from coreutils.
53508
53509 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53510
53511         More merge from coreutils.
53512         * modules/raise, modules/readtokens0, modules/utimens:
53513         * modules/utimecmp, module/xnanosleep: New files.
53514         * modules/strftime: Add lib/strftime.h.
53515         Change include from <time.h> to "strftime.h".
53516         * modules/yesno: Add lib/yesno.h.
53517         * modules/backupfile: Remove lib/addext.c.
53518         * modules/euidaccess: Add stat-macros.h.
53519         * modules/canonicalize, modules/euidaccess,
53520         modules/filemode, modules/lchown, modules/makepath,
53521         modules/rmdir, modules/stat: Likewise.
53522
53523 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         Merge from tar.
53526         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53527         SIZE_MAX is a valid preprocessor constant.
53528         (__argp_basename): Change from "#ifndef _LIBC"
53529         to "#ifndef __argp_short_program_name", so that
53530         we don't compile these functions for tar.
53531
53532         More merges from coreutils.
53533         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53534         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53535         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53536         * lib/addext.c: Remove; no longer needed.
53537         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53538         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53539         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53540         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53541         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53542         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53543         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53544         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53545         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53546         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53547         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53548         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53549         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53550         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53551         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53552         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53553         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53554         Import changes from coreutils.
53555
53556 2004-08-05  Simon Josefsson  <jas@extundo.com>
53557
53558         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53559
53560 2004-08-05  Simon Josefsson  <jas@extundo.com>
53561
53562         * m4/getsubopt.m4: New file.
53563
53564 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         Merge from coreutils.
53567
53568         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53569         * m4/getcwd-path-max.m4: New files.
53570
53571         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53572         FILESYSTEM_PREFIX_LEN ->
53573         FILE_SYSTEM_PREFIX_LEN.
53574         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53575         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53576         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53577         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53578
53579         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53580         prerequisite modules now handle the DOS stuff.
53581         Don't check for unistd.h.
53582
53583 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53584
53585         Merge from coreutils.
53586
53587         * lib/.gdb-history: Remove; this doesn't belong here.
53588
53589         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53590         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53591         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53592         * lib/getcwd.c: New files.
53593
53594         * lib/dirname.h: Include <stdbool.h>.
53595         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53596         for consistency with POSIX terminology.  All uses changed.
53597         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53598         (strip_trailing_slashes): Use bool for booleans.
53599         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53600
53601         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53602         sometimes returns a positive errno value even when it succeeds.
53603         (print_errno_message) [!LIBC]: Fall back on strerror if
53604         __strerror_r fails.
53605
53606         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53607         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53608         (longest_relative_suffix): New function.
53609         (path_concat): Use it.  Assume first argument is not NULL.
53610         Port to DOS.  Omit redundant separators.
53611         Report an error instead of returning NULL.
53612         Use mempcpy instead of memcpy.
53613         (xpath_concat): Remove: not declared or used.
53614
53615         * lib/same.h: Include <stdbool.h>
53616         (same_name): Return bool, not int.
53617         * lib/same.c (same_name): Likewise.
53618         (errno): Don't declare; we assume C89 or better now.
53619
53620         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53621         if not already defined.
53622
53623         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53624         * lib/dup-safer.c (errno): Likewise.
53625
53626 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53627
53628         Merge from coreutils.
53629         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53630         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53631         * modules/path-concat: Don't depend on strdup.
53632
53633 2004-08-03  Simon Josefsson  <jas@extundo.com>
53634
53635         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53636         * lib/progname.h: Don't include stdbool.h.
53637
53638 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53639
53640         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53641         * MODULES.html.sh (func_all_modules): Remove fatal.
53642
53643 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53646
53647 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53648
53649         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53650         working.
53651
53652 2004-08-02  Simon Josefsson  <jas@extundo.com>
53653
53654         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53655         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53656         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53657
53658 2004-08-01  Simon Josefsson  <jas@extundo.com>
53659
53660         * lib/xgetdomainname.c: Include stdlib.h, for free().
53661
53662 2004-07-19  Bruno Haible  <bruno@clisp.org>
53663
53664         * MODULES.html.sh (func_all_modules): Add dummy.
53665
53666 2004-07-16  Simon Josefsson  <jas@extundo.com>
53667
53668         * modules/dummy: New file.
53669
53670 2004-07-16  Simon Josefsson  <jas@extundo.com>
53671
53672         * lib/dummy.c: New file.
53673
53674 2004-07-16  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/backupfile.h: Add extern "C" for C++.
53677         * lib/closeout.h: Likewise.
53678         * lib/copy-file.h: Likewise.
53679         * lib/findprog.h: Likewise.
53680         * lib/full-write.h: Likewise.
53681         * lib/pathname.h: Likewise.
53682         * lib/progname.h: Likewise.
53683         * lib/stpcpy.h: Likewise.
53684         * lib/stpncpy.h: Likewise.
53685         * lib/strcase.h: Likewise.
53686         * lib/strstr.h: Likewise.
53687         * lib/xalloc.h: Likewise.
53688
53689         * lib/mbswidth.h: Add extern "C" for C++.
53690         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53691
53692 2004-07-13  Robert Millan  <robertmh@gnu.org>
53693
53694         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53695
53696 2004-07-09  Simon Josefsson  <jas@extundo.com>
53697
53698         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53699         failed without this.)
53700
53701 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53702
53703         * modules/chown (Files): Add lib/fchown-stub.c, since
53704         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53705
53706 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53707
53708         * lib/fchown-stub.c: New file.
53709
53710 2004-06-24  Jim Meyering  <jim@meyering.net>
53711
53712         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53713
53714 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53715
53716         * modules/argz: Omit "#include".
53717
53718         * MODULES.html.sh (func_all_modules): Add calloc, to match
53719         2004-06-01 addition of calloc module.
53720
53721 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53722
53723         * m4/argz.m4: New file, which is autoupdated from libtool.
53724
53725 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53726
53727         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53728         libtool.
53729
53730 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53731
53732         * config/srclist-update: Don't insist on "USA." before the
53733         close-comment, as libtool omits the period and puts the */ on a
53734         separate line.
53735         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53736         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53737
53738 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53739
53740         * modules/argz: New file.
53741         * MODULES.html.sh (func_all_modules): Add argz.
53742
53743 2004-06-12  Jim Meyering  <jim@meyering.net>
53744         and  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * modules/hash (Files): Add lib/xalloc.h.
53747         * modules/pipe (Depends-on): Add wait-process.
53748         * modules/stat (Depends-on): Add xalloc.
53749         * modules/userspec (Files): Add lib/userspec.h.
53750         * modules/xstrto
53751
53752         Upgrade from gettext-0.13.
53753         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53754         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53755         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53756
53757 2004-06-10  Jim Meyering  <jim@meyering.net>
53758
53759         * lib/calloc.c: New file.
53760
53761 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53762
53763         * lib/getdate.y (yylex): Allow space between sign and number.
53764         Problem reported by Dan Jacobson.
53765
53766 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         Merge from coreutils CVS.
53769
53770         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53771         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53772         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53773         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53774         xstrtol.m4: Fix copyright date and/or serial number.
53775
53776         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53777         See if we need an fchown replacement.
53778         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53779         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53780         and use the replacement function if we detect either defect.
53781
53782         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53783         gl_UTIMECMP.
53784
53785 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53786         and  Jim Meyering  <jim@meyering.net>
53787
53788         Merge from coreutils CVS.
53789
53790         * lib/stat-macros.h: New file, with contents from file-type.h
53791         and coreutils' system.h.
53792         * lib/file-type.c: Include "stat-macros.h".
53793         * lib/file-type.h (file_type): Move all macro definitions to new file,
53794         stat-macros.h.
53795
53796         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53797         Wrap old code with this conditional.
53798         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53799         function that does not dereference symlinks.
53800         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53801
53802         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53803         dependency problems.
53804         (xreadlink): Accept new arg SIZE, for efficiency.
53805         All decls and uses changed.
53806         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53807
53808         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53809         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53810
53811         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53812         sysexits.h.
53813
53814 2004-06-01  Jim Meyering  <jim@meyering.net>
53815
53816         * m4/calloc.m4: New file.
53817
53818 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53819
53820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53821         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53822         Also, fix a typo in a diagnostic.
53823
53824 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53827         or AC_FUNC_REALLOC.
53828
53829 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53832         macros to be defined.
53833         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53834         the allocator returns NULL because the requested size is zero.
53835
53836 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53837
53838         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53839         var.  Add comment explaining why libc still defines it.  This
53840         merges the following patch from glibc:
53841         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53842
53843 2004-05-20  Andreas Schwab  <schwab@suse.de>
53844
53845         * m4/free.m4: Replace free if it not known to work, not the other
53846         way round.
53847
53848 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53849
53850         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53851         present in glibc since revision 1.1 of this file.
53852         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53853         obstack_alignment_mask, obstack_alloc, obstack_base,
53854         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53855         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53856         obstack_grow0, obstack_init, obstack_int_grow,
53857         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53858         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53859         obstack_ptr_grow_fast, obstack_room): Remove declarations of
53860         nonexistent functions.
53861
53862 2004-05-18  Karl Berry  <karl@gnu.org>
53863
53864         * config/srclist.txt: break link for vasnprintf.c.
53865
53866 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         Port obstack to the AS/400, where pointers are 16 bytes wide and
53869         you cannot cast an integer to a valid pointer.  This patch is
53870         currently waiting to be integrated into glibc; see
53871         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53872
53873         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53874         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53875         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53876         (struct obstack): temp member is now a union of a pointer and
53877         an integer, instead of an integer.  All integer uses changed.
53878         This does not affect the physical layout of struct obstack,
53879         except on hosts (like the AS/400) where the size or alignment of
53880         void * is greater than that of ptrdiff_t.
53881         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53882         __STDC__)]: Store temporary in pointer member of union, not
53883         integer member.
53884         * lib/obstack.c: Include <stddef.h>, for offsetof.
53885         (struct fooalign): Remove; it doesn't need a name.
53886         (union fooround): Change double to long double, and add void *.
53887         (DEFAULT_ALIGNMENT): Use offsetof to compute.
53888         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53889         not a macro.  Hence the values are always int; so remove all
53890         casts-to-int in uses.
53891
53892 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53893
53894         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53895         we can get this patch merged into glibc.
53896
53897 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53898             Paul Eggert  <eggert@cs.ucla.edu>
53899
53900         * m4/argp: Depend on alloca.
53901
53902 2004-05-17  Derek R. Price  <derek@ximbiot.com>
53903             Paul Eggert  <eggert@cs.ucla.edu>
53904
53905         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53906         freecoding.
53907
53908 2004-05-17  Bruno Haible  <bruno@clisp.org>
53909
53910         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53911         precision that consists of a '.' followed by an empty digit string.
53912         Patch by Tor Lillqvist <tml@iki.fi>.
53913
53914 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53917         for backward compatibility with older code.  We need our own
53918         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
53919         it under some other name, and our alloca.h will define it.
53920
53921 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53922             Derek Price  <derek@ximbiot.com>
53923
53924         * lib/alloca.c: Include <alloca.h>, to get our interface.
53925         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53926         include <alloca.h> first.  Use C89 prototype for alloca; this
53927         requires including <stddef.h> for size_t.  Use extern "C" if C++.
53928         Use #elif for simplicity, since we can assume C89 now.
53929         Don't try to source the system alloca.h since it will not be found
53930         and to prevent recursively including its replacement.
53931         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53932         * lib/regex.c: Likewise.
53933
53934 2004-05-16  Derek Price  <derek@ximbiot.com>
53935             Paul Eggert  <eggert@cs.ucla.edu>
53936
53937         getline cleanup.  This changes the getndelim2 API: both order of
53938         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53939         no delimiter).
53940
53941         * lib/getline.c: Don't include stddef.h or stdio.h, since our
53942         interface does that.
53943         (getline): Always use getdelim, so that we don't have two
53944         copies of this code.
53945         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53946         if available.
53947         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53948         (GETNDELIM2_MAXIMUM): New macro.
53949         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
53950         instead of the old practice of delim2==0.  All callers changed.
53951         Return -1 on overflow, instead of returning junk.
53952         Do not set *linesize unless allocation succeeds.
53953         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53954         that we include sys/types.h.
53955         * lib/getnline.h: Likewise.
53956         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53957         (getndelim2): Reorder arguments.
53958         * lib/getnline.c (getnline, getndelim):
53959         Don't discard the NMAX argument.
53960         (getnline): Invoke getndelim, to avoid code duplication.
53961         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53962         of (size_t) -1 by callers of the getnline family.
53963
53964 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53967         Check for gettimeofday.
53968         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53969         Check for settimeofday, stime.
53970
53971 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * lib/nanosleep.c (suspended): Change its type from int to
53974         sig_atomic_t volatile.
53975         (first_call): Make it private to rpl_nanosleep, and have it
53976         be zero initially as that's a bit faster.
53977         (my_usleep): Round up fractional times instead of truncating them,
53978         as this is the usual meaning for 'sleep'.
53979
53980         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53981         doesn't work.
53982         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53983         (ENOSYS): Define if not defined.
53984         (settime): Fall back on stime if it exists and settimeofday fails.
53985         But don't bother with fallbacks if a method fails with errno == EPERM.
53986
53987 2004-05-11  Jim Meyering  <jim@meyering.net>
53988
53989         Prior to this change, the save_cwd caller required read access to the
53990         current directory on most systems (ones with the fchdir function).
53991
53992         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53993         fails, try write-only, and finally, resort to using xgetcwd.
53994
53995 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53996
53997         * lib/obstack.c, obstack.h: Import changes from libc.
53998
53999 2004-04-28  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54002         also implicitly appends .exe to executables.
54003         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54004         accepts Windows pathnames.
54005         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54006         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54007         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54008         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54009         Reported by Derek Robert Price <derek@ximbiot.com>.
54010
54011 2004-04-21  Karl Berry  <karl@gnu.org>
54012
54013         * config/srclist.txt (localcharset.c): break sync.
54014
54015 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54016
54017         * m4/host-os.m4: Add a copyright notice.
54018
54019 2004-04-20  Jim Meyering  <jim@meyering.net>
54020
54021         Change UTILS_ to gl_ in AC_DEFINE'd names.
54022         Change utils_- and jm_-prefixed variables, too.
54023         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54024         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54026
54027         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54028         Don't emit trailing blanks.
54029         Also rename jm_-prefixed variables to have gl_ prefix.
54030
54031         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54032         Also rename jm_-prefixed variables to have gl_ prefix.
54033
54034         * m4/jm-macros.m4: Reflect the renamings.
54035         * m4/prereq.m4: Likewise.
54036
54037 2004-04-20  Jim Meyering  <jim@meyering.net>
54038
54039         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54040         memory.
54041
54042 2004-04-20  Jim Meyering  <jim@meyering.net>
54043             Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54046         memory when realloc fails.
54047
54048 2004-04-19  Jim Meyering  <jim@meyering.net>
54049
54050         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54051         now that readutmp.c may call `free (0)'.
54052
54053 2004-04-19  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54056         * m4/inttypes_h.m4: Likewise.
54057         * m4/stdint_h.m4: Likewise.
54058         * m4/intmax_t.m4: Likewise.
54059         * m4/uintmax_t.m4: Likewise.
54060
54061 2004-04-18  Jim Meyering  <jim@meyering.net>
54062
54063         * m4/prereq.m4: Don't forbid jm_ prefix.
54064
54065         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54066         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54067         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54068         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54069         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54070         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54071         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54072         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54073         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54074         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54075         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54076         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54077         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54078         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54079         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54080         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54081         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54082         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54083         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54084
54085 2004-04-18  Jim Meyering  <jim@meyering.net>
54086
54087         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54088         failure, don't leak memory and do call END_UTMP_ENT.
54089
54090 2004-04-16  Jim Meyering  <jim@meyering.net>
54091
54092         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54093         coreutils' stat program.
54094         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54095
54096 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54097
54098         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54099         C89.
54100         (CHAR_BIT): Remove, since we assume C89.
54101         Include <stdint.h> if available, as per current Autoconf CVS advice.
54102
54103 2004-03-31  Jim Meyering  <jim@meyering.net>
54104
54105         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54106         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54107         * m4/xalloc.m4: Likewise.
54108
54109 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54110
54111         Merge from coreutils.
54112
54113         * m4/inttostr.m4: New file.
54114         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54115         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54116         Require gl_CLOCK_TIME.
54117         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54118
54119 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54120
54121         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54122         not bool, to be more consistent with Unix conventions.
54123         Suggested by Bruno Haible.
54124
54125         Merge from coreutils.
54126
54127         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54128         * lib/umaxtostr.c: New files.
54129
54130         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54131         the usual <time.h> dance.
54132         (get_date): Change signature to support fractional time stamps.
54133         All callers changed.
54134         * lib/getdate.y: Include "getdate.h" first, as we can now
54135         assume C89 and don't need to worry about 'const'.
54136         Similarly, include "unlocked-io.h" near start, not in middle.
54137         Include <limits.h>.
54138         (textint.value): Use long int rather than int.
54139         (textint.digits): Use size_t rather than int.
54140         (BILLION, LOG10_BILLION): New constants.
54141         (parser_control): New member rel_ns.  Members day_ordinal,
54142         time_zone, month, day, hour, minutes, rel_year, rel_month,
54143         rel_day, rel_hour, rel_minutes, rel_seconds
54144         are now long int, not int.  Member seconds is now struct timespec,
54145         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54146         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54147         not int.
54148         (%union.intval): Now long int, not int.
54149         New member timespec.
54150         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54151         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54152         (spec): Now is a timespec or an item list.
54153         (timespec, items): New nonterminals.
54154         (time, rel, relunit, number, get_date):
54155         Add support for fractional seconds.
54156         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54157         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54158         (to_hour): First arg is now long int, not int.
54159         (to_year): Returns long int, not int.
54160         Don't treat year -70 like 70.
54161         (tm_diff): Returns long int, not int.
54162         (lookup_word): Use bool instead of int when appropriate.
54163         (yylex): Use size_t for count, not int.
54164         Detect overflow when parsing large integer constants.
54165         Add support for fractions.
54166         (get_date): Make pointers 'const' if possible.
54167         Use more-portable code to detect integer overflow.
54168         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54169         Don't use ctime; it's not reliable if the year has >4 digits.
54170
54171         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54172         This is for compatibility with BSD.
54173
54174         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54175         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54176         From coreutils' system.h.
54177
54178         * lib/userspec.c: Don't include "posixver.h".
54179         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54180         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54181         compatible extension.  Simplify code by removing a boolean int
54182         that was always nonzero if a string was nonnull.
54183
54184 2004-03-30  Jim Meyering  <jim@meyering.net>
54185
54186         Merge from coreutils.
54187
54188         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54189         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54190         on some systems one must include <grp.h> before it.
54191         Reported by Christian Krackowizer.
54192
54193 2004-03-30  Jim Meyering  <jim@meyering.net>
54194
54195         Merge from coreutils.
54196
54197         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54198
54199         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54200         an empty input stream.
54201
54202         * lib/readtokens.c: Include <stdbool.h>.
54203         (readtoken): Use `size_t' rather than int/long.
54204         All callers adjusted.
54205         Use `bool' rather than `int' where appropriate.
54206         Use memset rather than an explicit loop.
54207         Use x2nrealloc rather than xrealloc.
54208         Allow the use of `\0' as a delimiter.
54209         (readtokens): Likewise.
54210         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54211
54212 2004-03-30  Jim Meyering  <jim@meyering.net>
54213
54214         * m4/realloc.m4: Remove file, since now it does no more than
54215         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54216         the `configure.ac' section of module/realloc.
54217         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54218
54219 2004-03-30  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54222         nonnull.
54223
54224 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54225
54226         Merge changes to getloadavg.c from coreutils and Emacs.
54227
54228         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54229         Define to an expression, not to the empty string.
54230         Include cloexec.h and xalloc.h.
54231         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54232         Use set_cloexec_flag rather than rolling our own.
54233         * lib/cloexec.c, lib/cloexec.h: New files.
54234
54235 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54236
54237         * m4/cloexec.m4: New file.
54238
54239 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54240
54241         * lib/getopt.h: Sync with libc CVS.
54242
54243 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54244             Bruno Haible  <bruno@clisp.org>
54245
54246         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54247         mbswidth.
54248
54249 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54250             Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/mbswidth.h: Include <wchar.h> only if
54253         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54254         <wchar.h>.
54255         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54256
54257 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54258
54259         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54260         Sync with libc CVS.
54261         * lib/getopt_int.h: New file, also synced from libc.
54262
54263 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54264
54265         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54266         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54267         Bring back getopt.c, getopt.h, getopt1.c.
54268
54269 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54270
54271         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54272         All uses changed.  Check for sa_sigaction member; this fixes
54273         a bug first reported by Jason Andrade in
54274         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54275
54276 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54277
54278         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54279         '#if' expressions.  Unlike the code it replaces, it does not
54280         depend on (defined _SC_PAGESIZE).  However, it does depend on
54281         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54282         first reported by Jason Andrade in
54283         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54284
54285 2004-02-25  Simon Josefsson  <jas@extundo.com>
54286
54287         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54288
54289 2004-02-25  Simon Josefsson  <jas@extundo.com>
54290
54291         * lib/strdup.h: New file.
54292         * lib/strdup.c: Include it.
54293         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54294         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54295
54296 2004-02-23  Karl Berry  <karl@gnu.org>
54297
54298         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54299         (from fencepost.gnu.org:/gd/gnuorg).
54300
54301 2004-02-23  Karl Berry  <karl@gnu.org>
54302
54303         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54304         * config/srclist.txt: add maintain/standards documents.
54305
54306 2004-02-18  Bruno Haible  <bruno@clisp.org>
54307
54308         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54309         Reported by Derek Robert Price <derek@ximbiot.com>.
54310
54311 2004-02-16  Karl Berry  <karl@gnu.org>
54312
54313         * config/mkinstalldirs, install-sh: update from automake.
54314
54315 2004-02-06  Karl Berry  <karl@gnu.org>
54316
54317         * m4/po.m4: update from gettext 0.14.1.
54318
54319 2004-02-06  Karl Berry  <karl@gnu.org>
54320
54321         * lib/config.charset: update from gettext 0.14.1.
54322
54323 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54324
54325         Add comments and code, prompted by suggestions from Bruno Haible
54326         for sh-quote.
54327         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54328         describing the enum quoting_style values.
54329         * lib/quotearg.c (quotearg_alloc): New function.
54330         (quotearg_buffer_restyled): Treat lone { and } as special.
54331         Treat = as special.  Work around bug with older shells
54332         that "see" a '\' that is really the 2nd byte of a multibyte char.
54333         Quote empty string with shell_quoting_style.
54334
54335 2004-02-03  Bruno Haible  <bruno@clisp.org>
54336
54337         * m4/pipe.m4: New file, from GNU gettext.
54338
54339 2004-02-03  Bruno Haible  <bruno@clisp.org>
54340
54341         * lib/pipe.h: New file, from GNU gettext.
54342         * lib/pipe.c: New file, from GNU gettext.
54343
54344 2004-01-27  Bruno Haible  <bruno@clisp.org>
54345
54346         * m4/execute.m4: New file, from GNU gettext.
54347
54348 2004-01-27  Bruno Haible  <bruno@clisp.org>
54349
54350         * lib/execute.h: New file, from GNU gettext.
54351         * lib/execute.c: New file, from GNU gettext.
54352         * lib/w32spawn.h: New file, from GNU gettext.
54353
54354 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54355
54356         Merge from diffutils.
54357
54358         * lib/file-type.c (file_type): Add typed memory objects.
54359         * lib/file-type.h (S_TYPEISTMO): New macro.
54360
54361         * lib/c-stack.h (c_stack_action): Remove argv argument.
54362         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54363         (die): Don't calculate message unless segv_action returns.
54364         (get_stack_location, min_address_from_argv, max_address_from_argv,
54365         volatile stack_base, volatile_stack_size): Remove.
54366         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54367         that every segmentation violation is a stack overflow.  (Ouch!)
54368         See Debian bug 136249 (still outstanding) for more info about why
54369         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54370
54371 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54372
54373         Exit-status fix from coreutils.
54374
54375         Use exit_failure consistently in place of EXIT_FAILURE,
54376         so that program exit statuses are consistent on failure.
54377
54378         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54379         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54380         * lib/argmatch.h: Comment fix to match the above.
54381         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54382         Now a macro referring to exit_failure, instead of a separate
54383         variable.  Include "exitfail.h" to get it.
54384         * lib/xstrtol.h: Include "exitfail.h".
54385         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54386
54387         * lib/long-options.c (parse_long_options): Use prototype
54388         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54389         for clarity.
54390
54391 2004-01-21  Jim Meyering  <jim@meyering.net>
54392
54393         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54394         so as not to conflict with a different-sized __mktime_internal
54395         function in GNU libc.
54396         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54397         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54398
54399 2004-01-20  Karl Berry  <karl@gnu.org>
54400
54401         * config/config.guess: update from config.
54402
54403         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54404
54405 2004-01-20  Bruno Haible  <bruno@clisp.org>
54406
54407         Safer stack allocation.
54408         * lib/setenv.c: Include allocsa.h.
54409         (alloca): Remove fallback definition.
54410         (freea): Remove macro.
54411         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54412         instead of freea.
54413
54414 2004-01-20  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/eealloc.m4: New file, from GNU gettext.
54417
54418 2004-01-20  Bruno Haible  <bruno@clisp.org>
54419
54420         * m4/allocsa.m4: New file, from GNU gettext.
54421
54422 2004-01-20  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/xallocsa.h: New file, from GNU gettext.
54425         * lib/xallocsa.c: New file, from GNU gettext.
54426
54427 2004-01-20  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54430
54431 2004-01-20  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54434         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54435         specially.
54436
54437 2004-01-20  Bruno Haible  <bruno@clisp.org>
54438
54439         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54440         patch.
54441
54442 2004-01-20  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54445
54446 2004-01-20  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/eealloc.h: New file.
54449
54450 2004-01-20  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/binary-io.h: Avoid warnings on Cygwin.
54453
54454 2004-01-20  Bruno Haible  <bruno@clisp.org>
54455
54456         * lib/allocsa.h: New file, from GNU gettext.
54457         * lib/allocsa.c: New file, from GNU gettext.
54458
54459 2004-01-18  Karl Berry  <karl@gnu.org>
54460
54461         * doc/gpl.texi, doc/lgpl.texi: new files.
54462
54463 2004-01-18  Karl Berry  <karl@gnu.org>
54464
54465         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54466         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54467
54468 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54469
54470         Merge from coreutils.
54471
54472         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54473         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54474         (gl_DEFAULT_POSIX2_VERSION): Move
54475         the documentation from 'configure' into 'config.hin',
54476         so that 'configure --help' isn't burdened by it and
54477         we don't have to worry about its formatting there.
54478         Reword the documentation so that it's more succinct
54479         and can be run together into a single paragraph.
54480         * m4/same.m4 (gl_SAME): Check for pathconf.
54481
54482 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54483
54484         Merge from coreutils.
54485
54486         * lib/posixver.c: Include posixver.h.
54487
54488         * lib/same.c: Include <stdbool.h>, <limits.h>.
54489         (_POSIX_NAME_MAX): Define if not defined.
54490         (MIN): New macro.
54491         (same_name): If file names are silently truncated, report
54492         that the file names are the same if they are the same after
54493         the silent truncation.
54494
54495         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54496         conversion function.
54497         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54498         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54499         longer needed.
54500
54501 2004-01-15  Jim Meyering  <jim@meyering.net>
54502
54503         Merge from coreutils.
54504
54505         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54506         if no library is required.
54507         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54508         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54509         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54510         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54511         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54512         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54513         value, $ac_cv_search_crypt, if it's "none required".
54514         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54515         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54516         not gl_FUNC_GETLOADAVG.
54517         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54518         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54519
54520 2004-01-15  Jim Meyering  <jim@meyering.net>
54521
54522         Merge from coreutils.
54523
54524         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54525         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54526         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54527
54528         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54529         optional configure-time default.
54530
54531         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54532
54533         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54534
54535 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54536
54537         Merge from coreutils.
54538
54539         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54540         value, $ac_cv_search_nanosleep, if it's "none required".
54541
54542 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54543
54544         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54545         with like-named macro in fnmatch.c.
54546         (EXT): Use an internal constant instead.
54547
54548         Merge fnmatch patches from glibc.
54549         * lib/fnmatch.c (mbsinit): Remove define.
54550         Add libc_hidden_ver (__fnmatch, fnmatch).
54551         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54552         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54553
54554 2004-01-14  Karl Berry  <karl@gnu.org>
54555
54556         * config/install-sh: update from automake.
54557
54558 2004-01-13  Karl Berry  <karl@gnu.org>
54559
54560         * config/install-sh: update from automake.
54561
54562 2004-01-09  Karl Berry  <karl@gnu.org>
54563
54564         * config/install-sh: update from automake.
54565
54566 2004-01-05  Karl Berry  <karl@gnu.org>
54567
54568         * config/config.{sub,guess}: update from config.
54569
54570 2003-12-31  Karl Berry  <karl@gnu.org>
54571
54572         * config/depcomp: update from automake.
54573
54574 2003-12-14  Karl Berry  <karl@gnu.org>
54575
54576         * lib/config.charset: update from gettext-runtime.
54577
54578 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54579
54580         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54581         Bug reported by Alfred M. Szmidt.
54582
54583 2003-12-03  Bruno Haible  <bruno@clisp.org>
54584
54585         * m4/gettext.m4: Upgrade from gettext-0.13.
54586         * m4/po.m4: Upgrade from gettext-0.13.
54587         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54588         * m4/intmax.m4: New file, from gettext-0.13.
54589         * m4/printf-posix.m4: New file, from gettext-0.13.
54590
54591 2003-11-29  Karl Berry  <karl@gnu.org>
54592
54593         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54594
54595 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54596             Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/printf-parse.h: Don't include sys/types.h.
54599         (ARG_NONE): New macro.
54600         (char_directive): Change type of *arg_index fields to size_t.
54601         * lib/printf-parse.c: Don't include sys/types.h.
54602         (SSIZE_MAX): Remove macro.
54603         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54604         Remove unnecessary overflow check.
54605         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54606         fields.
54607
54608 2003-11-25  Bruno Haible  <bruno@clisp.org>
54609
54610         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54611
54612 2003-11-25  Bruno Haible  <bruno@clisp.org>
54613
54614         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54615         gt_TYPE_SSIZE_T.
54616
54617 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54618
54619         * modules/alloca: Remove dependency on xalloc.
54620
54621 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54622
54623         * lib/alloca.c: Remove dependency on xalloc module.
54624         (xalloc_die): Remove.
54625         (memory_full) [!defined emacs]: New macro.
54626         [!defined emacs]: Don't include xalloc.h.
54627         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54628         address arithmetic overflows.  Change datatypes a bit to avoid
54629         unnecessary casts.
54630
54631 2003-11-22  Jim Meyering  <jim@meyering.net>
54632
54633         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54634         s/size/size_t/.
54635
54636 2003-11-21  Karl Berry  <karl@gnu.org>
54637
54638         * config/config.{sub,guess}: update from config.
54639
54640 2003-11-18  Karl Berry  <karl@gnu.org>
54641
54642         * config/config.{sub,guess}: update from config.
54643
54644         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54645
54646 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54647
54648         * README: Mention that S+T cannot overflow if S is the size of
54649         an existing object and T is sufficiently small.
54650
54651 2003-11-17  Jim Meyering  <jim@meyering.net>
54652
54653         On systems without utime and without a utimes function capable of
54654         dealing with a NULL struct utimbuf* argument, this utime replacement
54655         could -- in unusual circumstances -- leak a file descriptor.
54656         * lib/utime.c: Include <unistd.h> and <errno.h>.
54657         (utime_null): Be sure to close `fd' and to preserve errno.
54658         Reported by Geoff Collyer via Arnold Robbins.
54659
54660 2003-11-17  Bruno Haible  <bruno@clisp.org>
54661
54662         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54663         (Depends-on): Add xsize.
54664
54665 2003-11-17  Bruno Haible  <bruno@clisp.org>
54666
54667         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54668
54669 2003-11-17  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/vasnprintf.c (alloca): Remove fallback definition.
54672         (freea): Remove definition.
54673         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54674         Reported by Paul Eggert.
54675
54676 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54677             Bruno Haible  <bruno@clisp.org>
54678
54679         Protect against address arithmetic overflow.
54680         * lib/printf-args.h: Include stddef.h.
54681         (arguments): Change type of field 'count' to size_t.
54682         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54683         'unsigned int' where appropriate.
54684         * lib/printf-parse.h: Include sys/types.h.
54685         (char_directive): Change type of *arg_index fields to ssize_t.
54686         (char_directives): Change type of fields 'count', max_*_length to
54687         size_t.
54688         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54689         (SSIZE_MAX): Define fallback value.
54690         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54691         instead of 'int' where appropriate. Check a_allocated, d_allocated
54692         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54693         * lib/vasnprintf.c: Include xsize.h.
54694         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54695         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54696         overflow. Avoid wraparound when converting a width or precision from
54697         decimal to binary.
54698
54699 2003-11-16  Bruno Haible  <bruno@clisp.org>
54700
54701         Update from GNU gettext.
54702         * lib/printf-parse.c: Generalize to it can be compiled for wide
54703         strings.
54704         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54705         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54706         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54707         SNPRINTF): New macros.
54708         Don't include <alloca.h> if the file is used inside libintl.
54709         (local_wcslen): New function, for Solaris 2.5.1.
54710         (VASNPRINTF): Use it instead of wcslen.
54711
54712 2003-11-16  Bruno Haible  <bruno@clisp.org>
54713
54714         * lib/xsize.h (xmax): New function.
54715         (xsum, xsum3, xsum4): Declare as "pure" functions.
54716
54717 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54718
54719         * modules/xalloc (Files): Undo latest change, since xalloc.h
54720         no longer needs SIZE_MAX or PTRDIFF_MAX.
54721
54722 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54723
54724         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54725         gl_PTRDIFF_MAX.
54726
54727 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54728
54729         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54730         "return", to pacify some unknown compiler.  Problem reported
54731         by Joerg Schilling.
54732
54733 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54734
54735         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54736         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54737         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54738         heuristic is just as accurate as far as we know, and it removes a
54739         dependency on size_max.m4 and ptrdiff_max.m4.
54740
54741 2003-11-11  Bruno Haible  <bruno@clisp.org>
54742
54743         * modules/xsize (Files): Add m4/size_max.m4.
54744         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54745
54746 2003-11-11  Bruno Haible  <bruno@clisp.org>
54747
54748         * m4/size_max.m4: New file.
54749         * m4/ptrdiff_max.m4: New file.
54750         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54751         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54752         (gl_XALLOC): Invoke it.
54753
54754 2003-11-11  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54757         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54758         defined.
54759
54760 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54761
54762         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54763         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54764         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54765         From Bruno Haible.
54766         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54767         not (size_t) -1, since it's defined here.
54768
54769 2003-11-09  Karl Berry  <karl@gnu.org>
54770
54771         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54772
54773 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54774
54775         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54776         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54777         Reject sizes of exactly SIZE_MAX bytes.
54778         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54779         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54780
54781 2003-11-05  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54784         SIZE_MAX defined in <limits.h> on Solaris.
54785
54786 2003-11-04  Jim Meyering  <jim@meyering.net>
54787
54788         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54789         variable names, rather than @VAR@.
54790         * modules/poll: Likewise.
54791
54792 2003-11-04  Bruno Haible  <bruno@clisp.org>
54793
54794         * modules/xsize: New file.
54795         * modules/linebreak: Depend on xsize.
54796         * MODULES.html.sh (func_all_modules): Add xsize.
54797
54798 2003-11-04  Bruno Haible  <bruno@clisp.org>
54799
54800         * m4/xsize.m4: New file.
54801
54802 2003-11-04  Bruno Haible  <bruno@clisp.org>
54803
54804         * lib/xsize.h: New file.
54805         * lib/linebreak.c: Include xsize.h.
54806         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54807         argument for overflow.
54808         Suggested by Paul Eggert.
54809
54810 2003-11-03  Karl Berry  <karl@gnu.org>
54811
54812         * config/config.{guess,sub}: update from config.
54813
54814 2003-11-03  Jim Meyering  <jim@meyering.net>
54815
54816         * modules/userspec (lib_SOURCES): Add userspec.h.
54817         (Include): Add "userspec.h".
54818         Improve description.
54819
54820 2003-11-03  Jim Meyering  <jim@meyering.net>
54821
54822         * lib/userspec.c: Include "userspec.h".
54823         * lib/userspec.h: New file.
54824
54825 2003-11-03  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54828
54829 2003-11-03  Bruno Haible  <bruno@clisp.org>
54830
54831         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54832         available, to avoid (extremely rare) race condition.
54833         Suggested by Paul Eggert.
54834
54835 2003-11-02  Karl Berry  <karl@gnu.org>
54836
54837         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54838
54839 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54840
54841         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54842         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54843         (read_filesystem_list): Set and use me_type_malloced.
54844         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54845         whatever the type happens to be), for brevity and consistency.
54846         Check for size calculation overflow on Alphas running OSF/1.
54847
54848 2003-10-31  Jim Meyering  <jim@meyering.net>
54849
54850         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54851
54852         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54853
54854 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54855             Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54858         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54859
54860 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54861
54862         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54863         netbsd*-gnu*.  Suggested by Robert Millan.
54864
54865 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54866
54867         * modules/group-member: Depend on stdbool.
54868
54869 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54870
54871         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54872
54873 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54874
54875         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
54876         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
54877         after the 'gnu' in these cases.  This fixes some bugs in the
54878         previous change, and is based on suggestions by Robert Millan.
54879
54880 2003-10-29  Paul Eggert  <eggert@twinsun.com>
54881
54882         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54883         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
54884         no longer needed.
54885         * lib/quotearg.c (quotearg_n_options): Use it.
54886         * lib/group-member.c: Include <stdbool.h>.
54887         (free_group_info): Arg is now const *; don't free arg.
54888         (get_group_info): Now returns bool and accepts struct group_info *,
54889         rather than returning a malloc'ed struct group_info *.
54890         All uses changed.  Check for overflow in internal size calculation.
54891
54892         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54893         rather than xmalloc/xrealloc.
54894         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54895         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
54896         conformance bug: the old code used a pointer after freeing the
54897         storage that it addressed.
54898         * lib/hash.c (hash_initialize): Simplify the code by using
54899         xalloc_oversized rather than doing it by hand.
54900         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54901         the buffer preserved.  Use free and xmalloc instead.
54902         * lib/quotearg.c (quotearg_n_options): Likewise.
54903         Use a simpler test for size overflow.  Don't use xalloc_oversized
54904         because unsigned int might be wider than size_t (!); this suggests
54905         that we should switch from unsigned int to size_t for slot numbers.
54906
54907 2003-10-28  Paul Eggert  <eggert@twinsun.com>
54908
54909         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54910         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
54911         NetBSD kernels.  Requested by Richard Stallman.
54912
54913 2003-10-27  Paul Eggert  <eggert@twinsun.com>
54914
54915         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54916         to allocate the returned structure.  Do not allocate a subarray,
54917         as x2nrealloc will do that.
54918         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54919         instead of xnrealloc.
54920         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54921
54922 2003-10-27  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/stdbool_.h: Better support for BeOS.
54925
54926 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54927
54928         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54929         now uses inline.
54930
54931 2003-10-26  Paul Eggert  <eggert@twinsun.com>
54932
54933         * lib/xalloc.h (xalloc_oversized): New static inline function, for
54934         callers that want to do their own size-overflow checking.  Include
54935         <stdbool.h>, since xalloc_oversized returns bool.
54936         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
54937         to use xalloc_oversized.
54938
54939         Add two functions x2realloc, x2nrealloc, for programs that grow
54940         arrays dynamically by doubling their sizes.
54941         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54942         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54943         New functions.
54944
54945         Port to C99 semantics for 'inline' of external functions.
54946         Bug reported by Bruno Haible.
54947         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54948         with the old contents of xnmalloc.
54949         (xnmalloc, xmalloc): Use it.
54950         (xnrealloc_inline): New static inline function,
54951         with the old contents of xnrealloc.
54952         (xnrealloc, xrealloc): Use it.
54953
54954         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54955         that.
54956
54957 2003-10-26  Karl Berry  <karl@gnu.org>
54958
54959         * config/srclist.txt (COPYING.DOC): no longer available from
54960         /gd/gnuorg; don't know where the ultimate source is.
54961
54962 2003-10-25  Paul Eggert  <eggert@twinsun.com>
54963
54964         Fix several address-calculation bugs in the hash modules,
54965         plus some minor code cleanup.
54966
54967         * lib/hash.h: Include <stdbool.h>, for bool.
54968         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54969         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54970         hash_get_n_entries, hash_get_max_bucket_length,
54971         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54972         hash_rehash): Use size_t rather than unsigned.
54973         * lib/hash.c (struct hash_table, hash_get_n_buckets,
54974         hash_get_n_buckets_used, hash_get_n_entries,
54975         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54976         hash_get_entries, hash_do_for_each, hash_string, is_prime,
54977         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54978         Likewise.
54979         (SIZE_MAX): Define if not defined.
54980         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54981         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54982         hash_print):
54983         Use const * when possible.
54984         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54985         (check_tuning): Fix bug: if tuning parameters were very close to
54986         0 or 1, rounding errors could have caused subscript violations.
54987         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54988         (hash_initialize): Add 'fail:' label
54989         to free table and return NULL, and use it to simplify code.
54990         Use calloc rather than clearing the storage ourself.
54991         (hash_initialize, hash_rehash): Check for arithmetic overflow in
54992         buffer size calculations.
54993         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54994         Include <stddef.h>, for size_t.
54995         * lib/hash-pjw.c (hash_pjw): Likewise.
54996         Switch to method described by Bruno Haible.
54997         Include <limits.h>, for CHAR_BIT.
54998         (SIZE_BITS): New macro.
54999
55000 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55001
55002         * m4/getline.m4 (AM_FUNC_GETLINE):
55003         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55004         hosts.  Problem reported by Derek Robert Price in
55005         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55006         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55007         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55008
55009 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55010
55011         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55012         ceiling the allocation at NMAX bytes rather than silently
55013         discarding input bytes before NMAX is reached.  This makes
55014         a difference only if NMAX exceeds SIZE_MAX / 2.
55015
55016         * lib/obstack.c: Merge from glibc.
55017         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55018         Add libc_hidden_def (_obstack_newchunk).
55019         (_obstack_free) [! defined _LIBC]: Remove.
55020         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55021         a clone of the function body.
55022         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55023         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55024
55025         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55026         glibc.
55027         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55028         arg to memcpy.
55029
55030         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55031         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55032         Don't use lvalue casts, as GCC plans to remove support for them
55033         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55034         was also present in the non-GCC version, indicating that this
55035         code had always been buggy and had never been widely used.
55036         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55037         Use the fast variant of each macro, rather than copying the
55038         definiens of the fast variant; that way, we'll be more likely to
55039         catch future bugs in the fast variants.
55040
55041 2003-10-20  Bruno Haible  <bruno@clisp.org>
55042
55043         * modules/wait-process: New file.
55044         * MODULES.html.sh (func_all_modules): Add wait-process.
55045
55046 2003-10-20  Bruno Haible  <bruno@clisp.org>
55047
55048         * m4/wait-process.m4: New file.
55049
55050 2003-10-20  Bruno Haible  <bruno@clisp.org>
55051
55052         * lib/wait-process.h: New file, from GNU gettext.
55053         * lib/wait-process.c: New file, from GNU gettext.
55054
55055 2003-10-19  Jim Meyering  <jim@meyering.net>
55056
55057         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55058         HPUX 10.20.
55059
55060 2003-10-18  Karl Berry  <karl@gnu.org>
55061
55062         * config/config.guess: update from config.
55063
55064 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55065
55066         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55067         (getgroups): First arg is int, not size_t.
55068         Don't let 'free' mangle errno.
55069
55070 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55071
55072         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55073
55074 2003-10-16  Karl Berry  <karl@gnu.org>
55075
55076         * config/config.{guess,sub}: update from config.
55077
55078 2003-10-16  Jim Meyering  <jim@meyering.net>
55079
55080         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55081         memcpy.
55082
55083 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55084
55085         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55086         (SIZE_MAX): Remove.
55087         (new_exclude, add_exclude_file): Initial size no longer needs to
55088         be a power of 2.
55089         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55090         our own address arithmetic overflow checking.
55091
55092         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55093         (fnmatch): Do not alloca more than 2000 wide characters;
55094         instead, use malloc for large buffers.
55095         Check for address arithmetic overflow, and return -1
55096         with errno set to ENOMEM in that case.
55097         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55098         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55099         instead, return -1.  Check for address arithmetic overflow.
55100
55101 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55102
55103         Handle invalid suffixes and overflow independently, so that
55104         callers can treat them independently as needed.  Fix some bugs in
55105         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55106         suffix for a human-readable blocksize.  The major caller-visible
55107         change is the addition of a new
55108         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55109         that both overflow and suffix chars were found.
55110
55111         * lib/human.c (humblock): Don't check separately for invalid suffix
55112         char; that is xstrtoumax's job (now that its bug is fixed).
55113         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55114         INTMAX_MAX]: New macros.
55115         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55116         TYPE_MAXIMUM): New macros.
55117         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55118         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55119         if overflow occurs, as it's what __strtol does and it's more useful
55120         in practice.
55121         (__xstrtol): If __strtol reports some error other than ERANGE,
55122         reflect it to the caller as LONGINT_INVALID.  If it reports
55123         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55124         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55125         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55126         value.
55127         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55128         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55129         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55130         [defined UINTMAX_MAX]: New macros.
55131
55132 2003-10-14  Bruno Haible  <bruno@clisp.org>
55133
55134         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55135
55136 2003-10-14  Bruno Haible  <bruno@clisp.org>
55137
55138         * m4/sig_atomic_t: New file, from GNU gettext.
55139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55140
55141 2003-10-14  Bruno Haible  <bruno@clisp.org>
55142
55143         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55144         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55145         Also use volatile where needed.
55146
55147 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55148
55149         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55150         Change maintainer from Bruno Haible to 'all'.
55151
55152 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55153
55154         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55155
55156 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55157
55158         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55159         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55160         and define in terms of the other primitives.
55161         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55162         (SIZE_MAX): Define if not already defined.
55163         (array_size_overflow): New function.
55164         (xalloc_die): Abort instead of exiting if 'error' returns.
55165         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55166         (xmalloc, xrealloc): Use them.
55167         (xcalloc): Check for address arithmetic overflow.
55168         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55169         a bit faster than strcpy.
55170
55171 2003-10-10  Simon Josefsson  <jas@extundo.com>
55172
55173         * modules/argp (Depends-on): Add restrict and strcase.
55174
55175 2003-10-10  Simon Josefsson  <jas@extundo.com>
55176
55177         * m4/argp.m4: Add AC_C_INLINE.
55178
55179 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55180
55181         Merge getpass from libc, plus a few fixes.
55182
55183         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55184         Include <stdbool.h>.
55185         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55186         __fsetlocking to empty.
55187         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55188         do include <bits/libc-lock.h>.
55189         Do not include <fcntl.h>; not needed.
55190         [_LIBC]: Include <wchar.h>.
55191         (NOTCANCEL_MODE): New macro.
55192         (flockfile, funlockfile) [_LIBC]: New macros.
55193         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55194         [!_LIBC]: New macros.
55195         (call_fclose): New function.
55196         (getpass): Use it.  Save tty stream separately; this simplifies the
55197         code and makes it more reliable if stdin happens to equal stdout.
55198         Invoke __fsetlocking on tty.
55199         Handle thread cancellation if needed.
55200         Namespace cleanup (use __tcgetattr, __getline).
55201         Use bool for Booleans.
55202         [USE_IN_LIBIO]: Handle wide streams.
55203         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55204         stream might go where.
55205
55206         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55207         doesn't have to include <stdio.h> before us.
55208         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55209         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55210         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55211         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55212         if not declared, so that we can use getpass.c code from libc without
55213         rewriting it.
55214         (flockfile, ftrylockfile, funlockfile): New macros.
55215
55216 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55217
55218         * modules/getpass: Depend on stdbool.
55219
55220 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55221
55222         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55223
55224 2003-10-07  Karl Berry  <karl@gnu.org>
55225
55226         * config/config.{guess,sub}: update from config.
55227
55228 2003-10-06  Jim Meyering  <jim@meyering.net>
55229             Bruno Haible  <bruno@clisp.org>
55230
55231         This lets translators provide better translations for the
55232         "Written by ..." part of --version output.
55233         * lib/version-etc.h: Include stdarg.h.
55234         (version_etc_copyright): Declare as readonly.
55235         (version_etc): Make this function variadic with a NULL-terminated list
55236         of author name strings.
55237         (version_etc_va): New declaration.
55238         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55239         (version_etc_copyright): Declare as readonly.
55240         (version_etc_va): New function. Provide a different translatable string
55241         for each possible number of authors < 10. Abbreviate when there are 10
55242         authors or more.
55243         (version_etc): Make this function variadic. Call version_etc_va.
55244         Suggestion from Gary V. Vaughan.
55245
55246         * lib/long-options.h (parse_long_options): Change prototype: the
55247         authors string is moved to the end and becomes variadic.
55248         * lib/long-options.c: Include stdarg.h.
55249         (parse_long_options): Make this function variadic, too.
55250         Call version_etc_va, not version_etc.
55251
55252 2003-10-06  Bruno Haible  <bruno@clisp.org>
55253
55254         * modules/version-etc-2: Remove file.
55255         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55256
55257 2003-10-06  Bruno Haible  <bruno@clisp.org>
55258
55259         * modules/fatal-signal: New file.
55260         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55261
55262 2003-10-06  Bruno Haible  <bruno@clisp.org>
55263
55264         * m4/fatal-signal.m4: New file.
55265         * m4/signalblocking.m4: New file, from GNU gettext.
55266
55267 2003-10-06  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/version-etc-2.h: Remove file.
55270         * lib/version-etc-2.c: Remove file.
55271
55272 2003-10-06  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/fatal-signal.h: New file, from GNU gettext.
55275         * lib/fatal-signal.c: New file, from GNU gettext.
55276
55277 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55278
55279         * README: Rework advice for preventing empty .o files.
55280         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55281         not <sys/types.h>.
55282
55283 2003-10-04  Karl Berry  <karl@gnu.org>
55284
55285         * lib/argp*: update from libc.
55286
55287 2003-10-04  Karl Berry  <karl@gnu.org>
55288
55289         * config/config.{guess,sub}: update from config.
55290
55291 2003-10-02  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/lchown (Include): Add lchown.h.
55294         * modules/time_r (Include): Use "..." syntax.
55295         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55296
55297 2003-10-01  Simon Josefsson  <jas@extundo.com>
55298
55299         * MODULES.html.sh (func_all_modules): Move gethostname from section
55300         'based on' to section 'lacking' POSIX:2001.
55301
55302 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55303
55304         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55305         to output mode on the same stream.
55306
55307 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55308
55309         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55310         Fix arg typo in previous patch.
55311
55312 2003-09-28  Jim Meyering  <jim@meyering.net>
55313
55314         * lib/error.c: Correct cpp indentation.
55315
55316 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55317
55318         * modules/free: New file.
55319
55320 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55321
55322         * m4/free.m4: New file.
55323
55324 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55325
55326         * lib/minmax.h (MIN, MAX)
55327         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55328         Omit the special code that used __typeof__, since we worry that
55329         it could be more trouble than it's worth.  See:
55330         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55331         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55332
55333         * lib/free.c: New file.
55334
55335 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55336
55337         Trivial fixes to Makefile.am parts of module listings.
55338         * modules/strstr: Append strstr.h to lib_SOURCES.
55339         * modules/strcase: Likewise, for strcase.h.
55340
55341 2003-09-27  Karl Berry  <karl@gnu.org>
55342
55343         * config/mkinstalldirs: update from automake.
55344
55345 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55346
55347         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55348         (error_tail): Do not loop, reallocating temporary buffer, since
55349         the output cannot contain more wide characters than the input
55350         contains bytes, the size must be big enough already.  This avoids
55351         one potential size overflow calculation.  Check for size overflow
55352         when calculating temporary buffer size.  Free temporary buffer
55353         when done, if it was allocated with malloc; this plugs a memory
55354         leak.  Remove casts from void * to pointers, that are no longer
55355         needed now that we're assuming C89 or better.
55356
55357         Merge error changes from glibc.
55358
55359         * lib/error.c, error.h: Update copyright notice header to match glibc.
55360         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55361         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55362         Disable cancellation while printing error.
55363         * lib/error.h: Prepend __ to parameter names.
55364
55365 2003-09-26  Jim Meyering  <jim@meyering.net>
55366
55367         * lib/error.c (error_tail): Move some declarations
55368         into inner scope where the local variables are used.
55369
55370 2003-09-26  Bruno Haible  <bruno@clisp.org>
55371
55372         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55373         stpncpy().
55374         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55375
55376 2003-09-26  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55379         (stpncpy): Define as alias for gnu_stpncpy.
55380         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55381
55382 2003-09-25  Simon Josefsson  <jas@extundo.com>
55383
55384         * lib/xgetdomainname.h: New file.
55385         * lib/xgetdomainname.c: New file.
55386
55387 2003-09-25  Simon Josefsson  <jas@extundo.com>
55388             Bruno Haible  <bruno@clisp.org>
55389
55390         * modules/getdomainname: New file.
55391         * modules/xgetdomainname: New file.
55392         * MODULES.html.sh (func_all_modules): Add getdomainname,
55393         xgetdomainname.
55394
55395 2003-09-25  Simon Josefsson  <jas@extundo.com>
55396             Bruno Haible  <bruno@clisp.org>
55397
55398         * m4/getdomainname.m4: New file.
55399
55400 2003-09-25  Simon Josefsson  <jas@extundo.com>
55401             Bruno Haible  <bruno@clisp.org>
55402
55403         * lib/getdomainname.h: New file.
55404         * lib/getdomainname.c: New file.
55405
55406 2003-09-25  Karl Berry  <karl@gnu.org>
55407
55408         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55409
55410 2003-09-25  Karl Berry  <karl@gnu.org>
55411
55412         * config/install-sh: update from automake.
55413
55414 2003-09-25  Bruno Haible  <bruno@clisp.org>
55415
55416         * modules/version-etc-2: New file, from modules/version-etc with
55417         modifications.
55418         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55419
55420 2003-09-25  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55423         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55424
55425 2003-09-24  Simon Josefsson  <jas@extundo.com>
55426
55427         * modules/xgethostname: Add xgethostname.h.
55428
55429 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55430
55431         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55432         the buffer associated with the argument.  Bug reported by
55433         Simon Josefsson.
55434
55435 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55436
55437         * README: Document assumptions that 'int' is at least 32 bits
55438         wide, that integer arithmetic is 2's complement without overflow,
55439         that there are no holes in integer values, that adding sizes of
55440         two nonoverlapping objects can't overflow, and that all-bits-zero
55441         yields scalar zero.  Fix spelling and capitalization typos.
55442
55443 2003-09-19  Karl Berry  <karl@gnu.org>
55444
55445         * lib/argp.h: update from libc.
55446
55447 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55448
55449         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55450         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55451         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55452
55453 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55454
55455         * gnulib-tool: Use "test -h", not "test -L", for portability
55456         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55457         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55458         (sed_extract_prog): Issue s commands one-by-one, rather than
55459         using \| in one s command.
55460
55461 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55462
55463         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55464         input error, instead of returning NULL the next time we are called
55465         (and therefore losing track of errno).
55466
55467 2003-09-16  Bruno Haible  <bruno@clisp.org>
55468
55469         * gnulib-tool (func_create_testdir): Warn about duplicated
55470         dependencies.
55471
55472 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55473
55474         * modules/argmatch, modules/fatal, modules/obstack,
55475         modules/xalloc, modules/xgethostname: Sort dependencies by
55476         importance, not alphabetically.
55477
55478 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55479
55480         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55481         fails, so that the caller gets the proper errno.
55482
55483         * lib/readutmp.c (read_utmp): Likewise.
55484         Check for fstat error.  Close stream and free storage
55485         when failing.
55486
55487 2003-09-14  Karl Berry  <karl@gnu.org>
55488
55489         * config/srclist.txt (strdup.c): disable for c89 changes.
55490
55491 2003-09-14  Jim Meyering  <jim@meyering.net>
55492
55493         * lib/getloadavg.c: Correct cpp indentation.
55494         * lib/strdup.c: Likewise.
55495         * lib/vasnprintf.c: Likewise.
55496
55497 2003-09-14  Bruno Haible  <bruno@clisp.org>
55498
55499         * modules/fwriteerror: New file.
55500         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55501
55502 2003-09-14  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/fwriteerror.h: New file.
55505         * lib/fwriteerror.c: New file.
55506
55507 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55508
55509         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55510         modules/xgethostname, modules/xalloc: Depend on exit.
55511
55512 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55513
55514         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55515
55516         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55517         and AC_MINIX, too, so that their extensions are available.
55518
55519         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55520         This macro has been superseded by gl_BACKUPFILE.
55521
55522         More patches to assume C89 or better.
55523
55524         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55525
55526         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55527         unconditionally.
55528         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55529         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55530         Include <string.h>, <stdlib.h> unconditionally.
55531         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55532         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55533         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55534         headers or for string.h.
55535         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55536         or strtoul.
55537
55538         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55539         headers.
55540         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55541         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55542         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55543         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55544         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55545         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55546         memcpy, memset.
55547         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55548         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55549         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55550         strtol.
55551         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55552         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55553         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55554         strtoul.
55555
55556 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55557
55558         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55559         * lib/obstack.c [!defined _LIBC]: Likewise.
55560         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55561         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55562         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55563
55564         More changes to assume C89 or better.
55565
55566         * lib/error.c (error_tail): Assume vprintf.
55567
55568         * lib/argmatch.c (getenv): Remove decl.
55569         * lib/progreloc.c (get_full_program_name): Define via prototype.
55570         * lib/setenv.c (clearenv): Likewise.
55571         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55572         needed.
55573         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55574         (malloc, memcpy): Remove decls.
55575         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55576         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55577         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55578         (memcpy): Remove macro.
55579         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55580         (__P): Remove.  All uses removed.
55581         (PTR): Remove.  All uses changed to void *.
55582         (CHAR_BIT, NULL): Remove.
55583         (spaces, zeros, memset_space, memset_zero)
55584         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55585         Remove.
55586         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55587         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55588         Define with prototype.
55589         Remove now-unnecessary prototype decl.
55590         (extra_args_spec): Assume ANSI C.  All uses changed.
55591         (extra_args_spec_iso): Remove.
55592         (my_strftime, emacs_strftimeu): Define via prototype.
55593         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55594         unconditionally.
55595         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55596         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55597         (strtoul, strtol): Remove decls.
55598         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55599         LONG_MAX): Remove.
55600         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55601         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55602         (LOCALE_PARAM_PROTO): New macro.
55603         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55604         (INTERNAL (strtol), strtol): Define with a prototype.
55605         (PARAMS): Remove.  All uses removed.
55606         * lib/tempname.c: Include <string.h> unconditionally.
55607         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55608         * lib/xgethostname.c (main): Define with a prototype.
55609         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55610         Include <stdlib.h> unconditionally.
55611         (calloc, malloc, realloc, free): Remove decls.
55612         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55613         Include <stdlib.h> unconditionally.  Sort include file names.
55614         (strtod): Remove.
55615         (xstrtod): Define with a prototype.
55616         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55617         (strtol, strtoul): Remove decls.
55618
55619 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55620
55621         More patches to assume C89 or better.
55622         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55623         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55624         string.h, memchr, STDC_HEADERS.
55625
55626 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55627
55628         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55629         Include <stdlib.h>, <string.h> unconditionally.
55630         Remove now-unnecessary cast to char *.
55631         * lib/strnlen.c: Include <string.h> unconditionally.
55632         * lib/yesno.c (yesno): Define with a prototype.
55633
55634 2003-09-11  Bruno Haible  <bruno@clisp.org>
55635
55636         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55637
55638 2003-09-10  Jim Meyering  <jim@meyering.net>
55639
55640         * lib/error.c: Correct indentation of cpp directives.
55641
55642 2003-09-10  Bruno Haible  <bruno@clisp.org>
55643
55644         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55645         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55646         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55647         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55648         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55649         <stdlib.h> and <string.h> checks.
55650         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55651         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55652
55653 2003-09-10  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/strcspn.c: Include <string.h> unconditionally.
55656         * lib/strpbrk.c: Include <string.h> unconditionally.
55657         * lib/strstr.c: Include <string.h> unconditionally.
55658         * lib/unicodeio.c: Include <string.h> unconditionally.
55659         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55660         * lib/unsetenv.c: Likewise.
55661         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55662         * lib/yesno.c: Include <stdlib.h> unconditionally.
55663         (rpmatch): Add prototype.
55664
55665 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55666
55667         More patches to assume C89 or better.
55668         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55669         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55670         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55671         or for string.h.
55672         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55673         stdlib.h.
55674         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55675         C headers.
55676         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55677         string.h.
55678         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55679         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55680         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55681         or for string.h.
55682         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55683         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55684         C headers.
55685         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55686         memcpy.
55687         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55688         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55689         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55690         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55691         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55692         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55693         string.h, free.
55694         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55695         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55696         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55697         C headers, or for string.h.
55698         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55699         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55700         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55701         headers, memory.h, stdlib.h, string.h, strings.h.
55702         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55703         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55704         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55705         strchr.
55706         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55707         headers, memory.h, string.h.
55708         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55709         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55710         free.
55711         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55712         headers.
55713         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55714         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55715         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55716         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55717         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55718
55719 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55720
55721         More K&R removal.
55722
55723         * lib/acosl.c (main): Use a prototype.
55724         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55725         tanl.c: Likewise.
55726
55727         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55728
55729         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55730         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55731         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55732         with a prototype.
55733         * lib/getopt.c (const): Remove macro.
55734         Include <string.h> unconditionally.
55735         (my_index): Remove; all uses changed to strchr.
55736         (strlen): Remove decl.
55737         (exchange): Remove forward decl; no longer needed.
55738         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55739         Define with prototype.
55740         * lib/getopt1.c (const): Remove macro.
55741         (getopt_long, getopt_long_only, main): Define with prototype.
55742
55743         * lib/getugroups.c: Include <string.h> unconditionally.
55744
55745         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55746         (getusershell, setusershell, endusershell, readname, main):
55747         Define with prototypes.
55748
55749         * lib/group-member.c: Include group-member.h first.
55750         Include <stdlib.h> unconditionally.
55751
55752         * lib/hard-locale.c: Include hard-locale.h first.
55753         Include <stdlib.h>, <string.h> unconditionally.
55754
55755         * lib/hash.c (free, malloc): Remove decls.
55756         Include <stdlib.h> unconditionally.
55757
55758         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55759         (getenv): Do not declare.
55760
55761         * lib/idcache.c: Include <string.h> unconditionally.
55762
55763         * lib/long-options.c: Include long-options.h first, to test interface.
55764         Include <stdlib.h> unconditionally.
55765
55766         * lib/makepath.c: Include makepath.h first, to test interface.
55767         Include <stdlib.h> and <string.h> unconditionally.
55768
55769         * lib/linebuffer.c: Include <stdlib.h>.
55770         (free): Remove decl.
55771
55772         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55773         stddef.h. rpl_malloc returns void *, not char *.
55774         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55775         prototype.
55776
55777         * lib/md5.h: Include <limits.h> unconditionally.
55778         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55779         (__P): Remove; all uses removed.
55780         * lib/md5.c: Include "md5.h" first.
55781         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55782         md5_buffer, md5_process_bytes, md5_process_block):
55783         Define with prototypes.
55784         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55785         * lib/sha.c: Include "sha.h" first.
55786         Include <stdlib.h>, <string.h> unconditionally.
55787
55788         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55789         * lib/memcmp.c (__ptr_t): Likewise.
55790         * lib/memrchr.c (__ptr_t): Likewise.
55791         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55792         Include <string.h> unconditionally.
55793         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55794         * lib/memchr.c: Include <stdlib.h> unconditionally.
55795         * lib/memchr.c (LONG_MAX): Remove.
55796         * lib/memrchr.c (LONG_MAX): Likewise.
55797         * lib/memchr.c (__memchr): Define via a prototype.
55798         * lib/memrchr.c (__memrchr): Likewise.
55799         * lib/memcmp.c (__P): Remove, and remove all uses.
55800         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55801         Remove forward decls; no longer needed.
55802         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55803         Use types required by C89 in prototype.
55804
55805         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55806         * lib/savedir.c: Likewise.
55807         * lib/mkdir.c (free): Remove decl.
55808         * lib/rmdir.c (rmdir): Define with a prototype.
55809         * lib/savedir.c: Include savedir.h first, to test interface.
55810
55811         * lib/mktime.c (STDC_HEADERS): Remove.
55812         Include <stdlib.h>, <string.h> unconditionally.
55813
55814         * lib/modechange.c: Include <stdlib.h> unconditionally.
55815         (malloc): Remove decl.
55816
55817         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55818         (free): Remove decl.
55819
55820         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55821         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55822         (This type really should be intptr_t, but that's a C99ism.)
55823         (_obstack_memcpy): Remove: all uses changed to memcpy.
55824         Include <string.h> unconditionally.
55825         (struct obstack): Assume __STDC__ for types of members
55826         chunkfun, freefun, extra_arg.
55827         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55828         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55829         obstack_begin, obstack_specify_allocation,
55830         obstack_specify_allocation_with_arg, obstack_chunkfun,
55831         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55832         Remove unprototyped decls and the macros that use them.
55833         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55834         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55835         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55836         (defined __STDC__ && __STDC__)]:
55837         Remove nonprototyped code.
55838         Include <stdlib.h> unconditionally.
55839         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55840         _obstack_allocated_p, _obstack_free, obstack_free,
55841         _obstack_memory_used, print_and_abort):
55842         Define using prototypes.
55843         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55844         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55845         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55846         obstack_next_free, obstack_object_size, obstack_room) [0]:
55847         Remove unused, unprototyped code.
55848
55849         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55850
55851         * lib/physmem.c (physmem_total, physmem_available, main): Define
55852         with prototypes.
55853
55854         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55855         (main): Define with a prototype.
55856
55857         * lib/posixver.c (getenv): Remove decl.
55858
55859         * lib/putenv.c (malloc): Returns void *, not char *.
55860         Include <string.h> unconditionally.
55861         (strchr, memcpy, NULL): Do not define.
55862
55863         * lib/readtokens.c: Include readtokens.h first, to test interface.
55864         Include <stdlib.h>, <string.h> unconditionally.
55865         (init_tokenbuffer): Define with a prototype.
55866
55867         * lib/regex.c (PARAMS): Remove.  All uses removed.
55868         All uses of _RE_ARGS removed, too.
55869         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55870         unconditionally.
55871         (bzero): Assume memset exists.
55872         (memcmp, memcpy, NULL): Remove.
55873         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55874         char, or assignments to local vars of type signed char.
55875         (init_syntax_once, PREFIX(extract_number_and_incr),
55876         PREFIX(print_partial_compiled_pattern),
55877         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55878         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55879         PREFIX(regex_grow_registers), PREFIX(regex_compile),
55880         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55881         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55882         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55883         wcs_compile_range, byte_compile_range, truncate_wchar,
55884         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55885         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55886         count_mbs_length, wcs_re_match_2_internal,
55887         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55888         PREFIX(alt_match_null_string_p),
55889         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55890         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55891         regfree, PREFIX(extract_number)): Define with prototype.  Remove
55892         now-unnecessary declaration, if any.
55893         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55894         regcomp, regexec):
55895         Remove now-unnecessary casts among pointer types.
55896         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
55897
55898         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55899         (free): Remove decl.
55900
55901         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55902
55903         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55904         (free): Remove decl.
55905
55906         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55907         * lib/xgetcwd.c: Likewise.
55908
55909         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55910         (free): Remove decl.
55911
55912         * lib/strchrnul.c (strchrnul): Define with a prototype.
55913         Fix bug: c_in was not converted to char before searching.
55914
55915         The following changes are not K&R related:
55916
55917         * lib/group-member.h: Include <sys/types.h>, so that this file is
55918         self-contained.
55919         * lib/makepath.h: Likewise.
55920
55921         * lib/getusershell.c (readname, default_index, line_size, readname):
55922         Use size_t, not int, for sizes.
55923         (readname): If the size overflows, report an error instead of
55924         looping forever.
55925
55926 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55927
55928         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55929         libc.
55930
55931 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55932
55933         * README: New section: portability guidelines.
55934
55935 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55936
55937         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55938         C89 spec.
55939
55940 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
55941
55942         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55943
55944 2003-09-08  Paul Eggert  <eggert@twinsun.com>
55945
55946         Assume C89 or better; remove K&R cruft.
55947         A few of these changes were first proposed by Derek Robert Price
55948         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55949
55950         * lib/addext.c: Include <string.h> unconditionally.
55951         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55952         Don't declare getenv or malloc.
55953
55954         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55955         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55956         (NULL): Remove.
55957         (find_stack_direction, alloca): Use prototypes.
55958
55959         * lib/atexit.c (atexit): Define using a prototype.
55960
55961         * lib/basename.c, dirname.c, stripslash.c:
55962         Include <string.h> unconditionally.
55963
55964         * lib/bcopy.c: Include <stddef.h>.
55965         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55966
55967         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55968
55969         * lib/error.h (error, error_at_line, error_print_progname)
55970         [! (defined (__STDC__) && __STDC__)]: Remove decls.
55971         * lib/error.c: Include error.h first, to check interface.
55972         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55973         (VA_START): Remove; all uses changeed to va_start.
55974         (exit, strerror): Remove decls.
55975         (error_print_progname): Prototype uncondionally.
55976         Don't include <errno.h>; no longer needed.
55977         (private_strerror): Remove.
55978         (error_tail): Always define.
55979         (error, error_at_line): Assume C89 or better; always use prototypes.
55980         * lib/fatal.c: Include "fatal.h" first, to test interface.
55981         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55982         (VA_START): Remove; all uses changed to va_start.
55983         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55984         this case.
55985         (exit): Remove decl.
55986         (fatal): Prototype unconditionally.  Assume va_start works.
55987         Abort at end, to pacify gcc.
55988
55989         * lib/euidaccess.c (main): Define with a prototype.
55990
55991         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55992
55993         * lib/exitfail.c: Include <stdlib.h> unconditionally.
55994
55995         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
55996         prototypes.
55997         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55998         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55999         (getenv): Remove decl.
56000         (fnmatch): Define using a prototype.
56001         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56002         (FCT): Define using a prototype.
56003
56004         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56005
56006         * lib/gethostname.c: Include <stddef.h>.
56007         (gethostname): Define with prototype.  Length is size_t, not int.
56008
56009 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56010
56011         Assume C89 or better; remove K&R cruft.
56012         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56013         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56014         string.h, getenv, malloc.
56015         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56016         headers.
56017         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56018         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56019         do not check for strerror.
56020         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56021         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56022         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56023         do not check for doprnt or vprintf.
56024         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56025         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56026
56027 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56028
56029         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56030         getversion.c should have been removed then, but was accidentally
56031         preserved.
56032
56033         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56034         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56035
56036 2003-09-08  Karl Berry  <karl@gnu.org>
56037
56038         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56039                 config, forget about prep.
56040
56041         * config/depcomp, missing: update from automake.
56042
56043 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56044
56045         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56046         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56047
56048 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56049
56050         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56051         copy_tm_result.  Bug reported by Simon Josefsson in
56052         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56053
56054 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56055
56056         * m4/time_r.m4: New file.
56057         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56058         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56059         is. Check for timegm declaration.
56060         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56061         Do not check for gmtime_r.
56062         Replace mktime if __mktime_internal does not exist and if mktime
56063         hasn't been replaced already.
56064
56065 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56066
56067         * lib/time_r.c, lib/time_r.h: New files.
56068
56069         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56070         __localtime_r.
56071         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56072         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56073
56074         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56075         __gmtime_r.
56076         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56077         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56078         Include <time_r.h>.
56079
56080         * lib/timegm.c: Switch to glibc implementation, with the following
56081         changes:
56082         [defined HAVE_CONFIG_H]: Include <config.h>.
56083         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56084         (__mktime_internal) [!defined _LIBC]: New decl.
56085         (__gmtime_r) [!defined _LIBC]: New macro and function.
56086         (timegm): Use a prototype, since gnulib assumes C89.
56087         Do not bother declaring tmp to be const, as it's not really usefu.
56088         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56089         (timegm): Declare only if HAVE_DECL_TIMEGM.
56090
56091 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56092
56093         * MODULES.html.sh (func_all_modules): Add time_r.
56094         * modules/time_r: New file.
56095         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56096         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56097
56098 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56099
56100         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56101         Bug reported by Lute Kamstra in
56102         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56103
56104         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56105         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56106         course with correspondingly smaller numbers for tomorrow and
56107         yesterday.  From Tadayoshi Funaba.  Originally installed into
56108         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56109         coreutils merge?).
56110
56111 2003-08-31  Simon Josefsson  <jas@extundo.com>
56112
56113         * modules/timegm: New file.
56114         * MODULES.html.sh (func_all_modules): Add timegm.
56115
56116 2003-08-31  Simon Josefsson  <jas@extundo.com>
56117
56118         * m4/timegm.m4: New file.
56119
56120 2003-08-31  Simon Josefsson  <jas@extundo.com>
56121
56122         * lib/timegm.h: New file.
56123         * lib/timegm.c: New file.  Based on
56124         wget-1.8.2/src/http.c:mktime_from_utc.
56125
56126 2003-08-31  Karl Berry  <karl@gnu.org>
56127
56128         * lib/argp.h: update from libc.
56129
56130 2003-08-28  Bruno Haible  <bruno@clisp.org>
56131
56132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56133         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56134         followed by '#define fnmatch fnmatch_posix' gives an error.
56135
56136 2003-08-28  Bruno Haible  <bruno@clisp.org>
56137
56138         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56139         warning on QNX, which defines O_BINARY to 000000.
56140
56141 2003-08-27  Jim Meyering  <jim@meyering.net>
56142
56143         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56144         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56145         would fail after 32.  Reported by Danny Levinson.  Details here:
56146         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56147
56148 2003-08-24  Bruno Haible  <bruno@clisp.org>
56149
56150         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56151         MSVC7 <stdio.h> is included later.
56152
56153 2003-08-22  Simon Josefsson  <jas@extundo.com>
56154
56155         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56156
56157 2003-08-20  Karl Berry  <karl@gnu.org>
56158
56159         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56160
56161 2003-08-20  Bruno Haible  <bruno@clisp.org>
56162
56163         * modules/progname: New file.
56164         * MODULES.html.sh (func_all_modules): Add progname.
56165
56166 2003-08-20  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/progname.h: New file, from GNU gettext.
56169         * lib/progname.c: New file, from GNU gettext.
56170         * lib/progreloc.c: New file, from GNU gettext.
56171
56172 2003-08-19  Jim Meyering  <jim@meyering.net>
56173
56174         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56175         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56176
56177 2003-08-19  Bruno Haible  <bruno@clisp.org>
56178
56179         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56180         more.
56181
56182 2003-08-19  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/xstrdup.c: Assume <string.h> exists.
56185
56186 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56187
56188         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56189         in makefile rules.
56190
56191 2003-08-18  Jim Meyering  <jim@meyering.net>
56192
56193         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56194         * m4/lib-ld.m4: Likewise.
56195
56196 2003-08-18  Jim Meyering  <jim@meyering.net>
56197
56198         * lib/setenv.h: Indent nested cpp directive.
56199         * lib/vasnprintf.c: Remove trailing blanks.
56200
56201 2003-08-17  Simon Josefsson  <jas@extundo.com>
56202
56203         * modules/xstrndup: New file.
56204         * MODULES.html.sh (func_all_modules): Add xstrndup.
56205
56206 2003-08-17  Simon Josefsson  <jas@extundo.com>
56207
56208         * modules/argp: Fix autoconf macro name. Add more dependencies.
56209
56210 2003-08-17  Simon Josefsson  <jas@extundo.com>
56211
56212         * m4/xstrndup.m4: New file.
56213
56214 2003-08-17  Simon Josefsson  <jas@extundo.com>
56215
56216         * m4/argp.m4: New file.
56217
56218 2003-08-17  Simon Josefsson  <jas@extundo.com>
56219             Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/xstrndup.h: New file.
56222         * lib/xstrndup.c: New file.
56223
56224 2003-08-17  Bruno Haible  <bruno@clisp.org>
56225
56226         * modules/strndup (Files, Include): Add lib/strndup.h.
56227
56228 2003-08-17  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/euidaccess (Files): Add lib/euidaccess.h.
56231
56232 2003-08-17  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/strndup.h: New file.
56235
56236 2003-08-17  Bruno Haible  <bruno@clisp.org>
56237
56238         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56239         like AC_GNU_SOURCE.
56240         * modules/extensions (configure.ac): Comment out the invocation of
56241         gl_USE_SYSTEM_EXTENSIONS.
56242
56243 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56244
56245         Merges from coreutils, etc.
56246         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56247         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56248         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56249         fixing a typo.
56250         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56251         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56252
56253 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56254
56255         Document merge from coreutils.
56256         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56257         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56258         * modules/utime: Add m4/utimes-null.m4.
56259
56260 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56261
56262         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56263         space, undoing this 2003-08-12 change:
56264         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56265
56266 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56267
56268         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56269         strtoul.c from libc, undoing this 2003-08-12 change:
56270         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56271
56272 2003-08-16  Jim Meyering  <jim@meyering.net>
56273
56274         Merges from coreutils.
56275         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56276         prefix.  Adjust cache variables similarly.  Create 500 rather than
56277         just 300 files, to exercise bug on Darwin6.5, too.
56278         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56279         $missing_dir.
56280         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56281         AM_SYS_POSIX_TERMIOS.
56282         Reported by mkc@mathdogs.com.
56283         Also change use of $am_cv_sys_posix_termios
56284         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56285         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56286         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56287         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56288         in /proc/mounts until it finds one with matching device number.  This
56289         is unnecessary when the FILE argument *is* a mount point.  No stat call
56290         is necessary in that case.  So, disable the statvfs-testing code on
56291         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56292         as RedHat bug# 84846.
56293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56294         to 1MB, so as not to render systems with no stack size limit (e.g.,
56295         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56296         Include <unistd.h>.  On some systems,
56297         it is required for the definition of _SC_PAGESIZE.
56298
56299 2003-08-16  Jim Meyering  <jim@meyering.net>
56300
56301         Merge from coreutils.
56302         * lib/xstrtoimax.c: #else #if -> #elif.
56303         * lib/xstrtoumax.c: Likewise.
56304
56305 2003-08-16  Jim Meyering  <jim@meyering.net>
56306
56307         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56308         * m4/utimes.m4: Removed.
56309         * m4/utimes-null.m4: Renamed from utimes.m4.
56310
56311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56312         to 1MB, so as not to render systems with no stack size limit (e.g.,
56313         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56314         Include <unistd.h>.  On some systems,
56315         it is required for the definition of _SC_PAGESIZE.
56316
56317 2003-08-16  Jim Meyering  <jim@meyering.net>
56318         and Paul Eggert  <eggert@cs.ucla.edu>
56319
56320         Merges from coreutils, etc.
56321
56322         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56323         using the latest version from cvs.  This avoids problems with #line
56324         directives using a vendor (Sun) compiler.
56325         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56326         Don't set GETGROUPS_LIB here; now it's
56327         done via getgroups.m4's wrapper function.
56328         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56329         rather than just in sh-util/configure.in, so that the
56330         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56331         same.
56332         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56333         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56334         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56335         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56336         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56337         Remove code that is now done by the newly-required macros.
56338         Append $(EXEEXT) to DF_PROG.
56339         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56340         Do not invoke or require the following here,
56341         since prereq.m4 or some gnulib .m4 now does this for us:
56342         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56343         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56344         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56345         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56346         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56347         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56348         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56349         AC_FUNC_OBSTACK.
56350         Do not replace the following functions, as this is now the job
56351         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56352         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56353         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56354         atexit getpass, strdup, getpagesize.
56355         Replace 'raise'.
56356         Do not check for the following functions, as this is now the job
56357         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56358         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56359         setregid.
56360         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56361         Check for sys/sysctl.h.
56362         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56363         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56364         of checking for ssize_t ourselves.
56365
56366         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56367         Require every macro that gnulib/modules/* suggests for us.
56368         (jm_PREREQ_ADDEXT): New macro.
56369         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56370         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56371
56372         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56373         (gl_PHYSMEM): Use it.
56374         Also check for `table' function.
56375         Check for new headers and functions.
56376         Add check for sys/sysmp.h.
56377         With suggestions from Kaveh Ghazi.
56378         Ignore headers that are present but cannot be compiled.  This
56379         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56380         C 5.4.
56381
56382 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56383
56384         Document merge from coreutils.
56385         * modules/userspec: Depend on posixver.
56386         * modules/strftime: Depend on tzset.
56387
56388 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56389
56390         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56391         rather than tab, after '#' in shell-script copyright notices.
56392         Suggested by Bruno Haible.
56393
56394 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56395
56396         * config/srclist-update: Use three spaces, rather than tab, after '#'
56397         in shell-script copyright notices.  Suggested by Bruno Haible.
56398         Remove unnecessary parenthesization in regular expression.
56399
56400 2003-08-15  Jim Meyering  <jim@meyering.net>
56401
56402         Merge from coreutils.
56403         * lib/xgethostname.c: Include <stdlib.h>.
56404         (xghostname): Don't exit for anything other than memory-related
56405         failure; just return NULL.
56406         * lib/userspec.c: Include "posixver.h".
56407         (parse_user_spec): Accept `.' as a separator only
56408         in pre-POSIX-200112 mode.
56409         * lib/strtoimax.c: Use #elif rather than #else #if.
56410         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56411         Remove function, now that we can rely on a working tzset function.
56412         [!_LIBC]: Ensure that the required autoconf test has been run.
56413         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56414         Use underlying_strftime for %r.
56415         * lib/sha.c: Merge in some clean-up and optimization changes from
56416         glibc.
56417         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56418         Ensure that it is a multiple of 64.
56419         Rearrange loop exit tests so as to avoid performing an
56420         additional fread after encountering an error or EOF.
56421         * lib/realloc.c: Update copyright date.
56422
56423 2003-08-15  Jim Meyering  <jim@meyering.net>
56424         and Paul Eggert  <eggert@twinsun.com>
56425
56426         Merge from coreutils.
56427         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56428         member but strut utmpx does not.  Needed for AIX 4.3.3.
56429         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56430
56431 2003-08-15  Jim Meyering  <jim@meyering.net>
56432         and Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         Merges from coreutils, etc.
56435         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56436         Require gl_FUNC_TZSET_CLOBBER.
56437         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56438         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56439         members.
56440
56441 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56442
56443         Help the merge from coreutils.
56444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56445         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56446         * m4/tzset.m4: Use it too.
56447
56448 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56449
56450         * modules/tzset: New file.
56451
56452 2003-08-14  Jim Meyering  <jim@meyering.net>
56453
56454         Merges from coreutils.
56455         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56456         variable names, rather than @FNMATCH_H@.
56457         * modules/alloca: Likewise for $(ALLOCA_H).
56458
56459         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56460         the three copies of the literal target, `fnmatch.h'.
56461         * modules/alloca (alloca.h): Likewise.
56462
56463 2003-08-14  Jim Meyering  <jim@meyering.net>
56464
56465         Merge from coreutils.
56466         * m4/tzset.m4: New file.
56467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56468         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56469         otherwise, AIX 5.1 systems would end up using the latter.
56470         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56471         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56472         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56473         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56474
56475 2003-08-14  Jim Meyering  <jim@meyering.net>
56476
56477         Merge from coreutils.
56478         * lib/obstack.h: Whitespace changes.
56479         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56480         and xcalloc return values.
56481         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56482         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56483         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56484         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56485         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56486         error from mntctl.
56487         Use mntctl's return value to drive the entry-processing loop, since
56488         we can't rely on the value of the vmt_length member in the last
56489         entry.  On some systems doing so could result in exhausting
56490         virtual memory.  Based in part on a patch from Mike Jetzer.
56491
56492 2003-08-14  Jim Meyering  <jim@meyering.net>
56493         and Paul Eggert  <eggert@twinsun.com>
56494
56495         Merges from coreutils, plus other fixes.
56496         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56497         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56498         for credits and details.  Thanks to Kaveh Ghazi for helping
56499         to keep these files in sync.
56500         (ARRAY_SIZE): Define it.
56501         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56502         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56503         (memcasecmp): Don't assume size_t fits in unsigned int.
56504         Remove casts and duplicate code.
56505         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56506         (memcpy): Remove definition.
56507         Merge in some clean-up and optimization changes from glibc.
56508         [BLOCKSIZE]: Move definition to top of file.
56509         Ensure that it is a multiple of 64.
56510         Rearrange loop exit tests so as to avoid performing an
56511         additional fread after encountering an error or EOF.
56512         * lib/md5.h (md5_uintptr): Define.
56513         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56514         return to the initial working directory.  Preserve errno
56515         for caller.
56516         * lib/idcache.c: Include "xalloc.h".
56517         (xmalloc, xrealloc): Remove decls.
56518         (getuser): Remove casts no longer required in C89.
56519         * lib/human.c: Include stdio.h, for sprintf.
56520         * lib/group-member.c: Include "xalloc.h".
56521         (xmalloc, xrealloc): Remove decls.
56522         (get_group_info): Remove casts no longer required in C89.
56523         * lib/getusershell.c (readname): Remove casts no longer required in
56524         C89.
56525         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56526         * lib/getline.c: Whitespace fix, from coreutils.
56527
56528 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56529
56530         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56531         Check for isascii.
56532
56533         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56534         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56535         Undo previous (whitespace-only) change.
56536
56537 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56538
56539         * lib/exclude.c: Include <ctype.h>
56540         (IN_CTYPE_DOMAIN): New macro.
56541         (is_space): New fn.
56542         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56543         and empty lines.
56544
56545         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56546         Undo previous (whitespace-only) change.
56547
56548 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56549
56550         * config/srclist-update: Change update back to the old behavior,
56551         leaving whitespace alone.  Use one 'sed' command rather than a
56552         pipeline.
56553         (fixlicense): Now a variable, not a function.
56554         (remove_trailing_blanks): Remove.
56555         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56556         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56557         Undo previous (whitespace-only) change.
56558
56559 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56560
56561         Merge from coreutils.
56562         * modules/euidaccess: Add lib_SOURCES, include for new
56563         file euidaccess.h
56564
56565 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56566
56567         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56568         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56569         Normalize leading white space and remove trailing white space.
56570
56571         Merge from coreutils
56572         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56573
56574         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56575         0.12.1.  These files are now being upgraded automatically by
56576         ../config/srclist-update.
56577
56578 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56579
56580         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56581         Normalize leading white space and remove trailing white space.
56582         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56583         notice, as per ../config/srclist-update.
56584
56585         Merge from coreutils.
56586         * lib/euidaccess.h: New file.
56587         * lib/euidaccess.c: Include it.
56588         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56589         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56590         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56591
56592 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56593
56594         * config/srclist-update: Add copyright notice.
56595         (remove_id_lines, remove_trailing_blanks): New constants.
56596         (fixfile): Use them to normalize spacing a bit in copied files.
56597         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56598         Normalize leading white space and remove trailing white space.
56599
56600         * config/texinfo.tex: Sync with texinfo.
56601
56602         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56603         strtoul.c from libc, to merge coreutils whitespace changes.
56604
56605         * config/srclist.txt: Get the following m4 files from gettext:
56606         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56607         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56608         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56609         wint_t.m4.
56610
56611 2003-08-12  Karl Berry  <karl@gnu.org>
56612
56613         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56614         been made.
56615
56616 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56617
56618         * modules/gnu-source, m4/gnu-source.m4:
56619         Remove; we're assuming Autoconf 2.54 or later now.
56620         Suggested by Bruno Haible.
56621         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56622
56623 2003-08-11  Bruno Haible  <bruno@clisp.org>
56624
56625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56626
56627 2003-08-11  Bruno Haible  <bruno@clisp.org>
56628
56629         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56630         (vasnprintf): Use it instead of wcslen.
56631
56632 2003-08-11  Bruno Haible  <bruno@clisp.org>
56633
56634         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56635         value to ensure that _Bool promotes to int. Use #define for _Bool when
56636         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56637
56638 2003-08-10  Karl Berry  <karl@gnu.org>
56639
56640         * lib/regex.h: update from libc (whitespace fix).
56641
56642 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56643
56644         Merge some files from coreutils.  These changes were
56645         originally made by Jim Meyering.
56646         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56647         many older Unixes require this.
56648         * lib/alloca.c (alloca): Remove cast to argument of free;
56649         no longer needed in C89.
56650         * lib/alloca_.h, regex.h: Fix white space to match
56651         what GNU indent does.
56652
56653 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56654
56655         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56656         apparently Emacs's Unicode mode got confused before my 2003-08-05
56657         checkin.
56658
56659 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56660
56661         * m4/extensions.m4: New file.
56662         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56663         Require gl_USE_SYSTEM_EXTENSIONS.
56664         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56665         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56666
56667 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56668
56669         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56670         * modules/extensions, modules/gnu-source: New files.
56671         * modules/timespec, modules/unlocked-io: Depend on extensions.
56672
56673 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56674
56675         * modules/restrict: New file.
56676         * MODULES.html.sh (func_all_modules): Add restrict.
56677         * modules/regex: Depend on restrict.
56678
56679 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56680
56681         * m4/restrict.m4: New file.
56682         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56683
56684 2003-08-07  Bruno Haible  <bruno@clisp.org>
56685
56686         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56687         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56688
56689 2003-08-07  Bruno Haible  <bruno@clisp.org>
56690
56691         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56692         makes the module 'getndelim2' compatible with the module 'getline'.
56693
56694 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56695
56696         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56697         byte with "\201" to avoid glitches when editing that source file
56698         with multi-gnome-terminal.
56699
56700 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56701
56702         * lib/bumpalloc.h: Remove.
56703
56704 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56705
56706         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56707         * modules/bumpalloc: Remove.
56708
56709 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56710
56711         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56712         GNU coding style.
56713
56714         Merge from coreutils.
56715         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56716         1. From glibc.
56717         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56718         from Karl Berry, implemented by Jim Meyering.
56719         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56720         from Dmitry V. Levin.
56721         Remove anachronistic cast of xrealloc.
56722         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56723         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56724         type. Otherwise, it wouldn't compile with at least /bin/cc on
56725         ymp-cray-unicos9.0.2.X.
56726         Combine two mostly-identical uses of alloca into one.
56727         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56728
56729 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56730
56731         [From Emacs.]
56732
56733         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56734         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56735         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56736         obsolete NLIST_NAME_UNION.
56737         [__GNU__]: Undef BSD and FSCALE.
56738         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56739
56740 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56741
56742         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56743         an enum type, so that it's guaranteed to promote to int.  See:
56744         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56745
56746 2003-08-03  Karl Berry  <karl@gnu.org>
56747
56748         * config/depcomp: update from automake.
56749
56750 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56751
56752         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56753         (strerror): Don't assume that a printable int fits in 14 bytes.
56754
56755 2003-07-31  Bruno Haible  <bruno@clisp.org>
56756
56757         * modules/getpass-gnu: New file.
56758         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56759
56760 2003-07-31  Bruno Haible  <bruno@clisp.org>
56761
56762         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56763
56764 2003-07-24  Karl Berry  <karl@gnu.org>
56765
56766         * config/missing: update from automake.
56767
56768 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56769             Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56772         * lib/getline.c (getline, getdelim): Likewise.
56773         Remove _GNU_SOURCE define; now it's defined in config.h through
56774         m4/getline.m4.
56775
56776 2003-07-23  Karl Berry  <karl@gnu.org>
56777
56778         * config/config.sub: update from prep.
56779
56780 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56781
56782         * modules/xalloc (Depends-on): Add exitfail.
56783         * modules/xmemcoll: Likewise.
56784
56785 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56786
56787         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56788         over-parenthesization in macros.
56789
56790         Sync with coreutils.
56791
56792         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56793         required by C99.
56794
56795         Use `exit_failure' for xalloc and xmemcoll instead of their own
56796         private exit-failure variables.
56797         * lib/xalloc.h (xalloc_exit_failure): Remove.
56798         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56799         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56800         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56801         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56802         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56803
56804 2003-07-20  Jim Meyering  <jim@meyering.net>
56805
56806         * modules/closeout (Depends-on): Add exitfail.
56807         Suggestion from Bruno Haible.
56808
56809 2003-07-19  Karl Berry  <karl@gnu.org>
56810
56811         * config/config.sub: update from prep.
56812
56813 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56814
56815         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56816         Remove.
56817         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56818         to test that it can stand by itself.  Include "exitfail.h".
56819         Clients should set exit_failure instead.
56820         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56821
56822 2003-07-18  Bruno Haible  <bruno@clisp.org>
56823
56824         * modules/getndelim2: New file.
56825         * modules/getline: Share files with module getndelim2.
56826         * modules/getnline: Depend on getndelim2 instead of sharing files with
56827         it. Add getnline.c to lib_SOURCES.
56828         * MODULES.html.sh (func_all_modules): Add getndelim2.
56829
56830 2003-07-18  Bruno Haible  <bruno@clisp.org>
56831
56832         * m4/getndelim2.m4: New file.
56833         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56834         invoke gl_PREREQ_GETNDELIM2.
56835         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56836         gl_PREREQ_GETNDELIM2.
56837         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56838         gl_GETNDELIM2.
56839
56840 2003-07-18  Bruno Haible  <bruno@clisp.org>
56841
56842         * lib/getndelim2.h: New file.
56843         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56844         getndelim2.h.
56845         (getndelim2): Make non-static. Change return type to ssize_t.
56846         * lib/getline.h: Change argument names.
56847         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56848         * lib/getnline.c: Include getndelim2.h.
56849
56850 2003-07-18  Andreas Schwab  <schwab@suse.de>
56851
56852         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56853
56854 2003-07-17  Karl Berry  <karl@gnu.org>
56855
56856         * config/config.sub: update from prep.
56857
56858 2003-07-17  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/getnline: New file.
56861         * modules/getline: Add lib/getndelim2.c to source file list.
56862         * MODULES.html.sh (func_all_modules): Add getnline.
56863
56864 2003-07-17  Bruno Haible  <bruno@clisp.org>
56865
56866         * m4/getnline.m4: New file.
56867
56868 2003-07-17  Bruno Haible  <bruno@clisp.org>
56869
56870         * m4/Makefile.am.in: Remove file.
56871         * m4/Makefile.am: Remove file.
56872         * m4/Makefile.in: Remove file.
56873
56874 2003-07-17  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/getnline.h: New file.
56877         * lib/getnline.c: New file.
56878         * lib/getndelim2.c: New file, extracted from getline.c.
56879         (getndelim2): Renamed from getdelim2, with added nmax argument.
56880         * lib/getline.c: Include getndelim2.c.
56881         (getdelim2): Moved out to getndelim2.c.
56882         (getline, getdelim): Update.
56883
56884 2003-07-17  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/Makefile.am: Remove file.
56887         * lib/Makefile.in: Remove file.
56888
56889 2003-07-17  Bruno Haible  <bruno@clisp.org>
56890
56891         * configure.in: Remove file.
56892         * Makefile.in: Remove file.
56893
56894 2003-07-17  Bruno Haible  <bruno@clisp.org>
56895
56896         * MODULES.html.sh: Put the </BODY> right before </HTML>.
56897
56898 2003-07-16  Karl Berry  <karl@gnu.org>
56899
56900         * config/srclist-update: was running fixlicense twice, which caused
56901                 texinfo.tex to be nullified for some reason.  Simplify,
56902                 $gplsrc is no longer needed as far as I can see?
56903
56904 2003-07-16  Jim Meyering  <jim@meyering.net>
56905
56906         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
56907
56908 2003-07-15  Paul Eggert  <eggert@twinsun.com>
56909
56910         * config/srclist.txt: Get the following files from gettext-runtime/intl
56911         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56912         ref-del.sin.  From Bruno Haible.
56913         * config/srclist-update (fixfile): Change grep pattern again, since the
56914         previous fix didn't work (there was another trailing $).  Use
56915         '[$]' to escape the $s.
56916
56917 2003-07-15  Karl Berry  <karl@gnu.org>
56918
56919         * lib/vasnprintf.c: update from gettext.
56920
56921 2003-07-15  Karl Berry  <karl@gnu.org>
56922
56923         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56924         gets expanded when surrounded by '$'.
56925
56926 2003-07-15  Jim Meyering  <jim@meyering.net>
56927
56928         * modules/save-cwd: Don't depend on error.  From Derek Price.
56929
56930 2003-07-15  Jim Meyering  <jim@meyering.net>
56931
56932         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56933
56934 2003-07-14  Simon Josefsson  <jas@extundo.com>
56935
56936         * modules/mempcpy: New file.
56937         * MODULES.html.sh (func_all_modules): Add mempcpy.
56938
56939 2003-07-14  Simon Josefsson  <jas@extundo.com>
56940
56941         * m4/mempcpy.m4: New file.
56942
56943 2003-07-14  Simon Josefsson  <jas@extundo.com>
56944
56945         * lib/mempcpy.h: New file.
56946         * lib/mempcpy.c: New file.
56947
56948 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56949
56950         * modules/getdate, modules/posixtm: Depend on mktime.
56951
56952 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56953
56954         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56955         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56956         unicodeio.c, unicodeio.h, unlocked-io.h:
56957         Switch from LGPL to GPL.
56958
56959 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56960
56961         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56962         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56963         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56964         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56965         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
56966         updated automatically by ../config/srclist-update.  This changes
56967         their license from LPGL to GPL.
56968
56969 2003-07-14  Paul Eggert  <eggert@twinsun.com>
56970
56971         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
56972         assumed to refer to the root of the most recent stable gettext version.
56973         * config/srclistvars.sh: Add defaults for eggert.
56974         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56975         Match "This program" as well as "The program".  This is needed
56976         for gettext.
56977
56978 2003-07-14  Jim Meyering  <jim@meyering.net>
56979
56980         Don't emit diagnostics.  Let callers do that.
56981         * lib/save-cwd.c: Don't include "error.h".
56982         (save_cwd): Don't call error.  Ensure that errno is valid
56983         when returning nonzero.
56984
56985         * lib/save-cwd.h (restore_cwd): Update prototype.
56986         * lib/save-cwd.c (restore_cwd): Remove two parameters.
56987         Simplify.  Don't call error upon failure.  Let callers do that.
56988         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56989         when auditing is enabled.  But don't bother updating the #if.
56990
56991 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
56992
56993         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56994         it breaks C++ compilation.
56995         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56996
56997 2003-07-10  Simon Josefsson  <jas@extundo.com>
56998
56999         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57000
57001 2003-07-10  Jim Meyering  <jim@meyering.net>
57002
57003         * m4/clock_time.m4: Remove trailing blank.
57004         * m4/intmax_t.m4: Likewise.
57005
57006 2003-07-10  Jim Meyering  <jim@meyering.net>
57007
57008         * lib/vasnprintf.c: Remove trailing blanks.
57009         Make cpp indentation consistent.
57010
57011 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57012
57013         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57014         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57015         Switch from LGPL to GPL.
57016
57017 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57018
57019         * config/srclist.txt: Sort sublists.  Add
57020         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57021         that differ from gnulib for one reason or another; we'd like this list
57022         to be smaller but for now let's document what we have.
57023
57024 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57025
57026         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57027         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57028         and sweeter "eval x=$x".
57029         * config/srclist.txt: Get lib/argp* from glibc.
57030
57031 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57032
57033         * lib/mktime.c: Fix some boundary cases and remove need for floating
57034         point.
57035
57036         Issue a compile-time diagnostic if time_t is floating point, or if
57037         two's complement arithmetic is not in effect, or if arithmetic
57038         right shift does not propagate the sign.  These assumptions were
57039         all in the original code but they weren't checked.
57040
57041         (TIME_T_MIDPOINT, verify): New macros.
57042         (__isleap): Remove; it has integer overflow problems.
57043         (leapyear): New function, without those problems.
57044         (ydhms_tm_diff): Remove; splitting into two parts.
57045         (ydhms_diff): New function, containing the arithmetic part of
57046         the old ydhms_tm_diff function.  Issue a compile-time
57047         diagnostic if we are not using C99 integer division.
57048         Avoid casts when possible.
57049         (guess_time_tm): New function, containing the checking part of
57050         the old ydhms_tm_diff function.  Return the new value, rather than
57051         the difference between it and the old.  Accept a new argument T
57052         so that *T specifies the old value.  Check for overflow in the result.
57053
57054         (__mktime_internal): Use a time_t offset, not a long int offset.
57055         This undoes the 2003-06-04 change, which is no longer needed now
57056         that we have better overflow checking.
57057         (localtime_offset): Likewise.
57058
57059         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57060         and long are 64-bit but int is only 32-bit.
57061         (ydhms_diff): Use long int to store year1 and yday1.
57062         Issue a compile-time diagnostic if long int is not wide enough.
57063
57064         (__mktime_internal): Use long int to store adjusted year and yday.
57065         Use plain C rather than preprocessor commands, if that doesn't
57066         affect efficiency.
57067         Check for overflow (and try to repair) after each probe
57068         rather than checking only at the very end.  This avoids some bugs
57069         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57070         does not equal GMT offset at maximum time).
57071         Use integer to check for overflow rather than floating point; this
57072         is more portable to non-IEEE hosts, and is a tad faster.
57073         When we detect that we are oscillating between two values,
57074         don't check whether tm_isdst has the requested value, since
57075         we already know the answer.  When tm_isdst has the wrong value,
57076         use a different heuristic to find the right one, based on the
57077         extreme values actually observed in practice in tz2003a,
57078         rather than the (overly optimistic) "previous 3 calendar quarters".
57079
57080         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57081         "T const" to accommodate glibc style.
57082         (check_result): Use less-confusing report format.  "long" -> "long int.
57083         (main): Likewise.
57084         Don't loop if the iteration overflows time_t.
57085         Allow a negative step in the iteration.
57086
57087 2003-07-06  Karl Berry  <karl@gnu.org>
57088
57089         * config/depcomp: update from automake.
57090         * config/config.sub: update from prep.
57091
57092 2003-07-03  Karl Berry  <karl@gnu.org>
57093
57094         * config/config.guess: update from prep.
57095
57096 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57097
57098         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57099         xreadlink.c now includes it unconditionally.
57100
57101 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57102
57103         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57104         having it depend on HAVE_SYS_TYPES_H.
57105
57106 2003-07-01  Bruno Haible  <bruno@clisp.org>
57107
57108         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57109         <sys/types.h> should be sufficient.
57110         Reported by Paul Eggert.
57111
57112 2003-06-26  Karl Berry  <karl@gnu.org>
57113
57114         * config/depcomp: update from automake.
57115
57116 2003-06-26  Bruno Haible  <bruno@clisp.org>
57117
57118         * modules/human: Depend on module stdbool.
57119
57120 2003-06-25  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/readlink: New file.
57123         * modules/xreadlink: Depend on it.
57124         * MODULES.html.sh (func_all_modules): Add readlink.
57125
57126 2003-06-25  Bruno Haible  <bruno@clisp.org>
57127
57128         * m4/readlink.m4: New file.
57129
57130 2003-06-25  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/readlink.c: New file.
57133
57134 2003-06-22  Karl Berry  <karl@gnu.org>
57135
57136         * config/srclist.txt: update mkinstalldirs from automake.
57137         * config/mkinstalldirs: update.
57138
57139 2003-06-22  Bruno Haible  <bruno@clisp.org>
57140
57141         Portability to mingw32.
57142         * m4/ssize_t.m4: New file, from GNU gettext.
57143         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57144         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57145
57146 2003-06-22  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/safe-read: Add m4/ssize_t.m4.
57149         * modules/xreadlink: Add m4/ssize_t.m4.
57150
57151 2003-06-20  Bruno Haible  <bruno@clisp.org>
57152
57153         Assume C89, so PARAMS isn't needed.
57154         * lib/unicodeio.h (PARAMS): Remove.
57155         * lib/unicodeio.c: Don't use PARAMS.
57156
57157 2003-06-18  Karl Berry  <karl@gnu.org>
57158
57159         * config/config.{guess,sub}: update from prep.
57160
57161 2003-06-18  Jim Meyering  <jim@meyering.net>
57162
57163         Merge changes from coreutils.
57164         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57165         Remove explicit declarations of xmalloc and realloc.
57166         Include xalloc.h.
57167         (read_utmp): Remove anachronistic cast of xmalloc.
57168
57169 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57170
57171         Assume C89, so PARAMS isn't needed.
57172         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57173         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57174         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57175         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57176         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57177         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57178         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57179         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57180         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57181         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57182         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57183         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57184         no longer needed. Anyway, config.h should always be included before any
57185         other file.
57186
57187 2003-06-11  Simon Josefsson  <jas@extundo.com>
57188
57189         * modules/sysexits: New file.
57190         * MODULES.html.sh (func_all_modules): Add sysexits.
57191
57192 2003-06-11  Simon Josefsson  <jas@extundo.com>
57193
57194         * lib/sysexit_.h: New file.
57195
57196 2003-06-11  Derek Price  <derek@ximbiot.com>
57197
57198         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57199         necessary.
57200
57201 2003-06-11  Bruno Haible  <bruno@clisp.org>
57202
57203         * m4/sysexits.m4: New file.
57204
57205 2003-06-10  Simon Josefsson  <jas@extundo.com>
57206
57207         * lib/argp.h: New file, from glibc.
57208         * lib/argp-ba.c: New file, from glibc.
57209         * lib/argp-eexst.c: New file, from glibc.
57210         * lib/argp-fmtstream.c: New file, from glibc.
57211         * lib/argp-fmtstream.h: New file, from glibc.
57212         * lib/argp-fs-xinl.c: New file, from glibc.
57213         * lib/argp-help.c: New file, from glibc.
57214         * lib/argp-namefrob.h: New file, from glibc.
57215         * lib/argp-parse.c: New file, from glibc.
57216         * lib/argp-pv.c: New file, from glibc.
57217         * lib/argp-pvh.c: New file, from glibc.
57218         * lib/argp-xinl.c: New file, from glibc.
57219
57220 2003-06-10  Simon Josefsson  <jas@extundo.com>
57221
57222         * modules/strchrnul: New file.
57223
57224 2003-06-10  Simon Josefsson  <jas@extundo.com>
57225
57226         * modules/argp: New file.
57227
57228 2003-06-10  Simon Josefsson  <jas@extundo.com>
57229
57230         * m4/strchrnul.m4: New file.
57231
57232 2003-06-10  Simon Josefsson  <jas@extundo.com>
57233
57234         * lib/strchrnul.h: New file.
57235         * lib/strchrnul.c: New file.
57236
57237 2003-06-10  Bruno Haible  <bruno@clisp.org>
57238
57239         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57240
57241 2003-06-07  Karl Berry  <karl@gnu.org>
57242
57243         * config/config.{guess,sub}: update from prep.
57244
57245 2003-06-07  Jim Meyering  <jim@meyering.net>
57246
57247         * modules/strtod: Use $(...) notation, not @...@ for
57248         AC_REPLACE'd variables.
57249         * modules/localcharset: Likewise.
57250
57251 2003-06-07  Jim Meyering  <jim@meyering.net>
57252
57253         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57254         in place of my name in the copyright comment.
57255         Remove definition and uses of __P.
57256
57257         From coreutils.
57258         * lib/stat.c: Don't declare xmalloc explicitly.
57259         Instead, include "xalloc.h".
57260         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57261         xrealloc, and xcalloc return values.
57262         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57263         Improve comment.
57264         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57265
57266 2003-06-07  Bruno Haible  <bruno@clisp.org>
57267
57268         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57269         avoid AC_CONFIG_LINKS.
57270         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57271         fnmatch.h, to avoid AC_CONFIG_LINKS.
57272         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57273
57274 2003-06-07  Bruno Haible  <bruno@clisp.org>
57275
57276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57277         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57278         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57279         directory.
57280         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57281         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57282         directory.
57283
57284 2003-06-06  Jim Meyering  <jim@meyering.net>
57285
57286         Merge from coreutils.
57287         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57288         Consolidate declarations and initializations of *_base* locals.
57289
57290         Merge from coreutils.
57291         This avoids a core dump on systems without GNU putenv,
57292         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57293         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57294         (unsetenv): New static function, from GNU libc.
57295         (rpl_putenv): Use it.
57296
57297         * lib/modechange.c: Remove trailing blanks.
57298
57299         Merge from coreutils.
57300         * lib/fsusage.c: Remove declaration of statfs.
57301         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57302
57303         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57304
57305 2003-06-06  Jim Meyering  <jim@meyering.net>
57306
57307         * lib/stdbool_.h: Renamed from stdbool.h.in.
57308
57309 2003-06-06  Jim Meyering  <jim@meyering.net>
57310             Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57313         Adjust Makefile.am snippet not to redirect directly to target.
57314         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57315
57316 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57317
57318         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57319         mismatch, look in future quarters as well as past.  This fixes a
57320         bug when processing fall-backwards gaps immediately after a long
57321         period of daylight-saving time.
57322
57323         * lib/mktime.c: Assume freestanding C89 or better.
57324         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57325         (__P): Remove; not used.
57326         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57327         (mktime, not_equal_tm, print_tm, check_result,
57328         main): Use prototypes.  Use const * where appropriate.
57329         (main): Fix typo in testing code that uncovered by above changes.
57330         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57331
57332 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57333
57334         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57335         locale.h, localeconv.  This merges changes from coreutils.
57336
57337         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57338         It can be removed after the next Autoconf is released.
57339         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57340         needed.
57341
57342 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57343
57344         * lib/mktime.c: Fix Debian bug 177940
57345         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57346         (localtime_offset): Now long int, not time_t, because we want it
57347         to be guaranteed to be signed.  All uses changed.
57348         (__mktime_internal): If overflow would occur when adding offset,
57349         don't add it.
57350
57351         Merge 'human' changes from coreutils.  Rewrite to support
57352         locale-specific notations like thousands separators.
57353         * lib/human.c: Simplify authorship notice.
57354         Include human.h immediately after config.h.
57355         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57356         <limits.h>: Do not include, since human.h does.
57357         (SIZE_MAX, UINTMAX_MAX): New macros.
57358         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57359         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57360         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57361         (power_letter): Renamed from suffixes.
57362         (generate_suffix_backwards): Remove.
57363         (adjust_value): Now takes int style (because of human.h changes)
57364         and long double value (for greater precision on some platforms).
57365         (group_number): New function.
57366         (human_readable): Use it.  Use integer options, not enum.
57367         Put the options before the sizes in the arg list.
57368         Support all the new options.
57369         The old human_readable function has been removed;
57370         use inttostr.h instead.
57371         (human_readable, default_block_size, humblock):
57372         Use uintmax_t, not int, for block sizes.
57373         (human_readable_inexact, block_size_types): Remove.
57374         (block_size_opts): New constant.
57375         (human_options): Renamed from human_block_size, with new signature
57376         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57377         * lib/human.h: Add copyright and authorship notice.
57378         Include <limits.h> and <stdbool.h> unconditionally.
57379         (PARAMS): Remove.  All uses removed.
57380         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57381         (enum human_inexact_style): Remove tag; now a nameless enum.
57382         (human_floor, human_ceiling, human_round_to_even): Now have
57383         values 2, 0, 1 rather than -1, 1, 0.
57384         (human_group_digits, human_suppress_point_zero, human_autoscale,
57385         human_base_1024, human_SI, human_B): New constants.
57386         (human_readable_inexact, human_block_size): Remove.
57387         (human_readable): Size args are now uintmax_t, not int.
57388         (human_options): New decl.
57389
57390         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57391         unnecessary now that we assume C89 or better.  This change
57392         imported from coreutils.
57393
57394         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57395         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57396         in the 2003-05-30 sync from glibc.
57397
57398         .h files should stand alone, but we shouldn't include <sys/types.h>
57399         if we can get away with just <stddef.h>.
57400
57401         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57402         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57403         rather than <sys/types.h>, as we merely need size_t.
57404         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57405         to get size_t.
57406         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57407         Include <stdio.h>, to get FILE.
57408         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57409         memcasecmp.h has included <stddef.h> and all we need is size_t.
57410         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57411         our interface, instead of including <sys/types.h>
57412
57413 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57414
57415         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57416         now, as glibc mktime is buggy on non-glibc systems.
57417
57418 2003-06-03  Karl Berry  <karl@gnu.org>
57419
57420         * config/config.sub: update from prep.
57421
57422 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57423
57424         [from coreutils]
57425         Fix some minor time-related bugs with POSIX time arguments.
57426         Some valid time stamps were being rejected (notably -1, and
57427         time stamps before 1900 on 64-bit hosts).  And some invalid
57428         time stamps were being accepted, e.g. September 31.
57429
57430         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57431         that we can return (time_t) -1 successfully.
57432         * lib/posixtm.c: Likewise.
57433         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57434         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57435         (t): Remove static var.
57436         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57437         of static var.  All uses changed.
57438         (year): Do not reject years before 1900; they can occur with
57439         64-bit time_t.
57440         (posix_time_parse): Do not check for out-of-range components;
57441         that is now the caller's responsibility, since our checks were
57442         only approximations.
57443         (posixtime): Use mktime to check for out-of-range components,
57444         since it knows them exactly.
57445         If mktime returns (time_t) -1, check whether an error actually occurred
57446         by invoking localtime on -1.
57447         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57448         posixtime failures better.
57449         Improve the test data (in comments only).
57450
57451 2003-06-02  Karl Berry  <karl@gnu.org>
57452
57453         * config/mkinstalldirs (version): new variable.
57454         (--version): new option.
57455         (usage): improve message.
57456
57457 2003-05-30  Karl Berry  <karl@gnu.org>
57458
57459         * lib/mktime.c: update from libc.
57460
57461 2003-05-30  Bruno Haible  <bruno@clisp.org>
57462
57463         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57464         * config/config.rpath: Upgrade to gettext-0.12.1.
57465
57466 2003-05-30  Bruno Haible  <bruno@clisp.org>
57467
57468         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57469         * m4/nls.m4: New file, from gettext-0.12.1.
57470         * m4/po.m4: New file, from gettext-0.12.1.
57471         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57472
57473 2003-05-30  Bruno Haible  <bruno@clisp.org>
57474
57475         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57476         * lib/localcharset.h: Likewise.
57477         * lib/localcharset.c: Likewise.
57478
57479 2003-05-29  Karl Berry  <karl@gnu.org>
57480
57481         * config/config.rpath: update from gettext.
57482
57483 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57484
57485         Assume the headers required for C89 freestanding compilers.
57486         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57487         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57488         * m4/human.m4 (gl_HUMAN): Likewise.
57489         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57490         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57491         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57492         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57493         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57494         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57495
57496 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57497
57498         Assume the headers required for C89 freestanding compilers.
57499         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57500         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57501         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57502         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57503         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57504         define, since <limits.h> is guaranteed to do that.
57505         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57506         * lib/exclude.c: Include <stdbool.h> unconditionally.
57507         * lib/tempname.c: Include <stddef.h> unconditionally.
57508         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57509         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57510         <stddef.h> does that.
57511         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57512         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57513         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57514         needed.
57515         * lib/xstrtol.c: Likewise.
57516         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57517         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57518
57519         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57520         warnings on some platforms.
57521
57522         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57523         arbitrarily.
57524
57525 2003-05-26  Jim Meyering  <jim@meyering.net>
57526
57527         Merge in a change from coreutils:
57528         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57529         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57530         that condition, rather than `-1' which is slightly misleading.
57531         Change the name of the cache variable to have the gl_ prefix.
57532         Prompted by a patch from Richard Dawe for DJGPP.
57533
57534 2003-05-24  Karl Berry  <karl@gnu.org>
57535
57536         * config/config.guess: update from prep.
57537
57538 2003-05-22  Karl Berry  <karl@gnu.org>
57539
57540         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57541
57542 2003-05-20  Karl Berry  <karl@gnu.org>
57543
57544         * config/config.guess: update from prep.
57545
57546 2003-05-18  Karl Berry  <karl@gnu.org>
57547
57548         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57549         might actually be set by the user.
57550
57551         * config/depcomp, install-sh, mdate-sh: update from automake.
57552
57553 2003-05-17  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57556         invalid expansion for AC_EGREP_CPP.
57557         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57558         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57559         Suggested by Akim Demaille <akim@epita.fr> in
57560         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57561
57562 2003-05-12  Jim Meyering  <jim@meyering.net>
57563
57564         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57565         the space-padded-by-default conversion specifiers, %e, %k, %l.
57566
57567 2003-05-12  Bruno Haible  <bruno@clisp.org>
57568
57569         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57570         the string is longer than 4 KB.
57571
57572 2003-05-11  Karl Berry  <karl@gnu.org>
57573
57574         * config/config.{guess,sub}: update from prep.
57575
57576 2003-05-09  Bruno Haible  <bruno@clisp.org>
57577
57578         * modules/error: Add m4/strerror_r.m4 to file list.
57579
57580 2003-05-03  Bruno Haible  <bruno@clisp.org>
57581
57582         Upgrade to Unicode-4.0.
57583         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57584         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57585         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57586         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57587         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57588         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57589         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57590         Change width of U+E0100..U+E01EF from 1 to 0.
57591
57592 2003-04-25  Jim Meyering  <jim@meyering.net>
57593
57594         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57595         of type size_t, not int.
57596
57597 2003-04-25  Bruno Haible  <bruno@clisp.org>
57598
57599         * lib/copy-file.c: Include <stddef.h>, for size_t.
57600
57601 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57602
57603         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57604         code which expansion is under static control.  Patch imported from
57605         Akim Demaille's patch to Bison; see
57606         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57607
57608 2003-04-14  Bruno Haible  <bruno@clisp.org>
57609
57610         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57611
57612 2003-04-11  Jim Meyering  <jim@meyering.net>
57613
57614         Merge changes from Coreutils.
57615
57616         2003-03-22  Jim Meyering  <jim@meyering.net>
57617
57618         * lib/strftime.c (widen): Cast alloca return value to proper type.
57619
57620         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57621
57622         From GNU libc.
57623         * lib/strftime.c (my_strftime): Handle very large width
57624         specifications for numeric values correctly.  Improve checks for
57625         overflow.
57626
57627         2003-01-19  Jim Meyering  <jim@meyering.net>
57628
57629         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57630         definitions.
57631         (nl_get_alt_digit) [! defined my_strftime]: Define.
57632         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57633         _nl_get_alt_digit and _nl_get_walt_digit.
57634
57635         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57636         libc. These changes have no effect outside of _LIBC.
57637
57638 2003-04-10  Bruno Haible  <bruno@clisp.org>
57639
57640         * modules/findprog: New file.
57641         * MODULES.html.sh (func_all_modules): Add it.
57642
57643 2003-04-10  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/findprog.m4: New file.
57646         * m4/eaccess.m4: New file.
57647
57648 2003-04-10  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/findprog.h: New file, from GNU gettext.
57651         * lib/findprog.c: New file, from GNU gettext.
57652
57653 2003-04-05  Jim Meyering  <jim@meyering.net>
57654
57655         Merge changes from Coreutils.
57656
57657         * lib/exclude.h (PARAMS): Remove definition and uses.
57658         * lib/exclude.c: Remove uses of `PARAMS'.
57659
57660         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57661         Add test-cases for DOS filenames. Declare program_name.
57662         (main): Set up program_name.  Patch by Rich Dawe.
57663
57664         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57665         error from mntctl.
57666         Use mntctl's return value to drive the entry-processing loop, since
57667         we can't rely on the value of the vmt_length member in the last
57668         entry.  On some systems doing so could result in exhausting
57669         virtual memory.  Based in part on a patch from Mike Jetzer.
57670
57671 2003-04-04  Bruno Haible  <bruno@clisp.org>
57672
57673         * modules/linebreak: New file.
57674         * MODULES.html.sh (func_all_modules): Add it.
57675
57676 2003-04-04  Bruno Haible  <bruno@clisp.org>
57677
57678         * m4/linebreak.m4: New file.
57679
57680 2003-04-04  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/linebreak.h: New file, from GNU gettext.
57683         * lib/linebreak.c: New file, from GNU gettext with slight
57684         modifications.
57685         * lib/lbrkprop.h: New file, from GNU gettext.
57686
57687 2003-04-03  Bruno Haible  <bruno@clisp.org>
57688
57689         * modules/utf8-ucs4: New file.
57690         * modules/utf16-ucs4: New file.
57691         * modules/ucs4-utf8: New file.
57692         * modules/ucs4-utf16: New file.
57693         * MODULES.html.sh (func_all_modules): Add them.
57694
57695 2003-04-03  Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/utf-ucs4.m4: New file.
57698         * m4/ucs4-utf.m4: New file.
57699
57700 2003-04-03  Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/utf8-ucs4.h: New file, from GNU gettext.
57703         * lib/utf16-ucs4.h: New file, from GNU gettext.
57704         * lib/ucs4-utf8.h: New file, from GNU gettext.
57705         * lib/ucs4-utf16.h: New file, from GNU gettext.
57706
57707 2003-04-02  Bruno Haible  <bruno@clisp.org>
57708
57709         * modules/binary-io: New file.
57710         * MODULES.html.sh (func_all_modules): Add it.
57711
57712 2003-04-02  Bruno Haible  <bruno@clisp.org>
57713
57714         * lib/binary-io.h: New file, from GNU gettext.
57715
57716 2003-04-01  Bruno Haible  <bruno@clisp.org>
57717
57718         * modules/pathname: New file.
57719         * MODULES.html.sh (func_all_modules): Add it.
57720
57721 2003-04-01  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/pathname.h: New file, from GNU gettext.
57724         * lib/concatpath.c: New file, from GNU gettext.
57725
57726 2003-03-30  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57729
57730 2003-03-30  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57733         function chown() doesn't exist.
57734
57735 2003-03-28  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/copy-file: New file.
57738         * MODULES.html.sh (func_all_modules): Add it.
57739
57740 2003-03-28  Bruno Haible  <bruno@clisp.org>
57741
57742         * m4/copy-file.m4: New file.
57743
57744 2003-03-28  Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/copy-file.h: New file, from GNU gettext.
57747         * lib/copy-file.c: New file, from GNU gettext.
57748
57749 2003-03-18  Jim Meyering  <jim@meyering.net>
57750
57751         * lib/quote.c (quote_n): Fix typo in comment.
57752
57753 2003-03-18  Bruno Haible  <bruno@clisp.org>
57754
57755         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57756         checking.
57757         * m4/onceonly_2_57.m4: Likewise.
57758
57759 2003-03-17  Bruno Haible  <bruno@clisp.org>
57760
57761         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57762         (m4_quote): Remove macro.
57763         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57764
57765 2003-03-14  Jim Meyering  <jim@meyering.net>
57766
57767         Merge changes from Coreutils.
57768         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57769         to be const, in order to avoid warnings.
57770         (obstack_room): Likewise.
57771         (obstack_empty_p): Likewise.
57772
57773 2003-03-14  Bruno Haible  <bruno@clisp.org>
57774
57775         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57776         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57777
57778 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57779
57780         Merge changes from Bison.
57781         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57782         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57783         when compiling Bison 1.875's `bitset bset = obstack_alloc
57784         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57785         * lib/hash.c: Include <stdbool.h> unconditionally.
57786
57787 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57788
57789         * m4/onceonly.m4 (m4_quote): New macro.
57790         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57791         Quote AC_FOREACH variable-expansions properly.
57792
57793 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57794
57795         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57796
57797 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57798
57799         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57800         Reported by Bruce Becker; see:
57801         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57802
57803 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57804             Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57807         Reported by John Hughes, see
57808         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57809
57810 2003-02-20  Bruno Haible  <bruno@clisp.org>
57811
57812         * MODULES.html.sh (func_all_modules): Add poll.
57813
57814 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57815
57816         * modules/poll: New file.
57817
57818 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57819
57820         * lib/poll_.h: New file.
57821         * lib/poll.c: New file.
57822
57823 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57824
57825         * m4/poll.m4: New file.
57826
57827 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57828
57829         * modules/mathl: New file.
57830
57831 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57832
57833         * lib/mathl.h: New file.
57834         * lib/acosl.c: New file.
57835         * lib/asinl.c: New file.
57836         * lib/atanl.c: New file.
57837         * lib/ceill.c: New file.
57838         * lib/cosl.c: New file.
57839         * lib/expl.c: New file.
57840         * lib/floorl.c: New file.
57841         * lib/frexpl.c: New file.
57842         * lib/ldexpl.c: New file.
57843         * lib/logl.c: New file.
57844         * lib/sincosl.c: New file.
57845         * lib/sinl.c: New file.
57846         * lib/sqrtl.c: New file.
57847         * lib/tanl.c: New file.
57848         * lib/trigl.c: New file.
57849         * lib/trigl.h: New file.
57850
57851 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57852
57853         * m4/mathl.m4: New file.
57854
57855 2003-02-18  Bruno Haible  <bruno@clisp.org>
57856
57857         * MODULES.html.sh (func_all_modules): Add mathl.
57858
57859 2003-02-17  Bruno Haible  <bruno@clisp.org>
57860
57861         * modules/mkdtemp: New module.
57862         * MODULES.html.sh (func_all_modules): Add it.
57863
57864 2003-02-17  Bruno Haible  <bruno@clisp.org>
57865
57866         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57867
57868 2003-02-17  Bruno Haible  <bruno@clisp.org>
57869
57870         * lib/mkdtemp.h: New file, from GNU gettext.
57871         * lib/mkdtemp.c: New file, from GNU gettext.
57872
57873 2003-02-02  Jim Meyering  <jim@meyering.net>
57874
57875         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57876         e.g. glibc-2.2.93.
57877
57878 2003-01-31  Bruno Haible  <bruno@clisp.org>
57879
57880         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57881         'rpl_rename'.
57882         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57883         'rpl_strnlen'.
57884         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57885         'rpl_strtod'.
57886         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57887         'rpl_utime'.
57888
57889 2003-01-31  Bruno Haible  <bruno@clisp.org>
57890
57891         * lib/rename.c: #undef rename before defining rpl_rename.
57892         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57893
57894 2003-01-30  Bruno Haible  <bruno@clisp.org>
57895
57896         * modules/vasnprintf, modules/vasprintf: New modules.
57897         * MODULES.html.sh (func_all_modules): Add them.
57898
57899 2003-01-30  Bruno Haible  <bruno@clisp.org>
57900
57901         * m4/signed.m4: New file, from GNU gettext.
57902         * m4/longdouble.m4: New file, from GNU gettext.
57903         * m4/wchar_t.m4: New file, from GNU gettext.
57904         * m4/wint_t.m4: New file, from GNU gettext.
57905         * m4/vasnprintf.m4: New file.
57906         * m4/vasprintf.m4: New file.
57907
57908 2003-01-30  Bruno Haible  <bruno@clisp.org>
57909
57910         * lib/printf-args.h: New file, from GNU gettext.
57911         * lib/printf-args.c: New file, from GNU gettext.
57912         * lib/printf-parse.h: New file, from GNU gettext.
57913         * lib/printf-parse.c: New file, from GNU gettext.
57914         * lib/vasnprintf.h: New file, from GNU gettext.
57915         * lib/vasnprintf.c: New file, from GNU gettext.
57916         * lib/asnprintf.c: New file, from GNU gettext.
57917         * lib/vasprintf.h: New file, from GNU gettext with modifications.
57918         * lib/vasprintf.c: New file, from GNU gettext.
57919         * lib/asprintf.c: New file, from GNU gettext.
57920
57921 2003-01-29  Bruno Haible  <bruno@clisp.org>
57922
57923         * modules/stpncpy: New module.
57924         * MODULES.html.sh (func_all_modules): Add it.
57925
57926 2003-01-29  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/stpncpy.m4: New file.
57929
57930 2003-01-29  Bruno Haible  <bruno@clisp.org>
57931
57932         * lib/stpncpy.h: New file, from GNU gettext with modifications.
57933         * lib/stpncpy.c: New file, from GNU gettext with modifications.
57934
57935 2003-01-28  Bruno Haible  <bruno@clisp.org>
57936
57937         * modules/c-ctype: New module.
57938         * MODULES.html.sh (func_all_modules): Add it.
57939
57940 2003-01-28  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57943         Paul Eggert.
57944         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57945         Paul Eggert.
57946
57947 2003-01-27  Bruno Haible  <bruno@clisp.org>
57948
57949         * modules/xsetenv: New module.
57950         * MODULES.html.sh (func_all_modules): Add it.
57951
57952 2003-01-27  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/xsetenv.h: New file, from GNU gettext.
57955         * lib/xsetenv.c: New file, from GNU gettext.
57956
57957 2003-01-23  Jim Meyering  <jim@meyering.net>
57958
57959         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57960         from working on systems without dirfd (at least Irix and OSF1/Tru64).
57961
57962 2003-01-23  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/minmax: New module.
57965         * MODULES.html.sh (func_all_modules): Add it.
57966
57967 2003-01-23  Bruno Haible  <bruno@clisp.org>
57968
57969         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57970         Eggert.
57971
57972 2003-01-22  Bruno Haible  <bruno@clisp.org>
57973
57974         * modules/exit: New module.
57975         * MODULES.html.sh (func_all_modules): Add it.
57976
57977 2003-01-22  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/exit.h: New file, from GNU gettext.
57980
57981 2003-01-19  Bruno Haible  <bruno@clisp.org>
57982
57983         * gnulib-tool: Recognize option --extract-maintainer.
57984         (func_get_maintainer): New function.
57985         * modules/*: Add Maintainer entry.
57986
57987 2003-01-16  Jim Meyering  <jim@meyering.net>
57988
57989         * m4/regex.m4: The `regex' struct is both input and output.
57990         Initialize it before each use.  Patch by Tim Waugh.
57991
57992 2003-01-16  Bruno Haible  <bruno@clisp.org>
57993
57994         * MODULES.html.sh: Add a table of contents. Add the module name as
57995         leftmost column. Add hyperlinks.
57996
57997 2003-01-15  Bruno Haible  <bruno@clisp.org>
57998
57999         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58000
58001 2003-01-15  Bruno Haible  <bruno@clisp.org>
58002
58003         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58004         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58005         suffix.
58006
58007 2003-01-15  Bruno Haible  <bruno@clisp.org>
58008
58009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58010
58011 2003-01-15  Bruno Haible  <bruno@clisp.org>
58012
58013         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58014         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58015
58016 2003-01-14  Jim Meyering  <jim@meyering.net>
58017
58018         * lib/same.c (same_name): Tweak a comment.
58019
58020 2003-01-14  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58023         when a string comparison is sufficient.
58024
58025 2003-01-14  Bruno Haible  <bruno@clisp.org>
58026
58027         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58028         'unsigned int'.
58029
58030 2003-01-14  Bruno Haible  <bruno@clisp.org>
58031
58032         * lib/hash-pjw.c: Add comment about low quality of this function.
58033
58034 2003-01-13  Bruno Haible  <bruno@clisp.org>
58035
58036         * modules/stpcpy: Distribute lib/stpcpy.h.
58037         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58038
58039 2003-01-13  Bruno Haible  <bruno@clisp.org>
58040
58041         * modules/*: Add a description.
58042         * modules/strpbrk: Fix Makefile.am snippet.
58043         * modules/strtoimax: Fix dependencies.
58044         * modules/strtoumax: Likewise.
58045
58046 2003-01-13  Bruno Haible  <bruno@clisp.org>
58047
58048         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58049         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58050         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58051
58052 2003-01-13  Bruno Haible  <bruno@clisp.org>
58053
58054         * gnulib-tool (func_create_testdir): Store config/* files in the main
58055         directory.
58056         * config.rpath: Move to ...
58057         * config/config.rpath: ... here.
58058         * modules/gettext: Contains config/config.rpath, not config.rpath.
58059         * modules/iconv: Likewise.
58060
58061 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58062
58063         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58064         to avoid collisions with libcurses and libreadline.
58065
58066         * m4/getstr.m4: Remove.
58067         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58068
58069 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58070
58071         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58072         to avoid collisions with libcurses and libreadline.
58073
58074         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58075         * lib/getstr.h, getstr.c: Remove.
58076         * lib/getline.c: Include "getline.h", to check interface.
58077         Move body of old getstr.c here: this defines MIN_CHUNK and
58078         declares getdelim2, which is renamed from getstr.
58079         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58080
58081         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58082         All uses changed.
58083         * lib/linebuffer.h: Likewise.
58084         (readline): Remove backward-compatibility macro.
58085
58086 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58087
58088         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58089         to avoid collisions with libcurses and libreadline.
58090         * getstr: Remove.
58091         * MODULES.html.sh: Remove getstr.
58092         * modules/getline: Depend on unlocked-io, not getstr.
58093
58094 2003-01-12  Jim Meyering  <jim@meyering.net>
58095
58096         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58097
58098 2003-01-10  Bruno Haible  <bruno@clisp.org>
58099
58100         * modules/alloca: Change Makefile.am requirements. Simplify Include
58101         requirements. Add lib/alloca_.h to file list.
58102
58103 2003-01-10  Bruno Haible  <bruno@clisp.org>
58104
58105         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58106
58107 2003-01-10  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/alloca_.h: New file.
58110         * lib/getdate.y: Unconditionally include alloca.h.
58111         * lib/makepath.c: Likewise.
58112         * lib/setenv.c: Likewise.
58113         * lib/userspec.c: Likewise.
58114
58115 2003-01-09  Karl Berry  <karl@gnu.org>
58116
58117         * MODULES.html.sh: include `dirname $0` in PATH, to find
58118         gnulib-tool.
58119
58120 2003-01-09  Bruno Haible  <bruno@clisp.org>
58121
58122         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58123         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58124
58125 2003-01-09  Bruno Haible  <bruno@clisp.org>
58126
58127         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58128
58129 2003-01-09  Bruno Haible  <bruno@clisp.org>
58130
58131         * lib/stdbool.h.in: New file.
58132
58133 2003-01-09  Bruno Haible  <bruno@clisp.org>
58134
58135         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58136         * MODULES.html.sh: Likewise.
58137
58138 2003-01-08  Jim Meyering  <jim@meyering.net>
58139
58140         * lib/full-write.c: Undefine and define-away `const' after inclusion
58141         of errno.h, not before.  Suggestion from Bruno Haible.
58142
58143 2003-01-08  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/full-read: Depend on full-write.
58146
58147 2003-01-08  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/safe-read.c: Include specification header first, to ensure its
58150         selfcontainedness.
58151         * lib/full-write.c: Likewise.
58152
58153 2003-01-07  Jim Meyering  <jim@meyering.net>
58154
58155         * lib/full-write.c: Rework so that it may serve to define full_read,
58156         too.
58157         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58158
58159 2003-01-07  Bruno Haible  <bruno@clisp.org>
58160
58161         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58162         <inttypes.h>.
58163         * lib/xstrtol.h: Likewise.
58164         * lib/xstrtoimax.c: Likewise.
58165         * lib/xstrtoumax.c: Likewise.
58166         * lib/human.h: Likewise.
58167
58168         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58169         on systems that have <inttypes.h> but not <stdint.h>.
58170
58171 2003-01-07  Bruno Haible  <bruno@clisp.org>
58172
58173         * MODULES.html.sh: Add copyright notice.
58174         (missed_files): Omit CVS directory entries.
58175         (func_module): Make it work with sed-3.02.
58176         * MODULES.txt: Remove file.
58177
58178 2003-01-06  Jim Meyering  <jim@meyering.net>
58179
58180         * lib/version-etc.c: Update year in translatable copyright string.
58181
58182 2003-01-03  Karl Berry  <karl@gnu.org>
58183
58184         * config/config.{guess,sub}: update from prep.
58185
58186 2003-01-02  Karl Berry  <karl@gnu.org>
58187
58188         * doc/COPYING.DOC: belatedly updated to 1.2.
58189
58190 2003-01-01  Karl Berry  <karl@gnu.org>
58191
58192         * gnulib-tool (func_verify_module): report module name $module in
58193         error message, not $1.
58194         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58195         be created, only if it doesn't exist.
58196         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58197
58198 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58199
58200         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58201
58202 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58203
58204         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58205         memcmp if strcoll doesn't work.
58206
58207 2002-12-31  Bruno Haible  <bruno@clisp.org>
58208
58209         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58210         nonempty.
58211
58212 2002-12-31  Bruno Haible  <bruno@clisp.org>
58213
58214         * lib/memcoll.c (STRCOLL): New macro.
58215         (memcoll): Use it.
58216
58217 2002-12-31  Bruno Haible  <bruno@clisp.org>
58218
58219         * lib/localcharset.h: New file.
58220         * lib/localcharset.c: Include it.
58221         * lib/unicodeio.c: Likewise.
58222
58223 2002-12-31  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58226         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58227
58228 2002-12-31  Bruno Haible  <bruno@clisp.org>
58229
58230         * lib/getline.h: Include <stddef.h>, for size_t.
58231
58232         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58233         * lib/unicodeio.c: Don't include <stddef.h>.
58234
58235 2002-12-31  Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58238         HAVE_TM_ZONE.
58239
58240 2002-12-24  Karl Berry  <karl@gnu.org>
58241
58242         * config/config.guess: update from prep.
58243
58244 2002-12-24  Bruno Haible  <bruno@clisp.org>
58245
58246         General infrasructure.
58247         * m4/README: Rewritten.
58248         * m4/onceonly.m4: New file.
58249         * m4/onceonly_2_57.m4: New file.
58250
58251         Module atexit.
58252         * m4/atexit.m4: New file.
58253
58254         Module strtod.
58255         * m4/strtod.m4: New file.
58256
58257         Module strtol.
58258         * m4/strtol.m4: New file.
58259
58260         Module strtoul.
58261         * m4/strtoul.m4: New file.
58262
58263         Module memchr.
58264         * m4/memchr.m4: New file.
58265
58266         Module memcmp.
58267         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58268         (jm_FUNC_MEMCMP): Invoke it.
58269
58270         Module memcpy.
58271         * m4/memcpy.m4: New file.
58272
58273         Module memmove.
58274         * m4/memmove.m4: New file.
58275
58276         Module memset.
58277         * m4/memset.m4: New file.
58278
58279         Module strcspn.
58280         * m4/strcspn.m4: New file.
58281
58282         Module strpbrk.
58283         * m4/strpbrk.m4: New file.
58284
58285         Module strstr.
58286         * m4/strstr.m4: New file.
58287
58288         Module strerror.
58289         * m4/strerror.m4: New file.
58290
58291         Module mktime.
58292         * m4/mktime.m4: Renamed from jm-mktime.m4.
58293         (gl_PREREQ_MKTIME): New macro.
58294         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58295
58296         Module malloc.
58297         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58298         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58299         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58300
58301         Module realloc.
58302         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58303         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58304         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58305
58306         Module strftime.
58307         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58309         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58310         gl_TM_GMTOFF.
58311         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58312
58313         Module xalloc.
58314         * m4/xalloc.m4: New file.
58315
58316         Module alloca.
58317         * m4/alloca.m4: New file.
58318
58319         Module putenv.
58320         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58321         (jm_FUNC_PUTENV): Invoke it.
58322
58323         Module setenv.
58324         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58325         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58326         when invoked twice.
58327         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58328         gt_FUNC_SETENV.
58329
58330         Module memrchr.
58331         * m4/memrchr.m4: New file.
58332
58333         Module stpcpy.
58334         * m4/stpcpy.m4: New file.
58335
58336         Module strcase.
58337         * m4/strcase.m4: New file.
58338
58339         Module strdup.
58340         * m4/strdup.m4: New file.
58341
58342         Module strnlen.
58343         * m4/strnlen.m4: New file.
58344
58345         Module strndup.
58346         * m4/strndup.m4: New file.
58347
58348         Module xstrtod.
58349         * m4/xstrtod.m4: New file.
58350
58351         Module xstrtol.
58352         * m4/xstrtol.m4: New file.
58353
58354         Module getdate.
58355         * m4/getdate.m4: New file.
58356
58357         Module unlocked-io.
58358         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58359         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58360         * m4/jm-glibc-io.m4n: Remove file.
58361
58362         Module long-options.
58363         * m4/long-options.m4: New file.
58364
58365         Module md5.
58366         * m4/md5.m4: New file.
58367
58368         Module sha.
58369         * m4/sha.m4: New file.
58370
58371         Module getstr.
58372         * m4/getstr.m4: New file.
58373
58374         Module getline.
58375         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58376         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58377         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58378         simply getline. Infoke gl_PREREQ_GETLINE.
58379
58380         Module obstack.
58381         * m4/obstack.m4: New file.
58382
58383         Module hash.
58384         * m4/hash.m4: New file.
58385
58386         Module readtokens.
58387         * m4/readtokens.m4: New file.
58388
58389         Module strverscmp.
58390         * m4/strverscmp.m4: New file.
58391
58392         Module stdbool.
58393         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58394         OSF/1.
58395
58396         Module strtoll.
58397         * m4/strtoll.m4: New file.
58398
58399         Module strtoull.
58400         * m4/strtoull.m4: New file.
58401
58402         Module strtoimax.
58403         * m4/strtoimax.m4: New file.
58404
58405         Module strtoumax.
58406         * m4/strtoumax.m4: New file.
58407
58408         Module xstrtoimax.
58409         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58410         jm_AC_PREREQ_XSTRTOIMAX.
58411         Moved the strtol prerequisites to strtol.m4.
58412         Moved the strtoll prerequisites to strtoll.m4.
58413         Moved the strtoimax prerequisites to strtoimax.m4.
58414
58415         Module xstrtoumax.
58416         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58417         jm_AC_PREREQ_XSTRTOUMAX.
58418         Moved the strtoul prerequisites to strtoul.m4.
58419         Moved the strtoull prerequisites to strtoull.m4.
58420         Moved the strtoumax prerequisites to strtoumax.m4.
58421
58422         Module chown.
58423         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58424         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58425
58426         Module dup2.
58427         * m4/dup2.m4: New file.
58428
58429         Module ftruncate.
58430         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58431         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58432
58433         Module getgroups.
58434         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58435         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58436
58437         Module gettimeofday.
58438         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58439         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58440         gl_PREREQ_GETTIMEOFDAY.
58441
58442         Module mkdir.
58443         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58444         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58445
58446         Module mkstemp.
58447         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58448         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58449         jm_AC_TYPE_UINTMAX_T.
58450         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58451
58452         Module stat.
58453         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58454         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58455
58456         Module lstat.
58457         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58458         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58459
58460         Module timespec.
58461         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58462         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58463         * m4/st_mtim.m4: Indentation.
58464
58465         Module nanosleep.
58466         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58467         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58468         gl_PREREQ_NANOSLEEP.
58469
58470         Module regex.
58471         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58472         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58473         (gl_REGEX): New macro.
58474
58475         Module rename.
58476         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58477         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58478
58479         Module rmdir.
58480         * m4/rmdir.m4: New file.
58481
58482         Module utime.
58483         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58484         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58485         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58486
58487         Module dirname.
58488         * m4/dirname.m4: New file.
58489
58490         Module getopt.
58491         * m4/getopt.m4: New file.
58492
58493         Module unistd-safer.
58494         * m4/unistd-safer.m4: New file.
58495
58496         Module fnmatch.
58497         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58498         declaration.
58499         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58500         (gl_FUNC_FNMATCH_POSIX): New macro.
58501         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58502         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58503         simply fnmatch.
58504
58505         Module exclude.
58506         * m4/exclude.m4: New file.
58507
58508         Module human.
58509         * m4/human.m4: New file.
58510
58511         Module acl.
58512         * m4/acl.m4: Nop.
58513
58514         Module backupfile.
58515         * m4/backupfile.m4: New file.
58516         * m4/d-ino.m4: Indentation.
58517
58518         Module fsusage.
58519         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58520         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58521         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58522
58523         Module dirfd.
58524         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58525         requirements.
58526
58527         Module euidaccess.
58528         * m4/euidaccess.m4: New file.
58529
58530         Module file-type.
58531         * m4/file-type.m4: New file.
58532
58533         Module fileblocks.
58534         * m4/fileblocks.m4: New file.
58535
58536         Module filemode.
58537         * m4/filemode.m4: New file.
58538
58539         Module isdir.
58540         * m4/isdir.m4: New file.
58541
58542         Module lchown.
58543         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58544         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58545
58546         Module makepath.
58547         * m4/makepath.m4: New file.
58548
58549         Module modechange.
58550         * m4/modechange.m4: New file.
58551
58552         Module mountlist.
58553         * m4/mountlist.m4: New file.
58554         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58555         Indentation.
58556
58557         Module path-concat.
58558         * m4/path-concat.m4: New file.
58559
58560         Module pathmax.
58561         * m4/pathmax.m4: New file.
58562
58563         Module same.
58564         * m4/same.m4: New file.
58565
58566         Module save-cwd.
58567         * m4/save-cwd.m4: New file.
58568
58569         Module savedir.
58570         * m4/savedir.m4: New file.
58571
58572         Module xgetcwd.
58573         * m4/xgetcwd.m4: New file.
58574         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58575
58576         Module xreadlink.
58577         * m4/xreadlink.m4: New file.
58578
58579         Module safe-read.
58580         * m4/safe-read.m4: New file.
58581
58582         Module safe-write.
58583         * m4/safe-write.m4: New file.
58584
58585         Module closeout.
58586         * m4/closeout.m4: New file.
58587
58588         Module stdio-safer.
58589         * m4/stdio-safer.m4: New file.
58590
58591         Module getpass.
58592         * m4/getpass.m4: New file.
58593
58594         Module getugroups.
58595         * m4/getugroups.m4: New file.
58596
58597         Module group-member.
58598         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58599         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58600
58601         Module idcache.
58602         * m4/idcache.m4: New file.
58603
58604         Module userspec.
58605         * m4/userspec.m4: New file.
58606
58607         Module gettime.
58608         * m4/clock_time.m4: New file.
58609         * m4/gettime.m4: New file.
58610
58611         Module settime.
58612         * m4/settime.m4: New file.
58613
58614         Module posixtm.
58615         * m4/posixtm.m4: New file.
58616
58617         Module gethostname.
58618         * m4/gethostname.m4: New file.
58619
58620         Module canon-host.
58621         * m4/canon-host.m4: New file.
58622
58623         Module gettext.
58624         * m4/codeset.m4: New file, from gettext-0.11.5.
58625         * m4/gettext.m4: New file, from gettext-0.11.5.
58626         * m4/glibc21.m4: New file, from gettext-0.11.5.
58627         * m4/iconv.m4: New file, from gettext-0.11.5.
58628         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58629         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58630         * m4/inttypes.m4: New file, from gettext-0.11.5.
58631         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58632         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58633         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58634         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58635         * m4/lib-link.m4: New file, from gettext-0.11.5.
58636         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58637         * m4/progtest.m4: New file, from gettext-0.11.5.
58638         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58639         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58640         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58641
58642         Module localcharset.
58643         * m4/localcharset.m4: New file.
58644
58645         Module hard-locale.
58646         * m4/hard-locale.m4: New file.
58647
58648         Module mbswidth.
58649         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58650         onceonly macros.
58651         * m4/mbrtowc.m4: Add comment.
58652
58653         Module memcasecmp.
58654         * m4/memcasecmp.m4: New file.
58655
58656         Module memcoll.
58657         * m4/memcoll.m4: New file.
58658
58659         Module unicodeio.
58660         * m4/unicodeio.m4: New file.
58661
58662         Module rpmatch.
58663         * m4/rpmatch.m4: New file.
58664
58665         Module yesno.
58666         * m4/yesno.m4: New file.
58667
58668         Module exitfail.
58669         * m4/exitfail.m4: New file.
58670
58671         Module c-stack.
58672         * m4/c-stack.m4 (gl_C_STACK): New macro.
58673         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58674
58675         Module error.
58676         * m4/error.m4 (gl_ERROR): New macro.
58677         (jm_PREREQ_ERROR): Use onceonly macros.
58678
58679         Module fatal.
58680         * m4/fatal.m4: New file.
58681
58682         Module getloadavg.
58683         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58684         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58685
58686         Module getpagesize.
58687         * m4/getpagesize.m4: New file.
58688
58689         Module getusershell.
58690         * m4/getusershell.m4: New file.
58691
58692         Module physmem.
58693         * m4/physmem.m4: New file.
58694
58695         Module posixver.
58696         * m4/posixver.m4: New file.
58697
58698         Module quotearg.
58699         * m4/quotearg.m4: New file.
58700
58701         Module quote.
58702         * m4/quote.m4: New file.
58703
58704         Module readutmp.
58705         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58706
58707         Module sig2str.
58708         * m4/sig2str.m4: New file.
58709
58710         Other.
58711         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58712         ulonglong.m4.
58713         * m4/intmax_t.m4: New file.
58714         * m4/d-type.m4: Indentation.
58715         * m4/jm-macros.m4: Update.
58716         * m4/prereq.m4 (jm_PREREQ): Update.
58717         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58718         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58719         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58720         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58721         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58722         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58723         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58724         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58725         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58726         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58727         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58728         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58729         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58730         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58731         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58732         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58733         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58734         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58735         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58736
58737 2002-12-24  Bruno Haible  <bruno@clisp.org>
58738
58739         * MODULES.txt: Update according to m4/ changes.
58740
58741         Module gettext.
58742         * config.rpath: New file, from gettext-0.11.5.
58743
58744         * modules/*: New module descriptions.
58745         * gnulib-tool: New file.
58746         * MODULES.html.sh: New file.
58747
58748 2002-12-21  Karl Berry  <karl@gnu.org>
58749
58750         * doc/fdl.texi: update to version 1.2.
58751
58752 2002-12-19  Karl Berry  <karl@gnu.org>
58753
58754         * config/config.guess: update from prep.
58755
58756 2002-12-18  Bruno Haible  <bruno@clisp.org>
58757
58758         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58759         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58760
58761 2002-12-17  Bruno Haible  <bruno@clisp.org>
58762
58763         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58764         stdlib.h, string.h.
58765
58766 2002-12-17  Bruno Haible  <bruno@clisp.org>
58767
58768         * lib/canon-host.c (strdup): Remove unused declaration.
58769
58770         * lib/fsusage.c: Include full_read.h.
58771         (get_fs_usage): Use full_read instead of safe_read.
58772
58773         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58774
58775 2002-12-12  Karl Berry  <karl@gnu.org>
58776
58777         * config/config.guess: update from prep.
58778
58779 2002-12-11  Bruno Haible  <bruno@clisp.org>
58780
58781         * m4/setenv.m4: New file, from gettext-0.11.5.
58782
58783 2002-12-11  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58786         not unsetenv().
58787         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58788         modifications:
58789
58790         2002-12-11  Bruno Haible  <bruno@clisp.org>
58791
58792                 * setenv.c (alloca): Fall back to malloc.
58793                 (freea): New macro.
58794                 (setenv): Use freea() to free memory allocated with alloca().
58795
58796         2002-11-13  Bruno Haible  <bruno@clisp.org>
58797
58798                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58799                 function declarations.
58800                 * unsetenv.c (unsetenv): Likewise.
58801
58802         2002-03-04  Bruno Haible  <bruno@clisp.org>
58803
58804                 Portability to AIX 4.3.3.
58805                 * unsetenv.c: New file, extracted from setenv.c.
58806                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58807
58808         2001-12-20  Bruno Haible  <bruno@clisp.org>
58809
58810                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58811                 use malloc instead. For SunOS 4.
58812
58813         2001-12-11  Bruno Haible  <bruno@clisp.org>
58814
58815                 * setenv.c: Declare alloca.
58816                 (compar_fn_t): New typedef.
58817                 (KNOWN_VALUE, STORE_VALUE): Use it.
58818
58819         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58820         setenv.h.
58821
58822 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58823
58824         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58825         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58826         Choose values that are less likely to collide with system fnmatch
58827         options.
58828         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58829         defined (e.g., a pure POSIX system).
58830         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58831         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58832
58833 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58834
58835         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58836         a pain in practice to deal with generated m4 files.  This change
58837         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58838
58839         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58840         and jm-glibc-io.m4, as they are no longer a special case.
58841         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58842         kludge and the auto-generation stuff.  Check only whether the
58843         functions are declared, not whether they exist, since older hosts
58844         that don't declare the functions can't use the optimization anyway.
58845
58846 2002-12-06  Jim Meyering  <jim@meyering.net>
58847
58848         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58849
58850         Merge in changes from libc's misc/error.c, in preparation
58851         for the merge of gnulib's changes back into libc.
58852
58853         * lib/error.c (_): Define only if not already defined.
58854         Move definition to follow all #include directives.
58855         Include unlocked-io.h only if !_LIBC.
58856         [_LIBC]: Include <libio/libioP.h>.
58857         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58858         (fflush): Tweak definition to use INTUSE.
58859         (putc): Define.
58860
58861 2002-12-05  Paul Eggert  <eggert@twinsun.com>
58862
58863         * lib/alloca.c [defined emacs]: Include "lisp.h".
58864         (xalloc_die) [defined emacs]: New macro.
58865         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58866         [! defined emacs]: Include <xalloc.h>.
58867         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58868         (pointer): Typedef to POINTER_TYPE *.
58869         (malloc): Remove decl; we now always use xmalloc.
58870         (alloca): Use old-style definition, since Emacs needs this.
58871         Check for arithmetic overflow when computing combined size.
58872
58873 2002-12-04  Paul Eggert  <eggert@twinsun.com>
58874
58875         Do not generate unlocked-io.h automatically, since it's easier to
58876         maintain it by hand.
58877
58878         * lib/unlocked-io.h: New file, from GNU diffutils,
58879         but with proper copyright notice and attribution.
58880         * lib/gen-uio: Remove.
58881         * lib/Makefile.am: Add copyright notice.
58882         (libfetish_a_SOURCES): Add unlocked-io.h.
58883         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58884         (DISTCLEANFILES, io_functions): Remove macros.
58885         (EXTRA_DIST): Remove gen_uio.
58886         (unlocked-io.h): Remove rule.
58887
58888 2002-12-04  Jim Meyering  <jim@meyering.net>
58889
58890         Reflect the fact that stat.c and lstat.c are no longer generated.
58891         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58892         (DISTCLEANFILES): Likewise.
58893         (EXTRA_DIST): Likewise.
58894         (all_local): Don't depend on stat.c or lstat.c.
58895         (stat.c, lstat.c): Remove rules.
58896         (EXTRA_DIST): Remove xstat.in.
58897
58898         * lib/xstat.in: Remove file.  Contents moved into stat.c.
58899         * lib/stat.c: New file.  Contents mostly from xstat.in.
58900         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58901         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58902
58903         * lib/safe-read.c: Rework so that it may serve to define safe_write,
58904         too.
58905         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58906
58907 2002-12-03  Jim Meyering  <jim@meyering.net>
58908
58909         * lib/safe-read.c, safe-write.c: Change variable names and comments,
58910         but not semantics, to minimize the differences between these two files.
58911         (safe_read): Change comment to mention SAFE_READ_ERROR.
58912
58913         * lib/safe-read.c (IS_EINTR): Define.
58914         (safe_read): Use IS_EINTR in place of in-function cpp directives.
58915
58916 2002-12-02  Jim Meyering  <jim@meyering.net>
58917
58918         * lib/safe-read.c (EINTR): Define.
58919         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58920         (INT_MAX): Provide fallback.
58921         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58922
58923         * lib/safe-read.h (SAFE_READ_ERROR): Define.
58924
58925 2002-12-02  Bruno Haible  <bruno@clisp.org>
58926
58927         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58928         Define, taken from safe-read.c.
58929         (INT_MAX): Provide fallback.
58930         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58931         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58932
58933         * lib/safe-read.c (EINTR): Remove definition.
58934         (safe_read): Don't use EINTR if it is absent.
58935
58936 2002-12-01  Jim Meyering  <jim@meyering.net>
58937
58938         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58939         zero.
58940         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58941
58942 2002-11-27  Paul Eggert  <eggert@twinsun.com>
58943
58944         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58945         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58946         with `if (! (value < limit)) abort ();', for readability.
58947
58948 2002-11-26  Karl Berry  <karl@gnu.org>
58949
58950         * lib/strdup.c: copy from libc again, with jim's ok.
58951         * lib/.cppi-disable: re-add strdup.c
58952
58953 2002-11-25  Karl Berry  <karl@gnu.org>
58954
58955         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58956         instead of "strtol.c".
58957
58958 2002-11-25  Karl Berry  <karl@gnu.org>
58959
58960         * config/install-sh: update from automake for variable quoting, $0 in
58961         error msgs, etc.
58962
58963         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58964         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58965         entry.
58966
58967 2002-11-25  Jim Meyering  <jim@meyering.net>
58968
58969         * lib/mktime.c: Sync from libc, now that it has the latest fix.
58970
58971 2002-11-24  Karl Berry  <karl@gnu.org>
58972
58973         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58974         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58975
58976 2002-11-24  Jim Meyering  <jim@meyering.net>
58977
58978         Update from coreutils:
58979
58980         * lib/mktime.c: Merge in changes from libc.
58981
58982         Avoid a link-time failure on some Linux systems.
58983         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58984         (otherwise).
58985         (__mon_yday): Declare with the STATIC attribute.
58986         (__mktime_internal): Likewise.
58987         Based on a report from Greg Schafer.
58988
58989 2002-11-23  Jim Meyering  <jim@meyering.net>
58990
58991         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58992         Use `unsigned', not `int', as type of index.
58993
58994         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58995
58996         * lib/fsusage.c: Remove unneeded parentheses around operands of
58997         `defined'.
58998
58999 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59000
59001         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59002         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59003         so that we can be included first.
59004         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59005         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59006         No need to include stddef.h or sys/types.h any more.
59007         Surround local include files with "", not "<>".
59008         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59009         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59010         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59011         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59012         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59013         (ISPRINT): Remove; no longer needed now that we assume C89.
59014
59015         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59016         Preserve errno.
59017
59018         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59019         quotearg_char): Use SIZE_MAX rather than
59020         (size_t) -1 when we are talking about "infinity".
59021
59022         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59023
59024 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59025
59026         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59027         hint that one should use `if (! x) abort ();' rather than `assert
59028         (x);', and anyway it's one less thing to worry about configuring.
59029         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59030         hash_rehash, hash_insert): Use abort rather than assert.
59031
59032 2002-11-22  Bruno Haible  <bruno@clisp.org>
59033
59034         * lib/safe-read.h: Assume C89. Add comments.
59035         (safe_read): Change return type to size_t.
59036         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59037         byte counts > SSIZE_MAX correctly.
59038         * lib/safe-write.h: New file.
59039         * lib/safe-write.c: New file.
59040         * lib/full-read.h: New file.
59041         * lib/full-read.c: New file.
59042         * lib/full-write.h: Assume C89. Add comments.
59043         * lib/full-write.c: Include safe-write.h.
59044         (full_write): Rewritten to use safe_write.
59045         Suggested by Jim Meyering and Paul Eggert.
59046
59047 2002-11-21  Jim Meyering  <jim@meyering.net>
59048
59049         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59050
59051         Merge in changes from the coreutils.
59052
59053         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59054         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59055         <stdint.h>.
59056         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59057         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59058         int.  Work more efficiently if X is the same width as uintmax_t.
59059         Do not compare X to -1, to avoid bogus compiler warning.
59060         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59061         Don't assume that f_frsize and f_bsize are the same type.
59062
59063         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59064         warning on FreeBSD.
59065
59066         * lib/makepath.c (make_path): Restore umask *before* creating the final
59067         component.
59068         (make_path): Minor reformatting.
59069
59070         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59071         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59072         HAVE_MALLOC/HAVE_REALLOC.
59073
59074         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59075         dummy ones.  At least on GNU/Linux systems, `auto' means something
59076         else.
59077         From Michael Stone.
59078
59079 2002-11-21  Bruno Haible  <bruno@clisp.org>
59080
59081         Remove case insensitive option matching.
59082         * lib/argmatch.h (argcasematch): Remove declaration.
59083         (ARGCASEMATCH): Remove macro.
59084         (__xargmatch_internal): Remove case_sensitive argument.
59085         (XARGMATCH): Update.
59086         (XARGCASEMATCH): Remove macro.
59087         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59088         case_sensitive argument.
59089         (argcasematch): Remove function.
59090         (__xargmatch_internal): Remove case_sensitive argument.
59091         (main): Use XARGMATCH instead of XARGCASEMATCH.
59092
59093         * lib/xmalloc.c: Change compile-time error message. Add comment about
59094         required autoconf version.
59095
59096 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59097
59098         Merge argmatch cleanups from Bison.  Assume C89.
59099
59100         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59101         Include stdlib.h, for EXIT_FAILURE.
59102         Always include <string.h>, since we assume C89.
59103         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59104         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59105         Include <stddef.h> instead, since it's all we need for size_t.
59106         (PARAMS): Remove.  All uses removed.
59107         (ARRAY_CARDINALITY): Do not bother to #undef.
59108         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59109         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59110         Remove unnecessary parentheses.
59111         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59112         Insert necessary parentheses.
59113         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59114         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59115
59116 2002-11-19  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59119         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59120
59121         * lib/mbswidth.h (PARAMS): Remove macro.
59122         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59123         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59124
59125         * lib/gcd.h (PARAMS): Remove macro.
59126         (gcd): Use ANSI C function declarations.
59127         * lib/gcd.c (gcd): Likewise.
59128
59129 2002-11-15  Bruno Haible  <bruno@clisp.org>
59130
59131         * lib/strcspn.c: Include <stddef.h>.
59132         (strcspn): Use ANSI C function declaration. Change return type to
59133         size_t. Use NULL.
59134         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59135         (strpbrk): Use NULL.
59136         * lib/strpbrk.h (PARAMS): Remove macro.
59137         (strpbrk): Use ANSI C function declaration.
59138         * lib/strstr.c: Don't include <sys/types.h>.
59139         * lib/strstr.h (PARAMS): Remove macro.
59140         (strstr): Use ANSI C function declarations.
59141
59142 2002-11-14  Karl Berry  <karl@gnu.org>
59143
59144         * config/mkinstalldirs: `do' on separate line, instead of
59145         `for var; do'.
59146
59147 2002-11-06  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59150         * lib/gcd.c (gcd): Likewise.
59151
59152 2002-11-05  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/gcd.h: New file, from gettext-0.11.5.
59155         * lib/gcd.c: New file, from gettext-0.11.5.
59156
59157 2002-11-05  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59160         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59161         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59162         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59163
59164         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59165         <libintl.h>.
59166         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59167         <libintl.h>.
59168
59169         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59170         * lib/human.c: Include gettext.h instead of <libintl.h>.
59171         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59172         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59173         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59174         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59175         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59176         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59177         (textdomain): Remove definition.
59178         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59179
59180         * lib/long-options.c: Remove include of <libintl.h> and definition of
59181         _.
59182         * lib/same.c: Remove include of <libintl.h> and definition of _.
59183
59184 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59185
59186         * lib/config.charset: A few additions for Solaris.
59187
59188 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59189
59190         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59191         * lib/localcharset.c (locale_charset): Declare as extern "C".
59192
59193 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59194
59195         * lib/config.charset: msdos in uk_UA uses CP1125.
59196
59197 2002-11-04  Bruno Haible  <bruno@clisp.org>
59198
59199         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59200         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59201         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59202         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59203         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59204
59205 2002-11-04  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/localcharset.c (locale_charset): Don't return an empty string.
59208
59209 2002-11-04  Bruno Haible  <bruno@clisp.org>
59210
59211         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59212         aliases.
59213
59214 2002-11-04  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/config.charset: Update for newest glibc. Add canonical names
59217         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59218
59219 2002-11-04  Bruno Haible  <bruno@clisp.org>
59220
59221         * lib/config.charset: Add support for NetBSD.
59222
59223 2002-11-04  Bruno Haible  <bruno@clisp.org>
59224
59225         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59226
59227 2002-11-01  Bruno Haible  <bruno@clisp.org>
59228
59229         * configure.in: Add AC_CONFIG_AUX_DIR call.
59230         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59231         test/Makefile.
59232         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59233
59234 2002-09-28  Karl Berry  <karl@gnu.org>
59235
59236         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59237         installed automake until the next release, since changes have been
59238         made.
59239
59240 2002-09-25  Karl Berry  <karl@gnu.org>
59241
59242         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59243         * lib/getopt*: copy from libc/posix.
59244         * lib/gettext.h: copy from gettext.
59245         * lib/.cppi-disable: add strdup.c, gettext.h.
59246
59247 2002-09-25  Karl Berry  <karl@gnu.org>
59248
59249         * config/srclist.txt: enable gettext.h check.
59250         * config/config.{guess,sub}: update from prep.
59251         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59252                 from automake 1.6.3.
59253         See srclist*.
59254
59255 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59256
59257         * regex.c (PATFETCH): Remove the translating fetch.
59258         (PATFETCH_RAW): Rename to PATFETCH.
59259         (set_image_of_range): New fun.
59260         (SET_RANGE_TABLE_WORK_AREA): Use it.
59261         (regex_compile): Don't translate the pattern chars so eagerly.
59262         Only do it when inserting an `exactn' bytecode or when handling
59263         a char-range.
59264         (mutually_exclusive_p): Avoid empty statement.
59265
59266 2002-07-06  Jim Meyering  <meyering@lucent.com>
59267
59268         * m4/README: Don't mention Makefile.am.in.
59269         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59270
59271 2002-07-01  Jim Meyering  <meyering@lucent.com>
59272
59273         * lib/c-stack.c: Include sys/time.h.
59274         From Volker Borchert.
59275
59276 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59277
59278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59279
59280 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59281
59282         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59283         New macro.  Use it uniformly instead of
59284         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59285         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59286         reported by Vin Shelton.
59287
59288 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59289
59290         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59291         Do not assume SA_SIGINFO behavior.
59292         Bug reported by Jim Meyering on NetBSD 1.5.2.
59293
59294 2002-06-22  Jim Meyering  <meyering@lucent.com>
59295
59296         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59297         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59298
59299         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59300         now that configure.ac uses AC_GNU_SOURCE.
59301         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59302         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59303
59304         Update to latest tools.  Suggestions from Paul Eggert.
59305         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59306         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59307         * m4/fnmatch.m4: Likewise.
59308         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59309         to AC_HEADER_STDBOOL
59310
59311 2002-06-22  Jim Meyering  <meyering@lucent.com>
59312
59313         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59314         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59315
59316 2002-06-22  Jim Meyering  <meyering@lucent.com>
59317
59318         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59319
59320         * lib/exitfail.c, exitfail.h: Likewise.
59321         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59322
59323         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59324         of fnmatch.h.
59325         (EXTRA_DIST): Add fnmatch_loop.c.
59326         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59327
59328         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59329         * lib/fnmatch.c: Update from diffutils-2.8.2.
59330         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59331         * lib/fnmatch.h: Remove file.
59332
59333 2002-06-21  Jim Meyering  <meyering@lucent.com>
59334
59335         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59336         * m4/mbrtowc.m4: Likewise.
59337
59338         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59339         * m4/mbswidth.m4: Reflect name change:
59340         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59341         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59342
59343         * m4/lib-link.m4: Update from gettext-0.11.2.
59344         * m4/gettext.m4: Likewise.
59345
59346         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59347         From Alfred M. Szmidt.
59348
59349 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59350
59351         * lib/file-type.h: Report an error if neither S_ISREG nor
59352         S_IFREG is defined, instead of using a test specific to glibc
59353         2.2.  This should be safe, since POSIX requires S_ISREG and
59354         Unix Version 7 had S_IFREG.  We don't need to check for
59355         <sys/types.h> since we don't use any symbols that it defines.
59356
59357 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59358
59359         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59360         $@-t, so that each temporary file name is unique and valid in the first
59361         8 characters, for operation under DOS.
59362
59363 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59364
59365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59366
59367 2002-06-15  Jim Meyering  <meyering@lucent.com>
59368
59369         Work even with DJGPP 2.03, which lacks support for symlinks.
59370         From Richard Dawe.
59371         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59372         is defined.
59373         * lib/lchown.c (S_ISLNK): Likewise.
59374
59375 2002-06-15  Jim Meyering  <meyering@lucent.com>
59376
59377         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59378         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59379         have been included before this file.
59380
59381 2002-06-14  Jim Meyering  <meyering@lucent.com>
59382
59383         * lib/file-type.h: Use the version from diffutils-2.8.2.
59384         * lib/file-type.c: Likewise.
59385
59386 2002-06-07  Jim Meyering  <meyering@lucent.com>
59387
59388         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59389         They're needed at least for NetBSD 1.5.2.
59390         ($statxfs_includes): Include those same headers.
59391         ($statxfs_includes): Include sys/vfs.h if available.
59392         ($statxfs_includes): Likewise for sys/statvfs.h.
59393         Check for the following members in both structs statfs and statvfs:
59394         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59395
59396 2002-06-01  Jim Meyering  <meyering@lucent.com>
59397
59398         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59399         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59400
59401 2002-05-28  Jim Meyering  <meyering@lucent.com>
59402
59403         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59404         Reported by Volker Borchert.
59405
59406 2002-05-27  Jim Meyering  <meyering@lucent.com>
59407
59408         Fix a problem seen only on nonconforming systems whereby ls.c's
59409         use of localtime, and then of gettimeofday would cause trouble:
59410         the localtime call used to initialize rpl_gettimeofday's save
59411         mechanism would clobber ls's current local time information so
59412         that in any long listing the first file would always be listed
59413         with date 1970-01-01.  Analysis by Volker Borchert.
59414
59415         * lib/gettimeofday.c (localtime): Undefine.
59416         (rpl_localtime): New function.
59417
59418 2002-05-27  Jim Meyering  <meyering@lucent.com>
59419
59420         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59421         localtime.
59422
59423         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59424         use the replacement function; it wouldn't resolve at link time.
59425         Reported by Volker Borchert.
59426
59427 2002-05-22  Jim Meyering  <meyering@lucent.com>
59428
59429         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59430         file-type.h.
59431         * lib/file-type.h: New file.
59432         * lib/file-type.c (file_type): New file/function.  Extracted from
59433         diffutils.
59434
59435 2002-04-30  Jim Meyering  <meyering@lucent.com>
59436
59437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59438
59439 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59440
59441         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59442
59443 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59444
59445         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59446         Do not check for alloca.h (no longer used) or stdbool.h (was never
59447         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59448
59449 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59450
59451         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59452
59453 2002-04-29  Jim Meyering  <meyering@lucent.com>
59454
59455         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59456         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59457         Use AC_FUNC_STRNLEN here instead.
59458
59459         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59460         With autoconf-2.53a, it's part of AC_PROG_CC.
59461
59462 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59463
59464         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59466
59467 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59468
59469         * lib/sig2str.h, lib/sig2str.c: New files.
59470         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59471
59472 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59473
59474         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59475         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59476         of 127, since 64 is the largest conceivable number for ancient
59477         nonstandard hosts.
59478         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59479
59480 2002-04-28  Jim Meyering  <meyering@lucent.com>
59481
59482         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59483
59484 2002-04-24  Jim Meyering  <meyering@lucent.com>
59485
59486         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59487         (jm_PREREQ): Use it.
59488
59489         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59490         mach/mach.h fcntl.h.
59491         Check for this function: setlocale.
59492
59493 2002-04-24  Jim Meyering  <meyering@lucent.com>
59494
59495         * lib/gettext.h: New file, from Gettext.
59496         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59497         (libfetish_a_SOURCES): Add gettext.h.
59498
59499 2002-04-16  Jim Meyering  <meyering@lucent.com>
59500
59501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59502         ut_pid, ut_id, ut_exit.
59503
59504 2002-04-16  Jim Meyering  <meyering@lucent.com>
59505
59506         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59507         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59508         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59509
59510 2002-04-12  Jim Meyering  <meyering@lucent.com>
59511
59512         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59513         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59514         existence of the getmntinfo function.  Needed for Darwin 5.3.
59515
59516         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59517         This is necessary at least on Darwin 5.3.
59518
59519         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59520         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59521         strnlen.o in the library, and that makes some versions of ranlib
59522         object.
59523
59524 2002-04-12  Jim Meyering  <meyering@lucent.com>
59525
59526         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59527
59528 2002-04-09  Jim Meyering  <meyering@lucent.com>
59529
59530         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59531         to be more precise.  Rather than saying we're checking whether the
59532         function `works', say what we're testing.
59533         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59534         Reported by Bruno Haible.
59535
59536 2002-03-10  Jim Meyering  <meyering@lucent.com>
59537
59538         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59539         Suggestion from Santiago Vila.
59540
59541 2002-03-08  Jim Meyering  <meyering@lucent.com>
59542
59543         * lib/rename.c: Mention that this wrapper is needed also on
59544         mips-dec-ultrix4.4 systems.
59545
59546 2002-03-02  Jim Meyering  <meyering@lucent.com>
59547
59548         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59549         not HAVE_CLOCK_SETTIME.
59550
59551 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59552
59553         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59554         Check for clock_settime.
59555
59556 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59557
59558         * lib/nanosleep.h: Rename to....
59559         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59560
59561         * lib/gettime.c: New file.
59562         * lib/settime.c: New file.
59563         * lib/stime.c: Remove.
59564
59565         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59566         timespec.h.  Remove nanosleep.h.
59567
59568 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59569
59570         * m4/acl.m4: New file.
59571         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59572         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59573
59574 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59575
59576         * lib/acl.c, lib/acl.h: New files.
59577         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59578
59579 2002-02-24  Jim Meyering  <meyering@lucent.com>
59580
59581         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59582         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59583         cause trouble.  Reported by Nelson Beebe.
59584
59585 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59586
59587         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59588         compilers that don't know that xalloc_die never returns.
59589
59590 2002-02-20  Jim Meyering  <meyering@lucent.com>
59591
59592         * lib/getdate.c: Regenerate using bison-1.33.
59593
59594 2002-02-17  Jim Meyering  <meyering@lucent.com>
59595
59596         * config/config.guess (main): Don't use `head -1'; it's no longer
59597         portable. Use `sed 1q' instead.
59598
59599 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59600
59601         * m4/codeset.m4: Upgrade to gettext-0.11.
59602         * m4/gettext.m4: Upgrade to gettext-0.11.
59603         * m4/glibc21.m4: Upgrade to gettext-0.11.
59604         * m4/iconv.m4: Upgrade to gettext-0.11.
59605         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59606         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59607         * m4/lib-ld.m4: New file, from gettext-0.11.
59608         * m4/lib-link.m4: New file, from gettext-0.11.
59609         * m4/lib-prefix.m4: New file, from gettext-0.11.
59610         * m4/progtest.m4: Upgrade to gettext-0.11.
59611
59612 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59613
59614         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59615         (jm_PREREQ): Use it.
59616
59617 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59618
59619         * lib/posixver.c, lib/posixver.h: New files.
59620         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59621
59622 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59623             Bruno Haible  <bruno@clisp.org>
59624
59625         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59626         (fwrite_success_callback): New declaration.
59627         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59628         print_unicode_char. Call failure callback instead of error.
59629         (fwrite_success_callback): New function.
59630         (exit_failure_callback): New function.
59631         (fallback_failure_callback): New function.
59632         (print_unicode_char): Call unicode_to_mb.
59633
59634 2002-01-26  Jim Meyering  <meyering@lucent.com>
59635
59636         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59637         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59638
59639 2002-01-26  Jim Meyering  <meyering@lucent.com>
59640
59641         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59642
59643 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59644
59645         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59646
59647 2002-01-22  Jim Meyering  <meyering@lucent.com>
59648
59649         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59650         Otherwise, some versions of automake would omit the rule that makes
59651         Makefile from Makefile.in.
59652
59653 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59654
59655         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59656         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59657         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59658         (memcoll): Set errno to zero if there is no error.
59659
59660         * lib/quotearg.c (quotearg_buffer_restyled):
59661         Fix bug with quoting buffers containing NUL when backslashing escapes.
59662         This bug was exposed by the other changes in this patch.
59663         (quotearg_n_options): New arg ARGSIZE.
59664         All callers changed.
59665         (quoting_options_from_style): New function.
59666         (quotearg_n_style): Use it.
59667         (quotearg_n_style_mem): New function.
59668
59669         * lib/quotearg.h (quotearg_n_style_mem): New function.
59670
59671 2002-01-19  Jim Meyering  <meyering@lucent.com>
59672
59673         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59674         Remove useless quotes: DF_PROG="df".
59675         * m4/strnlen.m4: New file.
59676
59677 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59678
59679         * lib/backupfile.c (ISDIGIT): Comment fix.
59680         * lib/getdate.y (ISDIGIT): Likewise.
59681         * lib/posixtm.c (ISDIGIT, year): Likewise.
59682         * lib/strverscmp.c (ISDIGIT): Likewise.
59683         * lib/userspec.c (ISDIGIT): Likewise.
59684
59685 2002-01-16  Jim Meyering  <meyering@lucent.com>
59686
59687         * lib/getdate.y: Add three semicolons, each just before a closing
59688         brace. Bison (as of version 1.31) no longer papers over that mistake.
59689
59690 2002-01-05  Jim Meyering  <meyering@lucent.com>
59691
59692         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59693
59694 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59695
59696         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59697         not silently exit merely because the output buffer happens to
59698         have nothing pending.
59699
59700 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59701
59702         See the big note in ../ChangeLog.
59703         * lib/human.c (suffixes): Prefer K to k for 1024.
59704         (generate_suffix_backwards): New function.
59705         (human_readable_inexact): Use it.
59706         * lib/xstrtol.c (__xstrtol): If there is no number but there
59707         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59708         Accept 'K' as well as 'k'.
59709
59710 2001-12-15  Jim Meyering  <meyering@lucent.com>
59711
59712         * lib/regex.h (__restrict_arr): Update from libc.
59713
59714         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59715         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59716         (STREQ): Define.
59717
59718 2001-12-14  Jim Meyering  <meyering@lucent.com>
59719
59720         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59721         Suggestion from Bruno Haible.
59722
59723 2001-12-10  Jim Meyering  <meyering@lucent.com>
59724
59725         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59726         xrealloc, Instead, include "xalloc.h".
59727         (initbuffer): Don't cast xmalloc return value to char*.
59728         (readline): Reword comment.
59729         Don't cast xrealloc return value to char*
59730         Return NULL, not 0.
59731
59732 2001-12-09  Jim Meyering  <meyering@lucent.com>
59733
59734         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59735         about `signed and unsigned type in conditional expression'.
59736         * lib/posixtm.c (posix_time_parse): Likewise.
59737
59738         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59739
59740         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59741         to avoid a pedantic warning.
59742
59743         * lib/getstr.c: Don't include assert.h.
59744         (getstr): Remove warning-evoking assertions.
59745         Return -1 if offset parameter is out of bounds.
59746         Change the type of a local from int to size_t.
59747
59748         * lib/strftime.c (my_strftime_localtime_r): Include this function
59749         definition in the `#if ! HAVE_TM_GMTOFF' block.
59750
59751         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59752         Include xalloc.h instead.
59753
59754 2001-12-02  Jim Meyering  <meyering@lucent.com>
59755
59756         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59757         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59758         included.
59759
59760         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59761         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59762
59763 2001-11-30  Akim Demaille  <akim@epita.fr>
59764
59765         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59766         before being defined.
59767
59768 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59769
59770         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59771         First arg is int, not unsigned.
59772         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59773         (SIZE_MAX, UINT_MAX): New macros.
59774         (quotearg_n_options): Abort if N is negative.
59775         Avoid overflow check on hosts where size_t is 64 bits and int
59776         is 32 bits, as overflow is impossible there.
59777         Fix off-by-one typo that caused unnecessary reallocation.
59778
59779 2001-11-27  Jim Meyering  <meyering@lucent.com>
59780
59781         * lib/tempname.c: Merge with version from libc.
59782         * lib/regex.c: Likewise.
59783
59784         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59785         systems for which STDC_HEADERS is 0, it was not included, resulting in
59786         a warning about an integer-to-pointer conversion problem with getenv.
59787         Reported by Volker Borchert.
59788
59789 2001-11-26  Jim Meyering  <meyering@lucent.com>
59790
59791         * lib/gtod.h: Remove file.
59792         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59793         * lib/gettimeofday.c: Don't include gtod.h.
59794         (GTOD_init): Remove function.
59795         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59796         Suggestion from Volker Borchert.
59797
59798 2001-11-23  Jim Meyering  <meyering@lucent.com>
59799
59800         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59801         it.
59802         * lib/hash.c (struct hash_table): Define it here instead.
59803
59804 2001-11-22  Jim Meyering  <meyering@lucent.com>
59805
59806         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59807
59808 2001-11-20  Jim Meyering  <meyering@lucent.com>
59809
59810         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59811         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59812
59813 2001-11-19  Jim Meyering  <meyering@lucent.com>
59814
59815         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59816         directory.  Use "conftestXXXXXX" as the template.
59817         Suggestion from Paul Eggert.
59818
59819         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59820         immediately, so the test doesn't mistakenly hit the max-open-files
59821         limit.
59822
59823 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59824
59825         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59826         (TEMPORARIES): New macro.
59827         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59828         removes an artificial limitation (e.g. HP-UX 10.20, where
59829         TMP_MAX is 17576).
59830
59831 2001-11-18  Jim Meyering  <meyering@lucent.com>
59832
59833         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59834
59835 2001-11-18  Jim Meyering  <meyering@lucent.com>
59836
59837         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59838         on SunOS 4.
59839
59840         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59841         files will be created before anything else.
59842
59843 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59844
59845         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59846         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59847
59848 2001-11-17  Jim Meyering  <meyering@lucent.com>
59849
59850         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59851         Prompted by a report from Bob Proulx.
59852
59853         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59854         Instead, require UTILS_FUNC_MKSTEMP.
59855
59856 2001-11-17  Jim Meyering  <meyering@lucent.com>
59857
59858         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59859         Now, that's done as part of AC_FUNC_STRTOD.
59860
59861 2001-11-17  Jim Meyering  <meyering@lucent.com>
59862
59863         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59864         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59865         rather than group writable.  Patch by Juan F. Codagnone.
59866
59867         * lib/readtokens.c: Remove explicit declarations of xmalloc and
59868         xrealloc, Instead, include "xalloc.h".
59869
59870         * lib/mountlist.c: Include unlocked-io.h after all system headers.
59871         Remove explicit declarations of xmalloc, xrealloc,
59872         and xstrdup.  Instead, include "xalloc.h".
59873
59874         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59875         unlocked-io.h.
59876         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59877         Likewise.
59878         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59879
59880         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59881         Reported by Padraig Brady.
59882
59883         * lib/mkstemp.c: #undef mkstemp.
59884         Include config.h.
59885         (rpl_mkstemp): Rename from mkstemp.
59886         Protoize.
59887
59888 2001-11-16  Jim Meyering  <meyering@lucent.com>
59889
59890         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59891         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59892         determine the amount of total physical memory, use pstat_getstatic.
59893         HPUX-11 doesn't define _SC_PHYS_PAGES.
59894         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59895         If sysconf couldn't be used to determine the amount of available
59896         physical memory, use both pstat_getstatic and pstat_getdynamic.
59897         Based on a patch from Bob Proulx.
59898
59899 2001-11-10  Jim Meyering  <meyering@lucent.com>
59900
59901         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59902         (jm_PREREQ): Use it.
59903
59904 2001-11-09  Jim Meyering  <meyering@lucent.com>
59905
59906         * m4/jm-macros.m4: Require autoconf-2.52f.
59907         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59908         Use these AC_-prefixed names, not the AM_-prefixed ones.
59909
59910         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
59911
59912 2001-11-05  Jim Meyering  <meyering@lucent.com>
59913
59914         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59915
59916 2001-11-04  Jim Meyering  <meyering@lucent.com>
59917
59918         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59919         $DEFS.
59920
59921 2001-11-03  Jim Meyering  <meyering@lucent.com>
59922
59923         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59924         of AC_DEFUN.
59925
59926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59927         know the name of the variable in the macro definition.
59928
59929 2001-11-03  Jim Meyering  <meyering@lucent.com>
59930
59931         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59932         in argmatch_to_argument call.
59933
59934         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59935         argument.
59936
59937         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59938         e.g., a fault due to an attempt to free a NULL pointer.
59939
59940 2001-11-01  Jim Meyering  <meyering@lucent.com>
59941
59942         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59943         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59944
59945 2001-11-01  Jim Meyering  <meyering@lucent.com>
59946
59947         * lib/dirfd.c, lib/dirfd.h: New files.
59948         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59949
59950         * lib/hash.c (hash_print) [TESTING]: Clean up.
59951
59952 2001-10-22  Paul Eggert  <eggert@twinsun.com>
59953
59954         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59955         to avoid a warning if -Wall.
59956
59957 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
59958
59959         * README: New file
59960         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59961         (per RMS's instructions, this is now the canonical source)
59962         * lgpl/, gpl/: New directories.
59963
59964 2001-10-21  Paul Eggert  <eggert@twinsun.com>
59965
59966         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59967
59968 2001-10-21  Jim Meyering  <meyering@lucent.com>
59969
59970         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
59971         this code would end up calling gettext even in packages built
59972         with --disable-nls.
59973         * lib/getopt.c (_): Likewise.
59974         * lib/regex.c (_): Likewise.
59975
59976 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59977
59978         * m4/error.m4 (jm_PREREQ_ERROR):
59979         Do not invoke AC_CHECK_FUNCS with strerror_r, as
59980         AC_FUNC_STRERROR_R does that.
59981         Check for strerror declaration.
59982
59983         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59984         are supposed to have them these days.
59985         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59986         Merge changes from latest Autoconf CVS.
59987         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59988         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59989         POSIX decided to standardize on the int flavor of strerror_r.
59990
59991 2001-10-20  Paul Eggert  <eggert@twinsun.com>
59992
59993         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59994         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59995         Use strerror_r that is only a macro, even if it is not a function.
59996         (strerror): Check for HAVE_DECL_STRERROR before declaring.
59997         (private_strerror): Use prototypes, not old-style function definition.
59998         (print_errno_message): New function.
59999         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60000         char*-flavored one.
60001         (error_tail, error, error_at_line): Use it.
60002
60003 2001-10-11  Jim Meyering  <meyering@lucent.com>
60004
60005         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60006         and quote_n (1, ... to avoid clobbering a buffer.
60007
60008 2001-10-05  Jim Meyering  <meyering@lucent.com>
60009
60010         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60011         hash-pjw.h.
60012         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60013         * lib/hash-pjw.h: New file.
60014
60015 2001-09-30  Jim Meyering  <meyering@lucent.com>
60016
60017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60018         `struct fsstat' has the `f_fstypename' member.
60019         Use that to define FS_TYPE, which is now used to make
60020         the getfsstat link test tighter.
60021
60022 2001-09-30  Jim Meyering  <meyering@lucent.com>
60023
60024         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60025         Include <sys/ucred.h>, for Apple Darwin.
60026         Include sys/mount.h and sys/fs_types.h only if available.
60027         (FS_TYPE): Define.
60028         (read_filesystem_list): Use FS_TYPE.
60029
60030 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60031
60032         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60033         a boolean context.
60034
60035 2001-09-29  Jim Meyering  <meyering@lucent.com>
60036
60037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60038         [one-argument getmntent function]): Include stdio.h before mntent.h.
60039         SunOS 4.1.x needs it for the declaration of `FILE'.
60040         Patch by Volker Borchert.
60041
60042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60043         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60044         sys/fs_types.h, and make the link-test for getfsstat guard #include
60045         directives with appropriate #if HAVE_*_H tests so that we can
60046         detect getfsstat on Apple Darwin1.3.7 systems.
60047         Reported by Nelson Beebe.
60048         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60049
60050 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60051
60052         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60053         #defines strtoimax.  Also treat the other strto* functions
60054         like strtoimax.
60055
60056         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60057         Check for strtoul and strtoumax,
60058         as those declarations are made even in the signed case.
60059         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60060         Likewise, for strtol and strtoimax.
60061
60062 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60063
60064         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60065         #defines strtoimax.  Also treat the other strto* functions
60066         like strtoimax.
60067
60068         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60069         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60070         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60071
60072 2001-09-26  Jim Meyering  <meyering@lucent.com>
60073
60074         Most macros in unlocked-io.h had the wrong number of arguments.
60075         * lib/gen-uio: New script.
60076         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60077         * lib/unlocked-io.hin: Remove file.
60078         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60079         rather than trying to embed it here.
60080         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60081         Reported by Padraig Brady.
60082
60083 2001-09-25  Volker Borchert  <bt@teknon.de>
60084
60085         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60086         `result'.
60087
60088 2001-09-24  Jim Meyering  <meyering@lucent.com>
60089
60090         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60091
60092 2001-09-23  Jim Meyering  <meyering@lucent.com>
60093
60094         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60095         instead of the mere test for existence of mntent.h.  The latter
60096         would get a false-positive on AIX 3.4 systems.
60097         In the outer getmntent if-block, don't die if neither of the getmntent
60098         tests succeeds.  Instead, just fall through and continue with the
60099         remaining tests.
60100
60101 2001-09-23  Jim Meyering  <meyering@lucent.com>
60102
60103         * lib/mountlist.c: Remove useless parentheses in #if directives.
60104         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60105         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60106
60107 2001-09-22  Jim Meyering  <meyering@lucent.com>
60108
60109         * m4/gettext.m4: New file.  From gettext.
60110         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60111         * m4/progtest.m4: Likewise
60112         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60113         * m4/glibc21.m4: Likewise.
60114
60115         * m4/libintl.m4: Remove.  No longer used.
60116
60117 2001-09-22  Jim Meyering  <meyering@lucent.com>
60118
60119         * lib/localcharset.c: Update from latest gettext.
60120         * lib/config.charset: Likewise.
60121
60122 2001-09-20  Jim Meyering  <meyering@lucent.com>
60123
60124         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60125         strtoimax.
60126         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60127         strtoumax.
60128
60129 2001-09-20  Jim Meyering  <meyering@lucent.com>
60130
60131         * lib/xstrtol.c (strtoimax): Guard declaration with
60132         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60133         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60134         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60135         (strtoumax): Likewise, for completeness (it wasn't necessary).
60136
60137 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60138
60139         * lib/strtoimax.c (HAVE_LONG_LONG):
60140         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60141         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60142         to work around bug in IBM C compiler.
60143
60144 2001-09-17  Jim Meyering  <meyering@lucent.com>
60145
60146         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60147         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60148         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60149         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60150         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60151         whenever the right hand side need not be expanded by the shell.
60152
60153 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60154
60155         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60156         library.  It's not correct, as some older glibcs are buggy.
60157         fnmatch wasn't fixed until glibc 2.2.
60158
60159         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60160         special shell magic here.
60161
60162 2001-09-16  Jim Meyering  <meyering@lucent.com>
60163
60164         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60165         * m4/jm-macros.m4: Require it.
60166
60167 2001-09-16  Jim Meyering  <meyering@lucent.com>
60168
60169         * lib/mkdir.c: New file.
60170
60171 2001-09-15  Jim Meyering  <meyering@lucent.com>
60172
60173         * m4/jm-macros.m4: Check for help2man.
60174
60175 2001-09-11  Jim Meyering  <meyering@lucent.com>
60176
60177         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60178         The body, by Paul Eggert, was moved here from configure.in.
60179         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60180
60181 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60182
60183         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60184         (jm_PREREQ): Use it.
60185
60186 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60187
60188         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60189         Use ssize_t, not int, to store result of readlink.
60190         Check for ssize_t overflow as well as size_t overflow,
60191         as POSIX says the result of readlink is implementation-defined
60192         when ssize_t overflows.
60193         Remove unnecessary cast to char*.
60194         Use free+malloc instead of realloc, as the storage doesn't need
60195         to be preserved and it's clearer and can be more efficient that way.
60196         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60197         * lib/xreadlink.h (xreadlink): Update prototype.
60198
60199 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60200
60201         * lib/xgetcwd.c: Revert some of the previous change; intead,
60202         fix the HAVE_GETCWD_NULL code to behave more like the
60203         !HAVE_GETCWD_NULL code used to.
60204
60205         Include "xalloc.h".
60206         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60207         invoke xalloc_die.
60208
60209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60210
60211         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60212         sys/param.h, as pathmax.h includes them.
60213
60214 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60215
60216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60217         (jm_PREREQ_XGETCWD): New macro.
60218
60219         * m4/getcwd.m4: New file.
60220
60221 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60222
60223         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60224         like the HAVE_GETCWD_NULL code.
60225         Include pathmax.h if not HAVE_GETCWD.
60226         Do not include xalloc.h.
60227         (INITIAL_BUFFER_SIZE): New symbol.
60228         Do not use xmalloc / xrealloc, since the caller is responsible for
60229         handling errors.  Preserve errno around `free' during failure.
60230         Do not overrun buffer when using getwd.
60231
60232 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60233
60234         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60235         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60236         getcwd (NULL, 0).
60237
60238 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60239
60240         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60241         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60242         spotted by Jim Meyering.
60243
60244 2001-09-03  Jim Meyering  <meyering@lucent.com>
60245
60246         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60247         failure.
60248
60249 2001-09-02  Jim Meyering  <meyering@lucent.com>
60250
60251         * lib/error.c: Update from GNU libc.
60252
60253 2001-09-01  Jim Meyering  <meyering@lucent.com>
60254
60255         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60256         Used by df.
60257
60258 2001-09-01  Jim Meyering  <meyering@lucent.com>
60259
60260         * lib/xreadlink.c: New file.
60261         * lib/xreadlink.h: New file.
60262         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60263         xreadlink.h.
60264
60265         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60266         doesn't conflict with sparc Solaris 7's definition in
60267         /usr/include/sys/int_types.h.
60268
60269         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60270         files.
60271         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60272         and strncasecmp as r-values.  Unixware didn't have declarations.
60273
60274 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60275
60276         * lib/xstrtol.h: Add copyright notice.
60277         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60278         LONGINT_INVALID_SUFFIX_CHAR.
60279
60280 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60281
60282         * lib/xstrtol.c (strtoimax): New decl.
60283
60284 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60285
60286         * lib/xgetcwd.c: Don't include pathmax.h.
60287         Include stdlib.h and unistd.h if available.
60288         Include xalloc.h.
60289         (xmalloc, xstrdup, free): Remove decls.
60290         (xgetcwd): Don't assume sizes fit in unsigned.
60291         Check for overflow when computing sizes.
60292         Simplify reallocation code.
60293
60294 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60295
60296         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60297         a directory's st_size can have an arbitrary value, so the old
60298         usage could waste an arbitrary amount of memory.  All uses
60299         changed.
60300         * lib/savedir.h: Update prototype.
60301
60302 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60303
60304         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60305
60306         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60307         old strtoimax.c.
60308
60309         Also, make the following further changes to make this file's
60310         configuration more similar to that of strtol.c:
60311         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60312         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60313         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60314         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60315         changed to signed values.
60316
60317         And make the following changes as well:
60318         Fix copyright notice, as 1999 was missing.
60319         (verify): New macro.
60320         (strtoimax): Check sizes at compile-time, not run-time.
60321         Prefer strtol to strtoll if both work.
60322         (main): Remove; it was not that useful and was a pain to maintain.
60323
60324         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60325
60326 2001-08-31  Jim Meyering  <meyering@lucent.com>
60327
60328         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60329         Use an initial, malloc'd, buffer of length 128 rather than
60330         a statically allocated one of length 1024.
60331
60332 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60333
60334         Simplify code, partly by assuming autoconf 2.52 semantics.
60335
60336         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60337
60338         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60339         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60340         All uses removed.
60341         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60342         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60343         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60344         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60345         jm_AC_HEADER_INTTYPES_H.
60346         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60347
60348         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60349
60350         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60351         Quote first arg of AC_DEFUN.
60352         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60353         since they are needed to parse the include file even if we need
60354         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60355         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60356         but with opposite signedness.
60357
60358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60359
60360         Merge 'exclude' changes from tar 1.13.22.
60361         This fixes one or two unlikely storage allocation overflow bugs,
60362         but doesn't change user-visible behavior otherwise.
60363
60364 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60365
60366         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60367         (jm_PREREQ_EXCLUDE): New macro.
60368
60369 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60370
60371         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60372         tm to be declared.
60373
60374 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60375
60376         * lib/hash.c: Remove '2001' from copyright notice.
60377
60378 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60379
60380         * lib/full-write.h: New file.
60381         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60382         * lib/full-write.c: Correct credits, as cccp.c no longer
60383         exists and anyway it was so heavily changed from the old cccp
60384         code as to be unrecognizable.  Include full-write.h.
60385         (full_write) Return size_t, with short writes meaning failure.
60386         All callers changed.  This fixes a bug with large buffers
60387         on 64-bit hosts.
60388         * lib/utime.c: Include full-write.h.
60389
60390 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60391
60392         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60393         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60394         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60395         Include if available.
60396         (<xalloc.h>): Include
60397         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60398         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60399         collide with FNM macros.
60400         (struct patopts): New struct.
60401         (struct exclude): Use it, as exclude patterns now come with options.
60402         (new_exclude): Support above changes.
60403         (new_exclude, add_exclude_file):
60404         Initial size must now be a power of two to simplify overflow checking.
60405         (free_exclude, fnmatch_no_wildcards): New function.
60406         (excluded_filename): No longer requires options arg, as the options
60407         are determined by add_exclude.  Now returns bool, not int.
60408         (excluded_filename, add_exclude):
60409         Add support for the fancy new exclusion options.
60410         (add_exclude, add_exclude_file): Now takes int options arg.
60411         Check for arithmetic overflow when computing sizes.
60412         (add_exclude_file): xrealloc might modify errno, so don't
60413         realloc until after errno might be used.
60414
60415         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60416         New macros.
60417         (free_exclude): New decl.
60418         (add_exclude, add_exclude_file): Now takes int options arg.
60419         (excluded_filename): No longer requires options arg, as the options
60420         are determined by add_exclude.  Now returns bool, not int.
60421
60422 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60423
60424         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60425
60426 2001-08-27  Jim Meyering  <meyering@lucent.com>
60427
60428         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60429
60430         * lib/version-etc.c (N_): Remove definition.
60431         Revert most of last change.
60432         Instead, simply don't mark the `Copyright...' string for translation.
60433         Based on advice from Paul Eggert.
60434
60435         * lib/strtoxmax.c: Tweak comment.
60436
60437 2001-08-26  Jim Meyering  <meyering@lucent.com>
60438
60439         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60440
60441         * m4/xstrtoimax.m4: New file.
60442         * m4/xstrtoumax.m4: Add comments explaining why we
60443         AC_REPLACE_FUNCS(strtol).
60444
60445 2001-08-26  Jim Meyering  <meyering@lucent.com>
60446
60447         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60448         of copyright with `%s' so translators don't get an untranslated
60449         message in 2002.
60450         (COPYRIGHT_YEAR): Define.
60451         (version_etc): Use fprintf rather than fputs.
60452         Suggestion from Ulrich Drepper.
60453
60454         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60455
60456         * lib/strtoll.c: New file, from GNU libc.
60457         * lib/xstrtoimax.c: New file.
60458
60459         * lib/xstrtol.h: Add xstrtoimax.
60460         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60461         * lib/strtoimax.c: New file.  Likewise, but first define
60462         STRTOUXMAX_SIGNED.
60463
60464         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60465         ...
60466         * lib/strtoxmax.c: ... then renamed to this.
60467
60468 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60469
60470         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60471         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60472         (jm_AC_TYPE_INTMAX_T): New macro.
60473         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60474
60475         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60476
60477         * m4/longlong.m4: Renamed from ulonglong.m4.
60478         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60479         * m4/uintmax_t.m4: Removed.
60480
60481 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60482
60483         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60484         Port to Solaris 8, where 'sed' requires a space after the 'r'
60485         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60486         Redirect output to $tmp just once.
60487
60488 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60489
60490         * lib/addext.c (<errno.h>): Include.
60491         (errno): Declare if not defined.
60492         (addext): Work correctly when pathconf returns -1 and leaves
60493         errno alone because there is no limit.  Also, work even if
60494         pathconf returns a value greater than SIZE_MAX.
60495
60496 2001-08-12  Jim Meyering  <meyering@lucent.com>
60497
60498         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60499         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60500         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60501         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60502         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60503         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60504         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60505         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60506         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60507         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60508         utime.m4, utimes.m4, xstrtoumax.m4:
60509         Quote the first argument in each use of AC_DEFUN.
60510
60511 2001-08-12  Jim Meyering  <meyering@lucent.com>
60512
60513         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60514         Simply `return getcwd (NULL, 0);'.
60515         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60516         Use 1300 as initial value for length, not PATH_MAX.
60517
60518         * lib/pathmax.h: Clean up cpp syntax.
60519
60520 2001-08-12  Jim Meyering  <meyering@lucent.com>
60521
60522         * lib/gettimeofday.c: New file.
60523         * lib/gtod.h: New file.
60524         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60525
60526 2001-08-05  Jim Meyering  <meyering@lucent.com>
60527
60528         * m4/jm-macros.m4: Require autoconf-2.52.
60529
60530 2001-08-04  Jim Meyering  <meyering@lucent.com>
60531
60532         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60533         stmt, to get in sync with glibc.
60534
60535 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60536
60537         The following changes are from gettext 0.10.39 as maintained by
60538         Bruno Haible.
60539
60540         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60541         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60542         with inverted sense.  All uses changed.
60543
60544         * lib/mbswidth.c: Don't include <limits.h>.
60545         Include <stdlib.h> and <string.h> unconditionally.
60546         (iswcntrl, mbsinit, ISCNTRL): New macros.
60547         (mbsnwidth): Use K&R style function declarations.
60548         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60549         can optimize it when MB_CUR_MAX == 1.
60550         The width of control characters is zero, not 1.
60551
60552 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60553
60554         The following changes are from gettext 0.10.39 as maintained by
60555         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60556
60557         * m4/codeset.m4: Upgrade to serial AM1.
60558         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60559         all uses changed.  Quote first arg of AC_DEFUN.
60560         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60561
60562         * m4/iconv.m4: Upgrade to serial AM2.
60563         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60564         Add --with-libconv-prefix.
60565         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60566         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60567         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60568         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60569         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60570
60571         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60572         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60573         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60574         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60575         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60576         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60577         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60578         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60579         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60580
60581         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60582         string.h any more.
60583
60584         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60585         not the default value.
60586
60587         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60588         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60589         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60590         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60591         Also check for iswcntrl, used for wcwidth fallback.
60592         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60593         to Autoconf 2.13.
60594
60595 2001-08-03  Jim Meyering  <meyering@lucent.com>
60596
60597         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60598         as it was in the original.  Reported by Paul Eggert.
60599
60600 2001-07-16  Jim Meyering  <meyering@lucent.com>
60601
60602         * m4/gettimeofday.m4: New file.
60603         Prompted by a report from Bernhard Baehr.
60604
60605 2001-07-15  Jim Meyering  <meyering@lucent.com>
60606
60607         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60608         stuff. Now it's in ../Makefile.cfg.
60609
60610 2001-07-15  Jim Meyering  <meyering@lucent.com>
60611
60612         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60613         (BUILT_SOURCES): Add unlocked-io.h.
60614         (io_functions): Define.
60615         (unlocked-io.h): New rule.
60616         (DISTCLEANFILES): Add unlocked-io.h.
60617         (all-local): Depend on unlocked-io.h, to ensure it is created.
60618
60619         * lib/unlocked-io.hin: New file
60620
60621         * lib/regex.c: Update from glibc.
60622
60623 2001-07-05  Jim Meyering  <meyering@lucent.com>
60624
60625         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60626         recommendation.
60627         (libfetish_a_SOURCES): Put all .h files here instead.
60628         Remove a thus-exposed (better checks in automake) duplicate and
60629         two unnecessary .h files.
60630
60631 2001-07-04  Jim Meyering  <meyering@lucent.com>
60632
60633         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60634         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60635         distcheck failure.
60636
60637 2001-07-02  Jim Meyering  <meyering@lucent.com>
60638
60639         The following changes were prompted by suggestions from Bruno Haible.
60640
60641         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60642         is now generated.
60643         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60644         definition of EXTRA_DIST.
60645         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60646         ensure that the generated file is created/updated whenever the list
60647         of $(unlocked_functions) is changed.
60648         (jm-glibc-io.m4): New rule.
60649         (unlocked-io.h): New rule -- currently unused.
60650
60651 2001-06-24  Jim Meyering  <meyering@lucent.com>
60652
60653         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60654         unmatched right bracket, rather than kludging it with an extra,
60655         falsely-matching quote in a comment.  Patch by Akim Demaille.
60656
60657 2001-06-11  Jim Meyering  <meyering@lucent.com>
60658
60659         * lib/regex.c: Update from GNU libc.
60660
60661 2001-05-27  Jim Meyering  <meyering@lucent.com>
60662
60663         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60664         Check for ut_type in struct utmp.
60665
60666 2001-05-27  Jim Meyering  <meyering@lucent.com>
60667
60668         * lib/readutmp.h (UT_TYPE): Define.
60669
60670 2001-05-24  Jim Meyering  <meyering@lucent.com>
60671
60672         * lib/argmatch.c: Include "quote.h".
60673         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60674         quote function.  Reported by Göran Uddeborg.
60675
60676 2001-05-22  Jim Meyering  <meyering@lucent.com>
60677
60678         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60679         now that we use the package-supplied version unconditionally.
60680         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60681
60682 2001-05-21  Jim Meyering  <meyering@lucent.com>
60683
60684         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60685         shell syntax errors.
60686
60687 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60688
60689         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60690
60691 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60692
60693         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60694         Don't bother to check library strftime, since
60695         we'll be using our own my_strftime function anyway.
60696         Define my_strftime instead of strftime.
60697
60698 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60699
60700         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60701         which is not yet declared.
60702
60703 2001-05-15  Jim Meyering  <meyering@lucent.com>
60704
60705         * m4/regex.m4: Use proper quoting so brackets appear in the test
60706         program.
60707         Reported by, and with help from, Bruno Haible.
60708
60709 2001-05-13  Jim Meyering  <meyering@lucent.com>
60710
60711         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60712         undefined.
60713
60714 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60715
60716         dirname code cleanup.  base_name now behaves more compatibly
60717         with POSIX basename when given file names that have trailing
60718         slashes, and similarly for dir_name.  Add new primitives
60719         base_len and dir_len.  Put the directory-name-related decls
60720         into dirname.h.
60721
60722         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60723         * lib/backupfile.c (base_name): Likewise.
60724         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60725         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60726         * lib/makepath.c (strip_trailing_slashes): Likewise.
60727         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60728         ISSLASH): Likewise.
60729         * lib/rename.c (strip_trailing_slashes): Likewise.
60730         * lib/same.c (base_name): Likewise.
60731         * lib/stripslash.c (ISSLASH): Likewise.
60732
60733         * lib/addext.c: Include <dirname.h> after size_t is defined.
60734         * lib/backupfile.c: Likewise.
60735
60736         * lib/addext.c (addext): Use base_len to trim redundant
60737         trailing slashes instead of doing it ourselves.
60738         But do not trim the last slash if it is not redundant.
60739
60740         * lib/backupfile.c (find_backup_file_name,
60741         max_backup_version): Use base_len instead of rolling it ourselves.
60742         Handle the case of "" and (on DOS) "C:" correctly.
60743
60744         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60745         needed. Include <string.h>, <dirname.h>.
60746         (base_name): Allow file names ending in slashes, other than names
60747         that are all slashes.  In this case, return the basename followed
60748         by the slashes.  This is more general, and can be used in places
60749         where the original base_name purposely had an assertion failure.
60750         (base_len): New function.
60751
60752         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60753         Do not include <assert.h>; no longer needed.
60754         Include xalloc.h.
60755         (memrchr): Remove decl.
60756         (dir_name_r): Remove.
60757         (dir_len): Renamed from dirlen.  All callers changed.
60758         Rewrite in terms of base_name, for simplicity and consistency.
60759         (dir_name): Never return NULL.  All callers changed.
60760         Do not include <stdlib.h> in test program; no longer needed.
60761         return 0; is fine for test program.
60762
60763         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60764         New macros.
60765         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60766
60767         * lib/path-concat.c (path_concat): Use base_len to compute
60768         base length, not strlen; this means we cannot rely on memcpy
60769         to null-terminate.
60770
60771         * lib/same.c (STREQ): Remove.
60772         (same_name): Handle the case where the basename ends in trailing '/'.
60773
60774         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60775         a slash was stripped.  Do not strip the last slash after a
60776         file system prefix.
60777
60778 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60779
60780         * lib/Makefile.am (libfetish_a_SOURCES):
60781         Add strftime.c, since we now compile it on all hosts.
60782
60783         * lib/strftime.c (my_strftime):
60784         Define to nstrftime if emacs, but only if my_strftime is not defined.
60785         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60786         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60787         Add one more extra argument: a nanoseconds value.
60788         All uses changed.
60789         (ns): New macro.
60790         (my_strftime function): Add %N format.
60791         (emacs_strftimeu): Renamed from emacs_strftime,
60792         with extra ut argument.
60793
60794 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60795
60796         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60797
60798 2001-04-21  Jim Meyering  <meyering@lucent.com>
60799
60800         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60801         doesn't interfere.
60802
60803 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60804
60805         * m4/ftruncate.m4: Check for chsize.
60806         Link with ftruncate.o unconditionally if ftruncate is missing.
60807         This was required when cross-compiling to i586-mingw32msvc.
60808
60809 2001-04-08  Jim Meyering  <meyering@lucent.com>
60810
60811         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60812         recomputed; that's necessary when the offset spans a DST transition.
60813         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60814
60815 2001-04-02  Jim Meyering  <meyering@lucent.com>
60816
60817         * lib/regex.h, regex.c: Update from GNU libc.
60818
60819 2001-03-24  Jim Meyering  <meyering@lucent.com>
60820
60821         * m4/jm-macros.m4: Require autoconf-2.49d.
60822
60823 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60824
60825         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60826
60827 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60828
60829         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60830
60831 2001-03-17  Jim Meyering  <meyering@lucent.com>
60832
60833         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60834         now that the version in autoconf is equivalent.
60835         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60836
60837         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60838         Suggestion from Akim Demaille.
60839
60840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60841         (jm_PREREQ_TEMPNAME): New function.
60842
60843 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60844
60845         * lib/tempname.c (uint64_t): Define to uintmax_t if
60846         not defined, and if UINT64_MAX is not defined.
60847         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60848         Reported by John David Anglin.
60849
60850 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60851
60852         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60853         resolve alias if codeset is empty.
60854         * lib/config.charset (BeOS): Use wildcard syntax.
60855
60856 2001-03-13  Jim Meyering  <meyering@lucent.com>
60857
60858         * lib/path-concat.c (path_concat)
60859         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60860         concatenating e.g., `C:' and `foo'.
60861         From Bruno Haible.
60862
60863 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60864
60865         * lib/localcharset.c (locale_charset): Don't use
60866         setlocale(LC_CTYPE,NULL). Don't return NULL.
60867         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60868
60869 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
60870
60871         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60872         support for DOS/DJGPP.
60873
60874 2001-03-01  Paul Eggert  <eggert@twinsun.com>
60875
60876         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60877         lacks mkstemp.  Compile our own tempname.c if we compile our own
60878         mkstemp.c, as mkstemp relies on tempname.
60879
60880 2001-03-01  Jim Meyering  <meyering@lucent.com>
60881
60882         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60883         AH_VERBATIM really does output its argument verbatim.
60884
60885 2001-02-28  Paul Eggert  <eggert@twinsun.com>
60886
60887         * lib/Makefile.am (libfetish_a_SOURCES):
60888         Add dup-safer.c, fopen-safer.c.
60889         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60890
60891         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60892         * lib/unistd-safer.h: New files.
60893
60894 2001-02-25  Paul Eggert  <eggert@twinsun.com>
60895
60896         The mkstemp replacement is taken from glibc 2.2.2, with some
60897         portability fixes for use outside glibc, as follows:
60898
60899         * lib/tempname.c (struct_stat64): New macro.
60900         (direxists, __gen_tempname): Use it.
60901         This avoids a portability problem with Solaris 8.
60902
60903         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60904         (<stddef.h>, <stdint.h>, <string.h>):
60905         Include only if STDC_HEADERS || _LIBC.
60906         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60907         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60908         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60909         (__set_errno): Define this macro if <errno.h> doesn't.
60910         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60911         Define these macros if <stdio.h> doesn't.
60912         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60913         Define these macros if <sys/stat.h>
60914         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60915         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60916         __xstat64): Define if not _LIBC.
60917         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60918         (__gen_tempname): Invoke gettimeofday only if
60919         HAVE_GETTIMEOFDAY || _LIBC;
60920         otherwise, fall back on plain "time".
60921         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60922
60923         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60924
60925         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60926
60927 2001-02-18  Paul Eggert  <eggert@twinsun.com>
60928
60929         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60930
60931 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60932
60933         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60934         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60935         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60937
60938 2001-02-17  Paul Eggert  <eggert@twinsun.com>
60939
60940         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60941         Remove workaround macros for hosts that have mbrtowc but not
60942         mbstate_t, as we now insist on proper declarations for both
60943         before using mbrtowc.
60944
60945 2001-02-17  Jim Meyering  <meyering@lucent.com>
60946
60947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60948         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60949         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60950         UnixWare 7.1.1.
60951
60952         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60953         rather than AC_CACHE_VAL.
60954
60955 2001-02-17  Jim Meyering  <meyering@lucent.com>
60956
60957         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
60958         around included file name.
60959
60960         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60961
60962         * lib/strftime.c: Update from GNU libc (the only changes were to
60963         comments).
60964
60965 2001-02-17  Jim Meyering  <meyering@lucent.com>
60966
60967         * lib/regex.c: Update from libc.
60968
60969 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
60970
60971         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60972         clash.
60973
60974 2001-02-16  Paul Eggert  <eggert@twinsun.com>
60975
60976         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60977         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
60978         Reported by Mark Hounschell via Paul Eggert.
60979
60980 2001-02-07  Jim Meyering  <meyering@lucent.com>
60981
60982         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60983
60984 2001-02-05  Jim Meyering  <meyering@lucent.com>
60985
60986         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60987         it includes the patch required for `large file' support with at least
60988         HP-UX's 10.20 /bin/cc.
60989
60990 2001-02-03  Jim Meyering  <meyering@lucent.com>
60991
60992         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60993         AS_IF, now that it works once again (mysteriously).
60994         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60995
60996 2001-01-30  Jim Meyering  <meyering@lucent.com>
60997
60998         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60999         * m4/chown.m4: Rename conftestchown to conftest.chown.
61000         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61001         s/conftestdir2/conftest.d2/.
61002         * m4/utimes.m4: s/conftestdata/conftest.data/
61003         Inspired by Pavel Roskin's change in autoconf.
61004
61005 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61006
61007         * lib/config.charset: Update for FreeBSD 4.2.
61008
61009 2001-01-27  Jim Meyering  <meyering@lucent.com>
61010
61011         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61012         a use of AS_IF.
61013         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61014
61015 2001-01-26  Jim Meyering  <meyering@lucent.com>
61016
61017         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61018         quotearg.c includes it.
61019
61020 2001-01-26  Jim Meyering  <meyering@lucent.com>
61021
61022         * lib/quotearg.c: Include stddef.h.
61023         * lib/quote.c: Include stddef.h.
61024         Reported by Axel Kittenberger.
61025
61026         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61027         line in double quotes so that it evokes a better diagnostic.
61028         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61029         Reported by Axel Kittenberger.
61030
61031 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61032
61033         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61034         as if it was a `charset'.
61035
61036 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61037
61038         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61039         has const.
61040
61041 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61042
61043         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61044         to avoid a warning.  Add back 'const' to inptr.
61045
61046 2001-01-20  Jim Meyering  <meyering@lucent.com>
61047
61048         Be sure that headers are checked before used in code compiled
61049         for the type checks.
61050         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61051         In place of that, invoke jm_CHECK_ALL_TYPES.
61052         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61053         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61054         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61055         The check for ssize_t was mistakenly run before the test for unistd.h.
61056
61057         The configure-time check for stdbool.h was missing.
61058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61059         (jm_PREREQ_HASH): New function.
61060
61061 2001-01-17  Jim Meyering  <meyering@lucent.com>
61062
61063         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61064         for autoconf-2.49c.
61065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61066
61067 2001-01-16  Jim Meyering  <meyering@lucent.com>
61068
61069         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61070         From Bruno Haible.
61071
61072 2001-01-14  Jim Meyering  <meyering@lucent.com>
61073
61074         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61075         foo and bar.  Create conftestdir/ in the script, not in the C code.
61076         Remove directories in the script, not in the C code.
61077         Remove conftestdir{,2} before trying to create the directory.
61078         Make the entire configure script fail if the mkdir fails.
61079
61080 2001-01-14  Jim Meyering  <meyering@lucent.com>
61081
61082         * lib/rename.c: New file.  From Volker Borchert.
61083         Include stdlib.h, string.h or strings.h, and xalloc.h.
61084         Use strip_trailing_slashes rather than open-coding it.
61085
61086 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61087
61088         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61089
61090 2001-01-03  Jim Meyering  <meyering@lucent.com>
61091
61092         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61093         of local `inptr' to avoid warning with some system declarations of
61094         iconv.
61095
61096 2001-01-02  Volker Borchert  <bt@teknon.de>
61097
61098         * m4/rename.m4: New file.
61099         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61100
61101 2001-01-01  Jim Meyering  <meyering@lucent.com>
61102
61103         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61104         even on systems with utmpx.h.  It's necessary for the declaration of
61105         utmp's ut_user member.  Reported by Andreas Jaeger.
61106
61107         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61108         available. They are required for the declarations of getgrgid and
61109         getpwuid resp.
61110         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61111         Reported by Andreas Jaeger.
61112
61113 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61114
61115         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61116         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61117         so `make install' also works in VPATH builds.
61118
61119 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61120
61121         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61122         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61123         can be used in subdirectories.
61124
61125 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61126
61127         * lib/modechange.c: Do not assume that mode_t uses the
61128         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61129         the other-execute bit of FOO even if S_IXOTH != 1.
61130
61131         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61132         WOTH, XOTH, ALLM): New macros.
61133         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61134          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61135         Use them.
61136         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61137         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61138         (mode_compile):
61139         No need to use uintmax_t; unsigned long is long enough.
61140         Don't bother to get suffix since we don't use it.
61141
61142 2000-12-26  Jim Meyering  <meyering@lucent.com>
61143
61144         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61145         better with autoheader.
61146
61147 2000-12-24  Jim Meyering  <meyering@lucent.com>
61148
61149         * lib/hash.c (is_prime): Return explicit boolean values.
61150         (hash_get_first): Return NULL to appease Irix5.6's 89.
61151         Reported by Nelson Beebe.
61152
61153 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61154
61155         * lib/localcharset.c (locale_charset): Add support for Win32.
61156
61157 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61158
61159         * lib/physmem.h, lib/physmem.c: New files.
61160
61161         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61162         (noinst_HEADERS): Add physmem.h.
61163
61164         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61165         't' for compatibility with Solaris 8 sort.
61166
61167 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61168
61169         * lib/config.charset: Add support for BeOS.
61170
61171 2000-12-17  Jim Meyering  <meyering@lucent.com>
61172
61173         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61174         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61175
61176 2000-12-16  Jim Meyering  <meyering@lucent.com>
61177
61178         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61179         N and M) would have treated it like `chown N:N FILE'.
61180
61181         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61182
61183 2000-12-16  Jim Meyering  <meyering@lucent.com>
61184
61185         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61186         SHELLS_FILE to a file name that's useful on djgpp systems.
61187         Include stdlib.h.
61188         (ADDITIONAL_DEFAULT_SHELLS): Define.
61189         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61190         Based mostly on a patch from Prashant TR.
61191
61192 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61193
61194         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61195         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61196         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61197
61198 2000-12-08  Andreas Schwab  <schwab@suse.de>
61199
61200         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61201         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61202
61203 2000-12-07  Jim Meyering  <meyering@lucent.com>
61204
61205         * lib/stripslash.c (ISSLASH): Define.
61206         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61207         `/'.
61208         From Prashant TR.
61209
61210         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61211         (dir_name_r): Declare this function as static.
61212         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61213         manifest itself on a name containing a mix of slashes and
61214         backslashes.
61215         Make this function work with names starting with a DOS-style
61216         drive letter and colon prefix.
61217         (dir_name): Append `.' if necessary.
61218         Based mostly on patches from Prashant TR and Eli Zaretskii.
61219
61220         * lib/dirname.h (dir_name_r): Remove prototype.
61221
61222 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61223
61224         * m4/off_t-format.m4: Remove this file.
61225         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61226
61227 2000-12-06  Jim Meyering  <meyering@lucent.com>
61228
61229         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61230         replacement strtoull, we may well need the replacement strtoul, too.
61231         Check for declarations of strtoul and strtoull.
61232         Check for strtol.  Mainly as a cue to cause automake to include
61233         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61234         Check for limits.h -- strtol.c needs it.
61235
61236 2000-12-05  Jim Meyering  <meyering@lucent.com>
61237
61238         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61239
61240 2000-12-04  Jim Meyering  <meyering@lucent.com>
61241
61242         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61243         Also include memory.h, stdlib.h, unistd.h if appropriate.
61244         Reported by Andreas Jaeger (conflicting declaration of malloc).
61245
61246 2000-12-02  Jim Meyering  <meyering@lucent.com>
61247
61248         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61249         * m4/jm-macros.m4 (jm_MACROS): require it.
61250
61251 2000-12-02  Jim Meyering  <meyering@lucent.com>
61252
61253         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61254
61255 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61256
61257         * lib/memrchr.c: Include <config.h> before any system include file.
61258
61259 2000-11-30  Jim Meyering  <meyering@lucent.com>
61260
61261         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61262
61263 2000-11-30  Jim Meyering  <meyering@lucent.com>
61264
61265         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61266
61267 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61268
61269         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61270
61271 2000-11-26  Jim Meyering  <meyering@lucent.com>
61272
61273         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61274
61275 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61276
61277         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61278         size of (size_t) -1; it's not portable.
61279
61280 2000-11-17  Jim Meyering  <meyering@lucent.com>
61281
61282         * lib/strstr.c: Update from GNU libc.
61283
61284 2000-11-17  Akim Demaille  <akim@epita.fr>
61285
61286         * lib/obstack.h: Formatting changes.
61287         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61288         prevent type checking.
61289         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61290         cast the value to (void *): assigning a `foo *' to a `void *'
61291         variable is valid.
61292         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61293
61294 2000-11-16  Jim Meyering  <meyering@lucent.com>
61295
61296         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61297
61298 2000-11-11  Jim Meyering  <meyering@lucent.com>
61299
61300         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61301
61302 2000-11-10  Jim Meyering  <meyering@lucent.com>
61303
61304         * lib/obstack.h: Update from GNU libc.
61305         * lib/obstack.c: Likewise.
61306
61307 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61308
61309         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61310
61311 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61312
61313         * lib/getusershell.c (setusershell): Use rewind rather than
61314         fseek/fseeko, to avoid configuration hassles with fseeko.
61315         Don't bother opening SHELLS_FILE if shellstream is NULL;
61316         it's not necessary.
61317
61318 2000-11-05  Jim Meyering  <meyering@lucent.com>
61319
61320         * lib/makepath.h (make_dir): Declare.
61321         * lib/makepath.c (make_dir): Remove `static' attribute.
61322         Tweak a comment.
61323
61324 2000-11-04  Jim Meyering  <meyering@lucent.com>
61325
61326         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61327
61328 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61329
61330         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61331         last one in a bucket, advance to the next bucket.
61332
61333 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61334
61335         * lib/fnmatch.c: Do not comment out all the code if we are using
61336         the GNU C library, because in some cases we are replacing buggy
61337         code in the GNU C library itself.
61338
61339 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61340
61341         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61342         (regex_compile): Catch bogus \(\1\).
61343
61344 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61347         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61348         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61349
61350 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61351
61352         * lib/error.h, getline.h, modechange.h:
61353         Remove "2000" from Copyright line, as the file hasn't been
61354         changed this year other than in the copyright notice.
61355
61356         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61357         was changed this year.
61358
61359 2000-10-29  Jim Meyering  <meyering@lucent.com>
61360
61361         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61362         renaming.
61363         * m4/ls-mntd-fs.m4: Likewise
61364
61365 2000-10-29  Jim Meyering  <meyering@lucent.com>
61366
61367         * lib/xstat.in: Fix grammar in comment.
61368
61369 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61370
61371         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61372         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61373         doesn't define __restrict_arr.
61374
61375 2000-10-28  Jim Meyering  <meyering@lucent.com>
61376
61377         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61378         (jm_PREREQ_MEMCHR): New function.
61379
61380 2000-10-28  Jim Meyering  <meyering@lucent.com>
61381
61382         * lib/memchr.c: Update from libc.
61383         Adjust for portability:
61384         [HAVE_STDLIB_H]: Include stdlib.h.
61385         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61386         Undef __memchr, too.
61387         [!weak_alias]: Define __memchr to memchr.
61388
61389         * lib/regex.c: Update from libc.
61390         * lib/regex.h: Likewise.
61391         * lib/getopt1.c: Likewise.
61392         * lib/memcmp.c: Likewise.
61393
61394         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61395         Avoid using fseek, when possible -- it's broken by design.
61396         Patch by Ulrich Drepper.
61397
61398 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61399
61400         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61401         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61402         Giving in to popular pressure to shut up the compiler with casts.
61403
61404 2000-10-26  Jim Meyering  <meyering@lucent.com>
61405
61406         * lib/strftime.c: Update from libc.
61407
61408 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61409
61410         * regex.c: More `unsigned char' -> `re_char' changes.
61411         Also change several `int' into `re_wchar_t'.
61412         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61413         (PUSH_FAILURE_POINTER): Don't cast any more.
61414         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61415         We want GCC to complain, since this piece of code makes
61416         re_match non-reentrant, which *should* be fixed.
61417         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61418         (EXTEND_BUFFER): Use RETALLOC.
61419         (SET_LIST_BIT): Don't cast.
61420         (re_wchar_t): New type.
61421         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61422         that those two functions will always properly return.
61423         (IMMEDIATE_QUIT_CHECK): Cast to void.
61424         (analyse_first): Use recursion rather than an explicit stack.
61425         (re_compile_fastmap): Can't fail anymore.
61426         (re_search_2): Don't check re_compile_fastmap for failure.
61427         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61428         Now also sets the new value (passed in a new argument).
61429         (re_match_2_internal): Use it.
61430         Also, use a new var `reg' of type size_t when looping through regs
61431         rather than reuse the inappropriate `mcnt'.
61432
61433 2000-10-25  Jim Meyering  <meyering@lucent.com>
61434
61435         * lib/obstack.c: Update from libc.
61436
61437 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61438
61439         * regex.c (regex_compile): Change the way of handling a range from
61440         a char less than 256 to a char not less than 256.
61441
61442 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61443
61444         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61445         NT-Emacs only.
61446         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61447         so that re_search functions only quit when callers expect them to.
61448
61449 2000-10-23  Jim Meyering  <meyering@lucent.com>
61450
61451         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61452         wrong.  That set_locale call must not have any side effects.
61453         From Paul Eggert.
61454
61455 2000-10-22  Jim Meyering  <meyering@lucent.com>
61456
61457         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61458         [CYCLIC]: Remove now-unused definition.
61459
61460         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61461         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61462         Suggestion from Ulrich Drepper.
61463
61464 2000-10-21  Jim Meyering  <meyering@lucent.com>
61465
61466         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61467         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61468         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61469
61470 2000-10-21  Jim Meyering  <meyering@lucent.com>
61471
61472         * lib/dirname.c (memrchr): Declare if necessary.
61473         (dir_name): Remove the restriction that there be no
61474         trailing slashes.  Now, this code skips past them, effectively
61475         ignoring them.
61476         [TEST_DIRNAME] (main): New unit tests.
61477
61478         * lib/memrchr.c: New file from GNU libc.
61479         Undef __memrchr, too.
61480         [!weak_alias]: Define __memrchr to memrchr.
61481         Guard weak_alias use with `#ifdef weak_alias'.
61482
61483 2000-10-21  Jim Meyering  <meyering@lucent.com>
61484
61485         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61486         (dir_name): Use dir_name_r.
61487         * lib/dirname.h (dir_name_r): Declare it.
61488
61489 2000-10-17  Jim Meyering  <meyering@lucent.com>
61490
61491         * lib/quote.h (PARAMS): Define and use.
61492         Reported by Akim Demaille.
61493
61494         * lib/getopt.c: Update from libc.
61495
61496 2000-10-16  Jim Meyering  <meyering@lucent.com>
61497
61498         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61499         setlocale.
61500         From Jan Fedak.
61501
61502 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61503
61504         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61505
61506 2000-09-25  Jim Meyering  <meyering@lucent.com>
61507
61508         * lib/md5.h (rol): Define (from GnuPG).
61509
61510         * lib/sha.c: Give credit (GnuPG) where due.
61511         (M): Use rol rather than open-coding it.
61512         Add a FIXME comment.
61513
61514 2000-09-21  Jim Meyering  <meyering@lucent.com>
61515
61516         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61517         Reported by Michael Stone.
61518
61519 2000-09-20  Jim Meyering  <meyering@lucent.com>
61520
61521         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61522         (noinst_HEADERS): Add sha.h.
61523         Based on code from Scott G. Miller and from GnuPG.
61524
61525 2000-09-18  Jim Meyering  <meyering@lucent.com>
61526
61527         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61528         LIBS. Otherwise, everyone ends up linking with -lelf for some
61529         configurations.
61530         Reported by Mike Stone.
61531
61532 2000-09-15  Jim Meyering  <meyering@lucent.com>
61533
61534         * lib/regex.c: Update from libc.
61535
61536 2000-09-10  Jim Meyering  <meyering@lucent.com>
61537
61538         * lib/getopt.c (_getopt_internal): Update from glibc.
61539
61540 2000-09-09  Jim Meyering  <meyering@lucent.com>
61541
61542         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61543         think it should be used as a general replacement for isascii.
61544         * lib/fnmatch.c: Likewise.
61545         * lib/mbswidth.c: Likewise
61546         * lib/regex.c: Likewise.
61547
61548         Don't use atoi.
61549         * lib/userspec.c: Include sys/param.h and limits.h.
61550         Include xstrtol.h.
61551         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61552         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61553         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61554         UID, GID.  Check range.
61555
61556 2000-09-06  Jim Meyering  <meyering@lucent.com>
61557
61558         * lib/getopt.c (_getopt_internal): Update from glibc.
61559
61560 2000-08-30  Jim Meyering  <meyering@lucent.com>
61561
61562         * lib/strftime.c: Merge in changes from GNU libc.
61563
61564 2000-08-26  Jim Meyering  <meyering@lucent.com>
61565
61566         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61567         * m4/fpending.m4: New file.
61568
61569 2000-08-26  Jim Meyering  <meyering@lucent.com>
61570
61571         * lib/closeout.c: Include "__fpending.h".
61572         (close_stdout_status): Return right away if there's nothing to flush.
61573
61574         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61575         * lib/__fpending.c: New file.
61576         * lib/__fpending.h: New file.
61577
61578 2000-08-20  Jim Meyering  <meyering@lucent.com>
61579
61580         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61581         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61582         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61583
61584 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61585
61586         Improve fileutils installation on systems where running
61587         programs (like install) can't be unlinked.
61588         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61589         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61590
61591 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61592
61593         Standardize on "memory exhausted" instead of "Memory exhausted"
61594         or "virtual memory exhausted".
61595         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61596         "virtual memory exhausted".
61597         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61598         our own message.
61599         * lib/userspec.c (parse_user_spec): Likewise.
61600         * lib/bumpalloc.h: comment fix
61601         * lib/same.c, userspec.c: Include xalloc.h.
61602
61603         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61604         not char *const and pointing to a constant array.
61605         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61606         (xrealloc): Comment fix.
61607
61608         * lib/userspec.c (parse_user_spec):
61609         Don't translate a message until just before returning,
61610         to avoid unnecessary translation.
61611
61612 2000-08-07  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61615         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61616         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61617         getgroups.c, gethostname.c, getopt.h, group-member.c,
61618         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61619         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61620         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61621         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61622         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61623         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61624         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61625         yesno.c: Back out Copyright date changes for each file with no change
61626         this year.  This eases coordination with other programs using the same
61627         source code modules.  From Paul Eggert.
61628
61629 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61630
61631         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61632         not char, for compatibility with glibc 2.1.3 strftime.c.
61633
61634 2000-08-03  Greg McGary  <greg@mcgary.org>
61635
61636         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61637         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61638         (EXTEND_BUFFER): Use them.
61639
61640 2000-08-01  Jim Meyering  <meyering@lucent.com>
61641
61642         * lib/dirname.c (ISSLASH): Define.
61643         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61644         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61645         both `\' and `/' may be use as path separators.
61646         Based on a patch from Prashant TR.
61647
61648 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61649
61650         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61651         slot vector a constant, since it might get modified.
61652
61653 2000-07-31  Jim Meyering  <meyering@lucent.com>
61654
61655         * lib/xmalloc.c: Use `virtual memory exhausted', not
61656         `Memory exhausted'.
61657         * lib/obstack.c (print_and_abort): Likewise.
61658
61659 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61660
61661         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61662         buffer, so that the caller can always quote one small
61663         component of a "memory exhausted" message in slot 0.
61664         From a suggestion by Jim Meyering.
61665
61666 2000-07-30  Jim Meyering  <meyering@lucent.com>
61667
61668         * lib/makepath.c (make_path): Quote the other instance, too.
61669
61670         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61671         (STATIC_BUF_SIZE): Define.
61672         (quotearg_n_options): Use only statically allocated storage when
61673         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61674         than STATIC_BUF_SIZE.
61675
61676 2000-07-29  Jim Meyering  <meyering@lucent.com>
61677
61678         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61679         * lib/dirname.c (dir_name): Likewise.
61680
61681         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61682         `/'.
61683
61684         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61685         (dir_name): Assert that there are no trailing slashes.
61686
61687 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61688
61689         * lib/mbswidth.h (mbswidth): Add a flags argument.
61690         (mbswidth): New declaration.
61691         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61692         * lib/mbswidth.c (mbswidth): Add a flags argument.
61693         (mbsnwidth): New function.
61694
61695 2000-07-24  Jim Meyering  <meyering@lucent.com>
61696
61697         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61698
61699 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61700
61701         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61702
61703 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61704
61705         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61706         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61707         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61708         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61709         invoke multibyte primitives.
61710
61711 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61712
61713         * lib/quotearg.c:
61714         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61715         so that mbstate_t is always defined.
61716
61717         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61718         be 1 in at least one GCC installation, and this configuration
61719         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61720         performance on hosts that have mbrtowc but have only unibyte
61721         locales, but I assume these hosts are rare.
61722
61723 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61724
61725         * lib/mbswidth.c (_XOPEN_SOURCE):
61726         Don't define; this causes problems on Solaris 7.
61727         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61728
61729 2000-07-23  Jim Meyering  <meyering@lucent.com>
61730
61731         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61732         too: getgrgid, getpwuid, getuid.
61733
61734 2000-07-23  Jim Meyering  <meyering@lucent.com>
61735
61736         * lib/basename.c (base_name): Add an assertion.
61737
61738 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61739
61740         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61741         shadow its mbsinit function.
61742
61743 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61744
61745         * lib/mbswidth.h: New file.
61746         * lib/mbswidth.c: New file.
61747         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61748         (noinst_HEADERS): Add mbswidth.h.
61749
61750 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61751
61752         * lib/config.charset: Add support for FreeBSD. Improve support for
61753         HP-UX and IRIX 6.
61754
61755 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61756
61757         * m4/mbswidth.m4: New file.
61758         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61759
61760 2000-07-15  Jim Meyering  <meyering@lucent.com>
61761
61762         * lib/makepath.c: Include quote.h.
61763         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61764         corresponding argument in a `quote (...)' call.
61765         Give better diagnostics.
61766
61767         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61768         (noinst_HEADERS): Add quote.h.
61769
61770         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61771         from tar's src/misc.c.
61772         * lib/quote.h: New file.  Prototypes for same.
61773
61774 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61775
61776         From a suggestion by Bruno Haible.
61777         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61778         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61779         to decide whether to define the BeOS workaround macro;
61780         this adjusts to the change to AC_MBSTATE_T.
61781
61782 2000-07-14  Jim Meyering  <meyering@lucent.com>
61783
61784         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61785         jm_AC_TYPE_UINTMAX_T.
61786
61787 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61790
61791         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61792         quotearg_buffer_restyled): Add support for
61793         clocale_quoting_style.  Undo previous change to
61794         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61795         and "{RIGHT QUOTATION MARK}" msgids.
61796
61797 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61798
61799         From a suggestion by Bruno Haible.
61800         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61801         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61802         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61803         and mbstate_t, to a single-part test that simply defines mbstate_t.
61804         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61805         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61806
61807 2000-07-10  Jim Meyering  <meyering@lucent.com>
61808
61809         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61810
61811         * m4/gnu-source.m4: Output to confdefs.h directly.
61812         Suggestion from Akim Demaille.
61813
61814 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61815
61816         The old behavior of quoting `like this' doesn't look good with
61817         newer, ISO-style fonts.  See:
61818         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61819
61820         Instead, quote "like this" by default.  Let the translator
61821         tailor the locale-specific quoting behavior by providing
61822         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61823
61824         * lib/quotearg.c (N_): New macro.
61825         (gettext_default): New function.
61826         (quotearg_buffer_restyled): Use
61827         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61828         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61829
61830 2000-07-09  Jim Meyering  <meyering@lucent.com>
61831
61832         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61833         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61834
61835         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61837
61838 2000-07-09  Jim Meyering  <meyering@lucent.com>
61839
61840         * lib/Most files: Update copyright dates to include 2000.
61841
61842 2000-07-08  Jim Meyering  <meyering@lucent.com>
61843
61844         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61845         if not defined.
61846         (xgethostname): Remove now-unnecessary #ifdef.
61847         Move declaration of `err' into loop where it's used.
61848
61849 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61850         and Bruno Haible  <haible@clisp.cons.org>
61851
61852         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61853         only if the test for an object-type mbstate_t fails.  This
61854         prevents us from mistakenly reporting that mbstate_t is a
61855         system object type after we "#define mbstate_t int" to work
61856         around its lack.
61857
61858 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61859         and Bruno Haible  <haible@clisp.cons.org>
61860
61861         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61862
61863 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61864
61865         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61866         to strerror_r.
61867         Include <ctype.h> for use of isalpha.
61868
61869 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61870
61871         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61872         by allocating a larger buffer. Test the gethostname return value for
61873         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
61874         returns an error and ENAMETOOLONG isn't defined.
61875
61876 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
61877
61878         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61879         dimension.
61880
61881 2000-07-04  Jim Meyering  <meyering@lucent.com>
61882
61883         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61884         of the deprecated AC_CHECKING.
61885
61886 2000-07-04  Jim Meyering  <meyering@lucent.com>
61887
61888         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61889         Reported by Bruno Haible.
61890
61891 2000-07-04  Jim Meyering  <meyering@lucent.com>
61892
61893         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61894         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
61895         lacks mbrtowc.
61896
61897 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61898
61899         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61900         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61901
61902 2000-07-03  Paul Eggert  <eggert@twinsun.com>
61903         and Bruno Haible  <haible@clisp.cons.org>
61904
61905         * lib/quotearg.c (mbrtowc):
61906         Assign to *pwc, and return 1 only if result is nonzero.
61907         (iswprint): Use ISPRINT when substituting our own mbrtowc.
61908
61909 2000-07-03  Jim Meyering  <meyering@lucent.com>
61910
61911         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61912
61913 2000-07-03  Jim Meyering  <meyering@lucent.com>
61914
61915         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61916         This is necessary to get a definition of e.g., UTMP_FILE on
61917         HP-UX 10.20.
61918         From Bob Proulx.
61919
61920 2000-07-02  Jim Meyering  <meyering@lucent.com>
61921
61922         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61923
61924         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61925         AC_LIBOBJ(function_name).
61926         * m4/chown.m4: Likewise.
61927         * m4/fnmatch.m4: Likewise.
61928         * m4/ftruncate.m4: Likewise.
61929         * m4/getgroups.m4: Likewise.
61930         * m4/getline.m4: Likewise.
61931         * m4/group-member.m4: Likewise.
61932         * m4/jm-macros.m4: Likewise.
61933         * m4/lstat.m4: Likewise.
61934         * m4/malloc.m4: Likewise.
61935         * m4/memcmp.m4: Likewise.
61936         * m4/nanosleep.m4: Likewise.
61937         * m4/putenv.m4: Likewise.
61938         * m4/realloc.m4: Likewise.
61939         * m4/regex.m4: Likewise.
61940         * m4/stat.m4: Likewise.
61941         * m4/strftime.m4: Likewise.
61942
61943 2000-07-02  Jim Meyering  <meyering@lucent.com>
61944
61945         * lib/quotearg.c (mbstate_t): Don't define here.
61946
61947 2000-07-02  Jim Meyering  <meyering@lucent.com>
61948
61949         * lib/nanosleep.c (SIGCONT): Define if not already defined.
61950
61951 2000-07-01  Jim Meyering  <meyering@lucent.com>
61952
61953         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61954
61955 2000-07-01  Jim Meyering  <meyering@lucent.com>
61956
61957         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61958         problem.
61959
61960 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61961
61962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61963         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61964
61965 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
61966
61967         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61968         per change in ../m4/ls-mntd-fs.m4.
61969         (read_filesystem_list): Ignore symbolic links.
61970
61971 2000-06-29  Jim Meyering  <meyering@lucent.com>
61972
61973         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61974         for declaration of strcmp.
61975
61976         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61977
61978         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61979         Avoid warning by casting result to `char *' to remove `const'.
61980
61981 2000-06-28  Jim Meyering  <meyering@lucent.com>
61982
61983         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
61984         included by quotearg.c, for which we perform this test.  From
61985         Bruno Haible.
61986
61987 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61988
61989         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61990         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61991         <utmpx.h> exists, put readutmp.o into LIBOBJS.
61992
61993 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
61994
61995         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61996
61997 2000-06-26  Paul Eggert  <eggert@twinsun.com>
61998
61999         savedir now sets errno on failure and invokes xmalloc to get memory.
62000         Fix a couple of other minor bugs while we're at it.
62001
62002         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62003         (NAMLEN): Remove macro.
62004         (malloc, realloc): Remove decls.
62005         (stpcpy): Likewise.
62006         ("xalloc.h"): Include.
62007         (NAME_SIZE_DEFAULT): New macro.
62008         (savedir): Use xmalloc / xrealloc to allocate memory.
62009         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62010         Skip "" directory entries.
62011         Use strlen to calculate directory entry length, since the old method
62012         is rarely used these days and isn't worth supporting.
62013         Don't use a pointer after freeing it.
62014         Check for integer overflow when calculating allocation size.
62015         Use memcpy to copy entries, instead of stpcpy.
62016         Set errno properly when returning NULL.
62017         Check for readdir error.
62018
62019 2000-06-26  Jim Meyering  <meyering@lucent.com>
62020
62021         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62022
62023 2000-06-25  Jim Meyering  <meyering@lucent.com>
62024
62025         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62026         Linux header bug when _XOPEN_SOURCE is defined to 500.
62027
62028 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62029
62030         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62031         deficiency.
62032
62033 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62034
62035         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62036         Include xalloc.h.
62037         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62038
62039 2000-06-24  Jim Meyering  <meyering@lucent.com>
62040
62041         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62042         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62043         for which strerror does return char*, but which lacks a conveniently
62044         accessible declaration of the function.  If the compile-test says
62045         strerror_r doesn't work, then resort to a `run'-test that works on
62046         BeOS and segfaults on DEC Unix.
62047
62048 2000-06-24  Jim Meyering  <meyering@lucent.com>
62049
62050         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62051
62052 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62053
62054         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62055         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62056
62057 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62058
62059         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62060         (mbrtowc, mbstate_t): Define substitutes if
62061         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62062         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62063         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62064
62065 2000-06-23  Jim Meyering  <meyering@lucent.com>
62066
62067         * m4/afs.m4: Add missing AC_MSG_RESULT.
62068         Reported by Bruno Haible.
62069
62070         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62071         Suggestion from Bruno Haible.
62072
62073 2000-06-23  Jim Meyering  <meyering@lucent.com>
62074
62075         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62076
62077 2000-06-21  Jim Meyering  <meyering@lucent.com>
62078
62079         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62080
62081 2000-06-21  Jim Meyering  <meyering@lucent.com>
62082
62083         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62084         (noinst_HEADERS): Add getstr.h.
62085
62086         * lib/getline.c (getstr): Move into a separate file.
62087         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62088         the following changes: new parameter, delim2; both delim[12]
62089         parameters have type `int', not `char'.  The latter would lose
62090         with 8-bit delimiters.
62091         * lib/getstr.h: New file.
62092
62093 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62094
62095         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62096         than 1024, return a memory chunk of least possible size, instead
62097         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62098         Use free/xmalloc instead of xrealloc to avoid copying for very long
62099         paths.
62100
62101 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62102
62103         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62104         the empty string.
62105
62106 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62107
62108         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62109         address, not strdup.  Include <stdlib.h> and don't declare free().
62110
62111 2000-06-19  Jim Meyering  <meyering@lucent.com>
62112
62113         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62114
62115 2000-06-18  Jim Meyering  <meyering@lucent.com>
62116
62117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62118
62119         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62120         `checking whether...' message to be consistent with that of the
62121         lstat test.
62122
62123 2000-06-18  Jim Meyering  <meyering@lucent.com>
62124
62125         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62126         Besides, these days every porting target provides a mkdir function.
62127
62128         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62129         needed. (this snippet comes from src/system.h).
62130
62131 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62132
62133         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62134
62135 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62136
62137         * lib/human.c (adjust_value): New function.
62138         (human_readable_inexact): Apply rounding style even when
62139         printing approximate values.
62140
62141 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62142
62143         * lib/human.c (human_readable_inexact): Allow an input block
62144         size that is not a multiple of the output block size, and vice versa.
62145         Reported by Piergiorgio Sartor.
62146
62147 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62148
62149         * lib/getdate.y (get_date): Apply relative times after time
62150         zone indicator, not before.  Reported by Todd A. Jacobs.
62151
62152 2000-06-13  Jim Meyering  <meyering@lucent.com>
62153
62154         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62155
62156         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62157
62158 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62159
62160         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62161
62162 2000-06-12  Jim Meyering  <meyering@lucent.com>
62163
62164         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62165         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62166         optional argument.
62167         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62168         the optional argument, `lib'.
62169
62170 2000-06-08  Jim Meyering  <meyering@lucent.com>
62171
62172         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62173
62174 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62175
62176         Rewrite largefile configuration so that we don't need to run
62177         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62178         AC_CANONICAL_HOST in configure.in -- jmm]
62179
62180         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62181         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62182         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62183         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62184         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62185         All uses changed.
62186         Instead of inspecting the output of getconf, try to compile the
62187         test program without and with the macro definition.
62188         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62189         for getconf.  Instead, check for the needed flags by compiling
62190         test programs.
62191
62192 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62193
62194         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62195
62196 2000-06-04  Jim Meyering  <meyering@lucent.com>
62197
62198         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62199         SunOS 4.1.4 for which gid_t is an unsigned type.
62200
62201 2000-06-03  Jim Meyering  <meyering@lucent.com>
62202
62203         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62204         now that autoconf requires that.
62205
62206         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62207         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62208         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62209
62210 2000-06-03  Jim Meyering  <meyering@lucent.com>
62211
62212         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62213
62214 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62215
62216         * m4/glibc21.m4: New file.
62217         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62218
62219 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62220
62221         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62222         newer, don't install charset.alias.
62223         * lib/config.charset: Change the Linux/glibc rules so they become empty
62224         on glibc-2.1 or newer.
62225
62226 2000-06-02  Jim Meyering  <meyering@lucent.com>
62227
62228         * lib/mountlist.c: Back out last change.  Instead, do this...
62229         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62230         me_dummy member using the same `ignore'-testing code.
62231         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62232         fs_type strings.
62233         From Mark D. Roth.
62234
62235 2000-05-29  Jim Meyering  <meyering@lucent.com>
62236
62237         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62238         mounts with the `ignore' attribute.  Based on a patch from
62239         Mark D. Roth.
62240
62241 2000-05-28  Jim Meyering  <meyering@lucent.com>
62242
62243         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62244         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62245         * m4/stat.m4: Likewise.
62246         * m4/lstat.m4: Likewise.
62247         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62248
62249         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62250         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62251
62252 2000-05-26  Jim Meyering  <meyering@lucent.com>
62253
62254         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62255
62256 2000-05-24  Jim Meyering  <meyering@lucent.com>
62257
62258         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62259         autoconf requires that.
62260         * m4/lib-check.m4: Likewise.
62261         * m4/jm-macros.m4: Likewise.
62262         * m4/strftime.m4: Likewise.
62263
62264         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62265         AC_CHECK_DECLS, now that autoconf requires that.
62266
62267 2000-05-22  Jim Meyering  <meyering@lucent.com>
62268
62269         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62270         * m4/lstat.m4: Likewise.
62271
62272 2000-05-22  Jim Meyering  <meyering@lucent.com>
62273
62274         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62275
62276 2000-05-20  Jim Meyering  <meyering@lucent.com>
62277
62278         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62279         (jm_PREREQ): Use it.
62280
62281 2000-05-18  Jim Meyering  <meyering@lucent.com>
62282
62283         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62284         back, too, since it may have been modified by allocate_entry.
62285         (hash_delete): Rewrite to use neither the assignment operator
62286         nor the comma operator in an if-expression.
62287
62288 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62289
62290         * lib/closeout.c:
62291         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62292         Remove; no longer needed.
62293         "quotearg.h": Add include.
62294         (file_name): Do not bother to explicitly initialize to NULL; it's less
62295         efficient on some hosts.
62296         (close_stdout_status): Remove test as to whether stdout was already
62297         closed; it breaks for the case "echo x | sort >&-".
62298         Quote file name colons.
62299         Do not assume that _("write error") lacks format strings.
62300
62301 2000-05-15  Jim Meyering  <meyering@lucent.com>
62302
62303         * lib/version-etc.c (version_etc_copyright): Update the copyright
62304         string used in all --version output.
62305
62306 2000-05-14  Jim Meyering  <meyering@lucent.com>
62307
62308         * lib/closeout.c (close_stdout_set_file_name): New function.
62309         (close_stdout_status): Use new file-scoped global.
62310         Return right away if fstat says the stdout file descriptor is invalid.
62311         * lib/closeout.h (close_stdout_set_file_name): Declare.
62312
62313 2000-05-10  Jim Meyering  <meyering@lucent.com>
62314
62315         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62316         (close_stdout_set_status): New function.
62317         * lib/closeout.h (close_stdout_set_status): Declare.
62318
62319 2000-05-09  Jim Meyering  <meyering@lucent.com>
62320
62321         * m4/gettext.m4: Rename this...
62322         * m4/libintl.m4: ...to this.
62323
62324 2000-05-08  Jim Meyering  <meyering@lucent.com>
62325
62326         * lib/long-options.c: Don't include closeout.h.
62327         (parse_long_options): Don't call close_stdout for --version.
62328
62329 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62330
62331         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62332         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62333         2.1.3 bug.  This avoids a clash when files like regex.c define
62334         _GNU_SOURCE.
62335
62336 2000-05-06  Jim Meyering  <meyering@lucent.com>
62337
62338         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62339         (AC_REPLACE_FUNCS): Add strnlen.
62340
62341         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62342         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62343
62344         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62345         AC_SEARCH_LIBS call for nanosleep.
62346         (LIB_NANOSLEEP): Set and AC_SUBST.
62347
62348 2000-05-06  Jim Meyering  <meyering@lucent.com>
62349
62350         * lib/strnlen.c: Undefine __strnlen and strnlen.
62351         [!weak_alias]: Define __strnlen to strnlen.
62352
62353         * lib/atexit.c: New file, from libiberty.
62354
62355 2000-05-06  Jim Meyering  <meyering@lucent.com>
62356
62357         * lib/closeout.c (close_stdout_status): Also check for errors on the
62358         stderr stream.
62359
62360 2000-05-05  Jim Meyering  <meyering@lucent.com>
62361
62362         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62363         AC_SEARCH_LIBS call for clock_gettime.
62364         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62365
62366         * m4/search-libs.m4: Update from autoconf.
62367
62368         su doesn't work on Solaris 2.6.
62369         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62370         <shadow.h>.  Reported by Dragos Harabor.
62371
62372 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62373
62374         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62375         memcpy instead of xmalloc, xrealloc, path_concat.
62376         (locale_charset): Treat empty environment variables as absent.
62377         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62378
62379 2000-05-04  Jim Meyering  <meyering@lucent.com>
62380
62381         * lib/getopt.c: Update from glibc.
62382         * lib/obstack.c: Likewise.
62383         * lib/obstack.h: Likewise.
62384         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62385         file
62386
62387         * lib/regex.h: Likewise.
62388         * lib/strndup.c: Likewise.
62389         * lib/strnlen.c: New file, from glibc.
62390
62391 2000-05-03  Jim Meyering  <meyering@lucent.com>
62392
62393         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62394
62395 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62396
62397         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62398         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62399         compile-time test, rather than inspecting host and OS, to
62400         decide whether to define _LARGEFILE_SOURCE.
62401
62402 2000-05-01  Jim Meyering  <meyering@lucent.com>
62403
62404         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62405
62406         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62407         Based on a patch from Bruno Haible.
62408
62409 2000-05-01  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62412
62413 2000-04-29  Jim Meyering  <meyering@lucent.com>
62414
62415         * lib/path-concat.c: Declare strdup only if it's not defined.
62416         * lib/canon-host.c: Likewise.
62417
62418 2000-04-28  Jim Meyering  <meyering@lucent.com>
62419
62420         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62421         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62422         is included first, then limits.h is included by locale.h by libintl.h.
62423         From John David Anglin.
62424
62425 2000-04-25  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/makepath.c (S_IRWXUGO): Define.
62428         (make_path): Always perform explicit chmod if MODE specifies any
62429         of the `special' permission bits.  Prompted by a bug report against
62430         install from Mate Wierdl and Joost van Baal.
62431
62432 2000-04-18  Jim Meyering  <meyering@lucent.com>
62433
62434         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62435         (jm_PREREQ): Use it.
62436
62437 2000-04-18  Jim Meyering  <meyering@lucent.com>
62438
62439         * lib/README: New file.
62440
62441         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62442         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62443
62444 2000-04-17  Jim Meyering  <meyering@lucent.com>
62445
62446         Get it right :-)
62447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62448         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62449         Suggestion from Akim Demaille.
62450
62451 2000-04-17  Jim Meyering  <meyering@lucent.com>
62452
62453         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62454         the definition of it to rpl_strftime also defined-away the system's
62455         declaration.
62456
62457 2000-04-15  Jim Meyering  <meyering@lucent.com>
62458
62459         Use `C' to denote so-called `contiguous' files, the same way
62460         that tar does.
62461         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62462         (ftypelet): Use S_ISCTG.
62463         From Michael Deutschmann.
62464
62465 2000-04-14  Jim Meyering  <meyering@lucent.com>
62466
62467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62468         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62469         clobbered.
62470
62471 2000-04-14  Jim Meyering  <meyering@lucent.com>
62472
62473         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62474
62475 2000-04-13  Jim Meyering  <meyering@lucent.com>
62476
62477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62478         AH_VERBATIM to insert required #ifndef into config.h.in.
62479         Suggestion from Akim Demaille.
62480
62481 2000-04-12  Jim Meyering  <meyering@lucent.com>
62482
62483         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62484         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62485         Christian Krackowizer.
62486
62487         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62488         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62489         (AC_SYS_LARGEFILE): Require.
62490         (AM_C_PROTOTYPES): Require.
62491
62492 2000-04-08  Jim Meyering  <meyering@lucent.com>
62493
62494         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62495         names don't conflict.  Reported by Eli Zaretskii.
62496
62497 2000-04-07  Jim Meyering  <meyering@lucent.com>
62498
62499         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62500         sys/types.h, to work around system header problems on AIX 3.2.5.
62501         From Bruno Haible.
62502
62503 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62504
62505         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62506         bug.  Deal with the different error behavior of Irix iconv.
62507
62508 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62509
62510         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62511         IRIX if the installer said otherwise.
62512
62513 2000-04-05  Jim Meyering  <meyering@lucent.com>
62514
62515         Portability tweaks required for ultrix4.3.
62516         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62517         (jm_CHECK_DECLS): Add getutent to the list of functions.
62518         (_jm_DECL_HEADERS): Add utmpx.h.
62519         From John David Anglin.
62520
62521         * m4/strftime.m4: Back out the 2000-04-02 change.
62522         Instead of that change, simply undefine putenv in the test program.
62523
62524 2000-04-05  Jim Meyering  <meyering@lucent.com>
62525
62526         Portability tweaks required for ultrix4.3.
62527         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62528         getutent.
62529         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62530         * lib/canon-host.c: Declare strdup.
62531         * lib/path-concat.c: Likewise.
62532         From John David Anglin.
62533
62534 2000-04-04  Jim Meyering  <meyering@lucent.com>
62535
62536         Be more DOS 8.3-friendly.
62537         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62538         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62539         * lib/Makefile.am: Reflect renaming.
62540         Reported by Eli Zaretskii.
62541
62542         Use a temporary file name that won't clash with `charset.alias'
62543         in the DOS 8.3 name space.
62544         * lib/Makefile.am (charset_tmp): Define.
62545         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62546         (uninstall-local): Likewise.
62547         Reported by Eli Zaretskii.
62548
62549 2000-04-03  Jim Meyering  <meyering@lucent.com>
62550
62551         * m4/gettext.m4: Fix typo in comment.
62552
62553         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62554         textutils/configure.in).  Suggestion from Paul Eggert.
62555         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62556
62557 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62558
62559         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62560         variable in the shell rather than using putenv, which isn't
62561         portable.  This avoids the configure-time inter-test dependency
62562         on the potentially-renamed putenv function.
62563
62564 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62565
62566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62567         before checking struct stat.st_blksize, so that
62568         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62569
62570 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62571
62572         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62573         since strftime.c uses HAVE_STRFTIME to decide whether to use
62574         the underlying strftime.
62575
62576 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62577
62578         * lib/time/strftime.c (my_strftime): Make sure we call the system
62579         strftime, not ourselves, when invoking the underlying strftime.
62580
62581 2000-03-24  Jim Meyering  <meyering@lucent.com>
62582
62583         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62584         (charset_alias): Define.
62585         (install-exec-local): Factor out common code.
62586         (uninstall-local): Split lines longer than 80.
62587         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62588         (SUFFIXES): Define.
62589         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62590         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62591
62592 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62593
62594         * lib/config.charset: Output a line containing "Packages using this
62595         file".
62596         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62597         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62598         ref-del.sed): New rules.
62599
62600 2000-03-17  Jim Meyering  <meyering@lucent.com>
62601
62602         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62603         Otherwise, include <strings.h>
62604
62605 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62606
62607         * lib/unicodeio.c (utf8_wctomb): New function.
62608         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62609         format instead of in UCS-4 with platform dependent endianness.
62610
62611 2000-03-10  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62614         From Marco Franzen.
62615
62616 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62617
62618         * lib/savedir.c (savedir): Work even if directory size is
62619         negative; this can happen with some screwy NFS configurations.
62620
62621 2000-03-06  Jim Meyering  <meyering@lucent.com>
62622
62623         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62624         if it's NULL (because we ran out of memory).  From Bruno Haible.
62625
62626 2000-03-05  Jim Meyering  <meyering@lucent.com>
62627
62628         * lib/localcharset.c ("path-concat.h"): Include.
62629         (get_charset_aliases): Use path_concat instead of ANSI string
62630         concatenation.
62631
62632         * lib/unicodeio.h (PARAMS): Define.
62633         Use it to guard prototype.
62634
62635 2000-03-04  Jim Meyering  <meyering@lucent.com>
62636
62637         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62638         for lib/localcharset.c.
62639
62640 2000-03-04  Jim Meyering  <meyering@lucent.com>
62641
62642         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62643         installing into it.
62644         (uninstall-local): Uncomment this rule so `make distcheck' works
62645         once again.
62646
62647         * lib/unicodeio.c (<errno.h>): Include it.
62648         (errno): Declare if not defined.
62649
62650         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62651
62652         * lib/config.charset: New version, incorporating remarks from a linux
62653         i18n mailing list.  From Bruno Haible.
62654
62655 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62656
62657         * m4/codeset.m4: New file.
62658         * m4/iconv.m4: New file.
62659         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62660
62661 2000-03-03  Jim Meyering  <meyering@lucent.com>
62662
62663         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62664
62665 2000-03-02  Jim Meyering  <meyering@lucent.com>
62666
62667         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62668         the messages come out on separate lines.
62669
62670         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62671         rather than jm_CHECK_DECLARATIONS.
62672         * m4/decl.m4: Remove now-unused file.
62673
62674         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62675         geteuid.
62676
62677 2000-03-02  Jim Meyering  <meyering@lucent.com>
62678
62679         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62680
62681 2000-03-01  Jim Meyering  <meyering@lucent.com>
62682
62683         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62684         * lib/unicodeio.c: Likewise.
62685
62686 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62687
62688         * lib/config.charset: New file.
62689         * lib/localcharset.c: New file.
62690         * lib/unicodeio.h, lib/unicodeio.c: New files.
62691         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62692         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62693         (noinst_HEADERS): Add unicodeio.h.
62694         (all-local, install-exec-local, charset.alias): New targets.
62695
62696 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62697
62698         * lib/quotearg.c (ALERT_CHAR): New macro.
62699         (quotearg_buffer_restyled): Use it.
62700
62701 2000-02-27  Jim Meyering  <meyering@lucent.com>
62702
62703         * m4/check-decl.m4: Add getenv to the list.
62704
62705 2000-02-27  Jim Meyering  <meyering@lucent.com>
62706
62707         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62708         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62709
62710         * lib/backupfile.c: Guard inclusion of stdlib.h with
62711         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62712         Declare malloc if needed.
62713
62714         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62715         `#ifndef HAVE_DECL..'
62716         now that autoconf always defines the HAVE_DECL_ symbols.
62717         * lib/human.c: Likewise.
62718         * lib/same.c: Likewise.
62719         * lib/strtoumax.c: Likewise.
62720
62721         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62722         declaration check was not run.
62723         * lib/hash.c: Likewise.
62724         * lib/human.c: Likewise.
62725         * lib/same.c: Likewise.
62726         * lib/strtoumax.c: Likewise.
62727
62728         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62729         `.', then first look up the entire `.'-containing string as a login
62730         name.
62731
62732 2000-02-23  Jim Meyering  <meyering@lucent.com>
62733
62734         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62735         in place of my hack.
62736
62737 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62738
62739         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62740         (textint): New typedef.
62741         (parser_control): Member year changed from int to textint.
62742         All uses changed.
62743         (YYSTYPE): Removed; replaced by %union with int and textint members.
62744         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62745         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62746         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62747         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62748         (date, number, to_year): Use width of number in digits, not its value,
62749         to determine whether it's a 2-digit year, or a 2-digit time.
62750         (yylex): Store number of digits of numeric tokens.
62751         Reported by John Kendall.
62752
62753         (parser_control): Changed from struct parser_control to typedef (for
62754         consistency).  All uses changed.
62755
62756         (tID): Removed; not used.
62757         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62758
62759 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62760
62761         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62762         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62763
62764 2000-02-12  Jim Meyering  <meyering@lucent.com>
62765
62766         * lib/userspec.c (ISDIGIT): Define it.
62767         (isdigit): Remove definition.
62768         (is_number): Use ISDIGIT, not isdigit.
62769         <libintl.h>: Include.
62770         (_ and N_): Define.
62771         (parse_user_spec): Mark translatable strings.
62772
62773 2000-02-10  Jim Meyering  <meyering@lucent.com>
62774
62775         With these changes, nanosleep.[ch] are finally enough like the other
62776         lib/* replacement files to compile on a few more losing systems.
62777
62778         * lib/nanosleep.h: Don't include config.h.
62779         Remove prototype from declaration of nanosleep.
62780         (PARAMS): Remove now-unneeded definition.
62781         * lib/nanosleep.c: #undef nanosleep.
62782         (rpl_nanosleep): Rename from nanosleep.
62783
62784 2000-02-10  Jim Meyering  <meyering@lucent.com>
62785
62786         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62787         gnu_nanosleep to rpl_nanosleep.
62788
62789 2000-02-09  Jim Meyering  <meyering@lucent.com>
62790
62791         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62792         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62793
62794 2000-02-08  Akim Demaille  <akim@epita.fr>
62795
62796         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62797         `[' and `]' and remove uses of `changequote'.
62798         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62799         (AC_SYS_LARGEFILE): Likewise.
62800         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62801         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62802         of changequote.
62803         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62804         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62805         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62806         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62807
62808 2000-02-05  Jim Meyering  <meyering@lucent.com>
62809
62810         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62811         Remove explicit use of AC_HEADER_TIME.  It is required by
62812         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62813         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62814         in autoconf whereby the expansion of the latter ended up preceding
62815         the expansion of its prerequisite, AC_HEADER_TIME.
62816         Reported by Volker Borchert.
62817
62818 2000-02-03  Jim Meyering  <meyering@lucent.com>
62819
62820         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62821
62822 2000-02-03  Jim Meyering  <meyering@lucent.com>
62823
62824         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62825         rather than with `#if HAVE_UTMPNAME'.
62826
62827 2000-02-02  Jim Meyering  <meyering@lucent.com>
62828
62829         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62830         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62831         Reported by Eli Zaretskii.
62832
62833 2000-02-01  Jim Meyering  <meyering@lucent.com>
62834
62835         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62836
62837 2000-01-31  Jim Meyering  <meyering@lucent.com>
62838
62839         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62840         functions.  Add the time.h and sys/time.h headers along with the
62841         AC_REQUIRE'ment of AC_HEADER_TIME.
62842
62843 2000-01-31  Jim Meyering  <meyering@lucent.com>
62844
62845         * lib/nanosleep.h (nanosleep): Guard declaration with
62846         `#if ! HAVE_DECL_NANOSLEEP'.
62847         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62848         the declaration in that vendor's sys/timers.h.
62849         Reported by Christian Krackowizer.
62850
62851         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62852         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62853         (ISPRINT): Likewise.
62854         Reported by Tom Tromey.
62855
62856 2000-01-30  Jim Meyering  <meyering@lucent.com>
62857
62858         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62859
62860         * m4/prereq.m4 (utmp_includes): Define.
62861         Check for ut_user and ut_name members in both struct utmpx
62862         and struct utmp.
62863
62864 2000-01-30  Jim Meyering  <meyering@lucent.com>
62865
62866         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62867         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
62868         header files where only utmpx.ut_user is declared.
62869
62870         * lib/readutmp.h (UT_USER): Define.
62871
62872 2000-01-29  Jim Meyering  <meyering@lucent.com>
62873
62874         * m4/lib-check.m4: New file containing library-related checks from
62875         fileutils and sh-utils (textutils had none).
62876
62877 2000-01-28  Jim Meyering  <meyering@lucent.com>
62878
62879         * m4/perl.m4: Change format of warning message to look more like that
62880         from the missing script.  Suggestion from François Pinard.
62881
62882 2000-01-25  Jim Meyering  <meyering@lucent.com>
62883
62884         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62885         well as time.h in the compile check.
62886         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62887         Fix typo in cross-compiling case: s/yes/no/.
62888
62889 2000-01-23  Jim Meyering  <meyering@lucent.com>
62890
62891         * m4/jm-macros.m4: Move df-related tests here from
62892         fileutils/configure.in
62893
62894         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62895         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62896
62897         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
62898         s/space/ac_fsusage_space/.
62899         (jm_FILE_SYSTEM_USAGE): Take two parameters.
62900
62901         * m4/ftruncate.m4: New file (derived from part of
62902         fileutils/configure.in).
62903         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62904         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62905
62906         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62907         AC_SUBST these here, rather than just in sh-util/configure.in, so
62908         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62909         all the same.
62910         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62911         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62912         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62913         (AC_SUBST(POW_LIBM)): Likewise.
62914         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62915
62916 2000-01-23  Jim Meyering  <meyering@lucent.com>
62917
62918         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62919         obstack.c.
62920
62921 2000-01-22  Jim Meyering  <meyering@lucent.com>
62922
62923         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62924
62925         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62926
62927         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62928         configure.in
62929         (AC_CHECK_HEADERS): Likewise for sh-utils.
62930         (AC_CHECK_HEADERS): Likewise for textutils.
62931         Merge the three lists of headers.
62932
62933         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
62934         from fileutils' configure.in.
62935
62936         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62937         code. Moved tests into their own function (_jm_DECL_HEADERS) in
62938         check-decl.m4.
62939
62940         * m4/check-decl.m4: Use #if rather than #ifdef.
62941         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62942         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62943         (_jm_DECL_HEADERS): Define new function.
62944         (jm_CHECK_DECLARATIONS): Require it.
62945
62946 2000-01-22  Jim Meyering  <meyering@lucent.com>
62947
62948         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62949         [! HAVE_DECL_STRTOULL]: Declare strtoull.
62950         Required for some AIX systems.  Reported by Christian Krackowizer.
62951         [TESTING] (main): New function.
62952
62953         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
62954         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62955         letters.
62956
62957         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62958         iswprint.
62959
62960         * lib/strverscmp.c (ISDIGIT): Define.
62961         (strverscmp): Use ISDIGIT, not isdigit.
62962
62963 2000-01-19  Jim Meyering  <meyering@lucent.com>
62964
62965         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62966         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
62967         defines `struct timespec' in <sys/time.h>
62968
62969         * m4/c-bs-a.m4: Remove uses of changequote altogether.
62970         Thanks to Akim for explaining.
62971
62972 2000-01-17  Paul Eggert  <eggert@twinsun.com>
62973
62974         * lib/nanosleep.c (nanosleep):
62975         Don't use SA_INTERRUPT to decide whether to call sigaction, as
62976         POSIX.1 doesn't require SA_INTERRUPT and some systems
62977         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
62978         it's been part of POSIX.1 since day 1 (in 1988).
62979
62980 2000-01-17  Jim Meyering  <meyering@lucent.com>
62981
62982         * lib/interlock: Remove unused file.  Reported by François Pinard.
62983
62984 2000-01-16  Paul Eggert  <eggert@twinsun.com>
62985
62986         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62987         alert, backslash, formfeed, and vertical tab unnecessarily in
62988         shell quoting style.
62989
62990 2000-01-16  Jim Meyering  <meyering@lucent.com>
62991
62992         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62993         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62994         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62995         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62996
62997 2000-01-16  Jim Meyering  <meyering@lucent.com>
62998
62999         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63000         because the latter didn't work.
63001
63002 2000-01-15  Jim Meyering  <meyering@lucent.com>
63003
63004         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63005         (AC_REPLACE_FUNCS): Add memcpy and memset.
63006         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63007         Add strpbrk.
63008         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63009
63010 2000-01-12  Jim Meyering  <meyering@lucent.com>
63011
63012         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63013         (jm_PREREQ): Use it.
63014         (jm_PREREQ_READUTMP): New macro.
63015         (jm_PREREQ): Use it.
63016
63017 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63018
63019         Quote multibyte characters correctly.
63020         * m4/c-bs-a.m4: New file.
63021         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63022         (jm_PREREQ): Use it.
63023
63024 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63025
63026         * m4/uintmax_t.m4: Port to autoconf 2.13.
63027
63028 2000-01-08  Jim Meyering  <meyering@ascend.com>
63029
63030         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63031         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63032
63033 2000-01-04  Jim Meyering  <meyering@ascend.com>
63034
63035         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63036         jm_STRUCT_DIRENT_D_TYPE.
63037         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63038         jm_STRUCT_DIRENT_D_INO.
63039         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63040         jm_STRUCT_UTIMBUF.
63041         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63042         renamings.
63043         * m4/utime.m4: Likewise.
63044
63045         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63046         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63047
63048 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63049
63050         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63051         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63052
63053 2000-01-02  Jim Meyering  <meyering@ascend.com>
63054
63055         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63056         remember if this is necessary.
63057
63058 1999-12-26  Jim Meyering  <meyering@ascend.com>
63059
63060         * m4/jm-macros.m4: Use it here.
63061         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63062
63063 1999-12-23  Jim Meyering  <meyering@ascend.com>
63064
63065         * m4/jm-macros.m4: Check for clock_gettime (moved from
63066         fileutils/configure.in)
63067         Check for gettimeofday.
63068
63069 1999-12-20  Jim Meyering  <meyering@ascend.com>
63070
63071         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63072         autoconf-2.14a-1999-12-20.
63073
63074 1999-12-19  Jim Meyering  <meyering@ascend.com>
63075
63076         * m4/lstat-slash.m4: New file.
63077         * m4/jm-macros.m4: Use the new macro:
63078         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63079
63080 1999-12-07  Jim Meyering  <meyering@ascend.com>
63081
63082         * m4/perl.m4: Require that File::Compare be available, too.
63083         Too many systems seem to lack it.
63084
63085         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63086         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63087
63088 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63089
63090         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63091         problem with the QNX 4.25 shell, which doesn't propagate exit
63092         status of failed commands inside shell assignments.
63093
63094 1999-11-17  Jim Meyering  <meyering@ascend.com>
63095
63096         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63097
63098 1999-11-07  Jim Meyering  <meyering@ascend.com>
63099
63100         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63101
63102 1999-11-06  Jim Meyering  <meyering@ascend.com>
63103
63104         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63105         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63106
63107 1999-11-05  Jim Meyering  <meyering@ascend.com>
63108
63109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63110         configure.in of textutils, fileutils, and sh-utils into this one
63111         (shared between those packages) file.
63112         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63113         AC_STRUCT_ST_BLKSIZE.
63114
63115 1999-11-03  Jim Meyering  <meyering@ascend.com>
63116
63117         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63118         of AC_CHECK_TYPE checks includes unistd.h.
63119         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63120         Suggestion from Akim Demaille.
63121
63122 1999-10-30  Jim Meyering  <meyering@ascend.com>
63123
63124         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63125         m4-quoted string.
63126         * m4/ls-mntd-fs.m4: Likewise.
63127         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63128         * m4/jm-winsz1.m4: Likewise.
63129
63130         * m4/const.m4: Remove file, since the fix made it into the experimental
63131         version of autoconf.
63132         * m4/mktime.m4: Likewise.
63133
63134         * m4/check-type.m4: Remove file, now that the latest version of
63135         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63136
63137         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63138         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63139         AC_CHECK_TYPE.
63140
63141 1999-10-04  Jim Meyering  <meyering@ascend.com>
63142
63143         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63144
63145 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63146
63147         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63148         2.95.1 bug with HP-UX 10.20.
63149
63150 1999-09-17  Jim Meyering  <meyering@ascend.com>
63151
63152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63153         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63154         due to missing strdup (against sh-utils-2.0).
63155
63156 1999-08-29  Jim Meyering  <meyering@ascend.com>
63157
63158         * m4/jm-macros.m4: Require jm_BISON.
63159         * m4/bison.m4: New file.
63160
63161 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63162
63163         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63164         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63165
63166 1999-08-05  Jim Meyering  <meyering@ascend.com>
63167
63168         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63169         to avoid conflicts with `conftest' on 8+3 filesystems.
63170         Suggestion from Eli Zaretskii.
63171
63172 1999-08-04  Jim Meyering  <meyering@ascend.com>
63173
63174         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63175         fileutils and sh-utils (textutils's getline test was inadequate).
63176         (AM_FUNC_GETLINE): Run this test.
63177         (AC_CHECK_FUNCS): Check for getdelim.
63178         Reported by Bob Proulx.
63179
63180 1999-08-02  Jim Meyering  <meyering@ascend.com>
63181
63182         * m4/jm-macros.m4: Add a comment.
63183
63184 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63185
63186         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63187         <inttypes.h> defines strtoumax as a macro (and not as a
63188         function).
63189
63190 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63191
63192         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63193         that we can shift, multiply and divide unsigned long long
63194         values; Ultrix cc can't do it.
63195
63196 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63197
63198         * m4/mktime.m4: New file, which is a preview of what should appear
63199         in the next public autoconf release.
63200
63201 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63202
63203         * m4/lfs.m4: Remove this file.
63204         * m4/largefile.m4: New file.  It contains the old contents of
63205         lfs.m4, except that all names with prefix AC_LFS have been
63206         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63207         compatible with future autoconf versions.  Also, some minor m4
63208         quoting problems have been fixed.
63209
63210 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63211
63212         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63213         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63214         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63215         and simplify the shell code.
63216
63217 1999-08-01  Jim Meyering  <meyering@ascend.com>
63218
63219         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63220         m4.
63221
63222 1999-07-20  Jim Meyering  <meyering@ascend.com>
63223
63224         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63225
63226 1999-07-15  Jim Meyering  <meyering@ascend.com>
63227
63228         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63229
63230 1999-05-22  Jim Meyering  <meyering@ascend.com>
63231
63232         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63233
63234 1999-05-20  Jim Meyering  <meyering@ascend.com>
63235
63236         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63237         Add a colon after each `then' in case $4 is empty.
63238
63239 1999-05-16  Jim Meyering  <meyering@ascend.com>
63240
63241         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63242
63243 1999-05-10  Jim Meyering  <meyering@ascend.com>
63244
63245         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63246
63247         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63248         AC_FUNC_MKTIME.
63249
63250 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63251
63252         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63253
63254 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63255
63256         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63257         not CPPFLAGS, so that linking works correctly in IRIX.
63258
63259 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63260
63261         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63262
63263 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63264
63265         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63266         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63267         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63268         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63269         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63270
63271         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63272
63273 1999-04-20  Jim Meyering  <meyering@ascend.com>
63274
63275         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63276         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63277         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63278
63279 1999-04-18  Jim Meyering  <meyering@ascend.com>
63280
63281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63282         * m4/jm-macros.m4: Use it.
63283
63284 1999-04-06  Jim Meyering  <meyering@ascend.com>
63285
63286         * m4/strftime.m4: Remove test for %f.
63287
63288 1999-03-29  Jim Meyering  <meyering@ascend.com>
63289
63290         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63291         superset of the AC_TYPE_* checks in the textutils, fileutils,
63292         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63293         AC_TYPE_PID_T.
63294
63295 1999-03-28  Jim Meyering  <meyering@ascend.com>
63296
63297         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63298         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63299         replaced e.g., in the *.sh files of the sh-utils.
63300
63301 1999-03-20  Jim Meyering  <meyering@ascend.com>
63302
63303         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63304         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63305         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63306
63307 1999-03-19  Jim Meyering  <meyering@ascend.com>
63308
63309         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63310
63311 1999-03-12  Jim Meyering  <meyering@ascend.com>
63312
63313         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63314
63315 1999-03-07  Jim Meyering  <meyering@ascend.com>
63316
63317         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63318         declared.
63319
63320 1999-02-17  Jim Meyering  <meyering@ascend.com>
63321
63322         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63323         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63324
63325 1999-02-07  Jim Meyering  <meyering@ascend.com>
63326
63327         * m4/group-member.m4: New file -- extracted from sh-utils'
63328         configure.in.
63329
63330         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63331         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63332
63333 1999-02-06  Jim Meyering  <meyering@ascend.com>
63334
63335         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63336         * m4/fnmatch.m4: Likewise.
63337         * m4/getgroups.m4: Likewise.
63338         * m4/lstat.m4: Likewise.
63339         * m4/malloc.m4: Likewise.
63340         * m4/putenv.m4: Likewise.
63341         * m4/realloc.m4: Likewise.
63342         * m4/regex.m4: Likewise.
63343         * m4/stat.m4: Likewise.
63344         * m4/strftime.m4: Likewise.
63345         Suggestion from Alain Magloire.
63346
63347         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63348         * m4/fnmatch.m4: Likewise.
63349         * m4/getgroups.m4: Likewise.
63350         * m4/getline.m4: Likewise.
63351         * m4/lstat.m4: Likewise.
63352         * m4/malloc.m4: Likewise.
63353         * m4/memcmp.m4: Likewise.
63354         * m4/putenv.m4: Likewise.
63355         * m4/realloc.m4: Likewise.
63356         * m4/regex.m4: Likewise.
63357         * m4/stat.m4: Likewise.
63358         * m4/strftime.m4: Likewise.
63359         Suggestion from Alain Magloire.
63360
63361         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63362         an argument.
63363
63364         * m4/regex.m4: Add a run-time Test for proper operation of
63365         re_compile_pattern.
63366
63367 1999-01-31  Jim Meyering  <meyering@ascend.com>
63368
63369         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63370
63371 1999-01-30  Jim Meyering  <meyering@ascend.com>
63372
63373         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63374
63375         * m4/jm-mktime.m4: Make this a wrapper around the official
63376         AM_FUNC_MKTIME rather than my private copy, now that the official one
63377         is up to date.
63378         * m4/mktime.m4: Remove file.
63379
63380         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63381         * m4/uptime.m4: Likewise.
63382         * m4/uintmax_t.m4: Likewise.
63383
63384 1999-01-28  Jim Meyering  <meyering@ascend.com>
63385
63386         * m4/jm-macros.m4: Use jm_AFS.
63387         * m4/afs.m4: New file (from fileutils' configure.in).
63388
63389         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63390         * m4/chown.m4: Likewise.
63391         * m4/d-ino.m4: Likewise.
63392         * m4/d-type.m4: Likewise.
63393         * m4/fnmatch.m4: Likewise.
63394         * m4/getgroups.m4: Likewise.
63395         * m4/gettext.m4: Likewise.
63396         * m4/jm-mktime.m4: Likewise.
63397         * m4/jm-winsz2.m4: Likewise.
63398         * m4/lcmessage.m4: Likewise.
63399         * m4/ls-mntd-fs.m4: Likewise.
63400         * m4/malloc.m4: Likewise.
63401         * m4/memcmp.m4: Likewise.
63402         * m4/putenv.m4: Likewise.
63403         * m4/realloc.m4: Likewise.
63404         * m4/st_mtim.m4: Likewise.
63405         * m4/strftime.m4: Likewise.
63406
63407 1999-01-16  Jim Meyering  <meyering@ascend.com>
63408
63409         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63410         (ARGMATCH_DIE_DECL): Define.
63411
63412 1999-01-12  Jim Meyering  <meyering@ascend.com>
63413
63414         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63415         Reported by Lars Hecking.
63416
63417 1999-01-10  Jim Meyering  <meyering@ascend.com>
63418
63419         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63420         gross kludge.
63421         * m4/inttypes_h.m4: Likewise.
63422         * m4/lstat.m4: Likewise.
63423         * m4/malloc.m4: Likewise.
63424         * m4/readdir.m4: Likewise.
63425         * m4/realloc.m4: Likewise.
63426         * m4/st_dm_mode.m4: Likewise.
63427         * m4/stat.m4: Likewise.
63428         * m4/utimbuf.m4: Likewise.
63429         * m4/utimes.m4: Likewise.
63430
63431         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63432         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63433         comments in config.h.in are meaningful.
63434
63435         * m4/jm-macros.m4: Require autoconf-2.13 here.
63436
63437         * m4/regex.m4: By default, don't use the included regex.c on systems
63438         with glibc 2.  Suggestion from Uli Drepper.
63439
63440 1999-01-02  Jim Meyering  <meyering@ascend.com>
63441
63442         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63443
63444 1998-12-18  Jim Meyering  <meyering@ascend.com>
63445
63446         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63447         Based on a suggestion from Lars Hecking.
63448
63449 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63450
63451         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63452
63453 1998-11-16  Jim Meyering  <meyering@ascend.com>
63454
63455         * m4/lfs.m4: Double-quote the `uname...` expression.
63456
63457 1998-11-14  Jim Meyering  <meyering@ascend.com>
63458
63459         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63460         * m4/stat.m4: Likewise.
63461
63462 1998-11-03  Jim Meyering  <meyering@ascend.com>
63463
63464         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63465         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63466
63467 1998-10-18  Jim Meyering  <meyering@ascend.com>
63468
63469         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63470
63471 1998-10-17  Jim Meyering  <meyering@ascend.com>
63472
63473         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63474         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63475         calls for those previously hard-coded headers.  Instead, take a new
63476         parameter.
63477         (jm_CHECK_DECLARATIONS): Reflect interface change.
63478         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63479         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63480
63481         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63482
63483 1998-10-14  Jim Meyering  <meyering@ascend.com>
63484
63485         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63486         instead of "TZ=America/Vancouver".  From Paul Eggert.
63487
63488 1998-10-11  Jim Meyering  <meyering@ascend.com>
63489
63490         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63491         This adds a test for a recently added compatibility fix for mktime.c.
63492         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63493
63494 1998-09-27  Jim Meyering  <meyering@ascend.com>
63495
63496         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63497
63498         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63499         ../configure.in, including a change from Gordon Matzigkeit to allow
63500         cross-compiling for the Hurd.
63501
63502         * m4/glibc.m4: New file/macro to test for the GNU C Library
63503         versions 1 and 2.  From Gordon Matzigkeit.
63504         Indent.
63505
63506 1998-09-21  Jim Meyering  <meyering@ascend.com>
63507
63508         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63509
63510 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63511
63512         Port nanosecond-resolution times to UnixWare 2.1.2 and
63513         pedantic Solaris 2.6.
63514
63515         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63516         AC_STRUCT_ST_MTIM.
63517         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63518         Generate name of ns member, instead of just 1 or undef.
63519         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63520
63521 1998-08-15  Jim Meyering  <meyering@ascend.com>
63522
63523         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63524         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63525         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63526         instead of jm_TYPE_SSIZE_T.
63527
63528 1998-08-12  Jim Meyering  <meyering@ascend.com>
63529
63530         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63531
63532 1998-08-02  Jim Meyering  <meyering@ascend.com>
63533
63534         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63535         in acconfig.h manually.
63536
63537 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63538
63539         * m4/st_mtim.m4: New file.
63540
63541 1998-07-28  Jim Meyering  <meyering@ascend.com>
63542
63543         * m4/utimes.m4: Undef stat.
63544
63545 1998-07-25  Jim Meyering  <meyering@ascend.com>
63546
63547         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63548         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63549
63550 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63551
63552         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63553         uid and gid actually remain unchanged.
63554
63555 1998-07-07  Jim Meyering  <meyering@ascend.com>
63556
63557         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63558
63559 1998-07-04  Jim Meyering  <meyering@ascend.com>
63560
63561         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63562         to prove that this macro can be used in packages without regex.c.
63563
63564 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63565
63566         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63567         is to be used.
63568
63569 1998-07-03  Jim Meyering  <meyering@ascend.com>
63570
63571         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63572
63573         * m4/gettext.m4: New file -- from gettext-0.10.35.
63574         * m4/lcmessage.m4: Likewise.
63575         * m4/progtest.m4: Likewise.
63576
63577         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63578         * m4/jm-macros.m4: Require the new macro.
63579
63580 1998-06-29  Jim Meyering  <meyering@ascend.com>
63581
63582         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63583         for the definition of NGROUPS (used in a system header included
63584         by sys/mount.h).
63585
63586 1998-06-28  Jim Meyering  <meyering@ascend.com>
63587
63588         * m4/ls-mntd-fs.m4: New file.
63589         * m4/fstypename.m4: New file.
63590
63591         * m4/jm-macros.m4: Require the new macro.
63592         * m4/jm-glibc-io.m4: New file.
63593
63594 1998-05-19  Jim Meyering  <meyering@ascend.com>
63595
63596         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63597         * m4/lchown.m4: New file.
63598
63599         * m4/Makefile.am.in: New file.
63600         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63601
63602 1998-05-14  Jim Meyering  <meyering@ascend.com>
63603
63604         * m4/Makefile.am (EXTRA_DIST): Add them.
63605         * m4/jm-macros.m4: New file.
63606         * m4/utimbuf.m4: New file.
63607
63608 1998-05-12  Jim Meyering  <meyering@ascend.com>
63609
63610         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63611
63612 1998-05-11  Jim Meyering  <meyering@ascend.com>
63613
63614         * m4/isc-posix.m4: New file.
63615
63616 1998-05-10  Jim Meyering  <meyering@ascend.com>
63617
63618         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63619
63620 1998-05-09  Jim Meyering  <meyering@ascend.com>
63621
63622         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63623         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63624         with automake.
63625
63626         * m4/ssize_t.m4: New file.
63627         * m4/mktime.m4: Remove file -- the new automake has this now.
63628
63629 1998-04-26  Jim Meyering  <meyering@ascend.com>
63630
63631         * m4/assert.m4: New file.
63632         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63633
63634 1998-04-05  Jim Meyering  <meyering@ascend.com>
63635
63636         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63637         (jm_PREREQ): Use it here.
63638
63639 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63640
63641         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63642         in acconfig.h.
63643
63644 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63645
63646         * m4/prereq.m4: New file.
63647         * m4/error.m4: New file.
63648         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63649
63650 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63651
63652         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63653         cache-check for the same variable -- that defeated the purpose of
63654         the test; the test program was never run.  This was a problem only
63655         on systems with losing getline functions -- HP-UX 10.20 is one.
63656         Reported by Bjorn Helgaas.
63657
63658 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63659
63660         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63661
63662 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63663
63664         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63665
63666         * m4/const.m4: New file.  Use an initializer in this declaration
63667         typedef int charset[2]; const charset x;
63668         Reported by Bob Glickstein.
63669
63670 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63671
63672         * m4/chown.m4: Fix reversed types on -1 args to chown.
63673         From Kaveh Ghazi.
63674
63675 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63676
63677         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63678         Add lseek and memchr.
63679
63680         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63681         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63682         have a 20-character limit on names.
63683
63684 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63685
63686         * m4/inttypes_h.m4: New file.
63687         * m4/uintmax_t.m4: New file.
63688         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63689
63690
63691         -----
63692
63693         Local Variables:
63694         coding: utf-8
63695         End:
63696
63697         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63698
63699         Copying and distribution of this file, with or without
63700         modification, are permitted provided the copyright notice
63701         and this notice are preserved.